@wanghaopeng1148/deskpet 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +394 -0
- package/bin/deskpet.mjs +142 -0
- package/dist/web/assets/DashboardView-BLXa7VrZ.css +1 -0
- package/dist/web/assets/DashboardView-CTyWcLtQ.js +60 -0
- package/dist/web/assets/SettingsView-7c3RiRrt.js +1 -0
- package/dist/web/assets/SettingsView-BkL0OpZC.css +1 -0
- package/dist/web/assets/TasksView-BTK1OTwU.css +1 -0
- package/dist/web/assets/TasksView-s1MaR5sZ.js +5 -0
- package/dist/web/assets/ToolsView-B8V-A1j_.js +178 -0
- package/dist/web/assets/ToolsView-DGLJATQ9.css +1 -0
- package/dist/web/assets/WeChatView-ChLBhPso.js +1 -0
- package/dist/web/assets/WeChatView-CvdhJ05E.css +1 -0
- package/dist/web/assets/browser-CjSdxGTc.js +8 -0
- package/dist/web/assets/dashboard-DJ_Miuzx.js +93 -0
- package/dist/web/assets/dashboard-Fbcagzwx.css +1 -0
- package/dist/web/dashboard/index.html +13 -0
- package/package.json +71 -0
- package/resources/icons/tray.png +0 -0
- package/resources/icons/tray@2x.png +0 -0
- package/resources/previews/busy.png +0 -0
- package/resources/previews/click.png +0 -0
- package/resources/previews/hover.png +0 -0
- package/resources/previews/idle.png +0 -0
- package/resources/previews/preview.png +0 -0
- package/resources/previews/sleep.png +0 -0
- package/resources/skins/default_cute/pet.json +7 -0
- package/resources/skins/default_cute/spritesheet.webp +0 -0
- package/resources/skins/default_cute/submission.json +29 -0
- package/server/db/database.ts +118 -0
- package/server/db/migrate-legacy.ts +121 -0
- package/server/db/task-repository.ts +585 -0
- package/server/http/http-server.ts +725 -0
- package/server/http/ws-hub.ts +66 -0
- package/server/main.ts +322 -0
- package/server/plugins/actions/builtin.ts +73 -0
- package/server/plugins/actions/clipboard-watch.ts +38 -0
- package/server/plugins/actions/http-request.ts +53 -0
- package/server/plugins/actions/jenkins-build.ts +209 -0
- package/server/plugins/actions/open-app.ts +40 -0
- package/server/plugins/actions/python-script.ts +187 -0
- package/server/plugins/actions/screenshot.ts +41 -0
- package/server/plugins/actions/send-keystroke.ts +103 -0
- package/server/plugins/actions/show-reminder.ts +16 -0
- package/server/plugins/actions/ssh-command.ts +148 -0
- package/server/plugins/actions/task-chain.ts +30 -0
- package/server/plugins/actions/volume-control.ts +35 -0
- package/server/plugins/index.ts +37 -0
- package/server/plugins/registry.ts +72 -0
- package/server/services/clipboard-watcher.ts +126 -0
- package/server/services/config-store.ts +152 -0
- package/server/services/idle-monitor.ts +146 -0
- package/server/services/notifier.ts +54 -0
- package/server/services/quick-actions-store.ts +54 -0
- package/server/services/remote-connector.ts +75 -0
- package/server/services/scanner-reader.ts +257 -0
- package/server/services/script-runner.ts +263 -0
- package/server/services/snapshot-service.ts +196 -0
- package/server/services/task-scheduler.ts +900 -0
- package/server/services/wechat-bot.ts +744 -0
- package/server/services/wechat-command-types.ts +15 -0
- package/server/services/wechat-commands.ts +367 -0
- package/server/suppress-warnings.ts +10 -0
- package/server/utils/asset-url.ts +27 -0
- package/server/utils/auto-start.ts +90 -0
- package/server/utils/clipboard.ts +50 -0
- package/server/utils/dashboard-url.ts +9 -0
- package/server/utils/instance-guard.ts +170 -0
- package/server/utils/native-notify.ts +68 -0
- package/server/utils/open.ts +38 -0
- package/server/utils/paths.ts +72 -0
- package/server/utils/python-interpreter.ts +154 -0
- package/shared/animation-engine.ts +422 -0
- package/shared/chain-condition.ts +60 -0
- package/shared/cron-weekly.ts +131 -0
- package/shared/py-task-params.ts +356 -0
- package/shared/types.ts +309 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import{d as XO,o as ZO,a as $O,b as qO,c as Ne,e as ir,t as Te,f as pi,F as Ll,g as Nt,h as Wr,i as Sn,w as Fa,r as ad,j as KO,k as Pl,P as JO,l as HS,m as WS,n as US,p as jO,_ as QO}from"./dashboard-DJ_Miuzx.js";/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var Fy=function(r,t){return Fy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},Fy(r,t)};function N(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fy(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var tN=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),eN=function(){function r(){this.browser=new tN,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<"u"}return r}(),Mt=new eN;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Mt.wxa=!0,Mt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Mt.worker=!0:!Mt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Mt.node=!0,Mt.svgSupported=!0):rN(navigator.userAgent,Mt);function rN(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var a_=12,zD="sans-serif",nn=a_+"px "+zD,aN=20,nN=100,iN="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function oN(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var a=String.fromCharCode(e+32),n=(r.charCodeAt(e)-aN)/nN;t[a]=n}return t}var sN=oN(iN),Qe={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,a){if(!r){var n=Qe.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==a&&(t=r.font=a||nn),r.measureText(e);e=e||"",a=a||nn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||a_,s=0;if(a.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=sN[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var a=new Image;return a.onload=t,a.onerror=e,a.src=r,a},getTime:function(){return Date.now?Date.now():+new Date}},GD=Ia(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),FD=Ia(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),hl=Object.prototype.toString,ip=Array.prototype,lN=ip.forEach,uN=ip.filter,n_=ip.slice,fN=ip.map,YS=(function(){}).constructor,$f=YS?YS.prototype:null,i_="__proto__",nd=2311,vN=Math.pow(2,53)-1;function HD(){return nd>=vN&&(nd=0),nd++}function o_(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function at(r){if(r==null||typeof r!="object")return r;var t=r,e=hl.call(r);if(e==="[object Array]"){if(!Cu(r)){t=[];for(var a=0,n=r.length;a<n;a++)t[a]=at(r[a])}}else if(FD[e]){if(!Cu(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var a=0,n=r.length;a<n;a++)t[a]=r[a]}}}else if(!GD[e]&&!Cu(r)&&!Xs(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==i_&&(t[o]=at(r[o]))}return t}function mt(r,t,e){if(!ut(t)||!ut(r))return e?at(t):r;for(var a in t)if(t.hasOwnProperty(a)&&a!==i_){var n=r[a],i=t[a];ut(i)&&ut(n)&&!H(i)&&!H(n)&&!Xs(i)&&!Xs(n)&&!XS(i)&&!XS(n)&&!Cu(i)&&!Cu(n)?mt(n,i,e):(e||!(a in r))&&(r[a]=at(t[a]))}return r}function s_(r,t){for(var e=r[0],a=1,n=r.length;a<n;a++)e=mt(e,r[a],t);return e}function G(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==i_&&(r[e]=t[e]);return r}function hN(r,t,e){r=r||{};for(var a=0;a<e.length;a++){var n=e[a];r[n]=t[n]}return r}function st(r,t,e){for(var a=Ct(t),n=0,i=a.length;n<i;n++){var o=a[n];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}function pt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,a=r.length;e<a;e++)if(r[e]===t)return e}return-1}function cN(r,t){var e=r.prototype;function a(){}a.prototype=t.prototype,r.prototype=new a;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function ye(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(t),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else st(r,t,e)}function He(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,t,e){if(r&&t)if(r.forEach&&r.forEach===lN)r.forEach(t,e);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)t.call(e,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function W(r,t,e){if(!r)return[];if(!t)return l_(r);if(r.map&&r.map===fN)return r.map(t,e);for(var a=[],n=0,i=r.length;n<i;n++)a.push(t.call(e,r[n],n,r));return a}function Ia(r,t,e,a){if(r&&t){for(var n=0,i=r.length;n<i;n++)e=t.call(a,e,r[n],n,r);return e}}function Bt(r,t,e){if(!r)return[];if(!t)return l_(r);if(r.filter&&r.filter===uN)return r.filter(t,e);for(var a=[],n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r)&&a.push(r[n]);return a}function ui(r,t,e){if(r&&t){for(var a=0,n=r.length;a<n;a++)if(t.call(e,r[a],a,r))return r[a]}}function Ct(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 pN(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return function(){return r.apply(t,e.concat(n_.call(arguments)))}}var q=$f&&nt($f.bind)?$f.call.bind($f.bind):pN;function St(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(n_.call(arguments)))}}function H(r){return Array.isArray?Array.isArray(r):hl.call(r)==="[object Array]"}function nt(r){return typeof r=="function"}function Z(r){return typeof r=="string"}function Hy(r){return hl.call(r)==="[object String]"}function Lt(r){return typeof r=="number"}function ut(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function XS(r){return!!GD[hl.call(r)]}function hr(r){return!!FD[hl.call(r)]}function Xs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function op(r){return r.colorStops!=null}function dN(r){return r.image!=null}function gN(r){return hl.call(r)==="[object RegExp]"}function Fe(r){return r!==r}function je(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,a=r.length;e<a;e++)if(r[e]!=null)return r[e]}function j(r,t){return r??t}function _r(r,t,e){return r??t??e}function l_(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return n_.apply(r,t)}function sp(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 We(r,t){if(!r)throw new Error(t)}function kr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var WD="__ec_primitive__";function Gh(r){r[WD]=!0}function Cu(r){return r[WD]}var yN=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Ct(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var a in e)e.hasOwnProperty(a)&&t(e[a],a)},r}(),UD=typeof Map=="function";function mN(){return UD?new Map:new yN}var _N=function(){function r(t){var e=H(t);this.data=mN();var a=this;t instanceof r?t.each(n):t&&A(t,n);function n(i,o){e?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(a,n){t.call(e,a,n)})},r.prototype.keys=function(){var t=this.data.keys();return UD?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function K(r){return new _N(r)}function zu(r,t){for(var e=new r.constructor(r.length+t.length),a=0;a<r.length;a++)e[a]=r[a];for(var n=r.length,a=0;a<t.length;a++)e[a+n]=t[a];return e}function lp(r,t){var e;if(Object.create)e=Object.create(r);else{var a=function(){};a.prototype=r,e=new a}return t&&G(e,t),e}function YD(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function J(r,t){return r.hasOwnProperty(t)}function re(){}var ch=180/Math.PI;function zo(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function ze(r,t){return r[0]=t[0],r[1]=t[1],r}function ja(r){return[r[0],r[1]]}function Wn(r,t,e){return r[0]=t,r[1]=e,r}function ZS(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Wy(r,t,e,a){return r[0]=t[0]+e[0]*a,r[1]=t[1]+e[1]*a,r}function to(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Uy(r){return Math.sqrt(SN(r))}function SN(r){return r[0]*r[0]+r[1]*r[1]}function ph(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function cl(r,t){var e=Uy(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Yy(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var kn=Yy;function xN(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var so=xN;function dh(r,t,e,a){return r[0]=t[0]+a*(e[0]-t[0]),r[1]=t[1]+a*(e[1]-t[1]),r}function ae(r,t,e){var a=t[0],n=t[1];return r[0]=e[0]*a+e[2]*n+e[4],r[1]=e[1]*a+e[3]*n+e[5],r}function On(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Nn(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var ts=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),bN=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 ts(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var a=t.offsetX,n=t.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,e.drift(i,o,t),this.handler.dispatchToElement(new ts(e,t),"drag",t.event);var s=this.handler.findHover(a,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ts(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new ts(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ts(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ts(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),Hr=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(n=a,a=e,e=null),!a||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===a)return this;var l={h:a,query:e,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[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 a=this._$handlers;if(!a)return this;if(!t)return this._$handlers={},this;if(e){if(a[t]){for(var n=[],i=0,o=a[t].length;i<o;i++)a[t][i].h!==e&&n.push(a[t][i]);a[t]=n}a[t]&&a[t].length===0&&delete a[t]}else delete a[t];return this},r.prototype.trigger=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.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 i&&i.afterTrigger&&i.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.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 i&&i.afterTrigger&&i.afterTrigger(t),this},r}(),wN=Math.log(2);function Xy(r,t,e,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/wN);return r[e][l]}for(var u=a|1<<e,f=e+1;a&1<<f;)f++;for(var v=0,h=0,c=0;h<s;h++){var p=1<<h;p&n||(v+=(c%2?-1:1)*r[e][h]*Xy(r,t-1,f,u,n|p,i),c++)}return i[o]=v,v}function $S(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]]],a={},n=Xy(e,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Xy(e,7,o===0?1:0,1<<o,1<<s,a)/n*t[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var Fh="___zrEVENTSAVED",id=[];function TN(r,t,e,a,n){return Zy(id,t,a,n,!0)&&Zy(r,e,id[0],id[1])}function CN(r,t){r&&e(r),t&&e(t);function e(a){var n=a[Fh];n&&(n.clearMarkers&&n.clearMarkers(),delete a[Fh])}}function Zy(r,t,e,a,n){if(t.getBoundingClientRect&&Mt.domSupported&&!XD(t)){var i=t[Fh]||(t[Fh]={}),o=AN(t,i),s=MN(o,i,n);if(s)return s(r,e,a),!0}return!1}function AN(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){A(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function MN(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,h=f.left,c=f.top;o.push(h,c),l=l&&i&&h===i[v]&&c===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=e?$S(s,o):$S(o,s))}function XD(r){return r.nodeName.toUpperCase()==="CANVAS"}var DN=/([&<>"'])/g,IN={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ke(r){return r==null?"":(r+"").replace(DN,function(t,e){return IN[e]})}var LN=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,od=[],PN=Mt.browser.firefox&&+Mt.browser.version.split(".")[0]<39;function $y(r,t,e,a){return e=e||{},a?qS(r,t,e):PN&&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):qS(r,t,e),e}function qS(r,t,e){if(Mt.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(XD(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(Zy(od,r,a,n)){e.zrX=od[0],e.zrY=od[1];return}}e.zrX=e.zrY=0}function u_(r){return r||window.event}function Mr(r,t,e){if(t=u_(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&$y(r,o,t,e)}else{$y(r,t,t,e);var i=RN(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&LN.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function RN(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function qy(r,t,e,a){r.addEventListener(t,e,a)}function EN(r,t,e,a){r.removeEventListener(t,e,a)}var on=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function KS(r){return r.which===2||r.which===3}var kN=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=$y(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in sd)if(sd.hasOwnProperty(e)){var a=sd[e](this._track,t);if(a)return a}},r}();function JS(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function ON(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var sd={pinch:function(r,t){var e=r.length;if(e){var a=(r[e-1]||{}).points,n=(r[e-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=JS(a)/JS(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=ON(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Qt(){return[1,0,0,1,0,0]}function pl(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function go(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 Or(r,t,e){var a=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],i=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]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function La(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 fi(r,t,e,a){a===void 0&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),v=Math.cos(e);return r[0]=n*v+s*f,r[1]=-n*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-a[0])+f*(u-a[1])+a[0],r[5]=v*(u-a[1])-f*(o-a[0])+a[1],r}function f_(r,t,e){var a=e[0],n=e[1];return r[0]=t[0]*a,r[1]=t[1]*n,r[2]=t[2]*a,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*n,r}function Vr(r,t){var e=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-e*s)*l,r):null}function NN(r){var t=Qt();return go(t,r),t}var lt=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,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},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,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+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,a){t.x=e,t.y=a},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,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,n){t.x=e.x+a.x*n,t.y=e.y+a.y*n},r.lerp=function(t,e,a,n){var i=1-n;t.x=i*e.x+n*a.x,t.y=i*e.y+n*a.y},r}(),eo=Math.min,Ds=Math.max,Ky=Math.abs,jS=["x","y"],BN=["width","height"],di=new lt,gi=new lt,yi=new lt,mi=new lt,gr=qD(),hu=gr.minTv,Jy=gr.maxTv,Au=[0,0],ot=function(){function r(t,e,a,n){ld(this,t,e,a,n)}return r.set=function(t,e,a,n,i){return n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),t.x=e,t.y=a,t.width=n,t.height=i,t},r.prototype.union=function(t){var e=eo(t.x,this.x),a=eo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ds(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ds(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){return ZD(Qt(),this,t)},r.prototype.intersect=function(t,e,a){return r.intersect(this,t,e,a)},r.intersect=function(t,e,a,n){a&<.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!e)return!1;t instanceof r||(t=ld(zN,t.x,t.y,t.width,t.height)),e instanceof r||(e=ld(GN,e.x,e.y,e.width,e.height));var s=!!a;gr.reset(n,s);var l=gr.touchThreshold,u=t.x+l,f=t.x+t.width-l,v=t.y+l,h=t.y+t.height-l,c=e.x+l,p=e.x+e.width-l,d=e.y+l,g=e.y+e.height-l;if(u>f||v>h||c>p||d>g)return!1;var y=!(f<c||p<u||h<d||g<v);return(s||i)&&(Au[0]=1/0,Au[1]=0,QS(u,f,c,p,0,s,i,o),QS(v,h,d,g,1,s,i,o),s&<.copy(a,y?gr.useDir?gr.dirMinTv:hu:Jy)),y},r.contain=function(t,e,a){return e>=t.x&&e<=t.x+t.width&&a>=t.y&&a<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){Zs(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?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,a){if(!a){t!==e&&Zs(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];t.x=e.x*n+o,t.y=e.y*i+s,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}di.x=yi.x=e.x,di.y=mi.y=e.y,gi.x=mi.x=e.x+e.width,gi.y=yi.y=e.y+e.height,di.transform(a),mi.transform(a),gi.transform(a),yi.transform(a),t.x=eo(di.x,gi.x,yi.x,mi.x),t.y=eo(di.y,gi.y,yi.y,mi.y);var l=Ds(di.x,gi.x,yi.x,mi.x),u=Ds(di.y,gi.y,yi.y,mi.y);t.width=l-t.x,t.height=u-t.y},r.calculateTransform=function(t,e,a){var n=a.width/e.width,i=a.height/e.height;return t=pl(t||[]),La(t,t,Wn(ud,-e.x,-e.y)),f_(t,t,Wn(ud,n,i)),La(t,t,Wn(ud,a.x,a.y)),t},r}(),up=ot.create,ld=ot.set,Zs=ot.copy,ZD=ot.calculateTransform,$D=ot.applyTransform,VN=ot.contain,zN=new ot(0,0,0,0),GN=new ot(0,0,0,0),ud=[];function QS(r,t,e,a,n,i,o,s){var l=Ky(t-e),u=Ky(a-r),f=eo(l,u),v=jS[n],h=jS[1-n],c=BN[n];t<e||a<r?l<u?(i&&(Jy[v]=-l),s&&(o[v]=t,o[c]=0)):(i&&(Jy[v]=u),s&&(o[v]=r,o[c]=0)):(o&&(o[v]=Ds(r,e),o[c]=eo(t,a)-o[v]),i&&(f<Au[0]||gr.useDir)&&(Au[0]=eo(f,Au[0]),(l<u||!gr.bidirectional)&&(hu[v]=l,hu[h]=0,gr.useDir&&gr.calcDirMTV()),(l>=u||!gr.bidirectional)&&(hu[v]=-u,hu[h]=0,gr.useDir&&gr.calcDirMTV())))}function qD(){var r=0,t=new lt,e=new lt,a={minTv:new lt,maxTv:new lt,useDir:!1,dirMinTv:new lt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=Ds(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),e.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,n(e.x)&&n(e.y)){o.set(0,0);return}(a.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(i){return Ky(i)<1e-10}return a}var KD="silent";function FN(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:HN}}function HN(){on(this.event)}var WN=function(r){N(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}(Hr),Rl=function(){function r(t,e){this.x=t,this.y=e}return r}(),UN=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fd=new ot(0,0,0,0),JD=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Rl(0,0),s.storage=e,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new WN,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new bN(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(UN,function(a){e.on&&e.on(a,this[a],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var a=e.zrX,n=e.zrY,i=jD(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Rl(a,n):this.findHover(a,n),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 a=e.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Rl(0,0)},t.prototype.dispatch=function(e,a){var n=this[e];n&&n.call(this,a)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var a=this.proxy;a.setCursor&&a.setCursor(e)},t.prototype.dispatchToElement=function(e,a,n){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+a,s=FN(a,e,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},t.prototype.findHover=function(e,a,n){var i=this.storage.getDisplayList(),o=new Rl(e,a);if(tx(i,o,e,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ot(e-u,a-u,l,l),v=i.length-1;v>=0;v--){var h=i[v];h!==n&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(fd.copy(h.getBoundingRect()),h.transform&&fd.applyTransform(h.transform),fd.intersect(f)&&s.push(h))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g<u;g+=c)for(var y=0;y<d;y+=p){var m=e+g*Math.cos(y),_=a+g*Math.sin(y);if(tx(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,a){this._gestureMgr||(this._gestureMgr=new kN);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;e.gestureEvent=o;var s=new Rl;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Hr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){JD.prototype[r]=function(t){var e=t.zrX,a=t.zrY,n=jD(this,e,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(e,a),o=i.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||kn(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function YN(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?KD:!0}return!1}function tx(r,t,e,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=YN(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==KD)){t.target=o;break}}}function jD(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var QD=32,El=7;function XN(r){for(var t=0;r>=QD;)t|=r&1,r>>=1;return r+t}function ex(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n<e&&a(r[n],r[n-1])<0;)n++;ZN(r,t,n)}else for(;n<e&&a(r[n],r[n-1])>=0;)n++;return n-t}function ZN(r,t,e){for(e--;t<e;){var a=r[t];r[t++]=r[e],r[e--]=a}}function rx(r,t,e,a,n){for(a===t&&a++;a<e;a++){for(var i=r[a],o=t,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-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]=i}}function vd(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])>0){for(s=a-n;l<s&&i(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function hd(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])<0){for(s=n+1;l<s&&i(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function $N(r,t){var e=El,a,n,i=0,o=[];a=[],n=[];function s(c,p){a[i]=c,n[i]=p,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var p=a[c],d=n[c],g=a[c+1],y=n[c+1];n[c]=d+y,c===i-3&&(a[c+1]=a[c+2],n[c+1]=n[c+2]),i--;var m=hd(r[g],r,p,d,0,t);p+=m,d-=m,d!==0&&(y=vd(r[p+d-1],r,g,y,y-1,t),y!==0&&(d<=y?v(p,d,g,y):h(p,d,g,y)))}function v(c,p,d,g){var y=0;for(y=0;y<p;y++)o[y]=r[c+y];var m=0,_=d,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<p;y++)r[S+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=e,b,w,C;;){b=0,w=0,C=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],b++,w=0,--p===1){C=!0;break}while((b|w)<x);if(C)break;do{if(b=hd(r[_],o,m,p,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,p-=b,p<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(w=vd(o[m],r,_,g,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){C=!0;break}}if(r[S++]=o[m++],--p===1){C=!0;break}x--}while(b>=El||w>=El);if(C)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)r[S+y]=o[m+y]}}function h(c,p,d,g){var y=0;for(y=0;y<g;y++)o[y]=r[d+y];var m=c+p-1,_=g-1,S=d+g-1,x=0,b=0;if(r[S--]=r[m--],--p===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=p,m-=p,b=S+1,x=m+1,y=p-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=e;;){var C=0,T=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],C++,T=0,--p===0){M=!0;break}}else if(r[S--]=o[_--],T++,C=0,--g===1){M=!0;break}while((C|T)<w);if(M)break;do{if(C=p-hd(o[_],r,c,p,p-1,t),C!==0){for(S-=C,m-=C,p-=C,b=S+1,x=m+1,y=C-1;y>=0;y--)r[b+y]=r[x+y];if(p===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(T=g-vd(r[m],o,0,g,g-1,t),T!==0){for(S-=T,_-=T,g-=T,b=S+1,x=_+1,y=0;y<T;y++)r[b+y]=o[x+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--p===0){M=!0;break}w--}while(C>=El||T>=El);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=p,m-=p,b=S+1,x=m+1,y=p-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function gh(r,t,e,a){e||(e=0),a||(a=r.length);var n=a-e;if(!(n<2)){var i=0;if(n<QD){i=ex(r,e,a,t),rx(r,e,a,e+i,t);return}var o=$N(r,t),s=XN(n);do{if(i=ex(r,e,a,t),i<s){var l=n;l>s&&(l=s),rx(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var ur=1,cu=2,Ts=4,ax=!1;function cd(){ax||(ax=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nx(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var qN=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nx}return r.prototype.traverse=function(t,e){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var a=this._displayList;return(t||!a.length)&&this.updateDisplayList(e),a},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,a=this._displayList,n=0,i=e.length;n<i;n++)this._updateAndAddDisplayable(e[n],null,t);a.length=this._displayListLen,gh(a,nx)},r.prototype._updateAndAddDisplayable=function(t,e,a){if(!(t.ignore&&!a)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),i=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(i||n)){if(s||(s=t.__clipPaths=[]),i)for(var l=0;l<e.length;l++)s[o++]=e[l];for(var u=n,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var v=t.childrenRef(),h=0;h<v.length;h++){var c=v[h];t.__dirty&&(c.__dirty|=ur),this._updateAndAddDisplayable(c,s,a)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(cd(),p.z=0),isNaN(p.z2)&&(cd(),p.z2=0),isNaN(p.zlevel)&&(cd(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,s,a);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,a);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,a)}},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,a=t.length;e<a;e++)this.delRoot(t[e]);return}var n=pt(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Hh;Hh=Mt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Mu={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,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*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)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.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-Mu.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?Mu.bounceIn(r*2)*.5:Mu.bounceOut(r*2-1)*.5+.5}},qf=Math.pow,Un=Math.sqrt,Wh=1e-8,tI=1e-4,ix=Un(3),Kf=1/3,da=zo(),Pr=zo(),Os=zo();function Bn(r){return r>-Wh&&r<Wh}function eI(r){return r>Wh||r<-Wh}function Se(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function ox(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Uh(r,t,e,a,n,i){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,v=s*l-9*o*u,h=l*l-3*s*u,c=0;if(Bn(f)&&Bn(v))if(Bn(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=v*v-4*f*h;if(Bn(d)){var g=v/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=Un(d),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-qf(-_,Kf):_=qf(_,Kf),S<0?S=-qf(-S,Kf):S=qf(S,Kf);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var x=(2*f*s-3*o*v)/(2*Un(f*f*f)),b=Math.acos(x)/3,w=Un(f),C=Math.cos(b),p=(-s-2*w*C)/(3*o),y=(-s+w*(C+ix*Math.sin(b)))/(3*o),T=(-s+w*(C-ix*Math.sin(b)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),T>=0&&T<=1&&(i[c++]=T)}}return c}function rI(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(Bn(o)){if(eI(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Bn(f))n[0]=-i/(2*o);else if(f>0){var v=Un(f),u=(-i+v)/(2*o),h=(-i-v)/(2*o);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function Qn(r,t,e,a,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(a-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,v=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=a}function aI(r,t,e,a,n,i,o,s,l,u,f){var v,h=.005,c=1/0,p,d,g,y;da[0]=l,da[1]=u;for(var m=0;m<1;m+=.05)Pr[0]=Se(r,e,n,o,m),Pr[1]=Se(t,a,i,s,m),g=so(da,Pr),g<c&&(v=m,c=g);c=1/0;for(var _=0;_<32&&!(h<tI);_++)p=v-h,d=v+h,Pr[0]=Se(r,e,n,o,p),Pr[1]=Se(t,a,i,s,p),g=so(Pr,da),p>=0&&g<c?(v=p,c=g):(Os[0]=Se(r,e,n,o,d),Os[1]=Se(t,a,i,s,d),y=so(Os,da),d<=1&&y<c?(v=d,c=y):h*=.5);return f&&(f[0]=Se(r,e,n,o,v),f[1]=Se(t,a,i,s,v)),Un(c)}function KN(r,t,e,a,n,i,o,s,l){for(var u=r,f=t,v=0,h=1/l,c=1;c<=l;c++){var p=c*h,d=Se(r,e,n,o,p),g=Se(t,a,i,s,p),y=d-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=d,f=g}return v}function Me(r,t,e,a){var n=1-a;return n*(n*r+2*a*t)+a*a*e}function jy(r,t,e,a){return 2*((1-a)*(t-r)+a*(e-t))}function JN(r,t,e,a,n){var i=r-2*t+e,o=2*(t-r),s=r-a,l=0;if(Bn(i)){if(eI(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Bn(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var v=Un(f),u=(-o+v)/(2*i),h=(-o-v)/(2*i);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function nI(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function Gu(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function iI(r,t,e,a,n,i,o,s,l){var u,f=.005,v=1/0;da[0]=o,da[1]=s;for(var h=0;h<1;h+=.05){Pr[0]=Me(r,e,n,h),Pr[1]=Me(t,a,i,h);var c=so(da,Pr);c<v&&(u=h,v=c)}v=1/0;for(var p=0;p<32&&!(f<tI);p++){var d=u-f,g=u+f;Pr[0]=Me(r,e,n,d),Pr[1]=Me(t,a,i,d);var c=so(Pr,da);if(d>=0&&c<v)u=d,v=c;else{Os[0]=Me(r,e,n,g),Os[1]=Me(t,a,i,g);var y=so(Os,da);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Me(r,e,n,u),l[1]=Me(t,a,i,u)),Un(v)}function jN(r,t,e,a,n,i,o){for(var s=r,l=t,u=0,f=1/o,v=1;v<=o;v++){var h=v*f,c=Me(r,e,n,h),p=Me(t,a,i,h),d=c-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=c,l=p}return u}var QN=/cubic-bezier\(([0-9,\.e ]+)\)/;function v_(r){var t=r&&QN.exec(r);if(t){var e=t[1].split(","),a=+kr(e[0]),n=+kr(e[1]),i=+kr(e[2]),o=+kr(e[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Uh(0,a,i,1,l,s)&&Se(0,n,o,1,s[0])}}}var tB=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||re,this.ondestroy=t.ondestroy||re,this.onrestart=t.onrestart||re,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 a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;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=nt(t)?t:Mu[t]||v_(t)},r}(),oI=function(){function r(t){this.value=t}return r}(),eB=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new oI(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,a=t.next;e?e.next=a:this.head=a,a?a.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}(),$s=function(){function r(t){this._list=new eB,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new oI(e),s.key=t,a.insertEntry(s),n[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),sx={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 qr(r){return r=Math.round(r),r<0?0:r>255?255:r}function rB(r){return r=Math.round(r),r<0?0:r>360?360:r}function Fu(r){return r<0?0:r>1?1:r}function pd(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?qr(parseFloat(t)/100*255):qr(parseInt(t,10))}function Yn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Fu(parseFloat(t)/100):Fu(parseFloat(t))}function dd(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 Vn(r,t,e){return r+(t-r)*e}function Cr(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function Qy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var sI=new $s(20),Jf=null;function es(r,t){Jf&&Qy(Jf,t),Jf=sI.put(r,Jf||t.slice())}function vr(r,t){if(r){t=t||[];var e=sI.get(r);if(e)return Qy(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in sx)return Qy(t,sx[a]),es(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Cr(t,0,0,0,1);return}return Cr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),es(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Cr(t,0,0,0,1);return}return Cr(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),es(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Cr(t,+u[0],+u[1],+u[2],1):Cr(t,0,0,0,1);f=Yn(u.pop());case"rgb":if(u.length>=3)return Cr(t,pd(u[0]),pd(u[1]),pd(u[2]),u.length===3?f:Yn(u[3])),es(r,t),t;Cr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Cr(t,0,0,0,1);return}return u[3]=Yn(u[3]),tm(u,t),es(r,t),t;case"hsl":if(u.length!==3){Cr(t,0,0,0,1);return}return tm(u,t),es(r,t),t;default:return}}Cr(t,0,0,0,1)}}function tm(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Yn(r[1]),n=Yn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],Cr(t,qr(dd(o,i,e+1/3)*255),qr(dd(o,i,e)*255),qr(dd(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function aB(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-t)/6+o/2)/o,v=((i-e)/6+o/2)/o,h=((i-a)/6+o/2)/o;t===i?l=h-v:e===i?l=1/3+f-h:a===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function em(r,t){var e=vr(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return xa(e,e.length===4?"rgba":"rgb")}}function gd(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],s=t[i],l=a-n;return e[0]=qr(Vn(o[0],s[0],l)),e[1]=qr(Vn(o[1],s[1],l)),e[2]=qr(Vn(o[2],s[2],l)),e[3]=Fu(Vn(o[3],s[3],l)),e}}function nB(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=vr(t[n]),s=vr(t[i]),l=a-n,u=xa([qr(Vn(o[0],s[0],l)),qr(Vn(o[1],s[1],l)),qr(Vn(o[2],s[2],l)),Fu(Vn(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Xn(r,t,e,a){var n=vr(r);if(r)return n=aB(n),t!=null&&(n[0]=rB(nt(t)?t(n[0]):t)),e!=null&&(n[1]=Yn(nt(e)?e(n[1]):e)),a!=null&&(n[2]=Yn(nt(a)?a(n[2]):a)),xa(tm(n),"rgba")}function Yh(r,t){var e=vr(r);if(e&&t!=null)return e[3]=Fu(t),xa(e,"rgba")}function xa(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 Xh(r,t){var e=vr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var lx=new $s(100);function rm(r){if(Z(r)){var t=lx.get(r);return t||(t=em(r,-.1),lx.put(r,t)),t}else if(op(r)){var e=G({},r);return e.colorStops=W(r.colorStops,function(a){return{offset:a.offset,color:em(a.color,-.1)}}),e}return r}var Zh=Math.round;function Hu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=vr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var ux=1e-4;function zn(r){return r<ux&&r>-ux}function jf(r){return Zh(r*1e3)/1e3}function am(r){return Zh(r*1e4)/1e4}function iB(r){return"matrix("+jf(r[0])+","+jf(r[1])+","+jf(r[2])+","+jf(r[3])+","+am(r[4])+","+am(r[5])+")"}var oB={left:"start",right:"end",center:"middle",middle:"middle"};function sB(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function lB(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function uB(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function lI(r){return r&&!!r.image}function fB(r){return r&&!!r.svgElement}function h_(r){return lI(r)||fB(r)}function uI(r){return r.type==="linear"}function fI(r){return r.type==="radial"}function vI(r){return r&&(r.type==="linear"||r.type==="radial")}function fp(r){return"url(#"+r+")"}function hI(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function cI(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*ch,n=j(r.scaleX,1),i=j(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Zh(o*ch)+"deg, "+Zh(s*ch)+"deg)"),l.join(" ")}var vB=function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}}(),nm=Array.prototype.slice;function Za(r,t,e){return(t-r)*e+r}function yd(r,t,e,a){for(var n=t.length,i=0;i<n;i++)r[i]=Za(t[i],e[i],a);return r}function hB(r,t,e,a){for(var n=t.length,i=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Za(t[o][s],e[o][s],a)}return r}function Qf(r,t,e,a){for(var n=t.length,i=0;i<n;i++)r[i]=t[i]+e[i]*a;return r}function fx(r,t,e,a){for(var n=t.length,i=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*a}return r}function cB(r,t){for(var e=r.length,a=t.length,n=e>a?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function pB(r,t,e){var a=r,n=t;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(e===1?n[l]:nm.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(e===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function Du(r){if(He(r)){var t=r.length;if(He(r[0])){for(var e=[],a=0;a<t;a++)e.push(nm.call(r[a]));return e}return nm.call(r)}return r}function yh(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 dB(r){return He(r&&r[0])?2:1}var tv=0,mh=1,pI=2,pu=3,im=4,om=5,vx=6;function hx(r){return r===im||r===om}function ev(r){return r===mh||r===pI}var kl=[0,0,0,0],gB=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,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=vx,l=e;if(He(e)){var u=dB(e);s=u,(u===1&&!Lt(e[0])||u===2&&!Lt(e[0][0]))&&(o=!0)}else if(Lt(e)&&!Fe(e))s=tv;else if(Z(e))if(!isNaN(+e))s=tv;else{var f=vr(e);f&&(l=f,s=pu)}else if(op(e)){var v=G({},l);v.colorStops=W(e.colorStops,function(c){return{offset:c.offset,color:vr(c.color)}}),uI(e)?s=im:fI(e)&&(s=om),l=v}i===0?this.valType=s:(s!==this.valType||s===vx)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:e,percent:0};return a&&(h.easing=a,h.easingFunc=nt(a)?a:Mu[a]||v_(a)),n.push(h),h},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=ev(n),u=hx(n),f=0;f<i;f++){var v=a[f],h=v.value,c=o.value;v.percent=v.time/t,s||(l&&f!==i-1?pB(h,c,n):u&&cB(h.colorStops,c.colorStops))}if(!s&&n!==om&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var p=a[0].value,f=0;f<i;f++)n===tv?a[f].additiveValue=a[f].value-p:n===pu?a[f].additiveValue=Qf([],a[f].value,p,-1):ev(n)&&(a[f].additiveValue=n===mh?Qf([],a[f].value,p,-1):fx([],a[f].value,p,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===pu,f,v=this._lastFr,h=Math.min,c,p;if(s===1)c=p=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var d=h(v+1,s-1);for(f=d;f>=0&&!(o[f].percent<=e);f--);f=h(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>e);f++);f=h(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=e;var g=p.percent-c.percent,y=g===0?1:h((e-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?kl:t[l];if((ev(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?c.rawValue:p.rawValue;else if(ev(i))i===mh?yd(m,c[n],p[n],y):hB(m,c[n],p[n],y);else if(hx(i)){var _=c[n],S=p[n],x=i===im;t[l]={type:x?"linear":"radial",x:Za(_.x,S.x,y),y:Za(_.y,S.y,y),colorStops:W(_.colorStops,function(w,C){var T=S.colorStops[C];return{offset:Za(w.offset,T.offset,y),color:yh(yd([],w.color,T.color,y))}}),global:S.global},x?(t[l].x2=Za(_.x2,S.x2,y),t[l].y2=Za(_.y2,S.y2,y)):t[l].r=Za(_.r,S.r,y)}else if(u)yd(m,c[n],p[n],y),a||(t[l]=yh(m));else{var b=Za(c[n],p[n],y);a?this._additiveValue=b:t[l]=b}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===tv?t[a]=t[a]+n:e===pu?(vr(t[a],kl),Qf(kl,kl,n,1),t[a]=yh(kl)):e===mh?Qf(t[a],t[a],n,1):e===pI&&fx(t[a],t[a],n,1)},r}(),c_=function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){o_("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}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,a){return this.whenWithKeys(t,e,Ct(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new gB(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,h=v[v.length-1];u=h&&h.value,f.valType===pu&&u&&(u=yh(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Du(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Du(e[s]),n)}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,a=0;a<e;a++)t[a].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 a=0;a<e.length;a++)e[a].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,a=0;a<e.length;a++)t[e[a]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var v=u[f-1];v&&(e._target[s.propName]=v.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var h=new tB({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var p=e._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(e._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(e._target,c);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.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 W(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<t.length;i++){var o=a[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,a){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i=e[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(t[i]=Du(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Ct(t);for(var a=0;a<e.length;a++){var n=e[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function Is(){return new Date().getTime()}var yB=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}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 a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=Is()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(Hh(a),!e._paused&&e.update())}Hh(a)},t.prototype.start=function(){this._running||(this._time=Is(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Is(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Is()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new c_(e,a.loop);return this.addAnimator(n),n},t}(Hr),mB=300,md=Mt.domSupported,_d=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},a=W(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}}(),cx={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},px=!1;function sm(r){var t=r.pointerType;return t==="pen"||t==="touch"}function _B(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 Sd(r){r&&(r.zrByTouch=!0)}function SB(r,t){return Mr(r.dom,new xB(r,t),!0)}function dI(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var xB=function(){function r(t,e){this.stopPropagation=re,this.stopImmediatePropagation=re,this.preventDefault=re,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Xr={mousedown:function(r){r=Mr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Mr(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=Mr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Mr(this.dom,r);var t=r.toElement||r.relatedTarget;dI(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){px=!0,r=Mr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){px||(r=Mr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Mr(this.dom,r),Sd(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Xr.mousemove.call(this,r),Xr.mousedown.call(this,r)},touchmove:function(r){r=Mr(this.dom,r),Sd(r),this.handler.processGesture(r,"change"),Xr.mousemove.call(this,r)},touchend:function(r){r=Mr(this.dom,r),Sd(r),this.handler.processGesture(r,"end"),Xr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<mB&&Xr.click.call(this,r)},pointerdown:function(r){Xr.mousedown.call(this,r)},pointermove:function(r){sm(r)||Xr.mousemove.call(this,r)},pointerup:function(r){Xr.mouseup.call(this,r)},pointerout:function(r){sm(r)||Xr.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){Xr[r]=function(t){t=Mr(this.dom,t),this.trigger(r,t)}});var lm={pointermove:function(r){sm(r)||lm.mousemove.call(this,r)},pointerup:function(r){lm.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 bB(r,t){var e=t.domHandlers;Mt.pointerEventsSupported?A(_d.pointer,function(a){_h(t,a,function(n){e[a].call(r,n)})}):(Mt.touchEventsSupported&&A(_d.touch,function(a){_h(t,a,function(n){e[a].call(r,n),_B(t)})}),A(_d.mouse,function(a){_h(t,a,function(n){n=u_(n),t.touching||e[a].call(r,n)})}))}function wB(r,t){Mt.pointerEventsSupported?A(cx.pointer,e):Mt.touchEventsSupported||A(cx.mouse,e);function e(a){function n(i){i=u_(i),dI(r,i.target)||(i=SB(r,i),t.domHandlers[a].call(r,i))}_h(t,a,n,{capture:!0})}}function _h(r,t,e,a){r.mounted[t]=e,r.listenerOpts[t]=a,qy(r.domTarget,t,e,a)}function xd(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&EN(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var dx=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),TB=function(r){N(t,r);function t(e,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=a,n._localHandlerScope=new dx(e,Xr),md&&(n._globalHandlerScope=new dx(document,lm)),bB(n,n._localHandlerScope),n}return t.prototype.dispose=function(){xd(this._localHandlerScope),md&&xd(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,md&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var a=this._globalHandlerScope;e?wB(this,a):xd(a)}},t}(Hr),gI=1;Mt.hasGlobalWindow&&(gI=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var $h=gI,um=.4,fm="#333",vm="#ccc",CB="#eee",gx=pl,yx=5e-5;function _i(r){return r>yx||r<-yx}var Si=[],rs=[],bd=Qt(),wd=Math.abs,za=function(){function r(){}return r.prototype.getLocalTransform=function(t){return ti(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 _i(this.rotation)||_i(this.x)||_i(this.y)||_i(this.scaleX-1)||_i(this.scaleY-1)||_i(this.skewX)||_i(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(gx(a),this.invTransform=null);return}a=a||Qt(),e?this.getLocalTransform(a):gx(a),t&&(e?Or(a,t,a):go(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a),this.invTransform=this.invTransform||Qt(),Vr(this.invTransform,a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Si);var a=Si[0]<0?-1:1,n=Si[1]<0?-1:1,i=((Si[0]-a)*e+a)/Si[0]||0,o=((Si[1]-n)*e+n)/Si[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}},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],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Qt(),Or(rs,t.invTransform,e),e=rs);var a=this.originX,n=this.originY;(a||n)&&(bd[4]=a,bd[5]=n,Or(rs,e,bd),rs[4]-=a,rs[5]-=n,e=rs),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 a=[t,e],n=this.invTransform;return n&&ae(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&ae(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&wd(t[0]-1)>1e-10&&wd(t[3]-1)>1e-10?Math.sqrt(wd(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Pa(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,v=t.y,h=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;e[4]=-p*i-h*d*o,e[5]=-d*o-c*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=c*i,e[2]=h*o,u&&fi(e,e,u),e[4]+=a+f,e[5]+=n+v,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}(),ti=za.getLocalTransform;function Ns(){return new za}var sn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Pa(r,t){return hN(r,t,sn)}function ba(r){rv||(rv=new $s(100)),r=r||nn;var t=rv.get(r);return t||(t={font:r,strWidthCache:new $s(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Qe.measureText("国",r).width,asciiCharWidth:Qe.measureText("a",r).width},rv.put(r,t)),t}var rv;function AB(r){if(!(Td>=mx)){r=r||nn;for(var t=[],e=+new Date,a=0;a<=127;a++)t[a]=Qe.measureText(String.fromCharCode(a),r).width;var n=+new Date-e;return n>16?Td=mx:n>2&&Td++,t}}var Td=0,mx=5;function yI(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=AB(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function wa(r,t){var e=r.strWidthCache,a=e.get(t);return a==null&&(a=Qe.measureText(t,r.font).width,e.put(t,a)),a}function _x(r,t,e,a){var n=wa(ba(t),r),i=Cf(t),o=qs(0,n,e),s=lo(0,i,a),l=new ot(o,s,n,i);return l}function vp(r,t,e,a){var n=((r||"")+"").split(`
|
|
15
|
+
`),i=n.length;if(i===1)return _x(n[0],t,e,a);for(var o=new ot(0,0,0,0),s=0;s<n.length;s++){var l=_x(n[s],t,e,a);s===0?o.copy(l):o.union(l)}return o}function qs(r,t,e,a){return e==="right"?a?r+=t:r-=t:e==="center"&&(a?r+=t/2:r-=t/2),r}function lo(r,t,e,a){return e==="middle"?a?r+=t/2:r-=t/2:e==="bottom"&&(a?r+=t:r-=t),r}function Cf(r){return ba(r).stWideCharWidth}function Ra(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function qh(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",v="top";if(a instanceof Array)l+=Ra(a[0],e.width),u+=Ra(a[1],e.height),f=null,v=null;else switch(a){case"left":l-=n,u+=s,f="right",v="middle";break;case"right":l+=n+o,u+=s,v="middle";break;case"top":l+=o/2,u-=n,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=n,u+=s,v="middle";break;case"insideRight":l+=o-n,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",v="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,v="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",v="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var Cd="__zr_normal__",Ad=sn.concat(["ignore"]),MB=Ia(sn,function(r,t){return r[t]=!0,r},{ignore:!1}),as={},DB=new ot(0,0,0,0),av=[],Sh=0,hp=1,cp=function(){function r(t){this.id=HD(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[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 a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(e);var f=a.position!=null,v=a.autoOverflowArea,h=void 0;if((v||f)&&(h=DB,a.layoutRect?h.copy(a.layoutRect):h.copy(this.getBoundingRect()),n||h.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(as,a,h):qh(as,a,h),i.x=as.x,i.y=as.y,o=as.align,s=as.verticalAlign;var c=a.origin;if(c&&a.rotation!=null){var p=void 0,d=void 0;c==="center"?(p=h.width*.5,d=h.height*.5):(p=Ra(c[0],h.width),d=Ra(c[1],h.height)),u=!0,i.originX=-i.x+p+(n?0:h.x),i.originY=-i.y+d+(n?0:h.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(v){var m=y.overflowRect=y.overflowRect||new ot(0,0,0,0);i.getLocalTransform(av),Vr(av,av),ot.copy(m,h),m.applyTransform(av)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,x=void 0,b=void 0;_&&this.canBeInsideText()?(S=a.insideFill,x=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),b=!0)):(S=a.outsideFill,x=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=b,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=ur,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()?vm:fm},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&vr(e);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,xa(a,"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||{},G(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(ut(t))for(var a=t,n=Ct(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==Cd)){var o=n.targetName,s=o?e[o]:e;n.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,Ad)},r.prototype._savePrimaryToNormal=function(t,e,a){for(var n=0;n<a.length;n++){var i=a[n];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},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(Cd,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===Cd,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(pt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){o_("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=this._textContent,v=Sx(this,f,u,n);v&&!this.__inHover&&(this.__inHover=v),this._applyStateObj(t,u,this._normalState,e,bx(this,a,l),l);var h=this._textGuide;return f&&f.useState(t,e,a,!!v),h&&h.useState(t,e,a,!!v),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=Sh,this.__dirty&=~ur),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[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&&n.push(f)}var v=n[o-1],h=this._textContent,c=Sx(this,h,v,a);c&&!this.__inHover&&(this.__inHover=c);var p=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,bx(this,e,d),d);var g=this._textGuide;h&&h.useStates(t,e,!!c),g&&g.useStates(t,e,!!c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Sh,this.__dirty&=~ur)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},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=pt(this.currentStates,t);if(e>=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=pt(n,t),o=pt(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,n=0;n<t.length;n++){var i=t[n];G(e,i),i.textConfig&&(a=a||{},G(a,i.textConfig))}return a&&(e.textConfig=a),e},r.prototype._applyStateObj=function(t,e,a,n,i,o){if(this.__inHover!==hp){var s=!(e&&n);e&&e.textConfig?(this.textConfig=G({},n?this.textConfig:a.textConfig),G(this.textConfig,e.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<Ad.length;f++){var v=Ad[f],h=i&&MB[v];e&&e[v]!=null?h?(u=!0,l[v]=e[v]):this[v]=e[v]:s&&a[v]!=null&&(h?(u=!0,l[v]=a[v]):this[v]=a[v])}if(!i)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],p=c.targetName;c.getLoop()||c.__changeFinalValue(p?(e||a)[p]:e||a)}u&&this._transitionState(t,l,o)}},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new za,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(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|=ur;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var a=0;a<e.length;a++)t.animation.addAnimator(e[a]);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 a=0;a<e.length;a++)t.animation.removeAnimator(e[a]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,a){var n=t?this[t]:this,i=new c_(n,e,a);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var a=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var i=n.animators,o=pt(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,a){Md(this,t,e,a)},r.prototype.animateFrom=function(t,e,a){Md(this,t,e,a,!0)},r.prototype._transitionState=function(t,e,a,n){for(var i=Md(this,e,a,n),o=0;o<i.length;o++)i[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.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=Sh,t.__dirty=ur;function e(a,n,i,o){Object.defineProperty(t,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();ye(cp,Hr);ye(cp,za);function Md(r,t,e,a,n){e=e||{};var i=[];mI(r,"",r,t,e,a,i,n);var o=i.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},v=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&e.during&&i[0].during(function(p,d){e.during(d)});for(var h=0;h<i.length;h++){var c=i[h];f&&c.done(f),v&&c.aborted(v),e.force&&c.duration(e.duration),c.start(e.easing)}return i}function Dd(r,t,e){for(var a=0;a<e;a++)r[a]=t[a]}function IB(r){return He(r[0])}function LB(r,t,e){if(He(t[e]))if(He(r[e])||(r[e]=[]),hr(t[e])){var a=t[e].length;r[e].length!==a&&(r[e]=new t[e].constructor(a),Dd(r[e],t[e],a))}else{var n=t[e],i=r[e],o=n.length;if(IB(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Dd(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Dd(i,n,o);i.length=n.length}else r[e]=t[e]}function PB(r,t){return r===t||He(r)&&He(t)&&RB(r,t)}function RB(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++)if(r[a]!==t[a])return!1;return!0}function mI(r,t,e,a,n,i,o,s){for(var l=Ct(a),u=n.duration,f=n.delay,v=n.additive,h=n.setToFinal,c=!ut(i),p=r.animators,d=[],g=0;g<l.length;g++){var y=l[g],m=a[y];if(m!=null&&e[y]!=null&&(c||i[y]))if(ut(m)&&!He(m)&&!op(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}mI(r,y,e[y],m,n,i&&i[y],o,s)}else d.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),d.push(y))}var _=d.length;if(!v&&_)for(var S=0;S<p.length;S++){var x=p[S];if(x.targetName===t){var b=x.stopTracks(d);if(b){var w=pt(p,x);p.splice(w,1)}}}if(n.force||(d=Bt(d,function(D){return!PB(a[D],e[D])}),_=d.length),_>0||n.force&&!o.length){var C=void 0,T=void 0,M=void 0;if(s){T={},h&&(C={});for(var S=0;S<_;S++){var y=d[S];T[y]=e[y],h?C[y]=a[y]:e[y]=a[y]}}else if(h){M={};for(var S=0;S<_;S++){var y=d[S];M[y]=Du(e[y]),LB(e,a,y)}}var x=new c_(e,!1,!1,v?Bt(p,function(L){return L.targetName===t}):null);x.targetName=t,n.scope&&(x.scope=n.scope),h&&C&&x.whenWithKeys(0,C,d),M&&x.whenWithKeys(0,M,d),x.whenWithKeys(u??500,s?T:a,d).delay(f||0),r.addAnimator(x,t),o.push(x)}}function Sx(r,t,e,a){return!(e&&e.hoverLayer||a)||xx(r)||t&&xx(t)?Sh:hp}function xx(r){return r.type==="text"||r.type==="tspan"}function bx(r,t,e){return!t&&!r.__inHover&&e&&e.duration>0}var it=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}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 a=this._children,n=0;n<a.length;n++)if(a[n].name===e)return a[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,a){if(e&&e!==this&&e.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=pt(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=pt(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n<e.length;n++){var i=e[n];a&&i.removeSelfFromZr(a),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];e.call(a,o,i)}return this},t.prototype.traverse=function(e,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=e.call(a,i);i.isGroup&&!o&&i.traverse(e,a)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var a=new ot(0,0,0,0),n=e||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(ot.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},t}(cp);it.prototype.type="group";/*!
|
|
16
|
+
* ZRender, a high performance 2d drawing library.
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
19
|
+
* All rights reserved.
|
|
20
|
+
*
|
|
21
|
+
* LICENSE
|
|
22
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE
|
|
23
|
+
*/var xh={},_I={};function EB(r){delete _I[r]}function kB(r){if(!r)return!1;if(typeof r=="string")return Xh(r,1)<um;if(r.colorStops){for(var t=r.colorStops,e=0,a=t.length,n=0;n<a;n++)e+=Xh(t[n].color,1);return e/=a,e<um}return!1}var OB=function(){function r(t,e,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,a=a||{},this.dom=e,this.id=t;var i=new qN,o=a.renderer||"canvas";xh[o]||(o=Ct(xh)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new xh[o](e,i,a,t),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Mt.node&&!Mt.worker&&!l?new TB(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,v=f==null||f==="auto"?Mt.touchEventsSupported:!!f,h=44,c;v&&(c=j(a.pointerSize,h)),this.handler=new JD(i,s,u,s.root,c),this.animation=new yB({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=kB(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){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(t){var e,a=Is(),n=this._needsRefresh,i=this._needsRefreshHover;(n||i)&&(e=!0,this._refresh({animUpdate:t,refresh:n,refreshHover:i}));var o=Is();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-a})):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._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){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._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,EB(this.id))},r}();function Tx(r,t){var e=new OB(HD(),r,t);return _I[e.id]=e,e}function NB(r,t){xh[r]=t}var hm;function BB(r){if(typeof hm=="function")return hm(r)}function VB(r){hm=r}var Cx=1e-4,SI=20,zB=14;function GB(r){return r.replace(/^\s+|\s+$/g,"")}var zt=Math.min,xt=Math.max,ee=Math.abs,ln=Math.round,Qr=Math.floor,Go=Math.ceil,Fo=Math.pow,Wu=Math.log,cm=Math.LN10,Kh=Math.PI,FB=Math.random;function kt(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var $=HB;function HB(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Jh(r,t,e)}function Jh(r,t,e){return Z(r)?xI(r)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function WB(r){return Z(r)&&xI(r)}function xI(r){return!!GB(r).match(/%$/)}function Pt(r,t,e){return isNaN(t)?e?""+r:+r:(t=zt(xt(0,t),SI),r=(+r).toFixed(t),e?r:+r)}function Ee(r){return r.sort(function(t,e){return t-e}),r}function Ka(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(ln(r*t)/t===r)return e}return UB(r)}function UB(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return xt(0,o-a)}function p_(r,t,e){var a=ee(r[1]-r[0]);if(!isFinite(a)||a===0)return NaN;var n=Wu(2*ee(e||1)*ee(a))/cm,i=Wu(ee(t))/cm,o=xt(0,Go(-n+i));return isFinite(o)||(o=NaN),o}function YB(r,t){var e=Ia(r,function(c,p){return c+(isNaN(p)?0:p)},0);if(e===0)return[];for(var a=Fo(10,t),n=W(r,function(c){return(isNaN(c)?0:c)/e*a*100}),i=a*100,o=W(n,function(c){return Qr(c)}),s=Ia(o,function(c,p){return c+p},0),l=W(n,function(c,p){return c-o[p]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,v=0,h=l.length;v<h;++v)l[v]>u&&(u=l[v],f=v);++o[f],l[f]=0,++s}return W(o,function(c){return c/a})}function Wi(r,t){var e=xt(Ka(r),Ka(t)),a=r+t;return e>SI?a:Pt(a,e)}var jh=Fo(2,53)-1;function bI(r){var t=Kh*2;return(r%t+t)%t}function Ks(r){return r>-Cx&&r<Cx}var XB=/^(?:(\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 Ho(r){if(r instanceof Date)return r;if(Z(r)){var t=XB.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(ln(r))}function wI(r){return Fo(10,d_(r))}function d_(r){if(r===0)return 0;var t=Qr(Wu(r)/cm);return r/Fo(10,t)>=10&&t++,t}var TI=2;function g_(r,t){var e=d_(r),a=Fo(10,e),n=r/a,i;return t===TI?i=1:t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,Pt(r,-e)}function Id(r,t){var e=(r.length-1)*t+1,a=Qr(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function Ax(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function un(r){var t=parseFloat(r);return t==r&&(t!==0||!Z(r)||r.indexOf("x")<=0)?t:NaN}function CI(r){return!isNaN(un(r))}function y_(){return ln(FB()*9)}function AI(r,t){return t===0?r:AI(t,r%t)}function Mx(r,t){return r==null?t:t==null?r:r*t/AI(r,t)}function zr(r){return r!=null&&isFinite(r)}var ZB="[ECharts] ",$B=typeof console<"u"&&console.warn&&console.log;function qB(r,t,e){$B&&console[r](ZB+t)}function MI(r,t){qB("error",r)}function Ot(r){throw new Error(r)}function Dx(r,t,e){return(t-r)*e+r}var DI="series\0",II="\0_ec_\0";function Wt(r){return r instanceof Array?r:r==null?[]:[r]}function yo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var Ix=["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 dl(r){return ut(r)&&!H(r)&&!(r instanceof Date)?r.value:r}function KB(r){return ut(r)&&!(r instanceof Array)}function LI(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=K();A(t,function(l,u){if(!ut(l)){t[u]=null;return}});var s=JB(r,o,e);return(a||n)&&jB(s,r,o,t),a&&QB(s,t),a||n?tV(s,t,n):i&&eV(s,t),rV(s),s}function JB(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||Uu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function jB(r,t,e,a){A(a,function(n,i){if(!(!n||n.id==null)){var o=Iu(n.id),s=e.get(o);if(s!=null){var l=r[s];We(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function QB(r,t){A(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!Uu(e)&&!Uu(i)&&PI("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function tV(r,t,e){A(t,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||Uu(n.existing)||n.existing&&a.id!=null&&!PI("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function eV(r,t){A(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function rV(r){var t=K();A(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),A(r,function(e){var a=e.newOption;We(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),A(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(ut(i)){if(o.name=i.name!=null?Iu(i.name):n?n.name:DI+a,n)o.id=Iu(n.id);else if(i.id!=null)o.id=Iu(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function PI(r,t,e){var a=pe(t[r],null),n=pe(e[r],null);return a!=null&&n!=null&&a===n}function Iu(r){return pe(r,"")}function pe(r,t){return r==null?t:Z(r)?r:Lt(r)||Hy(r)?r+"":t}function m_(r){var t=r.name;return!!(t&&t.indexOf(DI))}function Uu(r){return r&&r.id!=null&&Iu(r.id).indexOf(II)===0}function aV(r){return II+r}function nV(r,t,e){A(r,function(a){var n=a.newOption;ut(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=iV(t,n,a.existing,e))})}function iV(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function oV(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var v=pe(o[u].seriesId,null);if(v==null)return;for(var h=Wt(o[u].dataIndex),c=l&&l[v],p=0,d=h.length;p<d;p++){var g=h[p];c&&c[g]?c[g]=null:(s[v]||(s[v]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function mo(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return H(t.dataIndex)?W(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return H(t.name)?W(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function yt(){var r="__ec_inner_"+sV++;return function(t){return t[r]||(t[r]={})}}var sV=y_();function Bs(r,t,e){var a=__(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var v=gl(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"]=v.models,s[f+"Model"]=v.models[0]}),s}function __(r,t){var e;if(Z(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=K(),i={},o=!1;return A(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],v=(u[2]||"").toLowerCase();if(!(!f||!v||t&&t.includeMainTypes&&pt(t.includeMainTypes,f)<0)){o=o||!!f;var h=n.get(f)||n.set(f,{});h[v]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var te={useDefault:!0,enableAll:!1,enableNone:!1},lV={useDefault:!1,enableAll:!0,enableNone:!0};function gl(r,t,e,a){a=a||te;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s}function S_(r,t,e){var a={};a[t+"Id"]=r[t+"Id"],a[t+"Index"]=r[t+"Index"],a[t+"Name"]=r[t+"Name"];var n={mainType:t,query:a};return e&&(n.subType=e),n}function RI(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function uV(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function fV(r){return r==="auto"?Mt.domSupported?"html":"richText":r||"html"}function pm(r,t){var e=K(),a=[];return A(r,function(n){var i=t(n);(e.get(i)||(a.push(i),e.set(i,[]))).push(n)}),{keys:a,buckets:e}}function EI(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(Lt(a)){var o=Dx(e||0,a,n);return Pt(o,i?Math.max(Ka(e||0),Ka(a)):t)}else{if(Z(a))return n<1?e:a;for(var s=[],l=e,u=a,f=Math.max(l?l.length:0,u.length),v=0;v<f;++v){var h=r.getDimensionInfo(v);if(h&&h.type==="ordinal")s[v]=(n<1&&l?l:u)[v];else{var c=l&&l[v]?l[v]:0,p=u[v],o=Dx(c,p,n);s[v]=Pt(o,i?Math.max(Ka(c),Ka(p)):t)}}return s}}var Zn=function(){function r(){}return r.prototype.reset=function(t,e,a,n){return this._list=t,this._step=n=n||1,this._idx=e,this._end=a??(n>0?t.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function Ld(r){r.option=r.parentModel=r.ecModel=null}function Re(){return[1/0,-1/0]}function dm(r,t){fn(t)&&(t<r[0]&&(r[0]=t),t>r[1]&&(r[1]=t))}function kI(r,t){fn(t)&&t<r[0]&&(r[0]=t)}function OI(r,t){fn(t)&&t>r[1]&&(r[1]=t)}function vV(r,t){_o(t[0],t[1])&&(t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1]))}function fn(r){return r!=null&&isFinite(r)}function _o(r,t){return fn(r)&&fn(t)&&r<=t}function hV(r){var t=r[1]-r[0];return isFinite(t)&&t>=0}function bh(r){_o(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function yl(){var r="__ec_once_"+cV++;return function(t,e){J(t,r)||(t[r]=1,e())}}var cV=y_();function pp(r,t,e){var a=K(),n=0;A(r,function(i){var o=t(i),s=a.get(o)||0;e&&e(i,s),!s&&!e&&(r[n++]=i),a.set(o,s+1)}),e||(r.length=n)}function pV(r){return r.value+""}function dV(r){return r+""}function Ta(r,t){return j(t,!0)?r.seriesIndex+2:0}function NI(r,t,e){var a=r.getData().count();return{progressiveRender:e.progressiveEnabled&&t.incrementalPrepareRender&&a>=e.threshold,large:r.get("large")&&a>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function me(r,t){return{seriesType:r,overallReset:t}}function Af(r){return{overallReset:r}}var gV=".",xi="___EC__COMPONENT__CONTAINER___",BI="___EC__EXTENDED_CLASS___";function ya(r){var t={main:"",sub:""};if(r){var e=r.split(gV);t.main=e[0]||"",t.sub=e[1]||""}return t}function yV(r){We(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function mV(r){return!!(r&&r[BI])}function x_(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return _V(a)?n=function(i){N(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},cN(n,this)),G(n.prototype,e),n[BI]=!0,n.extend=this.extend,n.superCall=bV,n.superApply=wV,n.superClass=a,n}}function _V(r){return nt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function VI(r,t){r.extend=t.extend}var SV=Math.round(Math.random()*10);function xV(r){var t=["__\0is_clz",SV++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function bV(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function wV(r,t,e){return this.superClass.prototype[t].apply(r,e)}function dp(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){yV(n),a.prototype.type=n;var i=ya(n);if(!i.sub)t[i.main]=a;else if(i.sub!==xi){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[xi]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=ya(a),i=[],o=t[n.main];return o&&o[xi]?A(o,function(s,l){l!==xi&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=ya(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return A(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=ya(a),i=t[n.main];return i&&i[xi]};function e(a){var n=t[a.main];return(!n||!n[xi])&&(n=t[a.main]={},n[xi]=!0),n}}function So(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&pt(n,l)>=0||i&&pt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var TV=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],CV=So(TV),AV=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return CV(this,t,e)},r}(),gm=new $s(50);function MV(r){if(typeof r=="string"){var t=gm.get(r);return t&&t.image}else return r}function b_(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=gm.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!gp(t)&&i.pending.push(o)):(t=Qe.loadImage(r,Lx,Lx),t.__zrImageSrc=r,gm.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Lx(){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],a=e.cb;a&&a(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function gp(r){return r&&r.width&&r.height}var Pd=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function DV(r,t,e,a,n,i){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
|
|
24
|
+
`);i=zI(e,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)GI(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
25
|
+
`),r.isTruncated=s}function zI(r,t,e,a){a=a||{};var n=G({},a);e=j(e,"..."),n.maxIterations=j(a.maxIterations,2);var i=n.minChar=j(a.minChar,0),o=n.fontMeasureInfo=ba(t),s=o.asciiCharWidth;n.placeholder=j(a.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=wa(o,e);return f>l&&(e="",f=0),l=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function GI(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=wa(i,t);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?IV(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=wa(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function IV(r,t,e){for(var a=0,n=0,i=r.length;n<i&&a<t;n++)a+=yI(e,r.charCodeAt(n));return n}function LV(r,t,e,a){var n=w_(r),i=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=i==="truncate",v=Cf(u),h=j(t.lineHeight,v),c=t.lineOverflow==="truncate",p=!1,d=t.width;d==null&&e!=null&&(d=e-s);var g=t.height;g==null&&a!=null&&(g=a-l);var y;d!=null&&(i==="break"||i==="breakAll")?y=n?FI(n,t.font,d,i==="breakAll",0).lines:[]:y=n?n.split(`
|
|
26
|
+
`):[];var m=y.length*h;if(g==null&&(g=m),m>g&&c){var _=Math.floor(g/h);p=p||y.length>_,y=y.slice(0,_),m=y.length*h}if(n&&f&&d!=null)for(var S=zI(d,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},b=0;b<y.length;b++)GI(x,y[b],S),y[b]=x.textLine,p=p||x.isTruncated;for(var w=g,C=0,T=ba(u),b=0;b<y.length;b++)C=Math.max(wa(T,y[b]),C);d==null&&(d=C);var M=d;return w+=l,M+=s,{lines:y,height:g,outerWidth:M,outerHeight:w,lineHeight:h,calculatedLineHeight:v,contentWidth:C,contentHeight:m,width:d,isTruncated:p}}var PV=function(){function r(){}return r}(),Px=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),RV=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function EV(r,t,e,a,n){var i=new RV,o=w_(r);if(!o)return i;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&e!=null&&(f=e-l);var v=t.height;v==null&&a!=null&&(v=a-u);for(var h=t.overflow,c=(h==="break"||h==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:h==="breakAll"}:null,p=Pd.lastIndex=0,d;(d=Pd.exec(o))!=null;){var g=d.index;g>p&&Rd(i,o.substring(p,g),t,c),Rd(i,d[2],t,c,d[1]),p=Pd.lastIndex}p<o.length&&Rd(i,o.substring(p,o.length),t,c);var y=[],m=0,_=0,S=h==="truncate",x=t.lineOverflow==="truncate",b={};function w(gt,Et,vt){gt.width=Et,gt.lineHeight=vt,m+=vt,_=Math.max(_,Et)}t:for(var C=0;C<i.lines.length;C++){for(var T=i.lines[C],M=0,D=0,L=0;L<T.tokens.length;L++){var I=T.tokens[L],P=I.styleName&&t.rich[I.styleName]||{},R=I.textPadding=P.padding,E=R?R[1]+R[3]:0,O=I.font=P.font||t.font;I.contentHeight=Cf(O);var k=j(P.height,I.contentHeight);if(I.innerHeight=k,R&&(k+=R[0]+R[2]),I.height=k,I.lineHeight=_r(P.lineHeight,t.lineHeight,k),I.align=P&&P.align||n,I.verticalAlign=P&&P.verticalAlign||"middle",x&&v!=null&&m+I.lineHeight>v){var V=i.lines.length;L>0?(T.tokens=T.tokens.slice(0,L),w(T,D,M),i.lines=i.lines.slice(0,C+1)):i.lines=i.lines.slice(0,C),i.isTruncated=i.isTruncated||i.lines.length<V;break t}var z=P.width,F=z==null||z==="auto";if(typeof z=="string"&&z.charAt(z.length-1)==="%")I.percentWidth=z,y.push(I),I.contentWidth=wa(ba(O),I.text);else{if(F){var U=P.backgroundColor,X=U&&U.image;X&&(X=MV(X),gp(X)&&(I.width=Math.max(I.width,X.width*k/X.height)))}var Y=S&&f!=null?f-D:null;Y!=null&&Y<I.width?!F||Y<E?(I.text="",I.width=I.contentWidth=0):(DV(b,I.text,Y-E,O,t.ellipsis,{minChar:t.truncateMinChar}),I.text=b.text,i.isTruncated=i.isTruncated||b.isTruncated,I.width=I.contentWidth=wa(ba(O),I.text)):I.contentWidth=wa(ba(O),I.text)}I.width+=E,D+=I.width,P&&(M=Math.max(M,I.lineHeight))}w(T,D,M)}i.outerWidth=i.width=j(f,_),i.outerHeight=i.height=j(v,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var C=0;C<y.length;C++){var I=y[C],Q=I.percentWidth;I.width=parseInt(Q,10)/100*i.width}return i}function Rd(r,t,e,a,n){var i=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,f,v;if(a){var h=o.padding,c=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var p=Ra(o.width,a.width)+c;s.length>0&&p+a.accumWidth>a.width&&(f=t.split(`
|
|
27
|
+
`),u=!0),a.accumWidth=p}else{var d=FI(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,v=d.linesWidths,f=d.lines}}f||(f=t.split(`
|
|
28
|
+
`));for(var g=ba(l),y=0;y<f.length;y++){var m=f[y],_=new PV;if(_.styleName=n,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=v?v[y]:wa(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new Px)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(m||!x||i)&&S.push(_)}else s.push(new Px([_]))}}function kV(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var OV=Ia(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function NV(r){return kV(r)?!!OV[r]:!0}function FI(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,v=ba(t),h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
|
|
29
|
+
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var p=yI(v,c.charCodeAt(0)),d=a?!1:!NV(c);if(i.length?f+p>e:n+f+p>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=c,u+=p,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=c,f=p)):d?(i.push(l),o.push(u),l=c,u=p):(i.push(c),o.push(p));continue}f+=p,d?(l+=c,u+=p):(l&&(s+=l,l="",u=0),s+=c)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}function Rx(r,t,e,a,n,i){if(r.baseX=e,r.baseY=a,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;ot.set(Ex,qs(e,o,n),lo(a,s,i),o,s),ot.intersect(t,Ex,null,kx);var l=kx.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=qs(l.x,l.width,n,!0),r.baseY=lo(l.y,l.height,i,!0)}}var Ex=new ot(0,0,0,0),kx={outIntersectRect:{},clamp:!0};function w_(r){return r!=null?r+="":r=""}function BV(r){var t=w_(r.text),e=r.font,a=wa(ba(e),t),n=Cf(e);return ym(r,a,n,null)}function ym(r,t,e,a){var n=new ot(qs(r.x||0,t,r.textAlign),lo(r.y||0,e,r.textBaseline),t,e),i=a??(HI(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function HI(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var mm="__zr_style_"+Math.round(Math.random()*10),uo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},yp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};uo[mm]=!0;var Ox=["z","z2","invisible"],VV=["invisible"],Gr=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=Ct(e),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&zV(this,e,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,a){return this.rectContain(e,a)},t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.rectContain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ot(0,0,0,0)),a?ot.applyTransform(e,n,a):e.copy(n),(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 ot(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,a){e!=="style"?r.prototype.attrKV.call(this,e,a):this.style?this.setStyle(a):this.useStyle(a)},t.prototype.setStyle=function(e,a){return typeof e=="string"?this.style[e]=a:G(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=cu,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&cu)},t.prototype.styleUpdated=function(){this.__dirty&=~cu},t.prototype.createStyle=function(e){return lp(uo,e)},t.prototype.useStyle=function(e){e[mm]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[mm]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,a,Ox)},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u=this.__inHover===hp,f;if(a&&a.style?o?i?f=a.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,a.style)):(f=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(f,a.style)):l&&(f=n.style),f)if(o){var v=this.style;if(this.style=this.createStyle(l?{}:v),l)for(var h=Ct(v),c=0;c<h.length;c++){var p=h[c];p in f&&(f[p]=f[p],this.style[p]=v[p])}for(var d=Ct(f),c=0;c<d.length;c++){var p=d[c];this.style[p]=this.style[p]}this._transitionState(e,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?VV:Ox,c=0;c<g.length;c++){var p=g[c];a&&a[p]!=null?this[p]=a[p]:l&&n[p]!=null&&(this[p]=n[p])}},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),n,i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},t.prototype._mergeStyle=function(e,a){return G(e,a),e},t.prototype.getAnimationStyleProps=function(){return yp},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=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=ur|cu}(),t}(cp),Ed=new ot(0,0,0,0),kd=new ot(0,0,0,0);function zV(r,t,e){return Ed.copy(r.getBoundingRect()),r.transform&&Ed.applyTransform(r.transform),kd.width=t,kd.height=e,!Ed.intersect(kd)}var sr=Math.min,lr=Math.max,Od=Math.sin,Nd=Math.cos,bi=Math.PI*2,nv=zo(),iv=zo(),ov=zo();function mp(r,t,e){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],n=sr(n,a[0]),i=lr(i,a[0]),o=sr(o,a[1]),s=lr(s,a[1]);t[0]=n,t[1]=o,e[0]=i,e[1]=s}}function Nx(r,t,e,a,n,i){n[0]=sr(r,e),n[1]=sr(t,a),i[0]=lr(r,e),i[1]=lr(t,a)}var Bx=[],Vx=[];function GV(r,t,e,a,n,i,o,s,l,u){var f=rI,v=Se,h=f(r,e,n,o,Bx);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<h;c++){var p=v(r,e,n,o,Bx[c]);l[0]=sr(p,l[0]),u[0]=lr(p,u[0])}h=f(t,a,i,s,Vx);for(var c=0;c<h;c++){var d=v(t,a,i,s,Vx[c]);l[1]=sr(d,l[1]),u[1]=lr(d,u[1])}l[0]=sr(r,l[0]),u[0]=lr(r,u[0]),l[0]=sr(o,l[0]),u[0]=lr(o,u[0]),l[1]=sr(t,l[1]),u[1]=lr(t,u[1]),l[1]=sr(s,l[1]),u[1]=lr(s,u[1])}function FV(r,t,e,a,n,i,o,s){var l=nI,u=Me,f=lr(sr(l(r,e,n),1),0),v=lr(sr(l(t,a,i),1),0),h=u(r,e,n,f),c=u(t,a,i,v);o[0]=sr(r,n,h),o[1]=sr(t,i,c),s[0]=lr(r,n,h),s[1]=lr(t,i,c)}function HV(r,t,e,a,n,i,o,s,l){var u=On,f=Nn,v=Math.abs(n-i);if(v%bi<1e-4&&v>1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(nv[0]=Nd(n)*e+r,nv[1]=Od(n)*a+t,iv[0]=Nd(i)*e+r,iv[1]=Od(i)*a+t,u(s,nv,iv),f(l,nv,iv),n=n%bi,n<0&&(n=n+bi),i=i%bi,i<0&&(i=i+bi),n>i&&!o?i+=bi:n<i&&o&&(n+=bi),o){var h=i;i=n,n=h}for(var c=0;c<i;c+=Math.PI/2)c>n&&(ov[0]=Nd(c)*e+r,ov[1]=Od(c)*a+t,u(s,ov,s),f(l,ov,l))}var Ut={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wi=[],Ti=[],ia=[],xn=[],oa=[],sa=[],Bd=Math.min,Vd=Math.max,Ci=Math.cos,Ai=Math.sin,Ha=Math.abs,_m=Math.PI,Ln=_m*2,zd=typeof Float32Array<"u",Ol=[];function Gd(r){var t=Math.round(r/_m*1e8)/1e8;return t%2*_m}function _p(r,t){var e=Gd(r[0]);e<0&&(e+=Ln);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=Ln?n=e+Ln:t&&e-n>=Ln?n=e-Ln:!t&&e>n?n=e+(Ln-Gd(e-n)):t&&e<n&&(n=e-(Ln-Gd(n-e))),r[0]=e,r[1]=n}var Ea=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,a){a=a||0,a>0&&(this._ux=Ha(a/$h/t)||0,this._uy=Ha(a/$h/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(Ut.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 a=Ha(t-this._xi),n=Ha(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Ut.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(Ut.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(Ut.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),Ol[0]=n,Ol[1]=i,_p(Ol,o),n=Ol[0],i=Ol[1];var s=i-n;return this.addData(Ut.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=Ci(i)*a+t,this._yi=Ai(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(Ut.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ut.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,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){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&zd&&(this.data=new Float32Array(e));for(var a=0;a<e;a++)this.data[a]=t[a];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,a=0,n=this._len,i=0;i<e;i++)a+=t[i].len();var o=this.data;if(zd&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+a),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var i=0;i<e;i++)for(var l=t[i].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},r.prototype.addData=function(t,e,a,n,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var v=0;v<arguments.length;v++)f[this._len++]=arguments[v]}},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,zd&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ia[0]=ia[1]=oa[0]=oa[1]=Number.MAX_VALUE,xn[0]=xn[1]=sa[0]=sa[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],a=t[o+1],n=e,i=a),s){case Ut.M:e=n=t[o++],a=i=t[o++],oa[0]=n,oa[1]=i,sa[0]=n,sa[1]=i;break;case Ut.L:Nx(e,a,t[o],t[o+1],oa,sa),e=t[o++],a=t[o++];break;case Ut.C:GV(e,a,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],oa,sa),e=t[o++],a=t[o++];break;case Ut.Q:FV(e,a,t[o++],t[o++],t[o],t[o+1],oa,sa),e=t[o++],a=t[o++];break;case Ut.A:var u=t[o++],f=t[o++],v=t[o++],h=t[o++],c=t[o++],p=t[o++]+c;o+=1;var d=!t[o++];l&&(n=Ci(c)*v+u,i=Ai(c)*h+f),HV(u,f,v,h,c,p,d,oa,sa),e=Ci(p)*v+u,a=Ai(p)*h+f;break;case Ut.R:n=e=t[o++],i=a=t[o++];var g=t[o++],y=t[o++];Nx(n,i,n+g,i+y,oa,sa);break;case Ut.Z:e=n,a=i;break}On(ia,ia,oa),Nn(xn,xn,sa)}return o===0&&(ia[0]=ia[1]=xn[0]=xn[1]=0),new ot(ia[0],ia[1],xn[0]-ia[0],xn[1]-ia[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,v=0,h=0;h<e;){var c=t[h++],p=h===1;p&&(i=t[h],o=t[h+1],s=i,l=o);var d=-1;switch(c){case Ut.M:i=s=t[h++],o=l=t[h++];break;case Ut.L:{var g=t[h++],y=t[h++],m=g-i,_=y-o;(Ha(m)>a||Ha(_)>n||h===e-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break}case Ut.C:{var S=t[h++],x=t[h++],g=t[h++],y=t[h++],b=t[h++],w=t[h++];d=KN(i,o,S,x,g,y,b,w,10),i=b,o=w;break}case Ut.Q:{var S=t[h++],x=t[h++],g=t[h++],y=t[h++];d=jN(i,o,S,x,g,y,10),i=g,o=y;break}case Ut.A:var C=t[h++],T=t[h++],M=t[h++],D=t[h++],L=t[h++],I=t[h++],P=I+L;h+=1,p&&(s=Ci(L)*M+C,l=Ai(L)*D+T),d=Vd(M,D)*Bd(Ln,Math.abs(I)),i=Ci(P)*M+C,o=Ai(P)*D+T;break;case Ut.R:{s=i=t[h++],l=o=t[h++];var R=t[h++],E=t[h++];d=R*2+E*2;break}case Ut.Z:{var m=s-i,_=l-o;d=Math.sqrt(m*m+_*_),i=s,o=l;break}}d>=0&&(u[v++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,v,h,c=e<1,p,d,g=0,y=0,m,_=0,S,x;if(!(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=e*d,!m)))t:for(var b=0;b<o;){var w=a[b++],C=b===1;switch(C&&(u=a[b],f=a[b+1],s=u,l=f),w!==Ut.L&&_>0&&(t.lineTo(S,x),_=0),w){case Ut.M:s=u=a[b++],l=f=a[b++],t.moveTo(u,f);break;case Ut.L:{v=a[b++],h=a[b++];var T=Ha(v-u),M=Ha(h-f);if(T>n||M>i){if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;t.lineTo(u*(1-L)+v*L,f*(1-L)+h*L);break t}g+=D}t.lineTo(v,h),u=v,f=h,_=0}else{var I=T*T+M*M;I>_&&(S=v,x=h,_=I)}break}case Ut.C:{var P=a[b++],R=a[b++],E=a[b++],O=a[b++],k=a[b++],V=a[b++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;Qn(u,P,E,k,L,wi),Qn(f,R,O,V,L,Ti),t.bezierCurveTo(wi[1],Ti[1],wi[2],Ti[2],wi[3],Ti[3]);break t}g+=D}t.bezierCurveTo(P,R,E,O,k,V),u=k,f=V;break}case Ut.Q:{var P=a[b++],R=a[b++],E=a[b++],O=a[b++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;Gu(u,P,E,L,wi),Gu(f,R,O,L,Ti),t.quadraticCurveTo(wi[1],Ti[1],wi[2],Ti[2]);break t}g+=D}t.quadraticCurveTo(P,R,E,O),u=E,f=O;break}case Ut.A:var z=a[b++],F=a[b++],U=a[b++],X=a[b++],Y=a[b++],Q=a[b++],gt=a[b++],Et=!a[b++],vt=U>X?U:X,tt=Ha(U-X)>.001,dt=Y+Q,et=!1;if(c){var D=p[y++];g+D>m&&(dt=Y+Q*(m-g)/D,et=!0),g+=D}if(tt&&t.ellipse?t.ellipse(z,F,U,X,gt,Y,dt,Et):t.arc(z,F,vt,Y,dt,Et),et)break t;C&&(s=Ci(Y)*U+z,l=Ai(Y)*X+F),u=Ci(dt)*U+z,f=Ai(dt)*X+F;break;case Ut.R:s=u=a[b],l=f=a[b+1],v=a[b++],h=a[b++];var ht=a[b++],Ft=a[b++];if(c){var D=p[y++];if(g+D>m){var Dt=m-g;t.moveTo(v,h),t.lineTo(v+Bd(Dt,ht),h),Dt-=ht,Dt>0&&t.lineTo(v+ht,h+Bd(Dt,Ft)),Dt-=Ft,Dt>0&&t.lineTo(v+Vd(ht-Dt,0),h+Ft),Dt-=ht,Dt>0&&t.lineTo(v,h+Vd(Ft-Dt,0));break t}g+=D}t.rect(v,h,ht,Ft);break;case Ut.Z:if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=D}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.prototype.canSave=function(){return!!this._saveData},r.CMD=Ut,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Rn(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||o<t-s&&o<a-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-a)/(r-e),u=(r*a-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,v=f*f/(l*l+1);return v<=s/2*s/2}function WV(r,t,e,a,n,i,o,s,l,u,f){if(l===0)return!1;var v=l;if(f>t+v&&f>a+v&&f>i+v&&f>s+v||f<t-v&&f<a-v&&f<i-v&&f<s-v||u>r+v&&u>e+v&&u>n+v&&u>o+v||u<r-v&&u<e-v&&u<n-v&&u<o-v)return!1;var h=aI(r,t,e,a,n,i,o,s,u,f,null);return h<=v/2}function WI(r,t,e,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>a+u&&l>i+u||l<t-u&&l<a-u&&l<i-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var f=iI(r,t,e,a,n,i,s,l,null);return f<=u/2}var zx=Math.PI*2;function yr(r){return r%=zx,r<0&&(r+=zx),r}var Nl=Math.PI*2;function UV(r,t,e,a,n,i,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(a-n)%Nl<1e-4)return!0;if(i){var v=a;a=yr(n),n=yr(v)}else a=yr(a),n=yr(n);a>n&&(n+=Nl);var h=Math.atan2(l,s);return h<0&&(h+=Nl),h>=a&&h<=n||h+Nl>=a&&h+Nl<=n}function $a(r,t,e,a,n,i){if(i>t&&i>a||i<t&&i<a||a===t)return 0;var o=(i-t)/(a-t),s=a<t?1:-1;(o===1||o===0)&&(s=a<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var bn=Ea.CMD,Mi=Math.PI*2,YV=1e-4;function XV(r,t){return Math.abs(r-t)<YV}var $e=[-1,-1,-1],Ir=[-1,-1];function ZV(){var r=Ir[0];Ir[0]=Ir[1],Ir[1]=r}function $V(r,t,e,a,n,i,o,s,l,u){if(u>t&&u>a&&u>i&&u>s||u<t&&u<a&&u<i&&u<s)return 0;var f=Uh(t,a,i,s,u,$e);if(f===0)return 0;for(var v=0,h=-1,c=void 0,p=void 0,d=0;d<f;d++){var g=$e[d],y=g===0||g===1?.5:1,m=Se(r,e,n,o,g);m<l||(h<0&&(h=rI(t,a,i,s,Ir),Ir[1]<Ir[0]&&h>1&&ZV(),c=Se(t,a,i,s,Ir[0]),h>1&&(p=Se(t,a,i,s,Ir[1]))),h===2?g<Ir[0]?v+=c<t?y:-y:g<Ir[1]?v+=p<c?y:-y:v+=s<p?y:-y:g<Ir[0]?v+=c<t?y:-y:v+=s<c?y:-y)}return v}function qV(r,t,e,a,n,i,o,s){if(s>t&&s>a&&s>i||s<t&&s<a&&s<i)return 0;var l=JN(t,a,i,s,$e);if(l===0)return 0;var u=nI(t,a,i);if(u>=0&&u<=1){for(var f=0,v=Me(t,a,i,u),h=0;h<l;h++){var c=$e[h]===0||$e[h]===1?.5:1,p=Me(r,e,n,$e[h]);p<o||($e[h]<u?f+=v<t?c:-c:f+=i<v?c:-c)}return f}else{var c=$e[0]===0||$e[0]===1?.5:1,p=Me(r,e,n,$e[0]);return p<o?0:i<t?c:-c}}function KV(r,t,e,a,n,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);$e[0]=-l,$e[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Mi-1e-4){a=0,n=Mi;var f=i?1:-1;return o>=$e[0]+r&&o<=$e[1]+r?f:0}if(a>n){var v=a;a=n,n=v}a<0&&(a+=Mi,n+=Mi);for(var h=0,c=0;c<2;c++){var p=$e[c];if(p+r>o){var d=Math.atan2(s,p),f=i?1:-1;d<0&&(d=Mi+d),(d>=a&&d<=n||d+Mi>=a&&d+Mi<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),h+=f)}}return h}function UI(r,t,e,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,v=0,h,c,p=0;p<o;){var d=i[p++],g=p===1;switch(d===bn.M&&p>1&&(e||(s+=$a(l,u,f,v,a,n))),g&&(l=i[p],u=i[p+1],f=l,v=u),d){case bn.M:f=i[p++],v=i[p++],l=f,u=v;break;case bn.L:if(e){if(Rn(l,u,i[p],i[p+1],t,a,n))return!0}else s+=$a(l,u,i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case bn.C:if(e){if(WV(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],t,a,n))return!0}else s+=$V(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case bn.Q:if(e){if(WI(l,u,i[p++],i[p++],i[p],i[p+1],t,a,n))return!0}else s+=qV(l,u,i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case bn.A:var y=i[p++],m=i[p++],_=i[p++],S=i[p++],x=i[p++],b=i[p++];p+=1;var w=!!(1-i[p++]);h=Math.cos(x)*_+y,c=Math.sin(x)*S+m,g?(f=h,v=c):s+=$a(l,u,h,c,a,n);var C=(a-y)*S/_+y;if(e){if(UV(y,m,S,x,x+b,w,t,C,n))return!0}else s+=KV(y,m,S,x,x+b,w,C,n);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case bn.R:f=l=i[p++],v=u=i[p++];var T=i[p++],M=i[p++];if(h=f+T,c=v+M,e){if(Rn(f,v,h,v,t,a,n)||Rn(h,v,h,c,t,a,n)||Rn(h,c,f,c,t,a,n)||Rn(f,c,f,v,t,a,n))return!0}else s+=$a(h,v,h,c,a,n),s+=$a(f,c,f,v,a,n);break;case bn.Z:if(e){if(Rn(l,u,f,v,t,a,n))return!0}else s+=$a(l,u,f,v,a,n);l=f,u=v;break}}return!e&&!XV(u,v)&&(s+=$a(l,u,f,v,a,n)||0),s!==0}function JV(r,t,e){return UI(r,0,!1,t,e)}function jV(r,t,e,a){return UI(r,t,!0,e,a)}var Qh=st({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},uo),QV={style:st({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},yp.style)},Fd=sn.concat(["invisible","culling","z","z2","zlevel","parent"]),wt=function(r){N(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 a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<Fd.length;++s)n[Fd[s]]=this[Fd[s]];n.__dirty|=ur}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var a=Ct(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=e[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(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(Z(e)){var a=Xh(e,0);return a>.5?fm:a>.2?CB:vm}else if(e)return vm}return fm},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(Z(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Xh(e,0)<um;if(i===o)return a}},t.prototype.buildPath=function(e,a,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Ts},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 Ea(!1)},t.prototype.hasStroke=function(){var e=this.style,a=e.stroke;return!(a==null||a==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Ts)&&(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||n){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}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,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){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)),jV(s,l/u,e,a)))return!0}if(this.hasFill())return JV(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ts,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,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:G(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ts)},t.prototype.createStyle=function(e){return lp(Qh,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=G({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,s){if(r.prototype._applyStateObj.call(this,e,a,n,i,o,s),this.__inHover!==hp){var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=G({},n.shape),G(u,a.shape)):(u=G({},i?this.shape:n.shape),G(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=G({},this.shape);for(var f={},v=Ct(u),h=0;h<v.length;h++){var c=v[h];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()}},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),n,i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},t.prototype.getAnimationStyleProps=function(){return QV},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var a=function(i){N(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return at(e.style)},o.prototype.getDefaultShape=function(){return at(e.shape)},o}(t);for(var n in e)typeof e[n]=="function"&&(a.prototype[n]=e[n]);return a},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ur|cu|Ts}(),t}(Gr),tz=st({strokeFirst:!0,font:nn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Qh),Js=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return HI(this.style)},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(e){return lp(tz,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=BV(this.style)),this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Gr);Js.prototype.type="tspan";var ez=st({x:0,y:0},uo),rz={style:st({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},yp.style)};function az(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ie=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return lp(ez,e)},t.prototype._getSize=function(e){var a=this.style,n=a[e];if(n!=null)return n;var i=az(a.image)?a.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=a[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return rz},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ot(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Gr);Ie.prototype.type="image";function nz(r,t){var e=t.x,a=t.y,n=t.width,i=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),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 v;s+l>n&&(v=s+l,s*=n/v,l*=n/v),u+f>n&&(v=u+f,u*=n/v,f*=n/v),l+u>i&&(v=l+u,l*=i/v,u*=i/v),s+f>i&&(v=s+f,s*=i/v,f*=i/v),r.moveTo(e+s,a),r.lineTo(e+n-l,a),l!==0&&r.arc(e+n-l,a+l,l,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+f,a+i),f!==0&&r.arc(e+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5),r.closePath()}var Ls=Math.round;function Sp(r,t,e){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(Ls(a*2)===Ls(n*2)&&(r.x1=r.x2=mr(a,s,!0)),Ls(i*2)===Ls(o*2)&&(r.y1=r.y2=mr(i,s,!0))),r}}function YI(r,t,e){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=mr(a,s,!0),r.y=mr(n,s,!0),r.width=Math.max(mr(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(mr(n+o,s,!1)-r.y,o===0?0:1)),r}}function mr(r,t,e){if(!t)return r;var a=Ls(r*2);return(a+Ls(t))%2===0?a/2:(a+(e?1:-1))/2}var iz=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),oz={},bt=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new iz},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=YI(oz,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?nz(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(wt);bt.prototype.type="rect";var Gx={fill:"#000"},Fx=2,la={},sz={style:st({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},yp.style)},It=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Gx,a.attr(e),a}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 a=this._children[e];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.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 a=this.innerTransformable;return a?a.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,fz(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 a=0;a<this._children.length;a++)this._children[a].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new ot(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Gx},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,a){if(!a)return e;var n=a.rich,i=e.rich||n&&{};return G(e,a),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,a){for(var n=Ct(a),i=0;i<n.length;i++){var o=n[i];e[o]=e[o]||{},G(e[o],a[o])}},t.prototype.getAnimationStyleProps=function(){return sz},t.prototype._getOrCreateChild=function(e){var a=this._children[this._childCursor];return(!a||!(a instanceof e))&&(a=new e),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},t.prototype._updatePlainTexts=function(){var e=this.style,a=e.font||nn,n=e.padding,i=this._defaultStyle,o=e.x||0,s=e.y||0,l=e.align||i.align||"left",u=e.verticalAlign||i.verticalAlign||"top";Rx(la,i.overflowRect,o,s,l,u),o=la.baseX,s=la.baseY;var f=$x(e),v=LV(f,e,la.outerWidth,la.outerHeight),h=Hd(e),c=!!e.backgroundColor,p=v.outerHeight,d=v.outerWidth,g=v.lines,y=v.lineHeight;this.isTruncated=!!v.isTruncated;var m=o,_=lo(s,v.contentHeight,u);if(h||n){var S=qs(o,d,l),x=lo(s,p,u);h&&this._renderBackground(e,e,S,x,d,p)}_+=y/2,n&&(m=Zx(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var b=0,w=!1,C=!1,T=Xx("fill"in e?e.fill:(C=!0,i.fill)),M=Yx("stroke"in e?e.stroke:!c&&(!i.autoStroke||C)?(b=Fx,w=!0,i.stroke):null),D=e.textShadowBlur>0,L=0;L<g.length;L++){var I=this._getOrCreateChild(Js),P=I.createStyle();I.useStyle(P),P.text=g[L],P.x=m,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=M,P.fill=T,M&&(P.lineWidth=e.lineWidth||b,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=a,Wx(P,e),_+=y,I.setBoundingRect(ym(P,v.contentWidth,v.calculatedLineHeight,w?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,a=this._defaultStyle,n=e.align||a.align,i=e.verticalAlign||a.verticalAlign,o=e.x||0,s=e.y||0;Rx(la,a.overflowRect,o,s,n,i),o=la.baseX,s=la.baseY;var l=$x(e),u=EV(l,e,la.outerWidth,la.outerHeight,n),f=u.width,v=u.outerWidth,h=u.outerHeight,c=e.padding;this.isTruncated=!!u.isTruncated;var p=qs(o,v,n),d=lo(s,h,i),g=p,y=d;c&&(g+=c[3],y+=c[0]);var m=g+f;Hd(e)&&this._renderBackground(e,e,p,d,v,h);for(var _=!!e.backgroundColor,S=0;S<u.lines.length;S++){for(var x=u.lines[S],b=x.tokens,w=b.length,C=x.lineHeight,T=x.width,M=0,D=g,L=m,I=w-1,P=void 0;M<w&&(P=b[M],!P.align||P.align==="left");)this._placeToken(P,e,C,y,D,"left",_),T-=P.width,D+=P.width,M++;for(;I>=0&&(P=b[I],P.align==="right");)this._placeToken(P,e,C,y,L,"right",_),T-=P.width,L-=P.width,I--;for(D+=(f-(D-g)-(m-L)-T)/2;M<=I;)P=b[M],this._placeToken(P,e,C,y,D+P.width/2,"center",_),D+=P.width,M++;y+=C}},t.prototype._placeToken=function(e,a,n,i,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,v=i+n/2;f==="top"?v=i+e.height/2:f==="bottom"&&(v=i+n-e.height/2);var h=!e.isLineHolder&&Hd(u);h&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,v-e.height/2,e.width,e.height);var c=!!u.backgroundColor,p=e.textPadding;p&&(o=Zx(o,s,p),v-=e.height/2-p[0]-e.innerHeight/2);var d=this._getOrCreateChild(Js),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=Xx("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=Yx("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Fx,S=!0,y.stroke):null),w=u.textShadowBlur>0||a.textShadowBlur>0;g.text=e.text,g.x=o,g.y=v,w&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||nn,g.opacity=_r(u.opacity,a.opacity,1),Wx(g,u),b&&(g.lineWidth=_r(u.lineWidth,a.lineWidth,_),g.lineDash=j(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),x&&(g.fill=x),d.setBoundingRect(ym(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,a,n,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,v=l&&l.image,h=l&&!v,c=e.borderRadius,p=this,d,g;if(h||e.lineHeight||u&&f){d=this._getOrCreateChild(bt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,d.dirtyShape()}if(h){var m=d.style;m.fill=l||null,m.fillOpacity=j(e.fillOpacity,1)}else if(v){g=this._getOrCreateChild(Ie),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=j(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=_r(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return ZI(e)&&(a=[e.fontStyle,e.fontWeight,XI(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&kr(a)||e.textFont||e.font},t}(Gr),lz={left:!0,right:1,center:1},uz={top:1,bottom:1,middle:1},Hx=["fontStyle","fontWeight","fontSize","fontFamily"];function XI(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?a_+"px":r+"px"}function Wx(r,t){for(var e=0;e<Hx.length;e++){var a=Hx[e],n=t[a];n!=null&&(r[a]=n)}}function ZI(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function fz(r){return Ux(r),A(r.rich,Ux),r}function Ux(r){if(r){r.font=It.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||lz[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||uz[e]?e:"top";var a=r.padding;a&&(r.padding=sp(r.padding))}}function Yx(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Xx(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Zx(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function $x(r){var t=r.text;return t!=null&&(t+=""),t}function Hd(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ft=yt(),Sm=function(r,t,e,a){if(a){var n=ft(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=ft(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},ml="undefined",ka="series",$I=K(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Sr="original",De="arrayRows",xr="objectRows",ea="keyedColumns",$n="typedArray",qI="unknown",Kr="column",Wo="row",KI="Roam",vz=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],JI=function(){function r(t){A(vz,function(e){this[e]=q(t[e],t)},this)}return r}();function jI(r,t){return t.mainType===ka?r.getViewOfSeriesModel(t):r.getViewOfComponentModel(t)}var qx=1,Kx={},QI=yt(),T_=yt(),C_=0,Mf=1,xp=2,rr=["emphasis","blur","select"],Yu=["normal","emphasis","blur","select"],_l=10,hz=9,fo="highlight",wh="downplay",tc="select",xm="unselect",ec="toggleSelect",A_="selectchanged";function ns(r){return r!=null&&r!=="none"}function bp(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function tL(r){bp(r,"emphasis",xp)}function eL(r){r.hoverState===xp&&bp(r,"normal",C_)}function M_(r){bp(r,"blur",Mf)}function rL(r){r.hoverState===Mf&&bp(r,"normal",C_)}function cz(r){r.selected=!0}function pz(r){r.selected=!1}function Jx(r,t,e){t(r,e)}function gn(r,t,e){Jx(r,t,e),r.isGroup&&r.traverse(function(a){Jx(a,t,e)})}function rc(r,t){switch(t){case"emphasis":r.hoverState=xp;break;case"normal":r.hoverState=C_;break;case"blur":r.hoverState=Mf;break;case"select":r.selected=!0}}function dz(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l??(a&&a[s])}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(i,t)}return i}function gz(r,t,e,a){var n=e&&pt(e,"select")>=0,i=!1;if(r instanceof wt){var o=QI(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(ns(s)||ns(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=G({},a),u=G({},u),u.fill=s):!ns(u.fill)&&ns(s)?(i=!0,a=G({},a),u=G({},u),u.fill=rm(s)):!ns(u.stroke)&&ns(l)&&(i||(a=G({},a),u=G({},u)),u.stroke=rm(l)),a.style=u}}if(a&&a.z2==null){i||(a=G({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??_l)}return a}function yz(r,t,e){if(e&&e.z2==null){e=G({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??hz)}return e}function mz(r,t,e){var a=pt(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:dz(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=G({},e),o=G({opacity:a?n:i.opacity*.1},o),e.style=o),e}function Wd(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return gz(this,r,t,e);if(r==="blur")return mz(this,r,e);if(r==="select")return yz(this,r,e)}return e}function xo(r){r.stateProxy=Wd;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Wd),e&&(e.stateProxy=Wd)}function jx(r,t){!oL(r,t)&&!r.__highByOuter&&gn(r,tL)}function Qx(r,t){!oL(r,t)&&!r.__highByOuter&&gn(r,eL)}function vn(r,t){r.__highByOuter|=1<<(t||0),gn(r,tL)}function hn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&gn(r,eL)}function aL(r){gn(r,M_)}function D_(r){gn(r,rL)}function nL(r){gn(r,cz)}function iL(r){gn(r,pz)}function oL(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function sL(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=T_(i),s=jI(r,i),l=n==="series";!l&&a.push(s),o.isBlured&&(s.group.traverse(function(u){rL(u)}),l&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function bm(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var v=0;v<f.length;v++){var h=u.getItemGraphicEl(f[v]);h&&D_(h)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,v=u.coordinateSystem;v&&v.master&&(v=v.master);var h=v&&s?v===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!h||t==="series"&&f)){var c=a.getViewOfSeriesModel(u);if(c.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||M_(g)}),He(t))i(u.getData(),t);else if(ut(t))for(var p=Ct(t),d=0;d<p.length;d++)i(u.getData(p[d]),t[p[d]]);l.push(u),T_(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var v=a.getViewOfComponentModel(f);v&&v.toggleBlurSeries&&v.toggleBlurSeries(l,!0,n)}})}}function wm(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){T_(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){M_(i)})}}}function _z(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(n){var i=mo(n,t);i=(H(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ft(o);bm(a,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);f!=null&&bm(a,f,v,e)}}}function I_(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ft(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Sz(r,t,e){var a=ft(r),n=I_(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&wm(a.componentMainType,a.componentIndex,e),A(i,function(s){return jx(s,t)})):(bm(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&wm(a.componentMainType,a.componentIndex,e),jx(r,t))}function xz(r,t,e){sL(e);var a=ft(r),n=I_(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?A(n,function(i){return Qx(i,t)}):Qx(r,t)}function bz(r,t,e){if(Cm(t)){var a=t.dataType,n=r.getData(a),i=mo(n,t);H(i)||(i=[i]),r[t.type===ec?"toggleSelect":t.type===tc?"select":"unselect"](i,a)}}function tb(r){var t=r.getAllData();A(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?nL(i):iL(i)})})}function wz(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();A(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function vo(r,t,e){ro(r,!0),gn(r,xo),Tm(r,t,e)}function Tz(r){ro(r,!1)}function Kt(r,t,e,a){a?Tz(r):vo(r,t,e)}function Tm(r,t,e){var a=ft(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var eb=["emphasis","blur","select"],Cz={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function de(r,t,e,a){e=e||"itemStyle";for(var n=0;n<eb.length;n++){var i=eb[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[Cz[e]]()}}function ro(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function Xu(r){return!!(r&&r.__highDownDispatcher)}function Az(r,t,e){var a=ft(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function Mz(r){var t=Kx[r];return t==null&&qx<=32&&(t=Kx[r]=qx++),t}function Cm(r){var t=r.type;return t===tc||t===xm||t===ec}function rb(r){var t=r.type;return t===fo||t===wh}function Dz(r){var t=QI(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 is=Ea.CMD,Iz=[[],[],[]],ab=Math.sqrt,Lz=Math.atan2;function lL(r,t){if(t){var e=r.data,a=r.len(),n,i,o,s,l,u,f=is.M,v=is.C,h=is.L,c=is.R,p=is.A,d=is.Q;for(o=0,s=0;o<a;){switch(n=e[o++],s=o,i=0,n){case f:i=1;break;case h:i=1;break;case v:i=3;break;case d:i=2;break;case p:var g=t[4],y=t[5],m=ab(t[0]*t[0]+t[1]*t[1]),_=ab(t[2]*t[2]+t[3]*t[3]),S=Lz(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case c:u[0]=e[o++],u[1]=e[o++],ae(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],ae(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var x=Iz[l];x[0]=e[o++],x[1]=e[o++],ae(x,x,t),e[s++]=x[0],e[s++]=x[1]}}r.increaseVersion()}}var Ud=Math.sqrt,sv=Math.sin,lv=Math.cos,Bl=Math.PI;function nb(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Am(r,t){return(r[0]*t[0]+r[1]*t[1])/(nb(r)*nb(t))}function ib(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Am(r,t))}function ob(r,t,e,a,n,i,o,s,l,u,f){var v=l*(Bl/180),h=lv(v)*(r-e)/2+sv(v)*(t-a)/2,c=-1*sv(v)*(r-e)/2+lv(v)*(t-a)/2,p=h*h/(o*o)+c*c/(s*s);p>1&&(o*=Ud(p),s*=Ud(p));var d=(n===i?-1:1)*Ud((o*o*(s*s)-o*o*(c*c)-s*s*(h*h))/(o*o*(c*c)+s*s*(h*h)))||0,g=d*o*c/s,y=d*-s*h/o,m=(r+e)/2+lv(v)*g-sv(v)*y,_=(t+a)/2+sv(v)*g+lv(v)*y,S=ib([1,0],[(h-g)/o,(c-y)/s]),x=[(h-g)/o,(c-y)/s],b=[(-1*h-g)/o,(-1*c-y)/s],w=ib(x,b);if(Am(x,b)<=-1&&(w=Bl),Am(x,b)>=1&&(w=0),w<0){var C=Math.round(w/Bl*1e6)/1e6;w=Bl*2+C%2*Bl}f.addData(u,m,_,o,s,S,w,v,i)}var Pz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Rz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ez(r){var t=new Ea;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=Ea.CMD,l=r.match(Pz);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],v=f.charAt(0),h=void 0,c=f.match(Rz)||[],p=c.length,d=0;d<p;d++)c[d]=parseFloat(c[d]);for(var g=0;g<p;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=e,T=a,M=void 0,D=void 0;switch(v){case"l":e+=c[g++],a+=c[g++],h=s.L,t.addData(h,e,a);break;case"L":e=c[g++],a=c[g++],h=s.L,t.addData(h,e,a);break;case"m":e+=c[g++],a+=c[g++],h=s.M,t.addData(h,e,a),n=e,i=a,v="l";break;case"M":e=c[g++],a=c[g++],h=s.M,t.addData(h,e,a),n=e,i=a,v="L";break;case"h":e+=c[g++],h=s.L,t.addData(h,e,a);break;case"H":e=c[g++],h=s.L,t.addData(h,e,a);break;case"v":a+=c[g++],h=s.L,t.addData(h,e,a);break;case"V":a=c[g++],h=s.L,t.addData(h,e,a);break;case"C":h=s.C,t.addData(h,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),e=c[g-2],a=c[g-1];break;case"c":h=s.C,t.addData(h,c[g++]+e,c[g++]+a,c[g++]+e,c[g++]+a,c[g++]+e,c[g++]+a),e+=c[g-2],a+=c[g-1];break;case"S":y=e,m=a,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=a-D[M-3]),h=s.C,C=c[g++],T=c[g++],e=c[g++],a=c[g++],t.addData(h,y,m,C,T,e,a);break;case"s":y=e,m=a,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=a-D[M-3]),h=s.C,C=e+c[g++],T=a+c[g++],e+=c[g++],a+=c[g++],t.addData(h,y,m,C,T,e,a);break;case"Q":C=c[g++],T=c[g++],e=c[g++],a=c[g++],h=s.Q,t.addData(h,C,T,e,a);break;case"q":C=c[g++]+e,T=c[g++]+a,e+=c[g++],a+=c[g++],h=s.Q,t.addData(h,C,T,e,a);break;case"T":y=e,m=a,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=a-D[M-3]),e=c[g++],a=c[g++],h=s.Q,t.addData(h,y,m,e,a);break;case"t":y=e,m=a,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=a-D[M-3]),e+=c[g++],a+=c[g++],h=s.Q,t.addData(h,y,m,e,a);break;case"A":_=c[g++],S=c[g++],x=c[g++],b=c[g++],w=c[g++],C=e,T=a,e=c[g++],a=c[g++],h=s.A,ob(C,T,e,a,b,w,_,S,x,h,t);break;case"a":_=c[g++],S=c[g++],x=c[g++],b=c[g++],w=c[g++],C=e,T=a,e+=c[g++],a+=c[g++],h=s.A,ob(C,T,e,a,b,w,_,S,x,h,t);break}}(v==="z"||v==="Z")&&(h=s.Z,t.addData(h),e=n,a=i),o=h}return t.toStatic(),t}var uL=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(wt);function fL(r){return r.setData!=null}function vL(r,t){var e=Ez(r),a=G({},t);return a.buildPath=function(n){var i=fL(n);if(i&&n.canSave()){n.appendPath(e);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=i?n.getContext():n;o&&e.rebuildPath(o,1)}},a.applyTransform=function(n){lL(e,n),this.dirtyShape()},a}function hL(r,t){return new uL(vL(r,t))}function kz(r,t){var e=vL(r,t),a=function(n){N(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i}(uL);return a}function Oz(r,t){for(var e=[],a=r.length,n=0;n<a;n++){var i=r[n];e.push(i.getUpdatedPathProxy(!0))}var o=new wt(t);return o.createPathProxy(),o.buildPath=function(s){if(fL(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function L_(r,t){t=t||{};var e=new wt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?lL(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 Nz=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),yn=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Nz},t.prototype.buildPath=function(e,a){e.moveTo(a.cx+a.r,a.cy),e.arc(a.cx,a.cy,a.r,0,Math.PI*2)},t}(wt);yn.prototype.type="circle";var Bz=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),wp=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Bz},t.prototype.buildPath=function(e,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,f=l*n;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),e.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),e.closePath()},t}(wt);wp.prototype.type="ellipse";var cL=Math.PI,Yd=cL*2,Di=Math.sin,os=Math.cos,Vz=Math.acos,Be=Math.atan2,sb=Math.abs,Lu=Math.sqrt,du=Math.max,ua=Math.min,Yr=1e-4;function zz(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,v=s-i,h=v*l-f*u;if(!(h*h<Yr))return h=(f*(t-i)-v*(r-n))/h,[r+h*l,t+h*u]}function uv(r,t,e,a,n,i,o){var s=r-e,l=t-a,u=(o?i:-i)/Lu(s*s+l*l),f=u*l,v=-u*s,h=r+f,c=t+v,p=e+f,d=a+v,g=(h+p)/2,y=(c+d)/2,m=p-h,_=d-c,S=m*m+_*_,x=n-i,b=h*d-p*c,w=(_<0?-1:1)*Lu(du(0,x*x*S-b*b)),C=(b*_-m*w)/S,T=(-b*m-_*w)/S,M=(b*_+m*w)/S,D=(-b*m+_*w)/S,L=C-g,I=T-y,P=M-g,R=D-y;return L*L+I*I>P*P+R*R&&(C=M,T=D),{cx:C,cy:T,x0:-f,y0:-v,x1:C*(n/x-1),y1:T*(n/x-1)}}function Gz(r){var t;if(H(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 Fz(r,t){var e,a=du(t.r,0),n=du(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,v=t.cy,h=!!t.clockwise,c=sb(u-l),p=c>Yd&&c%Yd;if(p>Yr&&(c=p),!(a>Yr))r.moveTo(f,v);else if(c>Yd-Yr)r.moveTo(f+a*os(l),v+a*Di(l)),r.arc(f,v,a,l,u,!h),n>Yr&&(r.moveTo(f+n*os(u),v+n*Di(u)),r.arc(f,v,n,u,l,h));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=void 0,T=void 0,M=void 0,D=void 0,L=void 0,I=void 0,P=void 0,R=a*os(l),E=a*Di(l),O=n*os(u),k=n*Di(u),V=c>Yr;if(V){var z=t.cornerRadius;z&&(e=Gz(z),d=e[0],g=e[1],y=e[2],m=e[3]);var F=sb(a-n)/2;if(_=ua(F,y),S=ua(F,m),x=ua(F,d),b=ua(F,g),T=w=du(_,S),M=C=du(x,b),(w>Yr||C>Yr)&&(D=a*os(u),L=a*Di(u),I=n*os(l),P=n*Di(l),c<cL)){var U=zz(R,E,I,P,D,L,O,k);if(U){var X=R-U[0],Y=E-U[1],Q=D-U[0],gt=L-U[1],Et=1/Di(Vz((X*Q+Y*gt)/(Lu(X*X+Y*Y)*Lu(Q*Q+gt*gt)))/2),vt=Lu(U[0]*U[0]+U[1]*U[1]);T=ua(w,(a-vt)/(Et+1)),M=ua(C,(n-vt)/(Et-1))}}}if(!V)r.moveTo(f+R,v+E);else if(T>Yr){var tt=ua(y,T),dt=ua(m,T),et=uv(I,P,R,E,a,tt,h),ht=uv(D,L,O,k,a,dt,h);r.moveTo(f+et.cx+et.x0,v+et.cy+et.y0),T<w&&tt===dt?r.arc(f+et.cx,v+et.cy,T,Be(et.y0,et.x0),Be(ht.y0,ht.x0),!h):(tt>0&&r.arc(f+et.cx,v+et.cy,tt,Be(et.y0,et.x0),Be(et.y1,et.x1),!h),r.arc(f,v,a,Be(et.cy+et.y1,et.cx+et.x1),Be(ht.cy+ht.y1,ht.cx+ht.x1),!h),dt>0&&r.arc(f+ht.cx,v+ht.cy,dt,Be(ht.y1,ht.x1),Be(ht.y0,ht.x0),!h))}else r.moveTo(f+R,v+E),r.arc(f,v,a,l,u,!h);if(!(n>Yr)||!V)r.lineTo(f+O,v+k);else if(M>Yr){var tt=ua(d,M),dt=ua(g,M),et=uv(O,k,D,L,n,-dt,h),ht=uv(R,E,I,P,n,-tt,h);r.lineTo(f+et.cx+et.x0,v+et.cy+et.y0),M<C&&tt===dt?r.arc(f+et.cx,v+et.cy,M,Be(et.y0,et.x0),Be(ht.y0,ht.x0),!h):(dt>0&&r.arc(f+et.cx,v+et.cy,dt,Be(et.y0,et.x0),Be(et.y1,et.x1),!h),r.arc(f,v,n,Be(et.cy+et.y1,et.cx+et.x1),Be(ht.cy+ht.y1,ht.cx+ht.x1),h),tt>0&&r.arc(f+ht.cx,v+ht.cy,tt,Be(ht.y1,ht.x1),Be(ht.y0,ht.x0),!h))}else r.lineTo(f+O,v+k),r.arc(f,v,n,u,l,h)}r.closePath()}}}var Hz=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}(),Ue=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Hz},t.prototype.buildPath=function(e,a){Fz(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(wt);Ue.prototype.type="sector";var Wz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Df=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Wz},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t}(wt);Df.prototype.type="ring";function Uz(r,t,e,a){var n=[],i=[],o=[],s=[],l,u,f,v;if(a){f=[1/0,1/0],v=[-1/0,-1/0];for(var h=0,c=r.length;h<c;h++)On(f,f,r[h]),Nn(v,v,r[h]);On(f,f,a[0]),Nn(v,v,a[1])}for(var h=0,c=r.length;h<c;h++){var p=r[h];if(e)l=r[h?h-1:c-1],u=r[(h+1)%c];else if(h===0||h===c-1){n.push(ja(r[h]));continue}else l=r[h-1],u=r[h+1];to(i,u,l),ph(i,i,t);var d=Yy(p,l),g=Yy(p,u),y=d+g;y!==0&&(d/=y,g/=y),ph(o,i,-d),ph(s,i,g);var m=ZS([],p,o),_=ZS([],p,s);a&&(Nn(m,m,f),On(m,m,v),Nn(_,_,f),On(_,_,v)),n.push(m),n.push(_)}return e&&n.push(n.shift()),n}function pL(r,t,e){var a=t.smooth,n=t.points;if(n&&n.length>=2){if(a){var i=Uz(n,a,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;s<v;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var Yz=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),Ye=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Yz},t.prototype.buildPath=function(e,a){pL(e,a,!0)},t}(wt);Ye.prototype.type="polygon";var Xz=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),ke=function(r){N(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 Xz},t.prototype.buildPath=function(e,a){pL(e,a,!1)},t}(wt);ke.prototype.type="polyline";var Zz={},$z=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),fe=function(r){N(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 $z},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=Sp(Zz,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(e.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var a=this.shape;return[a.x1*(1-e)+a.x2*e,a.y1*(1-e)+a.y2*e]},t}(wt);fe.prototype.type="line";var or=[],qz=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 lb(r,t,e){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(e?ox:Se)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?ox:Se)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?jy:Me)(r.x1,r.cpx1,r.x2,t),(e?jy:Me)(r.y1,r.cpy1,r.y2,t)]}var If=function(r){N(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 qz},t.prototype.buildPath=function(e,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,f=a.cpx2,v=a.cpy2,h=a.percent;h!==0&&(e.moveTo(n,i),f==null||v==null?(h<1&&(Gu(n,l,o,h,or),l=or[1],o=or[2],Gu(i,u,s,h,or),u=or[1],s=or[2]),e.quadraticCurveTo(l,u,o,s)):(h<1&&(Qn(n,l,f,o,h,or),l=or[1],f=or[2],o=or[3],Qn(i,u,v,s,h,or),u=or[1],v=or[2],s=or[3]),e.bezierCurveTo(l,u,f,v,o,s)))},t.prototype.pointAt=function(e){return lb(this.shape,e,!1)},t.prototype.tangentAt=function(e){var a=lb(this.shape,e,!0);return cl(a,a)},t}(wt);If.prototype.type="bezier-curve";var Kz=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}(),Tp=function(r){N(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 Kz},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,f=Math.cos(s),v=Math.sin(s);e.moveTo(f*o+n,v*o+i),e.arc(n,i,o,s,l,!u)},t}(wt);Tp.prototype.type="arc";var Cp=function(r){N(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,a=this.shapeChanged(),n=0;n<e.length;n++)a=a||e[n].shapeChanged();a&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(a[0],a[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],a=0;a<e.length;a++)e[a].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),wt.prototype.getBoundingRect.call(this)},t}(wt),dL=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),ei=function(r){N(t,r);function t(e,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(dL),gL=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this,i)||this;return s.x=e??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t}(dL),Xd=Math.min,Jz=Math.max,fv=Math.abs,Ii=[0,0],Li=[0,0],Ae=qD(),vv=Ae.minTv,hv=Ae.maxTv,yL=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new lt;for(var a=0;a<2;a++)this._axes[a]=new lt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var a=this._corners,n=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),e)for(var u=0;u<4;u++)a[u].transform(e);lt.sub(n[0],a[1],a[0]),lt.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(t,e,a){var n=!0,i=!e;return e&<.set(e,0,0),Ae.reset(a,!i),!this._intersectCheckOneSide(this,t,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(n=!1,i)||!i&&!Ae.negativeSize&<.copy(e,n?Ae.useDir?Ae.dirMinTv:vv:hv),n},r.prototype._intersectCheckOneSide=function(t,e,a,n){for(var i=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Ii),t._getProjMinMaxOnAxis(o,e._corners,Li),Ae.negativeSize||Ii[1]<Li[0]||Ii[0]>Li[1]){if(i=!1,Ae.negativeSize||a)return i;var l=fv(Li[0]-Ii[1]),u=fv(Ii[0]-Li[1]);Xd(l,u)>hv.len()&&(l<u?lt.scale(hv,s,-l*n):lt.scale(hv,s,u*n))}else if(!a){var l=fv(Li[0]-Ii[1]),u=fv(Ii[0]-Li[1]);(Ae.useDir||Xd(l,u)<vv.len())&&((l<u||!Ae.bidirectional)&&(lt.scale(vv,s,l*n),Ae.useDir&&Ae.calcDirMTV()),(l>=u||!Ae.bidirectional)&&(lt.scale(vv,s,-u*n),Ae.useDir&&Ae.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var n=this._axes[t],i=this._origin,o=e[0].dot(n)+i[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(n)+i[t];s=Xd(f,s),l=Jz(f,l)}a[0]=s+Ae.touchThreshold,a[1]=l-Ae.touchThreshold,Ae.negativeSize=a[1]<a[0]},r}(),mL=0,jz=1,Qz=2,t5=1,Th=0,e5=[],r5=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=jz,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},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,a){a?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,a){a=a||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],a)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var a=this._cursor;a<this._displayables.length;a++)e&&e(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)e&&e(this._temporaryDisplayables[a])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var a=this._displayables[e];a.parent=this,a.update(),a.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var a=this._temporaryDisplayables[e];a.parent=this,a.update(),a.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ot(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(e5)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,a))return!0}return!1},t}(Gr),_L=yt();function Sl(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,v=void 0;a?(u=j(a.duration,200),f=j(a.easing,"cubicOut"),v=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),v=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(v=i.delay)),nt(v)&&(v=v(e,n)),nt(u)&&(u=u(e));var h={duration:u||0,delay:v,easing:f};return h}else return null}function P_(r,t,e,a,n,i,o){var s=!1,l;nt(n)?(o=i,i=n,n=null):ut(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Sl(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var v=f.duration,h=f.delay,c=f.easing,p={duration:v,delay:h||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,p):t.animateTo(e,p)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Rt(r,t,e,a,n,i){P_("update",r,t,e,a,n,i)}function $t(r,t,e,a,n,i){P_("enter",r,t,e,a,n,i)}function Vs(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 ri(r,t,e,a,n,i){Vs(r)||P_("leave",r,t,e,a,n,i)}function ub(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),ri(r,{style:{opacity:0}},t,e,a)}function Qa(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||ub(n,t,e,a)}):ub(r,t,e,a)}function Fr(r){_L(r).oldStyle=r.style}function a5(r){return _L(r).oldStyle}var Mm={},ct=["x","y"],ne=["width","height"],SL=0,xL=1,xl=2;function n5(r){return wt.extend(r)}var i5=kz;function o5(r,t){return i5(r,t)}function ra(r,t){Mm[r]=t}function ac(r){if(Mm.hasOwnProperty(r))return Mm[r]}function Zu(r,t,e,a){var n=hL(r,t);return e&&(a==="center"&&(e=wL(e,n.getBoundingRect())),TL(n,e)),n}function bL(r,t,e){var a=new Ie({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(wL(t,i))}}});return a}function wL(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Rr=Oz;function TL(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function js(r,t){return Sp(r,r,{lineWidth:t}),r}function s5(r,t){return YI(r,r,t),r}var Ch=mr;function zs(r,t){for(var e=pl([]);r&&r!==t;)Or(e,r.getLocalTransform(),e),r=r.parent;return e}function Jr(r,t,e){return t&&!He(t)&&(t=za.getLocalTransform(t)),e&&(t=Vr([],t)),ae([],r,t)}function Ap(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:ee(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:ee(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=Jr(i,t,e),ee(i[0])>ee(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function fb(r){return!r.isGroup}function l5(r){return r.shape!=null}function Lf(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){fb(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return l5(o)&&(s.shape=at(o.shape)),s}var i=a(r);t.traverse(function(o){if(fb(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Rt(o,l,e,ft(o).dataIndex)}}})}function CL(r,t){return W(r,function(e){var a=e[0];a=xt(a,t.x),a=zt(a,t.x+t.width);var n=e[1];return n=xt(n,t.y),n=zt(n,t.y+t.height),[a,n]})}function u5(r,t){var e=xt(r.x,t.x),a=zt(r.x+r.width,t.x+t.width),n=xt(r.y,t.y),i=zt(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Pf(r,t,e){var a=G({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),st(n,e),new Ie(a)):Zu(r.replace("path://",""),a,e,"center")}function gu(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(AL(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function AL(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,v=s-i,h=Zd(f,v,l,u);if(f5(h))return!1;var c=r-n,p=t-i,d=Zd(c,p,l,u)/h;if(d<0||d>1)return!1;var g=Zd(c,p,f,v)/h;return!(g<0||g>1)}function Zd(r,t,e,a){return r*a-e*t}function f5(r){return r<=1e-6&&r>=-1e-6}function bo(r,t,e,a,n){return t==null||(Lt(t)?jt[0]=jt[1]=jt[2]=jt[3]=t:(jt[0]=t[0],jt[1]=t[1],jt[2]=t[2],jt[3]=t[3]),a&&(jt[0]=xt(0,jt[0]),jt[1]=xt(0,jt[1]),jt[2]=xt(0,jt[2]),jt[3]=xt(0,jt[3])),e&&(jt[0]=-jt[0],jt[1]=-jt[1],jt[2]=-jt[2],jt[3]=-jt[3]),vb(r,jt,"x","width",3,1,n&&n[0]||0),vb(r,jt,"y","height",0,2,n&&n[1]||0)),r}var jt=[0,0,0,0];function vb(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=xt(0,zt(o,l)),r[a]<o?(r[a]=o,r[e]+=t[n]>=0?-t[n]:t[i]>=0?l+t[i]:ee(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function mn(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=Z(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(Ct(l),function(f){J(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ft(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:st({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Dm(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function vi(r,t){if(r)if(H(r))for(var e=0;e<r.length;e++)Dm(r[e],t);else Dm(r,t)}function R_(r){return!r||ee(r[1])<cv&&ee(r[2])<cv||ee(r[0])<cv&&ee(r[3])<cv}var cv=1e-5;function $u(r,t){return r?ot.copy(r,t):t.clone()}function E_(r,t){return t?go(r||Qt(),t):void 0}function wo(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function ML(r){var t=-1/0,e=1/0;Dm(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});function a(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function Mp(r,t,e){DL(r,t,e,-1/0)}function DL(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=xt(DL(s[l],t,e,a),a);else r.z=t,r.zlevel=e,a=xt(r.z2||0,a);if(n&&(n.z=t,n.zlevel=e,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=t,i.zlevel=e,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}function k_(r){return r.animation={duration:0},r}function Dp(r,t){return t?go(yu.transform,t):pl(yu.transform),yu.decomposeTransform(),Pa(r,yu),r}var yu=new za;yu.transform=Qt();function Im(r){var t=r.getZr().painter;return t.getType()==="canvas"?t:null}ra("circle",yn);ra("ellipse",wp);ra("sector",Ue);ra("ring",Df);ra("polygon",Ye);ra("polyline",ke);ra("rect",bt);ra("line",fe);ra("bezierCurve",If);ra("arc",Tp);const Uo=Object.freeze(Object.defineProperty({__proto__:null,Arc:Tp,BezierCurve:If,BoundingRect:ot,Circle:yn,CompoundPath:Cp,Ellipse:wp,Group:it,HOVER_LAYER_FOR_INCREMENTAL:xl,HOVER_LAYER_FROM_THRESHOLD:xL,HOVER_LAYER_NO:SL,Image:Ie,IncrementalDisplayable:r5,Line:fe,LinearGradient:ei,OrientedBoundingRect:yL,Path:wt,Point:lt,Polygon:Ye,Polyline:ke,RadialGradient:gL,Rect:bt,Ring:Df,Sector:Ue,Text:It,WH:ne,XY:ct,applyTransform:Jr,calcZ2Range:ML,clipPointsByRect:CL,clipRectByRect:u5,createIcon:Pf,decomposeTransform:Dp,ensureCopyRect:$u,ensureCopyTransform:E_,expandOrShrinkRect:bo,extendPath:o5,extendShape:n5,getCurrentCanvasPainter:Im,getShapeClass:ac,getTransform:zs,groupTransition:Lf,initProps:$t,isBoundingRectAxisAligned:R_,isElementRemoved:Vs,lineLineIntersect:AL,linePolygonIntersect:gu,makeImage:bL,makePath:Zu,mergePath:Rr,payloadDisableAnimation:k_,registerShape:ra,removeElement:ri,removeElementWithFadeOut:Qa,resizePath:TL,retrieveZInfo:wo,setTooltipConfig:mn,subPixelOptimize:Ch,subPixelOptimizeLine:js,subPixelOptimizeRect:s5,transformDirection:Ap,traverseElements:vi,traverseUpdateZ:Mp,updateProps:Rt},Symbol.toStringTag,{value:"Module"}));var Ip={};function IL(r,t){for(var e=0;e<rr.length;e++){var a=rr[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Lm(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=nt(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<rr.length;u++){var f=rr[u],v=t[f];l[f]=j(a?a.getFormattedLabel(n,f,null,i,v&&v.get("formatter")):null,s)}return l}function we(r,t,e,a){e=e||Ip;for(var n=r instanceof It,i=!1,o=0;o<Yu.length;o++){var s=t[Yu[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new It,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Lm(e,t),f=t.normal,v=!!f.getShallow("show"),h=Yt(f,a&&a.normal,e,!1,!n);h.text=u.normal,n||r.setTextConfig(nc(f,e,!1));for(var o=0;o<rr.length;o++){var c=rr[o],s=t[c];if(s){var p=l.ensureState(c),d=!!j(s.getShallow("show"),v);if(d!==v&&(p.ignore=!d),p.style=Yt(s,a&&a[c],e,!0,!n),p.style.text=u[c],!n){var g=r.ensureState(c);g.textConfig=nc(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!v,l.useStyle(h),l.dirty(),e.enableTextSetter&&(bl(l).setLabelText=function(y){var m=Lm(e,t,y);IL(l,m)})}else l&&(l.ignore=!0);r.dirty()}function ge(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<rr.length;a++){var n=rr[a];e[n]=r.getModel([n,t])}return e}function Yt(r,t,e,a,n){var i={};return v5(i,r,e,a,n),t&&G(i,t),i}function nc(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=j(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(a.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(a.layoutRect=t.layoutRect),a}function v5(r,t,e,a,n){e=e||Ip;var i=t.ecModel,o=i&&i.option.textStyle,s=h5(t),l;if(s){l={};var u="richInheritPlainLabel",f=j(t.get(u),i?i.get(u):void 0);for(var v in s)if(s.hasOwnProperty(v)){var h=t.getModel(["rich",v]);db(l[v]={},h,o,t,f,e,a,n,!1,!0)}}l&&(r.rich=l);var c=t.get("overflow");c&&(r.overflow=c);var p=t.get("lineOverflow");p&&(r.lineOverflow=p);var d=r,g=t.get("minMargin");if(g!=null)g=Lt(g)?g/2:0,d.margin=[g,g,g,g],d.__marginType=Ps.minMargin;else{var y=t.get("textMargin");y!=null&&(d.margin=sp(y),d.__marginType=Ps.textMargin)}db(r,t,o,null,null,e,a,n,!0,!1)}function h5(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Ip).rich;if(e){t=t||{};for(var a=Ct(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var hb=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],cb=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],pb=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function db(r,t,e,a,n,i,o,s,l,u){e=!o&&e||Ip;var f=i&&i.inheritColor,v=t.getShallow("color"),h=t.getShallow("textBorderColor"),c=j(t.getShallow("opacity"),e.opacity);(v==="inherit"||v==="auto")&&(f?v=f:v=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(v=v||e.color,h=h||e.textBorderColor),v!=null&&(r.fill=v),h!=null&&(r.stroke=h);var p=j(t.getShallow("textBorderWidth"),e.textBorderWidth);p!=null&&(r.lineWidth=p);var d=j(t.getShallow("textBorderType"),e.textBorderType);d!=null&&(r.lineDash=d);var g=j(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&c==null&&!u&&(c=i&&i.defaultOpacity),c!=null&&(r.opacity=c),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var y=0;y<hb.length;y++){var m=hb[y],_=n!==!1&&a?_r(t.getShallow(m),a.getShallow(m),e[m]):j(t.getShallow(m),e[m]);_!=null&&(r[m]=_)}for(var y=0;y<cb.length;y++){var m=cb[y],_=t.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<pb.length;y++){var m=pb[y],_=t.getShallow(m);_!=null&&(r[m]=_)}var x=t.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function O_(r,t){var e=t&&t.getModel("textStyle");return kr([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 bl=yt();function LL(r,t,e,a){if(r){var n=bl(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function PL(r,t,e,a,n){var i=bl(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=j(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var v=EI(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:v;var h=Lm({labelDataIndex:t,labelFetcher:n,defaultText:o?o(v):v+""},i.statesModels,v);IL(r,h)}r.percent=0,(i.prevValue==null?$t:Rt)(r,{percent:1},a,t,null,u)}var Ps={minMargin:1,textMargin:2},c5=["textStyle","color"],$d=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],qd=new It,p5=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(c5):null)},r.prototype.getFont=function(){return O_({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")},a=0;a<$d.length;a++)e[$d[a]]=this.getShallow($d[a]);return qd.useStyle(e),qd.update(),qd.getBoundingRect()},r}(),RL=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],d5=So(RL),g5=function(){function r(){}return r.prototype.getLineStyle=function(t){return d5(this,t)},r}(),EL=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],y5=So(EL),m5=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return y5(this,t,e)},r}(),At=function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){mt(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 a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,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(at(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(!Mt.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 a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r}();x_(At);xV(At);ye(At,g5);ye(At,m5);ye(At,AV);ye(At,p5);var _5=Math.round(Math.random()*10);function Yo(r){return[r||"",_5++].join("_")}function S5(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=ya(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=ya(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function x5(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,v=u.noEntryList,h={};for(A(i,function(m){h[m]=!0});v.length;){var c=v.pop(),p=f[c],d=!!h[c];d&&(s.call(l,c,p.originalDeps.slice()),delete h[c]),A(p.successor,d?y:g)}A(h,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&v.push(m)}function y(m){h[m]=!0,g(m)}};function e(i){var o={},s=[];return A(i,function(l){var u=a(o,l),f=u.originalDeps=t(l),v=n(f,i);u.entryCount=v.length,u.entryCount===0&&s.push(l),A(v,function(h){pt(u.predecessor,h)<0&&u.predecessor.push(h);var c=a(o,h);pt(c.successor,h)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return A(i,function(l){pt(o,l)>=0&&s.push(l)}),s}}function hi(r,t){return mt(mt({},r,!0),t,!0)}const b5={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},w5={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ic="ZH",N_="EN",Gs=N_,Ah={},B_={},kL=Mt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Gs).toUpperCase();return r.indexOf(ic)>-1?ic:Gs}():Gs;function OL(r,t){r=r.toUpperCase(),B_[r]=new At(t),Ah[r]=t}function T5(r){if(Z(r)){var t=Ah[r.toUpperCase()]||{};return r===ic||r===N_?at(t):mt(at(t),at(Ah[Gs]),!1)}else return mt(at(r),at(Ah[Gs]),!1)}function Pm(r){return B_[r]}function C5(){return B_[Gs]}OL(N_,b5);OL(ic,w5);var Rm=null;function A5(r){Rm||(Rm=r)}function se(){return Rm}function NL(r,t){var e=se(),a=t.breakOption,n=t.breakParsed;return!n&&e&&(n=e.parseAxisBreakOption(a,r)),n}function oc(r){var t=r.brk;return t?t.breaks:[]}function sc(r){var t=r.brk;return t?t.hasBreaks():!1}var V_=1e3,z_=V_*60,Pu=z_*60,Er=Pu*24,gb=Er*365,M5={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Mh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},D5="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",pv="{yyyy}-{MM}-{dd}",yb={year:"{yyyy}",month:"{yyyy}-{MM}",day:pv,hour:pv+" "+Mh.hour,minute:pv+" "+Mh.minute,second:pv+" "+Mh.second,millisecond:D5},dr=["year","month","day","hour","minute","second","millisecond"],I5=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function L5(r){return!Z(r)&&!nt(r)?P5(r):r}function P5(r){r=r||{};var t={},e=!0;return A(dr,function(a){e&&(e=r[a]==null)}),A(dr,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=dr[s],u=ut(i)&&!H(i)?i[l]:i,f=void 0;H(u)?(f=u.slice(),o=f[0]||""):Z(u)?(o=u,f=[o]):(o==null?o=Mh[a]:M5[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function wn(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ru(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 R5(r){return r===Ru(r)}function E5(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Lp(r,t,e,a){var n=Ho(r),i=n[BL(e)](),o=n[G_(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[F_(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[H_(e)](),v=(f-1)%12+1,h=n[W_(e)](),c=n[U_(e)](),p=n[Y_(e)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=a instanceof At?a:Pm(a||kL)||C5(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,wn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,wn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,wn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,wn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,wn(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,wn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,wn(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,wn(p,3)).replace(/{S}/g,p+"")}function k5(r,t,e,a,n){var i=null;if(Z(e))i=e;else if(nt(e)){var o={time:r.time,level:r.time?r.time.level:0},s=se();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Fs(r.value,n);i=e[f][f][0]}}return Lp(new Date(r.value),i,n,a)}function Fs(r,t){var e=Ho(r),a=e[G_(t)]()+1,n=e[F_(t)](),i=e[H_(t)](),o=e[W_(t)](),s=e[U_(t)](),l=e[Y_(t)](),u=l===0,f=u&&s===0,v=f&&o===0,h=v&&i===0,c=h&&n===1,p=c&&a===1;return p?"year":c?"month":h?"day":v?"hour":f?"minute":u?"second":"millisecond"}function Em(r,t,e){switch(t){case"year":r[VL(e)](0);case"month":r[zL(e)](1);case"day":r[GL(e)](0);case"hour":r[FL(e)](0);case"minute":r[HL(e)](0);case"second":r[WL(e)](0)}return r}function BL(r){return r?"getUTCFullYear":"getFullYear"}function G_(r){return r?"getUTCMonth":"getMonth"}function F_(r){return r?"getUTCDate":"getDate"}function H_(r){return r?"getUTCHours":"getHours"}function W_(r){return r?"getUTCMinutes":"getMinutes"}function U_(r){return r?"getUTCSeconds":"getSeconds"}function Y_(r){return r?"getUTCMilliseconds":"getMilliseconds"}function O5(r){return r?"setUTCFullYear":"setFullYear"}function VL(r){return r?"setUTCMonth":"setMonth"}function zL(r){return r?"setUTCDate":"setDate"}function GL(r){return r?"setUTCHours":"setHours"}function FL(r){return r?"setUTCMinutes":"setMinutes"}function HL(r){return r?"setUTCSeconds":"setSeconds"}function WL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function UL(r){if(!CI(r))return Z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function YL(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Rf=sp;function km(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&kr(f)?f:"-"}function i(f){return zr(f)}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Ho(r):r;if(isNaN(+l)){if(s)return"-"}else return Lp(l,a,e)}if(t==="ordinal")return Hy(r)?n(r):Lt(r)&&i(r)?r+"":"-";var u=un(r);return i(u)?UL(u):Hy(r)?n(r):typeof r=="boolean"?r+"":"-"}var mb=["a","b","c","d","e","f","g"],Kd=function(r,t){return"{"+r+(t??"")+"}"};function XL(r,t,e){H(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=mb[i];r=r.replace(Kd(o),Kd(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Kd(mb[l],s),e?Ke(u):u)}return r}function ZL(r,t,e){return A(t,function(a,n){r=r.replace("{"+n+"}",a)}),r}function N5(r,t){var e=Z(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ke(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ke(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function To(r,t){return t=t||"transparent",Z(r)?r:ut(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function lc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Dh={},Jd={},Ef=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(Dh),this._normalMasterList=a(Jd);function a(n,i){var o=[];return A(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){A(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Dh[t]=e;return}Jd[t]=e},r.get=function(t){return Jd[t]||Dh[t]},r}();function B5(r){return!!Dh[r]}var V5=1,$L=2;function z5(r){qL.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var qL=K();function KL(r){var t=r.getShallow("coord",!0),e=V5;if(t==null){var a=qL.get(r.type);a&&a.getCoord2&&(e=$L,t=a.getCoord2(r))}return{coord:t,from:e}}var Hs=0,Ih=1,JL=2;function jL(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=Hs;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=Ih,i||(n=Hs)):a==="box"&&(n=JL,!i&&!B5(e)&&(n=Hs))}return{coordSysType:e,kind:n}}function kf(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=jL(t),o=i.kind,s=i.coordSysType;if(n&&o!==Ih&&(o=Ih,s=e),o===Hs||s!==e)return Hs;var l=a(e,t);return l?(o===Ih?t.coordinateSystem=l:t.boxCoordinateSystem=l,o):Hs}var QL=function(r,t){var e=t.getReferringComponents(r,te).models[0];return e&&e.coordinateSystem},Lh=A,t2=["left","right","top","bottom","width","height"],ao=[["width","left","right"],["height","top","bottom"]];function X_(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),v=t.childAt(u+1),h=v&&v.getBoundingRect(),c,p;if(r==="horizontal"){var d=f.width+(h?-h.x+f.x:0);c=i+d,c>a||l.newline?(i=0,c=d,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);p=o+g,p>n||l.newline?(i+=s+e,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=c+e:o=p+e)})}var ho=X_;St(X_,"vertical");St(X_,"horizontal");function e2(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function G5(r,t){var e=_e(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===mu.point)i=e.refPoint,n=Jt(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=H(o)?o:[o,o];n=Jt(a,e.refContainer),i=e.boxCoordFrom===$L?e.refPoint:[$(s[0],n.width)+n.x,$(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function r2(r,t){var e=G5(r,t),a=e.viewRect,n=e.center,i=r.get("radius");H(i)||(i=[0,i]);var o=$(a.width,t.getWidth()),s=$(a.height,t.getHeight()),l=Math.min(o,s),u=$(i[0],l/2),f=$(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function Jt(r,t,e){e=Rf(e||0);var a=t.width,n=t.height,i=$(r.left,a),o=$(r.top,n),s=$(r.right,a),l=$(r.bottom,n),u=$(r.width,a),f=$(r.height,n),v=e[2]+e[0],h=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(f)&&(f=n-l-v-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-f-v),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-v;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(f)&&(f=n-v-o-(l||0));var p=new ot((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return p.margin=e,p}function a2(r,t,e){var a=r.getShallow("preserveAspect",!0);if(!a)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=a==="cover";return n>e&&!l||n<e&&l?(s.width=t.height*e,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=t.width/e,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),Jt(s,t)}var mu={rect:1,point:2};function _e(r,t,e){var a,n,i,o=r.boxCoordinateSystem,s;if(o){var l=KL(r),u=l.coord,f=l.from;if(o.dataToLayout){i=mu.rect,s=f;var v=o.dataToLayout(u);a=v.contentRect||v.rect}else e&&e.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=mu.point,s=f,n=o.dataToPoint(u))}return i==null&&(i=mu.rect),i===mu.rect&&(a||(a={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function Pp(r,t,e,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ot(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 v=Jt(st({width:u.width,height:u.height},t),e,a),h=o?v.x-u.x:0,c=s?v.y-u.y:0;return l==="raw"?(i.x=h,i.y=c):(i.x+=h,i.y+=c),i===r&&r.markRedraw(),!0}function F5(r,t){return r[ao[t][0]]!=null||r[ao[t][1]]!=null&&r[ao[t][2]]!=null}function qu(r){var t=r.layoutMode||r.constructor.layoutMode;return ut(t)?t:t?{type:t}:null}function Oa(r,t,e){var a=e&&e.ignoreSize;!H(a)&&(a=[a,a]);var n=o(ao[0],0),i=o(ao[1],1);l(ao[0],r,n),l(ao[1],r,i);function o(u,f){var v={},h=0,c={},p=0,d=2;if(Lh(u,function(m){c[m]=r[m]}),Lh(u,function(m){J(t,m)&&(v[m]=c[m]=t[m]),s(v,m)&&h++,s(c,m)&&p++}),a[f])return s(t,u[1])?c[u[2]]=null:s(t,u[2])&&(c[u[1]]=null),c;if(p===d||!h)return c;if(h>=d)return v;for(var g=0;g<u.length;g++){var y=u[g];if(!J(v,y)&&J(r,y)){v[y]=r[y];break}}return v}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,v){Lh(u,function(h){f[h]=v[h]})}}function Xo(r){return n2({},r)}function n2(r,t){return t&&r&&Lh(t2,function(e){J(t,e)&&(r[e]=t[e])}),r}var H5=yt(),Tt=function(r){N(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=Yo("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=qu(this),i=n?Xo(e):{},o=a.getTheme();mt(e,o.get(this.mainType)),mt(e,this.getDefaultOption()),n&&Oa(e,i,n)},t.prototype.mergeOption=function(e,a){mt(this.option,e,!0);var n=qu(this);n&&Oa(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!mV(e))return e.defaultOption;var a=H5(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=mt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return gl(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return e2(this,!1)},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}(At);VI(Tt,At);dp(Tt);S5(Tt);x5(Tt,W5);function W5(r){var t=[];return A(Tt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=W(t,function(e){return ya(e).main}),r!=="dataset"&&pt(t,"dataset")<=0&&t.unshift("dataset"),t}var B={color:{},darkColor:{},size:{}},ie=B.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};G(ie,{primary:ie.neutral80,secondary:ie.neutral70,tertiary:ie.neutral60,quaternary:ie.neutral50,disabled:ie.neutral20,border:ie.neutral30,borderTint:ie.neutral20,borderShade:ie.neutral40,background:ie.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ie.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ie.neutral70,axisLineTint:ie.neutral40,axisTick:ie.neutral70,axisTickMinor:ie.neutral60,axisLabel:ie.neutral70,axisSplitLine:ie.neutral15,axisMinorSplitLine:ie.neutral05});for(var Pi in ie)if(ie.hasOwnProperty(Pi)){var _b=ie[Pi];Pi==="theme"?B.darkColor.theme=ie.theme.slice():Pi==="highlight"?B.darkColor.highlight="rgba(255,231,130,0.4)":Pi.indexOf("accent")===0?B.darkColor[Pi]=Xn(_b,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):B.darkColor[Pi]=Xn(_b,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}B.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var i2="";typeof navigator<"u"&&(i2=navigator.platform||"");var ss="rgba(0, 0, 0, 0.2)",o2=B.color.theme[0],U5=Xn(o2,null,null,.9);const s2={darkMode:"auto",colorBy:"series",color:B.color.theme,gradientColor:[U5,o2],aria:{decal:{decals:[{color:ss,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ss,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ss,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ss,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ss,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ss,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:i2.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Le={Must:1,Might:2,Not:3},l2=yt();function Y5(r){l2(r).datasetMap=K()}function u2(r,t,e){var a={},n=$_(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=l2(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,v;r=r.slice(),A(r,function(d,g){var y=ut(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,v=p(y)),a[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});A(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=h.valueWayDim;c(a[y],_,m),c(o,_,m),h.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(i,0,m);else{var _=h.categoryWayDim;c(a[y],_,m),c(o,_,m),h.categoryWayDim+=m}});function c(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function Z_(r,t,e){var a={},n=$_(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===xr||i===ea)&&A(o,function(f,v){(ut(f)?f.name:f)==="name"&&(s=v)});var l=function(){for(var f={},v={},h=[],c=0,p=Math.min(5,e);c<p;c++){var d=v2(t.data,i,t.seriesLayoutBy,o,t.startIndex,c);h.push(d);var g=d===Le.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&h[f.n]===Le.Not)&&(f.n=c),y(f)&&h[f.n]!==Le.Not)return f;g||(d===Le.Might&&v.v==null&&c!==s&&(v.v=c),(v.n==null||v.n===v.v)&&(v.n=c))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(v)?v:null}();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function $_(r){var t=r.get("data",!0);if(!t)return gl(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},te).models[0]}function X5(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:gl(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},te).models}function f2(r,t){return v2(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function v2(r,t,e,a,n,i){var o,s=5;if(hr(r))return Le.Not;var l,u;if(a){var f=a[i];ut(f)?(l=f.name,u=f.type):Z(f)&&(l=f)}if(u!=null)return u==="ordinal"?Le.Must:Le.Not;if(t===De){var v=r;if(e===Wo){for(var h=v[i],c=0;c<(h||[]).length&&c<s;c++)if((o=S(h[n+c]))!=null)return o}else for(var c=0;c<v.length&&c<s;c++){var p=v[n+c];if(p&&(o=S(p[i]))!=null)return o}}else if(t===xr){var d=r;if(!l)return Le.Not;for(var c=0;c<d.length&&c<s;c++){var g=d[c];if(g&&(o=S(g[l]))!=null)return o}}else if(t===ea){var y=r;if(!l)return Le.Not;var h=y[l];if(!h||hr(h))return Le.Not;for(var c=0;c<h.length&&c<s;c++)if((o=S(h[c]))!=null)return o}else if(t===Sr)for(var m=r,c=0;c<m.length&&c<s;c++){var g=m[c],_=dl(g);if(!H(_))return Le.Not;if((o=S(_[i]))!=null)return o}function S(x){var b=Z(x);if(x!=null&&isFinite(Number(x))&&x!=="")return b?Le.Might:Le.Not;if(b&&x!=="-")return Le.Must}return Le.Not}var Om=K();function Z5(r,t){We(Om.get(r)==null&&t),Om.set(r,t)}function $5(r,t,e){var a=Om.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var Sb=yt(),q5=yt(),q_=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=Wt(this.get("color",!0)),i=this.get("colorLayer",!0);return h2(this,Sb,n,i,t,e,a)},r.prototype.clearColorPalette=function(){J5(this,Sb)},r}();function Nm(r,t,e,a){var n=Wt(r.get(["aria","decal","decals"]));return h2(r,q5,n,null,t,e,a)}function K5(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function h2(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:K5(a,o);if(f=f||e,!(!f||!f.length)){var v=f[l];return n&&(u[n]=v),s.paletteIdx=(l+1)%f.length,v}}function J5(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var dv,Vl,xb,bb="\0_ec_inner",j5=1,K_=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new At(i),this._locale=new At(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=Cb(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Cb(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?xb(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=K(),u=a&&a.replaceMergeMainTypeMap;Y5(this),A(e,function(v,h){v!=null&&(Tt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?at(v):mt(n[h],v,!0))}),u&&u.each(function(v,h){Tt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Tt.topologicalTravel(s,Tt.getAllClassMainTypes(),f,this);function f(v){var h=$5(this,v,Wt(e[v])),c=i.get(v),p=c?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",d=LI(c,h,p);nV(d,v,Tt),n[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,_;A(d,function(S,x){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=v==="series",T=Tt.getClass(v,S.keyInfo.subType,!C);if(!T)return;if(v==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===T)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var M=G({componentIndex:x},S.keyInfo);b=new T(w,this,this,M),G(b,M),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),n[v]=g,i.set(v,y),o.set(v,m),v==="series"&&dv(this)}this._seriesIndices||dv(this)},t.prototype.getOption=function(){var e=at(this.option);return A(e,function(a,n){if(Tt.hasClass(n)){for(var i=Wt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Uu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[bb],e},t.prototype.setTheme=function(e){this._theme=new At(e),this._resetOption("recreate",null)},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,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],A(Wt(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=wb("id",i,s):o!=null?l=wb("name",o,s):l=Bt(s,function(u){return!!u}),Tb(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):Bt(this._componentsMap.get(n),function(u){return!!u});return l(Tb(o,e));function s(u){var f=n+"Index",v=n+"Id",h=n+"Name";return u&&(u[f]!=null||u[v]!=null||u[h]!=null)?{mainType:n,index:u[f],id:u[v],name:u[h]}:null}function l(u){return e.filter?Bt(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(nt(e)){var o=a,s=e;i.each(function(v,h){for(var c=0;v&&c<v.length;c++){var p=v[c];p&&s.call(o,h,p,p.componentIndex)}})}else for(var l=Z(e)?i.get(e):ut(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=pe(e,null);return Bt(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Bt(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return Bt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){Vl(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){A(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){Vl(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return A(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return Vl(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){Vl(this);var n=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=K(n)},t.prototype.restoreData=function(e){dv(this);var a=this._componentsMap,n=[];a.each(function(i,o){Tt.hasClass(o)&&n.push(o)}),Tt.topologicalTravel(n,Tt.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&(i!=="series"||!Q5(o,e))&&o.restoreData()})})},t.internalField=function(){dv=function(e){var a=e._seriesIndices=[];A(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=K(a)},Vl=function(e){},xb=function(e,a){e.option={},e.option[bb]=j5,e._componentsMap=K({series:[]}),e._componentsCount=K();var n=a.aria;ut(n)&&n.enabled==null&&(n.enabled=!0),tG(a,e._theme.option),mt(a,s2,!1),e._mergeOption(a,null)}}(),t}(At);function Q5(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function tG(r,t){var e=r.color&&!r.colorLayer;A(t,function(a,n){n==="colorLayer"&&e||n==="color"&&r.color||Tt.hasClass(n)||(typeof a=="object"?r[n]=r[n]?mt(r[n],a,!1):at(a):r[n]==null&&(r[n]=a))})}function wb(r,t,e){if(H(t)){var a=K();return A(t,function(i){if(i!=null){var o=pe(i,null);o!=null&&a.set(i,!0)}}),Bt(e,function(i){return i&&a.get(i[r])})}else{var n=pe(t,null);return Bt(e,function(i){return i&&n!=null&&i[r]===n})}}function Tb(r,t){return t.hasOwnProperty("subType")?Bt(r,function(e){return e&&e.subType===t.subType}):r}function Cb(r){var t=K();return r&&A(Wt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ye(K_,q_);var eG=/^(min|max)?(.+)$/,rG=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(A(Wt(t.series),function(o){o&&o.data&&hr(o.data)&&Gh(o.data)}),A(Wt(t.dataset),function(o){o&&o.source&&hr(o.source)&&Gh(o.source)})),t=at(t);var n=this._optionBackup,i=aG(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],at(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=at(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)nG(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!oG(o,this._currentMediaIndices)&&(s=W(o,function(f){return at(f===-1?i.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function aG(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,v=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((v||f)&&(r.options=r.media=null),i=r),f&&H(u)&&A(u,function(c){c&&c.option&&(c.query?a.push(c):n||(n=c))}),h(i),A(l,function(c){return h(c)}),A(a,function(c){return h(c.option)});function h(c){A(t,function(p){p(c,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function nG(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return A(r,function(i,o){var s=o.match(eG);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();iG(a[u],i,l)||(n=!1)}}),n}function iG(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function oG(r,t){return r.join(",")===t.join(",")}var Ur=A,Ku=ut,Ab=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jd(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=Ab.length;e<a;e++){var n=Ab[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?mt(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?mt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ge(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,st(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function _u(r){Ge(r,"itemStyle"),Ge(r,"lineStyle"),Ge(r,"areaStyle"),Ge(r,"label"),Ge(r,"labelLine"),Ge(r,"upperLabel"),Ge(r,"edgeLabel")}function ue(r,t){var e=Ku(r)&&r[t],a=Ku(e)&&e.textStyle;if(a)for(var n=0,i=Ix.length;n<i;n++){var o=Ix[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Dr(r){r&&(_u(r),ue(r,"label"),r.emphasis&&ue(r.emphasis,"label"))}function sG(r){if(Ku(r)){jd(r),_u(r),ue(r,"label"),ue(r,"upperLabel"),ue(r,"edgeLabel"),r.emphasis&&(ue(r.emphasis,"label"),ue(r.emphasis,"upperLabel"),ue(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(jd(t),Dr(t));var e=r.markLine;e&&(jd(e),Dr(e));var a=r.markArea;a&&Dr(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!hr(i))for(var o=0;o<i.length;o++)Dr(i[o]);A(r.categories,function(u){_u(u)})}if(n&&!hr(n))for(var o=0;o<n.length;o++)Dr(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Dr(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)H(l[o])?(Dr(l[o][0]),Dr(l[o][1])):Dr(l[o]);r.type==="gauge"?(ue(r,"axisLabel"),ue(r,"title"),ue(r,"detail")):r.type==="treemap"?(Ge(r.breadcrumb,"itemStyle"),A(r.levels,function(u){_u(u)})):r.type==="tree"&&_u(r.leaves)}}function Wa(r){return H(r)?r:r?[r]:[]}function Mb(r){return(H(r)?r[0]:r)||{}}function lG(r,t){Ur(Wa(r.series),function(a){Ku(a)&&sG(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ur(e,function(a){Ur(Wa(r[a]),function(n){n&&(ue(n,"axisLabel"),ue(n.axisPointer,"label"))})}),Ur(Wa(r.parallel),function(a){var n=a&&a.parallelAxisDefault;ue(n,"axisLabel"),ue(n&&n.axisPointer,"label")}),Ur(Wa(r.calendar),function(a){Ge(a,"itemStyle"),ue(a,"dayLabel"),ue(a,"monthLabel"),ue(a,"yearLabel")}),Ur(Wa(r.radar),function(a){ue(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),Ur(Wa(r.geo),function(a){Ku(a)&&(Dr(a),Ur(Wa(a.regions),function(n){Dr(n)}))}),Ur(Wa(r.timeline),function(a){Dr(a),Ge(a,"label"),Ge(a,"itemStyle"),Ge(a,"controlStyle",!0);var n=a.data;H(n)&&A(n,function(i){ut(i)&&(Ge(i,"label"),Ge(i,"itemStyle"))})}),Ur(Wa(r.toolbox),function(a){Ge(a,"iconStyle"),Ur(a.feature,function(n){Ge(n,"iconStyle")})}),ue(Mb(r.axisPointer),"label"),ue(Mb(r.tooltip).axisPointer,"label")}function uG(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function fG(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=e)}function Db(r){r&&A(vG,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var vG=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hG=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Qd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function zl(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Qd.length;e++){var a=Qd[e][1],n=Qd[e][0];t[a]!=null&&(t[n]=t[a])}}function Ib(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Lb(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function cG(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function c2(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&c2(r[e].children,t)}function p2(r,t){lG(r,t),r.series=Wt(r.series),A(r.series,function(e){if(ut(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Ib(e.label);var n=e.data;if(n&&!hr(n))for(var i=0;i<n.length;i++)Ib(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=uG(e,"pointer.color");o!=null&&fG(e,"itemStyle.color",o)}else if(a==="bar"){zl(e),zl(e.backgroundStyle),zl(e.emphasis);var n=e.data;if(n&&!hr(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(zl(n[i]),zl(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Lb(e),c2(e.data,Lb)}else a==="graph"||a==="sankey"?cG(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&st(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Db(e)}}),r.dataRange&&(r.visualMap=r.dataRange),A(hG,function(e){var a=r[e];a&&(H(a)||(a=[a]),A(a,function(n){Db(n)}))})}var pG=Af(dG);function dG(r){var t=K();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(e){if(e.length!==0){var a=e[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&e.reverse(),A(e,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),gG(e)}})}function gG(r){A(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,v){var h=o.get(t.stackedDimension,v);if(isNaN(h))return n;var c,p;s?p=o.getRawIndex(v):c=o.get(t.stackedByDimension,v);for(var d=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=Wi(h,m),d=m;break}}}return a[0]=h,a[1]=d,a})})}var Rp=function(){function r(t){this.data=t.data||(t.sourceFormat===ea?{}:[]),this.sourceFormat=t.sourceFormat||qI,this.seriesLayoutBy=t.seriesLayoutBy||Kr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&f2(this,a)===Le.Must&&(n.type="ordinal")}}return r}();function J_(r){return r instanceof Rp}function Bm(r,t,e){e=e||d2(r);var a=t.seriesLayoutBy,n=mG(r,e,a,t.sourceHeader,t.dimensions),i=new Rp({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:at(t)});return i}function j_(r){return new Rp({data:r,sourceFormat:hr(r)?$n:Sr})}function yG(r){return new Rp({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:at(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function d2(r){var t=qI;if(hr(r))t=$n;else if(H(r)){r.length===0&&(t=De);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(H(n)||hr(n)){t=De;break}else if(ut(n)){t=xr;break}}}}else if(ut(r)){for(var i in r)if(J(r,i)&&He(r[i])){t=ea;break}}return t}function mG(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:Pb(n),startIndex:o,dimensionsDetectedCount:i};if(t===De){var s=r;a==="auto"||a==null?Rb(function(u){u!=null&&u!=="-"&&(Z(u)?o==null&&(o=1):o=0)},e,s,10):o=Lt(a)?a:a?1:0,!n&&o===1&&(n=[],Rb(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===Wo?s.length:s[0]?s[0].length:null}else if(t===xr)n||(n=_G(r));else if(t===ea)n||(n=[],A(r,function(u,f){n.push(f)}));else if(t===Sr){var l=dl(r[0]);i=H(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Pb(n),dimensionsDetectedCount:i}}function _G(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Ct(e)}function Pb(r){if(r){var t=K();return W(r,function(e,a){e=ut(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function Rb(r,t,e,a){if(t===Wo)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function g2(r){var t=r.sourceFormat;return t===xr||t===ea}var Ri,Ei,ki,Oi,Eb,kb,y2=function(){function r(t,e){var a=J_(t)?t:j_(t);this._source=a;var n=this._data=a.data,i=a.sourceFormat;a.seriesLayoutBy,i===$n&&(this._offset=0,this._dimSize=e,this._data=n),kb(this,n,a)}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;kb=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,v=l.startIndex,h=l.dimensionsDefine,c=Eb[Q_(u,f)];if(G(o,c),u===$n)o.getItem=e,o.count=n,o.fillStorage=a;else{var p=m2(u,f);o.getItem=q(p,null,s,v,h);var d=_2(u,f);o.count=q(d,null,s,v,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,v=0;v<u;v++)s[v]=l[f+v];return s},a=function(o,s,l,u){for(var f=this._data,v=this._dimSize,h=0;h<v;h++){for(var c=u[h],p=c[0]==null?1/0:c[0],d=c[1]==null?-1/0:c[1],g=s-o,y=l[h],m=0;m<g;m++){var _=f[m*v+h];y[o+m]=_,_<p&&(p=_),_>d&&(d=_)}c[0]=p,c[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};Eb=(t={},t[De+"_"+Kr]={pure:!0,appendData:i},t[De+"_"+Wo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[xr]={pure:!0,appendData:i},t[ea]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)f.push(l[v])})}},t[Sr]={appendData:i},t[$n]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),gv=function(r){H(r)||MI("series.data or dataset.source must be an array.")};Ri={},Ri[De+"_"+Kr]=gv,Ri[De+"_"+Wo]=gv,Ri[xr]=gv,Ri[ea]=function(r,t){for(var e=0;e<t.length;e++){var a=t[e].name;a==null&&MI("dimension name must not be null/undefined.")}},Ri[Sr]=gv;var Ob=function(r,t,e,a){return r[a]},SG=(Ei={},Ei[De+"_"+Kr]=function(r,t,e,a){return r[a+t]},Ei[De+"_"+Wo]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},Ei[xr]=Ob,Ei[ea]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=s!=null?r[s]:null;i[o]=l?l[a]:null}return i},Ei[Sr]=Ob,Ei);function m2(r,t){var e=SG[Q_(r,t)];return e}var Nb=function(r,t,e){return r.length},xG=(ki={},ki[De+"_"+Kr]=function(r,t,e){return Math.max(0,r.length-t)},ki[De+"_"+Wo]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},ki[xr]=Nb,ki[ea]=function(r,t,e){var a=e[0].name,n=a!=null?r[a]:null;return n?n.length:0},ki[Sr]=Nb,ki);function _2(r,t){var e=xG[Q_(r,t)];return e}var tg=function(r,t,e){return r[t]},bG=(Oi={},Oi[De]=tg,Oi[xr]=function(r,t,e){return r[e]},Oi[ea]=tg,Oi[Sr]=function(r,t,e){var a=dl(r);return a instanceof Array?a[t]:a},Oi[$n]=tg,Oi);function S2(r){var t=bG[r];return t}function Q_(r,t){return r===De?r+"_"+t:r}function Qs(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return S2(i)(a,o,s)}else{var l=a;return i===Sr&&(l=dl(a)),l}}}}var wG=/\{@(.+?)\}/g,Ep=function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,v=this.mainType,h=v==="series",c=a.userOutput&&a.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&H(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(nt(i))return l.status=e,l.dimensionIndex=n,i(l);if(Z(i)){var f=XL(i,l);return f.replace(wG,function(v,h){var c=h.length,p=h;p.charAt(0)==="["&&p.charAt(c-1)==="]"&&(p=+p.slice(1,c-1));var d=Qs(s,t,p);if(o&&H(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return Qs(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function Bb(r){var t,e;return ut(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Eu(r){return new TG(r)}var TG=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,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=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)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(v||c<p)){var d=this._progress;if(H(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],c,p,l,u);else this._doProgress(d,c,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){Vb.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:Vb.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),H(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(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}(),Vb=function(){var r,t,e,a,n,i={reset:function(l,u,f,v){t=l,r=u,e=f,a=v,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}}();function qn(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Lt(r)&&r!=null&&r!=="-"&&(r=+Ho(r)),r==null||r===""?NaN:Number(r))}var CG=K({number:function(r){return parseFloat(r)},time:function(r){return+Ho(r)},trim:function(r){return Z(r)?kr(r):r}});function x2(r){return CG.get(r)}var b2={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}},AG=function(){function r(t,e){if(!Lt(e)){var a="";Ot(a)}this._opFn=b2[t],this._rvalFloat=un(e)}return r.prototype.evaluate=function(t){return Lt(t)?this._opFn(t,this._rvalFloat):this._opFn(un(t),this._rvalFloat)},r}(),w2=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=Lt(t)?t:un(t),n=Lt(e)?e:un(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=Z(t),l=Z(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),MG=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=un(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=un(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function DG(r,t){return r==="eq"||r==="ne"?new MG(r==="eq",t):J(b2,r)?new AG(r,t):null}function T2(r){var t="",e=-1/0,a=-1/0,n=1/0,i=1/0;return r&&(r.g!=null&&(t+="G"+r.g,e=r.g),r.ge!=null&&(t+="GE"+r.ge,a=r.ge),r.l!=null&&(t+="L"+r.l,n=r.l),r.le!=null&&(t+="LE"+r.le,i=r.le)),{key:t,g:e,ge:a,l:n,le:i}}function C2(r,t){return t>r.g&&t>=r.ge&&t<r.l&&t<=r.le}var IG=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 qn(t,e)},r}();function LG(r,t){var e=new IG,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Kr&&Ot(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";J(l,y)&&Ot(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var v=m2(n,Kr);t.__isBuiltIn&&(e.getRawDataItem=function(d){return v(a,i,s,d)},e.getRawData=q(PG,null,r)),e.cloneRawData=q(RG,null,r);var h=_2(n,Kr);e.count=q(h,null,a,i,s);var c=S2(n);e.retrieveValue=function(d,g){var y=v(a,i,s,d);return p(y,g)};var p=e.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return c(d,g,y.name)}};return e.getDimensionInfo=q(EG,null,s,l),e.cloneAllDimensionInfo=q(kG,null,s),e}function PG(r){var t=r.sourceFormat;if(!t1(t)){var e="";Ot(e)}return r.data}function RG(r){var t=r.sourceFormat,e=r.data;if(!t1(t)){var a="";Ot(a)}if(t===De){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===xr){for(var n=[],i=0,o=e.length;i<o;i++)n.push(G({},e[i]));return n}}function EG(r,t,e){if(e!=null){if(Lt(e)||!isNaN(e)&&!J(t,e))return r[e];if(J(t,e))return t[e]}}function kG(r){return at(r)}var A2=K();function OG(r){r=at(r);var t=r.type,e="";t||Ot(e);var a=t.split(":");a.length!==2&&Ot(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,A2.set(t,r)}function NG(r,t,e){var a=Wt(r),n=a.length,i="";n||Ot(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=BG(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function BG(r,t,e,a){var n="";t.length||Ot(n),ut(r)||Ot(n);var i=r.type,o=A2.get(i);o||Ot(n);var s=W(t,function(u){return LG(u,o)}),l=Wt(o.transform({upstream:s[0],upstreamList:s,config:at(r.config)}));return W(l,function(u,f){var v="";ut(u)||Ot(v),u.data||Ot(v);var h=d2(u.data);t1(h)||Ot(v);var c,p=t[0];if(p&&f===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),c={seriesLayoutBy:Kr,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else c={seriesLayoutBy:Kr,sourceHeader:0,dimensions:u.dimensions};return Bm(u.data,c,null)})}function t1(r){return r===De||r===xr}var VG=typeof Uint32Array===ml?Array:Uint32Array,zG=typeof Uint16Array===ml?Array:Uint16Array,M2=typeof Int32Array===ml?Array:Int32Array,zb=typeof Float64Array===ml?Array:Float64Array,D2={float:zb,int:M2,ordinal:Array,number:Array,time:zb},eg;function ls(r){return r>65535?VG:zG}function GG(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Gb(r,t,e,a,n){var i=D2[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var Vm=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=eg[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],g2(n),this._dimensions=W(e,function(o){return{type:o.type,property:o.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 a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new D2[e||"float"](this._rawCount),this._rawExtent[i]=Re(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=Re());for(var l=i[t],u=o;u<s;u++){var f=a[u]=e.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=n[u];Gb(a,u,f.type,l,!0)}for(var v=[],h=s;h<l;h++)for(var c=h-s,p=0;p<i;p++){var f=n[p],d=eg.arrayRows.call(this,t[c]||v,f.property,c,p);a[p][h]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=W(o,function(m){return m.property}),f=0;f<s;f++){var v=o[f];l[f]||(l[f]=Re()),Gb(i,f,v.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var h=[],c=t;c<e;c++){h=n.getItem(c,h);for(var p=0;p<s;p++){var d=i[p],g=this._dimValueGetter(h,u[p],c,p);d[c]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=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 a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(n){isNaN(n)||e.push(n)}),Ee(e);var a=this.count();return a===0?0:a%2===1?e[(a-1)/2]:(e[a/2]+e[a/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,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=ls(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=ls(a._rawCount),o=new i(n),s=[],l=t.length,u=0,f=t[0],v=a._chunks,h=0;h<n;h++){var c=void 0,p=a.getRawIndex(h);if(l===0)c=e(h);else if(l===1){var d=v[f][p];c=e(d,h)}else{for(var g=0;g<l;g++)s[g]=v[t[g]][p];s[g]=h,c=e.apply(null,s)}c&&(o[u++]=p)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Ct(t),i=n.length;if(!i)return this;var o=e.count(),s=ls(e._rawCount),l=new s(o),u=0,f=n[0],v=t[f][0],h=t[f][1],c=e._chunks,p=!1;if(!e._indices){var d=0;if(i===1){for(var g=c[n[0]],y=0;y<a;y++){var m=g[y];(m>=v&&m<=h||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(i===2){for(var g=c[n[0]],_=c[n[1]],S=t[n[1]][0],x=t[n[1]][1],y=0;y<a;y++){var m=g[y],b=_[y];(m>=v&&m<=h||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y<o;y++){var w=e.getRawIndex(y),m=c[n[0]][w];(m>=v&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var C=!0,w=e.getRawIndex(y),T=0;T<i;T++){var M=n[T],m=c[M][w];(m<t[M][0]||m>t[M][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Re();for(var v=0;v<s;v++){for(var h=t.getRawIndex(v),c=0;c<o;c++)l[c]=n[e[c]][h];l[o]=v;var p=a&&a.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var f=0;f<p.length;f++){var d=e[f],g=p[f],y=u[d],m=n[d];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,v,h,c=new(ls(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var p=1;p<o-1;p+=l){for(var d=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+d)/2,m=0,_=d;_<g;_++){var S=this.getRawIndex(_),x=i[S];isNaN(x)||(m+=x)}m/=g-d;var b=p,w=Math.min(p+l,o),C=p-1,T=i[u];f=-1,h=b;for(var M=-1,D=0,_=b;_<w;_++){var S=this.getRawIndex(_),x=i[S];if(isNaN(x)){D++,M<0&&(M=S);continue}v=Math.abs((C-y)*(x-T)-(C-_)*(m-T)),v>f&&(f=v,h=S)}D>0&&D<w-b&&(c[s++]=Math.min(M,h),h=Math.max(M,h)),c[s++]=h,u=h}return c[s++]=this.getRawIndex(o-1),a._count=s,a._indices=c,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(t,e){for(var a=this.clone([t],!0),n=a._chunks,i=Math.floor(1/e),o=n[t],s=this.count(),l=new(ls(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var v=f,h=o[this.getRawIndex(v)],c=f,p=o[this.getRawIndex(c)],d=i;f+i>s&&(d=s-f);for(var g=0;g<d;g++){var y=this.getRawIndex(f+g),m=o[y];m<h&&(h=m,v=f+g),m>p&&(p=m,c=f+g)}var _=this.getRawIndex(v),S=this.getRawIndex(c);v<c?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),v=i._rawExtent[t]=Re(),h=new(ls(this._rawCount))(Math.ceil(f/l)),c=0,p=0;p<f;p+=l){l>f-p&&(l=f-p,s.length=l);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(p+n(s,y)||0,f-1));u[m]=y,y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y),h[c++]=m}return i._count=c,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t,e){var a=this._chunks[t],n=Re();if(!a)return n;var i=this.count(),o=!this._indices&&!e;if(o)return this._rawExtent[t].slice();var s=this._extent,l=s[t]||(s[t]={}),u=T2(e),f=u.key,v=l[f];if(v)return v.slice();for(var h=n[0],c=n[1],p=0;p<i;p++){var d=this.getRawIndex(p),g=a[d];(!e||C2(u,g))&&(g<h&&(h=g),g>c&&(c=g))}return l[f]=[h,c]},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&Ia(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?GG(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=at(this._extent),t._rawExtent=at(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}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,a,n,i){return qn(e[i],this._dimensions[i])}eg={arrayRows:t,objectRows:function(e,a,n,i){return qn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return qn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),I2=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(),a=!!e.length,n,i;if(yv(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=hr(s)?$n:Sr,i=[];var v=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},c=j(v.seriesLayoutBy,h.seriesLayoutBy)||null,p=j(v.sourceHeader,h.sourceHeader),d=j(v.dimensions,h.dimensions),g=c!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||d;n=g?[Bm(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[Bm(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&Hb(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),v="";n!=null&&!f&&Hb(v),s.push(f),l.push(u._getVersionSign())}),a?o=NG(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[yG(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 a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];yv(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new Vm,s.initData(new y2(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(yv(t)){var e=$_(t);return e?[e.getSourceManager()]:[]}else return W(X5(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(yv(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r}();function Fb(r){var t=r.option.transform;t&&Gh(r.option.transform)}function yv(r){return r.mainType==="series"}function Hb(r){throw new Error(r)}var FG="line-height:1";function L2(r){var t=r.lineHeight;return t==null?FG:"line-height:"+Ke(t+"")+"px"}function P2(r,t){var e=r.color||B.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||B.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ke(a+"")+"px;color:"+Ke(e)+";font-weight:"+Ke(n+""),valueStyle:"font-size:"+Ke(o+"")+"px;color:"+Ke(i)+";font-weight:"+Ke(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var HG=[0,10,20,30],WG=["",`
|
|
30
|
+
`,`
|
|
31
|
+
|
|
32
|
+
`,`
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
`];function ve(r,t){return t.type=r,t}function zm(r){return r.type==="section"}function R2(r){return zm(r)?UG:YG}function E2(r){if(zm(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return A(r.blocks,function(n){var i=E2(n);i>=t&&(t=i+ +(a&&(!i||zm(n)&&!n.noHeader)))}),t}return 0}function UG(r,t,e,a){var n=t.noHeader,i=XG(E2(t)),o=[],s=t.blocks||[];We(!s||H(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var f=new w2(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,g){var y=t.valueFormatter,m=R2(d)(y?G(G({},r),{valueFormatter:y}):r,d,g>0?i.html:0,a);m!=null&&o.push(m)});var v=r.renderMode==="richText"?o.join(i.richText):Gm(a,o.join(""),n?e:i.html);if(n)return v;var h=km(t.header,"ordinal",r.useUTC),c=P2(a,r.renderMode).nameStyle,p=L2(a);return r.renderMode==="richText"?k2(r,h,c)+i.richText+v:Gm(a,'<div style="'+c+";"+p+';">'+Ke(h)+"</div>"+v,e)}function YG(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=H(S)?S:[S],W(S,function(x,b){return km(x,H(c)?c[b]:c,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||B.color.secondary,n),h=i?"":km(l,"ordinal",u),c=t.valueType,p=o?[]:f(t.value,t.rawDataIndex),d=!s||!i,g=!s&&i,y=P2(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":v)+(i?"":k2(r,h,m))+(o?"":qG(r,p,d,g,_)):Gm(a,(s?"":v)+(i?"":ZG(h,!s,m))+(o?"":$G(p,d,g,_)),e)}}function Wb(r,t,e,a,n,i){if(r){var o=R2(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function XG(r){return{html:HG[r],richText:WG[r]}}function Gm(r,t,e){var a='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",i=L2(r);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function ZG(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ke(r)+"</span>"}function $G(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=H(r)?r:[r],'<span style="'+i+";"+a+'">'+W(r,function(o){return Ke(o)}).join(" ")+"</span>"}function k2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function qG(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(H(t)?t.join(" "):t,i)}function O2(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return To(a)}function N2(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var rg=function(){function r(){this.richTextStyles={},this._nextStyleNameId=y_()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=N5({color:e,type:t,renderMode:a,markerId:n});return Z(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};H(e)?A(e,function(i){return G(a,i)}):G(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function B2(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=H(s),u=O2(t,e),f,v,h,c;if(o>1||l&&!o){var p=KG(s,t,e,i,u);f=p.inlineValues,v=p.inlineValueTypes,h=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=Qs(n,e,i[0]),v=d.type}else c=f=l?s[0]:s;var g=m_(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return ve("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[ve("nameValue",{markerType:"item",markerColor:u,name:_,noName:!kr(_),value:f,valueType:v,rawDataIndex:n.getRawIndex(e)})].concat(h||[])})}function KG(r,t,e,a,n){var i=t.getData(),o=Ia(r,function(v,h,c){var p=i.getDimensionInfo(c);return v=v||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(v){f(Qs(i,e,v),v)}):A(r,f);function f(v,h){var c=i.getDimensionInfo(h);!c||c.otherDims.tooltip===!1||(o?u.push(ve("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:v,valueType:c.type})):(s.push(v),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Tn=yt();function mv(r,t){return r.getName(t)||r.getId(t)}var Ph="__universalTransitionEnabled",Xt=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Eu({count:jG,reset:QG}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Tn(this).sourceManager=new I2(this);i.prepareSource();var o=this.getInitialData(e,n);Yb(o,this),this.dataTask.context.data=o,Tn(this).dataBeforeProcessed=o,Ub(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=qu(this),i=n?Xo(e):{},o=this.subType;Tt.hasClass(o)&&(o+="Series"),mt(e,a.getTheme().get(this.subType)),mt(e,this.getDefaultOption()),yo(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Oa(e,i,n)},t.prototype.mergeOption=function(e,a){e=mt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=qu(this);n&&Oa(this.option,e,n);var i=Tn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);Yb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Tn(this).dataBeforeProcessed=o,Ub(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!hr(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&yo(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=Fm(this);if(a){var n=a.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Tn(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=Fm(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Tn(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return Tn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Tn(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.indicesOfNearest=function(e,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);for(var f=[],v=1/0,h=-1,c=0,p=o.getDimensionIndex(a),d=o.getStore(),g=0,y=d.count();g<y;g++){var m=d.get(p,g),_=l.dataToCoord(m),S=u-_,x=Math.abs(S);x<=i&&((x<v||x===v&&S>=0&&h<0)&&(v=x,h=S,c=0),S===h&&(f[c++]=g))}return f.length=c,f},t.prototype.formatTooltip=function(e,a,n){return B2({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Mt.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=q_.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),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,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=mv(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=Ct(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[mv(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ph])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ut(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var v=a[f],h=mv(e,v);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(v)}}else if(s==="single"||s===!0){var c=a[l-1],h=mv(e,c);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(c),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return Tt.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}(Tt);ye(Xt,Ep);ye(Xt,q_);VI(Xt,Tt);function Ub(r){var t=r.name;m_(r)||(r.name=JG(r)||t)}function JG(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return A(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function jG(r){return r.model.getRawData().count()}function QG(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),tF}function tF(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Yb(r,t){A(zu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,St(eF,t))})}function eF(r,t){var e=Fm(r);return e&&e.setOutputEnd((t||this).count()),t}function Fm(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var qt=function(){function r(){this.group=new it,this.uid=Yo("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();x_(qt);dp(qt);function Zo(){var r=yt();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var V2=yt(),rF=Zo(),Gt=function(){function r(){this.group=new it,this.uid=Yo("viewChart"),this.renderTask=Eu({plan:aF,reset:nF}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&Zb(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&Zb(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){vi(this.group,t)},r.markUpdateMethod=function(t,e){V2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Xb(r,t,e){r&&Xu(r)&&(t==="emphasis"?vn:hn)(r,e)}function Zb(r,t,e){var a=mo(r,t),n=t&&t.highlightKey!=null?Mz(t.highlightKey):null;a!=null?A(Wt(a),function(i){Xb(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){Xb(i,e,n)})}x_(Gt);dp(Gt);function aF(r){return rF(r.model)}function nF(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&V2(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),iF[l]}var iF={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)}}},uc="\0__throttleOriginMethod",$b="\0__throttleRate",qb="\0__throttleType";function e1(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];a=new Date().getTime(),l=this,u=c;var d=f||t,g=f||e;f=null,s=a-(g?n:i)-d,clearTimeout(o),g?o=setTimeout(v,d):s>=0?v():o=setTimeout(v,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(c){f=c},h}function wl(r,t,e,a){var n=r[t];if(n){var i=n[uc]||n,o=n[qb],s=n[$b];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=e1(i,e,a==="debounce"),n[uc]=i,n[qb]=a,n[$b]=e}return n}}function Ju(r,t){var e=r[t];e&&e[uc]&&(e.clear&&e.clear(),r[t]=e[uc])}var Kb=yt(),Jb={itemStyle:So(EL,!0),lineStyle:So(RL,!0)},oF={lineStyle:"stroke",itemStyle:"fill"};function z2(r,t){var e=r.visualStyleMapper||Jb[t];return e||(console.warn("Unknown style type '"+t+"'."),Jb.itemStyle)}function G2(r,t){var e=r.visualDrawType||oF[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var sF={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=z2(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=G2(r,a),u=o[l],f=nt(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||v){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||nt(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||nt(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=G({},o);g[l]=f(d),c.setItemVisual(p,"style",g)}}}},Gl=new At,lF={createOnAllSeries:!0,reset:function(r,t){if(!r.ignoreStyleOnData){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=z2(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Gl.option=l[a];var u=n(Gl),f=o.ensureUniqueItemVisual(s,"style");G(f,u),Gl.option.decal&&(o.setItemVisual(s,"decal",Gl.option.decal),Gl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},uF={performRawSeries:!0,overallReset:function(r){var t=K();r.eachSeries(function(e){if(!e.isColorBySeries()){var a=e.type+"-"+e.getColorBy();Kb(e).scope=t.get(a)||t.set(a,{})}}),r.eachSeries(function(e){if(!e.isColorBySeries()){var a=e.getRawData(),n={},i=e.getData(),o=Kb(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=G2(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],v=i.getItemVisual(f,"colorFromPalette");if(v){var h=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",p=a.count();h[l]=e.getColorFromPalette(c,o,p)}})}})}},_v=Math.PI;function fF(r,t){t=t||{},st(t,{text:"loading",textColor:B.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:B.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new it,a=new bt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new It({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new bt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Tp({shape:{startAngle:-_v/2,endAngle:-_v/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:_v*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:_v*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.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}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var F2=function(){function r(t,e,a,n){this._stageTaskMap=K(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.__preparePipelineContext?t.__preparePipelineContext(e,a):NI(t,e,a);t.pipelineContext=a.context=n},r.prototype.restorePipelines=function(t,e){var a=this,n=a._pipelineMap=K();e.eachSeries(function(i){var o=t.painter.type==="canvas"&&i.getProgressive(),s=i.uid;n.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),a._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";We(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;A(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),v=f.seriesTaskMap,h=f.overallTask;if(h){var c,p=h.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&h.dirty(),o.updatePayload(h,a);var d=o.getPerformArgs(h,n.block);p.each(function(g){g.perform(d)}),h.perform(d)&&(i=!0)}else v&&v.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.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,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=K(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(v){var h=v.uid,c=s.set(h,o&&o.get(h)||Eu({plan:dF,reset:gF,count:mF}));c.context={model:v,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(v,c)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Eu({reset:vF});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=K(),u=t.seriesType,f=t.getTargetSeries,v=t.dirtyOnOverallProgress,h=!1,c="";We(!t.createOnAllSeries,c),u?a.eachRawSeriesByType(u,p):f?f(a,n).each(p):A(a.getSeries(),p);function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(h=!0,Eu({reset:hF,onDirty:pF})));y.context={model:d,dirtyOnOverallProgress:v},y.agent=o,y.__block=v,i._pipe(d,y)}h&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return nt(t)&&(t={overallReset:t,seriesType:_F(t)}),t.uid=Yo("stageHandler"),e&&(t.visualType=e),t},r}();function vF(r){r.overallReset(r.ecModel,r.api,r.payload)}function hF(r){return r.dirtyOnOverallProgress&&cF}function cF(){this.agent.dirty(),this.getDownstream().dirty()}function pF(){this.agent&&this.agent.dirty()}function dF(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function gF(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Wt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?W(t,function(e,a){return H2(a)}):yF}var yF=H2(0);function H2(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function mF(r){return r.data.count()}function _F(r){fc=null;try{r(ju,W2)}catch{}return fc}var ju={},W2={},fc;U2(ju,K_);U2(W2,JI);ju.eachSeriesByType=ju.eachRawSeriesByType=function(r){fc=r};ju.eachComponent=function(r){r.mainType==="series"&&r.subType&&(fc=r.subType)};function U2(r,t){for(var e in t.prototype)r[e]=re}var rt=B.darkColor,jb=rt.background,Fl=function(){return{axisLine:{lineStyle:{color:rt.axisLine}},splitLine:{lineStyle:{color:rt.axisSplitLine}},splitArea:{areaStyle:{color:[rt.backgroundTint,rt.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:rt.axisMinorSplitLine}},axisLabel:{color:rt.axisLabel},axisName:{}}},Qb={label:{color:rt.secondary},itemStyle:{borderColor:rt.borderTint},dividerLineStyle:{color:rt.border}},Y2={darkMode:!0,color:rt.theme,backgroundColor:jb,axisPointer:{lineStyle:{color:rt.border},crossStyle:{color:rt.borderShade},label:{color:rt.tertiary}},legend:{textStyle:{color:rt.secondary},pageTextStyle:{color:rt.tertiary}},textStyle:{color:rt.secondary},title:{textStyle:{color:rt.primary},subtextStyle:{color:rt.quaternary}},toolbox:{iconStyle:{borderColor:rt.accent50},feature:{dataView:{backgroundColor:jb,textColor:rt.primary,textareaColor:rt.background,textareaBorderColor:rt.border,buttonColor:rt.accent50,buttonTextColor:rt.neutral00}}},tooltip:{backgroundColor:rt.neutral20,defaultBorderColor:rt.border,textStyle:{color:rt.tertiary}},dataZoom:{borderColor:rt.accent10,textStyle:{color:rt.tertiary},brushStyle:{color:rt.backgroundTint},handleStyle:{color:rt.neutral00,borderColor:rt.accent20},moveHandleStyle:{color:rt.accent40},emphasis:{handleStyle:{borderColor:rt.accent50}},dataBackground:{lineStyle:{color:rt.accent30},areaStyle:{color:rt.accent20}},selectedDataBackground:{lineStyle:{color:rt.accent50},areaStyle:{color:rt.accent30}}},visualMap:{textStyle:{color:rt.secondary},handleStyle:{borderColor:rt.neutral30}},timeline:{lineStyle:{color:rt.accent10},label:{color:rt.tertiary},controlStyle:{color:rt.accent30,borderColor:rt.accent30}},calendar:{itemStyle:{color:rt.neutral00,borderColor:rt.neutral20},dayLabel:{color:rt.tertiary},monthLabel:{color:rt.secondary},yearLabel:{color:rt.secondary}},matrix:{x:Qb,y:Qb,backgroundColor:{borderColor:rt.axisLine},body:{itemStyle:{borderColor:rt.borderTint}}},timeAxis:Fl(),logAxis:Fl(),valueAxis:Fl(),categoryAxis:Fl(),line:{symbol:"circle"},graph:{color:rt.theme},gauge:{title:{color:rt.secondary},axisLine:{lineStyle:{color:[[1,rt.neutral05]]}},axisLabel:{color:rt.axisLabel},detail:{color:rt.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:rt.background}},radar:function(){var r=Fl();return r.axisName={color:rt.axisLabel},r.axisLine.lineStyle.color=rt.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:rt.neutral20,textStyle:{color:rt.secondary}},emphasis:{itemStyle:{color:rt.neutral30}}}},sunburst:{itemStyle:{borderColor:rt.background}},map:{itemStyle:{borderColor:rt.border,areaColor:rt.neutral10},label:{color:rt.tertiary},emphasis:{label:{color:rt.primary},itemStyle:{areaColor:rt.highlight}},select:{label:{color:rt.primary},itemStyle:{areaColor:rt.highlight}}},geo:{itemStyle:{borderColor:rt.border,areaColor:rt.neutral10},emphasis:{label:{color:rt.primary},itemStyle:{areaColor:rt.highlight}},select:{label:{color:rt.primary},itemStyle:{color:rt.highlight}}}};Y2.categoryAxis.splitLine.show=!1;var SF=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(Z(t)){var i=ya(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var f=!1,v=0;v<o.length;v++){var h=o[v],c=u.lastIndexOf(h);if(c>0&&c===u.length-h.length){var p=u.slice(0,c);p!=="data"&&(e.mainType=p,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.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,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(v,h,c,p){return v[c]==null||h[p||c]===v[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Hm=["symbol","symbolSize","symbolRotate","symbolOffset"],tw=Hm.concat(["symbolKeepAspect"]),xF={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 a={},n={},i=!1,o=0;o<Hm.length;o++){var s=Hm[o],l=r.get(s);nt(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(G({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Ct(n);function f(v,h){for(var c=r.getRawValue(h),p=r.getDataParams(h),d=0;d<u.length;d++){var g=u[d];v.setItemVisual(h,g,n[g](c,p))}}return{dataEach:i?f:null}}},bF={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<tw.length;s++){var l=tw[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function r1(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Of(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)}}function X2(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function Z2(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=G({},n),o.dispatchAction(G(n,{type:a[1],seriesIndex:e(i,n)}))})})}function us(r,t,e,a,n){var i=r+t;e.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var v=o.getData(),h=mo(v,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:H(h)?v.getName(h[0]):v.getName(h),selected:Z(l)?l:G({},l)})}})}function wF(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(us("map","selectchanged",t,n,a),us("pie","selectchanged",t,n,a)):a.fromAction==="select"?(us("map","selected",t,n,a),us("pie","selected",t,n,a)):a.fromAction==="unselect"&&(us("map","unselected",t,n,a),us("pie","unselected",t,n,a))})}function no(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var Ar=new Hr,$2={};function TF(r,t){$2[r]=t}function CF(r){return $2[r]}var q2={};function AF(r,t){q2[r]=t}function MF(r){return q2[r]}var kp=yt();function DF(r){kp(r).prepare={}}function IF(r){kp(r).fullUpdate={}}function K2(r){return kp(r).prepare}function Tl(r){return kp(r).fullUpdate}var LF=Math.round(Math.random()*9),PF=typeof Object.defineProperty=="function",RF=function(){function r(){this._id="__ec_inner_"+LF++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var a=this._guard(t);return PF?Object.defineProperty(a,this._id,{value:e,enumerable:!1,configurable:!0}):a[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}(),EF=wt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),kF=wt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),OF=wt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,v=Math.sin(u),h=Math.cos(u),c=o*.6,p=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-v*c,l+s+h*c,e,a-p,e,a),r.bezierCurveTo(e,a-p,e-f+v*c,l+s+h*c,e-f,l+s),r.closePath()}}),NF=wt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),BF={line:fe,rect:bt,roundRect:bt,square:bt,circle:yn,diamond:kF,pin:OF,arrow:NF,triangle:EF},VF={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},vc={};A(BF,function(r,t){vc[t]=new r});var zF=wt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=qh(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=vc[a];n||(a="rect",n=vc[a]),VF[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function GF(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||B.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function he(r,t,e,a,n,i,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=bL(r.slice(8),new ot(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=Zu(r.slice(7),{},new ot(t,e,a,n),o?"center":"cover"):l=new zF({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=GF,i&&l.setColor(i),l}function Cl(r){return H(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function $o(r,t){if(r!=null)return H(r)||(r=[r,r]),[$(r[0],t[0])||0,$(j(r[1],r[0]),t[1])||0]}function io(r){return isFinite(r)}function FF(r,t,e){var a=t.x==null?0:t.x,n=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(a=a*e.width+e.x,n=n*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),a=io(a)?a:0,n=io(n)?n:1,i=io(i)?i:0,o=io(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function HF(r,t,e){var a=e.width,n=e.height,i=Math.min(a,n),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*a+e.x,s=s*n+e.y,l=l*i),o=io(o)?o:.5,s=io(s)?s:.5,l=l>=0&&io(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Wm(r,t,e){for(var a=t.type==="radial"?HF(r,t,e):FF(r,t,e),n=t.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function WF(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 Sv(r){return parseInt(r,10)}function Rs(r,t,e){var a=["width","height"][t],n=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[a]!=null&&e[a]!=="auto")return parseFloat(e[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Sv(s[a])||Sv(r.style[a]))-(Sv(s[i])||0)-(Sv(s[o])||0)||0}function UF(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Lt(r)?[r]:H(r)?r:null}function a1(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&UF(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=W(e,function(i){return i/n}),a/=n)}return[e,a]}var YF=new Ea(!0);function hc(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function ew(r){return typeof r=="string"&&r!=="none"}function cc(r){var t=r.fill;return t!=null&&t!=="none"}function rw(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 aw(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 Um(r,t,e){var a=b_(t.image,t.__image,e);if(gp(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*ch),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function XF(r,t,e,a,n){var i,o=hc(e),s=cc(e),l=e.strokePercent,u=l<1,f=!t.path;(!t.silent||u)&&f&&t.createPathProxy();var v=t.path||YF,h=t.__dirty;if(!a){var c=e.fill,p=e.stroke,d=s&&!!c.colorStops,g=o&&!!p.colorStops,y=s&&!!c.image,m=o&&!!p.image,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0;(d||g)&&(w=t.getBoundingRect()),d&&(_=h?Wm(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(S=h?Wm(r,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),y&&(x=h||!t.__canvasFillPattern?Um(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(b=h||!t.__canvasStrokePattern?Um(r,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?r.fillStyle=_:y&&(x?r.fillStyle=x:s=!1),g?r.strokeStyle=S:m&&(b?r.strokeStyle=b:o=!1)}var C=t.getGlobalScale();v.setScale(C[0],C[1],t.segmentIgnoreThreshold);var T,M;r.setLineDash&&e.lineDash&&(i=a1(t),T=i[0],M=i[1]);var D=!0;(f||h&Ts)&&(v.setDPR(r.dpr),u?v.setContext(null):(v.setContext(r),D=!1),v.reset(),t.buildPath(v,t.shape,a),v.toStatic(),t.pathUpdated()),D&&v.rebuildPath(r,u?l:1),T&&(r.setLineDash(T),r.lineDashOffset=M),a?(n.batchFill=s,n.batchStroke=o):e.strokeFirst?(o&&aw(r,e),s&&rw(r,e)):(s&&rw(r,e),o&&aw(r,e)),T&&r.setLineDash([])}function ZF(r,t,e){var a=t.__image=b_(e.image,t.__image,t,t.onload);if(!(!a||!gp(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(a,u,f,e.sWidth,e.sHeight,n,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,v=o-u,h=s-f;r.drawImage(a,u,f,v,h,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function $F(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||nn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=a1(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(hc(e)&&r.strokeText(n,e.x,e.y),cc(e)&&r.fillText(n,e.x,e.y)):(cc(e)&&r.fillText(n,e.x,e.y),hc(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var nw=["shadowBlur","shadowOffsetX","shadowOffsetY"],iw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function J2(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){Je(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?uo.opacity:o}(a||t.blend!==e.blend)&&(i||(Je(r,n),i=!0),r.globalCompositeOperation=t.blend||uo.blend);for(var s=0;s<nw.length;s++){var l=nw[s];(a||t[l]!==e[l])&&(i||(Je(r,n),i=!0),r[l]=r.dpr*(t[l]||0))}return(a||t.shadowColor!==e.shadowColor)&&(i||(Je(r,n),i=!0),r.shadowColor=t.shadowColor||uo.shadowColor),i}function ow(r,t,e,a,n){var i=t.style,o=a?null:e&&e.style||{};if(i===o)return!1;var s=J2(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(Je(r,n),s=!0),ew(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(Je(r,n),s=!0),ew(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(Je(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(Je(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<iw.length;f++){var v=iw[f],h=v[0];(a||i[h]!==o[h])&&(s||(Je(r,n),s=!0),r[h]=i[h]||v[1])}return s}function qF(r,t,e,a,n){return J2(r,t.style,e&&e.style,a,n)}function j2(r,t){var e=t.transform,a=r.dpr||1;e?r.setTransform(a*e[0],a*e[1],a*e[2],a*e[3],a*e[4],a*e[5]):r.setTransform(a,0,0,a,0,0)}function KF(r,t,e){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),j2(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=a}function JF(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 sw=1,lw=2,uw=3,fw=4;function jF(r){var t=cc(r),e=hc(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 Je(r,t){t.batchFill&&(t.batchFill=!1,r.fill()),t.batchStroke&&(t.batchStroke=!1,r.stroke())}function Q2(r,t){var e={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};oo(r,t,e),Ws(r,e)}function oo(r,t,e){var a=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ur,t.__isRendered=!1;return}var n=t.__clipPaths,i=e.prevElClipPaths,o=t.style,s=!1,l=!1;if((!i||WF(n,i))&&(i&&(Je(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),n&&n.length&&(Je(r,e),r.save(),KF(n,r,e),s=!0,e.prevElClipPaths=n)),e.allClipped){t.__dirty&=~ur,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(e.beforeBrushParam),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof wt&&t.autoBatch&&jF(o);s||JF(a,u.transform)?(Je(r,e),j2(r,t)):f||Je(r,e),t instanceof wt?(e.lastDrawType!==sw&&(l=!0,e.lastDrawType=sw),ow(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),XF(r,t,o,f,e)):t instanceof Js?(e.lastDrawType!==uw&&(l=!0,e.lastDrawType=uw),ow(r,t,u,l,e),$F(r,t,o)):t instanceof Ie?(e.lastDrawType!==lw&&(l=!0,e.lastDrawType=lw),qF(r,t,u,l,e),ZF(r,t,o)):t.getTemporalDisplayables&&(e.lastDrawType!==fw&&(l=!0,e.lastDrawType=fw),QF(r,t,e)),t.innerAfterBrush(),t.afterBrush&&(f&&Je(r,e),t.afterBrush()),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Ws(r,t){Je(r,t),t.prevElClipPaths&&r.restore()}function QF(r,t,e){var a=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(e.beforeBrushParam),l.innerBeforeBrush(),oo(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Ws(r,i);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(e.beforeBrushParam),l.innerBeforeBrush(),oo(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Ws(r,i),t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var ag=new RF,vw=new $s(100),hw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function tl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&ag.delete(r);var i=ag.get(r);if(i)return i;var o=st(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,ag.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],v=!0,h=0;h<hw.length;++h){var c=o[hw[h]];if(c!=null&&!H(c)&&!Z(c)&&!Lt(c)&&typeof c!="boolean"){v=!1;break}f.push(c)}var p;if(v){p=f.join(",")+(n?"-svg":"");var d=vw.get(p);d&&(n?u.svgElement=d:u.image=d)}var g=eP(o.dashArrayX),y=t3(o.dashArrayY),m=tP(o.symbol),_=e3(g),S=rP(y),x=!n&&Qe.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=T(),C;x&&(x.width=w.width*e,x.height=w.height*e,C=x.getContext("2d")),M(),v&&vw.put(p,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function T(){for(var D=1,L=0,I=_.length;L<I;++L)D=Mx(D,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=Mx(P,m[L].length);D*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function M(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var D=0,L=0;L<y.length;++L)D+=y[L];if(D<=0)return;for(var I=-S,P=0,R=0,E=0;I<w.height;){if(P%2===0){for(var O=R/2%m.length,k=0,V=0,z=0;k<w.width*2;){for(var F=0,L=0;L<g[E].length;++L)F+=g[E][L];if(F<=0)break;if(V%2===0){var U=(1-o.symbolSize)*.5,X=k+g[E][V]*U,Y=I+y[P]*U,Q=g[E][V]*o.symbolSize,gt=y[P]*o.symbolSize,Et=z/2%m[O].length;vt(X,Y,Q,gt,m[O][Et])}k+=g[E][V],++z,++V,V===g[E].length&&(V=0)}++E,E===g.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function vt(tt,dt,et,ht,Ft){var Dt=n?1:e,Vt=he(Ft,tt*Dt,dt*Dt,et*Dt,ht*Dt,o.color,o.symbolKeepAspect);if(n){var Ht=a.painter.renderOneToVNode(Vt);Ht&&b.children.push(Ht)}else Q2(C,Vt)}}}}function tP(r){if(!r||r.length===0)return[["rect"]];if(Z(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!Z(r[e])){t=!1;break}if(t)return tP([r]);for(var a=[],e=0;e<r.length;++e)Z(r[e])?a.push([r[e]]):a.push(r[e]);return a}function eP(r){if(!r||r.length===0)return[[0,0]];if(Lt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!Lt(r[a])){e=!1;break}if(e)return eP([r]);for(var n=[],a=0;a<r.length;++a)if(Lt(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=W(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function t3(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Lt(r)){var t=Math.ceil(r);return[t,t]}var e=W(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function e3(r){return W(r,function(t){return rP(t)})}function rP(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}var r3=Af(a3);function a3(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=tl(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=tl(n,t)}}})}var n3=1,i3=800,o3=900,s3=920,l3=1e3,u3=2e3,cw=5e3,aP=1e3,f3=1100,n1=2e3,nP=3e3,v3=4e3,Op=4500,h3=4600,c3=5e3,p3=6e3,iP=7e3,d3={PROCESSOR:{SERIES_FILTER:i3,AXIS_STATISTICS:s3,FILTER:l3,STATISTIC:cw,STATISTICS:cw},VISUAL:{LAYOUT:aP,PROGRESSIVE_LAYOUT:f3,GLOBAL:n1,CHART:nP,POST_CHART_LAYOUT:h3,COMPONENT:v3,BRUSH:c3,CHART_ITEM:Op,ARIA:p3,DECAL:iP}},ce="__flagInMainProcess",xv="__mainProcessVersion",Ce="__pendingUpdate",ng="__needsUpdateStatus",pw=/^[a-zA-Z0-9_]+$/,ig="__connectUpdateStatus",dw=0,g3=1,y3=2;function oP(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return lP(this,r,t)}}function sP(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return lP(this,r,t)}}function lP(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Hr.prototype[t].apply(r,e)}var uP=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Hr),fP=uP.prototype;fP.on=sP("on");fP.off=sP("off");var Ni,og,bv,Ua,wv,sg,lg,fs,vs,gw,yw,ug,mw,Tv,_w,vP,br,Sw,hs,hP=function(r){N(t,r);function t(e,a,n){var i=r.call(this,new SF)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i.__v_skip=!0,i._dom=e;var o="canvas",s="auto",l=!1;i[xv]=1,n.ssr&&VB(function(h){var c=ft(h),p=c.dataIndex;if(p!=null){var d=K();return d.set("series_index",c.seriesIndex),d.set("data_index",p),c.ssrType&&d.set("ssr_type",c.ssrType),d}});var u=i._zr=Tx(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:j(n.useDirtyRect,l),useCoarsePointer:j(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=e1(q(u.flush,u),17),i._updateTheme(a),i._locale=T5(n.locale||kL),i._coordSysMgr=new Ef;var f=i._api=_w(i);function v(h,c){return h.__prio-c.__prio}return gh(dc,v),gh(Zm,v),i._scheduler=new F2(i,f,Zm,dc),i._messageCenter=new uP,i._initEvents(),i.resize=q(i.resize,i),u.animation.on("frame",i._onframe,i),gw(u,i),yw(u,i),Gh(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,a=this._model,n=this._api;if(Sw(this),this[Ce]){var i=this[Ce].silent;this[ce]=!0,hs(this);try{Ni(this),Ua.update.call(this,null,this[Ce].updateParams)}catch(l){throw this[ce]=!1,this[Ce]=null,l}this._zr.flush(),this[ce]=!1,this[Ce]=null,fs.call(this,i),vs.call(this,i)}else if(e.unfinished){var o=n3;do{e.unfinished=!1;var s=Qe.getTime();e.performSeriesTasks(a),e.performDataProcessorTasks(a),sg(this,a),e.performVisualTasks(a),Tv(this,this._model,n,"remain",{}),o-=Qe.getTime()-s}while(o>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,a,n){if(!this[ce]){if(this._disposed){this.id;return}var i,o,s;if(ut(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[ce]=!0,hs(this),!this._model||a){var l=new rG(this._api),u=this._theme,f=this._model=new K_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},$m);var v={seriesTransition:s,optionChanged:!0};if(n)this[Ce]={silent:i,updateParams:v},this[ce]=!1,this.getZr().wakeUp();else{try{Ni(this),Ua.update.call(this,null,v)}catch(h){throw this[Ce]=null,this[ce]=!1,h}this._ssr||this._zr.flush(),this[Ce]=null,this[ce]=!1,fs.call(this,i),vs.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[ce]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Ce]&&(i==null&&(i=this[Ce].silent),o=this[Ce].updateParams,this[Ce]=null),this[ce]=!0,hs(this);try{this._updateTheme(e),n.setTheme(this._theme),Ni(this),Ua.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ce]=!1,s}this[ce]=!1,fs.call(this,i),vs.call(this,i)}}},t.prototype._updateTheme=function(e){Z(e)&&(e=cP[e]),e&&(e=at(e),e&&p2(e,!0),this._theme=e)},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||Mt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.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(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(xw[n]){var l=s,u=s,f=-s,v=-s,h=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();A(ku,function(_,S){if(_.group===n){var x=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(at(e)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),f=o(b.right,f),v=o(b.bottom,v),h.push({dom:x,left:b.left,top:b.top})}}),l*=c,u*=c,f*=c,v*=c;var p=f-l,d=v-u,g=Qe.createCanvas(),y=Tx(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return A(h,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new bt({shape:{x:0,y:0,width:p,height:d},style:{fill:e.connectedBackgroundColor}})),A(h,function(_){var S=new Ie({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return wv(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return wv(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return wv(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=Bs(n,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=Bs(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?r1(s,l,a):Of(s,a)},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(m3,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&no(l,function(d){var g=ft(d);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=G({},g.eventData),!0},!0),u){var v=u.componentType,h=u.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",h=u.seriesIndex);var c=v&&h!=null&&s.getComponent(v,h),p=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:c,view:p},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;A(Xm,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),wF(a,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&RI(this.getDom(),o1,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete ku[a.id]},t.prototype.resize=function(e){if(!this[ce]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Ce]&&(i==null&&(i=this[Ce].silent),n=!0,this[Ce]=null),this[ce]=!0,hs(this);try{n&&Ni(this),Ua.update.call(this,{type:"resize",animation:G({duration:0},e&&e.animation)})}catch(o){throw this[ce]=!1,o}this[ce]=!1,fs.call(this,i),vs.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(ut(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!qm[e]){var n=qm[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=G({},e);return a.type=Ym[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(ut(a)||(a={silent:!!a}),!!pc[e.type]&&this._model){if(this[ce]){this._pendingActions.push(e);return}var n=a.silent;lg.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Mt.browser.weChat&&this._throttledZrFlush(),fs.call(this,n),vs.call(this,n)}},t.prototype.updateLabelLayout=function(){Ar.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Ni=function(v){DF(v._model);var h=v._scheduler;h.restorePipelines(v._zr,v._model),h.prepareStageTasks(),og(v,!0),og(v,!1),h.plan()},og=function(v,h){for(var c=v._model,p=v._scheduler,d=h?v._componentsViews:v._chartsViews,g=h?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,_=0;_<d.length;_++)d[_].__alive=!1;h?c.eachComponent(function(b,w){b!=="series"&&S(w)}):c.eachSeries(S);function S(b){var w=b.__requireNewView;b.__requireNewView=!1;var C="_ec_"+b.id+"_"+b.type,T=!w&&g[C];if(!T){var M=ya(b.type),D=h?qt.getClass(M.main,M.sub):Gt.getClass(M.sub);T=new D,T.init(c,m),g[C]=T,d.push(T),y.add(T.group)}b.__viewId=T.__id=C,T.__alive=!0,T.__model=b,T.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!h&&p.prepareView(T,b,c,m)}for(var _=0;_<d.length;){var x=d[_];x.__alive?_++:(!h&&x.renderTask.dispose(),y.remove(x.group),x.dispose(c,m),d.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},bv=function(v,h,c,p,d){var g=v._model;if(g.setUpdatePayload(c),!p){A([].concat(v._componentsViews).concat(v._chartsViews),S);return}var y=S_(c,p,d),m=c.excludeSeriesId,_;m!=null&&(_=K(),A(Wt(m),function(x){var b=pe(x,null);b!=null&&_.set(b,!0)})),g&&g.eachComponent(y,function(x){var b=_&&_.get(x.id)!=null;if(!b)if(rb(c))if(x instanceof Xt)c.type===fo&&!c.notBlur&&!x.get(["emphasis","disabled"])&&_z(x,c,v._api);else{var w=I_(x.mainType,x.componentIndex,c.name,v._api),C=w.focusSelf,T=w.dispatchers;c.type===fo&&C&&!c.notBlur&&wm(x.mainType,x.componentIndex,v._api),T&&A(T,function(M){c.type===fo?vn(M):hn(M)})}else Cm(c)&&x instanceof Xt&&(bz(x,c,v._api),tb(x),br(v))},v),g&&g.eachComponent(y,function(x){var b=_&&_.get(x.id)!=null;b||S(v[p==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},v);function S(x){x&&x.__alive&&x[h]&&x[h](x.__model,g,v._api,c)}},Ua={prepareAndUpdate:function(v){Ni(this),Ua.update.call(this,v,v&&{optionChanged:v.newOption!=null})},update:function(v,h){var c=this._model,p=this._api,d=this._zr,g=this._coordSysMgr,y=this._scheduler;if(c){IF(c),c.setUpdatePayload(v),y.restoreData(c,v),y.performSeriesTasks(c),g.create(c,p),Ar.trigger("coordsys:aftercreate",c,p),y.performDataProcessorTasks(c,v),sg(this,c),g.update(c,p),a(c),y.performVisualTasks(c,v);var m=c.get("backgroundColor")||"transparent";d.setBackgroundColor(m);var _=c.get("darkMode");_!=null&&_!=="auto"&&d.setDarkMode(_),ug(this,c,p,v,h),Ar.trigger("afterupdate",c,p)}},updateTransform:function(v){var h=this,c=h._model,p=h._api;if(c){c.setUpdatePayload(v);var d=[];c.eachComponent(function(y,m){if(y!==ka){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,c,p,v);S&&S.update&&d.push(_)}else d.push(_)}});var g=K();c.eachSeries(function(y){var m=h._chartsMap[y.__viewId],_=y.pipelineContext;if(m.updateTransform&&!_.progressiveRender){var S=m.updateTransform(y,c,p,v);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),h._scheduler.performVisualTasks(c,v,{setDirty:!0,dirtyMap:g}),Tv(h,c,p,v,{},g),Ar.trigger("afterupdate",c,p)}},updateView:function(v){var h=this._model;h&&(h.setUpdatePayload(v),Gt.markUpdateMethod(v,"updateView"),a(h),this._scheduler.performVisualTasks(h,v,{setDirty:!0}),ug(this,h,this._api,v,{}),Ar.trigger("afterupdate",h,this._api))},updateVisual:function(v){var h=this,c=this._model;c&&(c.setUpdatePayload(v),c.eachSeries(function(p){p.getData().clearAllVisual()}),Gt.markUpdateMethod(v,"updateVisual"),a(c),this._scheduler.performVisualTasks(c,v,{visualType:"visual",setDirty:!0}),c.eachComponent(function(p,d){if(p!=="series"){var g=h.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,c,h._api,v)}}),c.eachSeries(function(p){var d=h._chartsMap[p.__viewId];d.updateVisual(p,c,h._api,v)}),Ar.trigger("afterupdate",c,this._api))},updateLayout:function(v){Ua.update.call(this,v)}};function e(v,h,c,p,d){if(v._disposed){v.id;return}for(var g=v._model,y=v._coordSysMgr.getCoordinateSystems(),m,_=Bs(g,c),S=0;S<y.length;S++){var x=y[S];if(x[h]&&(m=x[h](g,_,p,d))!=null)return m}}wv=e,sg=function(v,h){var c=v._chartsMap,p=v._scheduler;h.eachSeries(function(d){p.updateStreamModes(d,c[d.__viewId])})},lg=function(v,h){var c=this,p=this.getModel(),d=v.type,g=v.escapeConnect,y=pc[d],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&ya(m[0]);this[ce]=!0,hs(this);var x=[v],b=!1;v.batch&&(b=!0,x=W(v.batch,function(E){return E=st(G({},E),v),E.batch=null,E}));var w=[],C,T=[],M=y.nonRefinedEventType,D=Cm(v),L=rb(v);if(L&&sL(this._api),A(x,function(E){var O=y.action(E,p,c._api);if(y.refineEvent?T.push(O):C=O,C=C||G({},E),C.type=M,w.push(C),L){var k=__(v),V=k.queryOptionMap,z=k.mainTypeSpecified,F=z?V.keys()[0]:"series";bv(c,_,E,F),br(c)}else D?(bv(c,_,E,"series"),br(c)):S&&bv(c,_,E,S.main,S.sub)}),_!=="none"&&!L&&!D&&!S)try{this[Ce]?(Ni(this),Ua.update.call(this,v),this[Ce]=null):Ua[_].call(this,v)}catch(E){throw this[ce]=!1,E}if(b?C={type:M,escapeConnect:g,batch:w}:C=w[0],this[ce]=!1,!h){var I=void 0;if(y.refineEvent){var P=y.refineEvent(T,v,p,this._api).eventContent;We(ut(P)),I=st({type:y.refinedEventType},P),I.fromAction=v.type,I.fromActionPayload=v,I.escapeConnect=!0}var R=this._messageCenter;R.trigger(C.type,C),I&&R.trigger(I.type,I)}},fs=function(v){for(var h=this._pendingActions;h.length;){var c=h.shift();lg.call(this,c,v)}},vs=function(v){!v&&this.trigger("updated")},gw=function(v,h){v.on("rendered",function(c){h.trigger("rendered",c),v.animation.isFinished()&&!h[Ce]&&!h._scheduler.unfinished&&!h._pendingActions.length?h.trigger("finished"):v.refresh()})},yw=function(v,h){v.on("mouseover",function(c){var p=c.target,d=no(p,Xu);d&&(Sz(d,c,h._api),br(h))}).on("mouseout",function(c){var p=c.target,d=no(p,Xu);d&&(xz(d,c,h._api),br(h))}).on("click",function(c){var p=c.target,d=no(p,function(m){return ft(m).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",y=ft(d);h._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function a(v){v.clearColorPalette(),v.eachSeries(function(h){h.clearColorPalette()})}function n(v){var h=[],c=[],p=!1;if(v.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,b=_.getZLevelKey();p=p||!!b,(m==="series"?c:h).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:b})}),p){var d=h.concat(c),g,y;gh(d,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(d,function(m){var _=v.getComponent(m.type,m.idx),S=m.zlevel,x=m.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}ug=function(v,h,c,p,d){n(h),mw(v,h,c,p,d),A(v._chartsViews,function(g){g.__alive=!1}),Tv(v,h,c,p,d),A(v._chartsViews,function(g){g.__alive||g.remove(h,c)})},mw=function(v,h,c,p,d,g){A(g||v._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,c,p),l(m,y),f(m,y)})},Tv=function(v,h,c,p,d,g){var y=v._scheduler;d=G(d||{},{updatedSeries:h.getSeries()}),Ar.trigger("series:beforeupdate",h,c,d);var m=!1;h.eachSeries(function(_){var S=v._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,p),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),tb(_)}),y.unfinished=m||y.unfinished,Ar.trigger("series:layoutlabels",h,c,d),Ar.trigger("series:transition",h,c,d),h.eachSeries(function(_){var S=v._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(v,h),Ar.trigger("series:afterupdate",h,c,d)},br=function(v){v[ng]=!0,v.getZr().wakeUp()},hs=function(v){v[xv]=(v[xv]+1)%1e6},Sw=function(v){v[ng]&&(v.getZr().storage.traverse(function(h){Vs(h)||i(h)}),v[ng]=!1)};function i(v){for(var h=[],c=v.currentStates,p=0;p<c.length;p++){var d=c[p];d==="emphasis"||d==="blur"||d==="select"||h.push(d)}v.selected&&v.states.select&&h.push("select"),v.hoverState===xp&&v.states.emphasis?h.push("emphasis"):v.hoverState===Mf&&v.states.blur&&h.push("blur"),v.useStates(h)}function o(v,h){var c=v._zr;if(c.painter.type==="canvas"){var p=c.storage,d=0;p.traverse(function(y){y.isGroup||d++});var g=d>j(h.get("hoverLayerThreshold"),s2.hoverLayerThreshold)&&!Mt.node&&!Mt.worker;(v._usingTHL||g)&&(h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=v._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==xl&&(S.hoverLayer=g?xL:SL)})}}),v._usingTHL=g)}}function s(v,h){var c=v.get("blendMode")||null;h.eachRendered(function(p){p.isGroup||(p.style.blend=c)})}function l(v,h){if(!v.preventAutoZ){var c=wo(v);h.eachRendered(function(p){return Mp(p,c.z,c.zlevel),!0})}}function u(v,h){h.eachRendered(function(c){if(!Vs(c)){var p=c.getTextContent(),d=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(v,h){var c=v.getModel("stateAnimation"),p=v.isAnimationEnabled(),d=c.get("duration"),g=d>0?{duration:d,delay:c.get("delay"),easing:c.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Vs(y))return;if(y instanceof wt&&Dz(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}_w=function(v){return new(function(h){N(c,h);function c(){return h!==null&&h.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return v._model.getComponent(d.mainType,d.index);p=p.parent}},c.prototype.enterEmphasis=function(p,d){vn(p,d),br(v)},c.prototype.leaveEmphasis=function(p,d){hn(p,d),br(v)},c.prototype.enterBlur=function(p){aL(p),br(v)},c.prototype.leaveBlur=function(p){D_(p),br(v)},c.prototype.enterSelect=function(p){nL(p),br(v)},c.prototype.leaveSelect=function(p){iL(p),br(v)},c.prototype.getModel=function(){return v.getModel()},c.prototype.getViewOfComponentModel=function(p){return v.getViewOfComponentModel(p)},c.prototype.getViewOfSeriesModel=function(p){return v.getViewOfSeriesModel(p)},c.prototype.getECUpdateCycleVersion=function(){return v[xv]},c.prototype.usingTHL=function(){return v._usingTHL},c}(JI))(v)},vP=function(v){function h(c,p){for(var d=0;d<c.length;d++){var g=c[d];g[ig]=p}}A(Ym,function(c,p){v._messageCenter.on(p,function(d){if(xw[v.group]&&v[ig]!==dw){if(d&&d.escapeConnect)return;var g=v.makeActionFromEvent(d),y=[];A(ku,function(m){m!==v&&m.group===v.group&&y.push(m)}),h(y,dw),A(y,function(m){m[ig]!==g3&&m.dispatchAction(g)}),h(y,y3)}})})}}(),t}(Hr),i1=hP.prototype;i1.on=oP("on");i1.off=oP("off");i1.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var m3=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var pc={},Ym={},Xm={},Zm=[],$m=[],dc=[],cP={},qm={},ku={},xw={},_3=+new Date-0,o1="_echarts_instance_";function S3(r,t,e){{var a=x3(r);if(a)return a}var n=new hP(r,t,e);return n.id="ec_"+_3++,ku[n.id]=n,RI(r,o1,n.id),vP(n),Ar.trigger("afterinit",n),n}function x3(r){return ku[uV(r,o1)]}function pP(r,t){cP[r]=t}function dP(r){pt($m,r)<0&&$m.push(r)}function gP(r,t){l1(Zm,r,t,u3)}function b3(r){s1("afterinit",r)}function w3(r){s1("afterupdate",r)}function s1(r,t){Ar.on(r,t)}function Ga(r,t,e){var a,n,i,o,s;nt(t)&&(e=t,t=""),ut(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),i=r.refineEvent):(a=r,n=t);function l(f){return f.toLowerCase()}n=l(n||a);var u=i?l(a):n;pc[a]||(We(pw.test(a)&&pw.test(n)),i&&We(n!==a),pc[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:e,refineEvent:i},Xm[n]=1,i&&s&&(Xm[u]=1),Ym[u]=a)}function T3(r,t){Ef.register(r,t)}function C3(r,t){l1(dc,r,t,aP,"layout")}function qo(r,t){l1(dc,r,t,nP,"visual")}var bw=[];function l1(r,t,e,a,n,i){if((nt(t)||ut(t))&&(e=t,t=a),!(pt(bw,e)>=0)){bw.push(e);var o=F2.wrapStageHandler(e,n);o.__prio=t,o.__raw=e,r.push(o)}}function yP(r,t){qm[r]=t}function A3(r,t,e){var a=CF("registerMap");a&&a(r,t,e)}var M3=OG;qo(n1,sF);qo(Op,lF);qo(Op,uF);qo(n1,xF);qo(Op,bF);qo(iP,r3);dP(p2);gP(o3,pG);yP("default",fF);Ga({type:fo,event:fo,update:fo},re);Ga({type:wh,event:wh,update:wh},re);Ga({type:tc,event:A_,update:tc,action:re,refineEvent:u1,publishNonRefinedEvent:!0});Ga({type:xm,event:A_,update:xm,action:re,refineEvent:u1,publishNonRefinedEvent:!0});Ga({type:ec,event:A_,update:ec,action:re,refineEvent:u1,publishNonRefinedEvent:!0});function u1(r,t,e,a){return{eventContent:{selected:wz(e),isFromClick:t.isFromClick||!1}}}pP("default",{});pP("dark",Y2);var ww=[],D3={registerPreprocessor:dP,registerProcessor:gP,registerPostInit:b3,registerPostUpdate:w3,registerUpdateLifecycle:s1,registerAction:Ga,registerCoordinateSystem:T3,registerLayout:C3,registerVisual:qo,registerTransform:M3,registerLoading:yP,registerMap:A3,registerImpl:TF,PRIORITY:d3,ComponentModel:Tt,ComponentView:qt,SeriesModel:Xt,ChartView:Gt,registerComponentModel:function(r){Tt.registerClass(r)},registerComponentView:function(r){qt.registerClass(r)},registerSeriesModel:function(r){Xt.registerClass(r)},registerChartView:function(r){Gt.registerClass(r)},registerCustomSeries:function(r,t){AF(r,t)},registerSubTypeDefaulter:function(r,t){Tt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){NB(r,t)}};function _t(r){if(H(r)){A(r,function(t){_t(t)});return}pt(ww,r)>=0||(ww.push(r),nt(r)&&(r={install:r}),r.install(D3))}function Hl(r){return r==null?0:r.length||1}function Tw(r){return r}var cn=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||Tw,this._newKeyGetter=n||Tw,this.context=i,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,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=Hl(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],v=Hl(u),h=Hl(f);if(v>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(v===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(v===1&&h===1)this._update&&this._update(f,u),n[l]=null;else if(v>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(v>1)for(var c=0;c<v;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=Hl(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=Hl(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),I3=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 L3(r,t){var e={},a=e.encode={},n=K(),i=[],o=[],s={};A(r.dimensions,function(h){var c=r.getDimensionInfo(h),p=c.coordDim;if(p){var d=c.coordDimIndex;fg(a,p)[d]=h,c.isExtraCoord||(n.set(p,1),P3(c.type)&&(i[0]=h),fg(s,p)[d]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(h)}$I.each(function(g,y){var m=fg(a,y),_=c.otherDims[y];_!=null&&_!==!1&&(m[_]=c.name)})});var l=[],u={};n.each(function(h,c){var p=a[c];u[c]=p[0],l=l.concat(p)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=W(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var v=a.tooltip;return v&&v.length?o=v.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new I3(s,t),e}function fg(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function gc(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function P3(r){return!(r==="ordinal"||r==="time")}var Rh=function(){function r(t){this.otherDims={},t!=null&&G(this,t)}return r}(),R3=yt(),E3={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},mP=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=SP(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return j(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=g2(this.source),a=!xP(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=e?v.name:null,u=v.type,f=v.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!v||!v.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=E3[u]||"f",f&&(n+=f.uid),n+="$"}var c=this.source,p=[c.seriesLayoutBy,c.startIndex,n].join("$$");return{dimensions:i,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function _P(r){return r instanceof mP}function f1(r){for(var t=K(),e=0;e<(r||[]).length;e++){var a=r[e],n=ut(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function SP(r){var t=R3(r);return t.dimNameMap||(t.dimNameMap=f1(r.dimensionsDefine))}function xP(r){return r>30}var Wl=ut,Cn=W,k3=typeof Int32Array>"u"?Array:Int32Array,O3="e\0\0",Cw=-1,N3=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],B3=["_approximateExtent"],Aw,Cv,Ul,Yl,vg,Xl,hg,tr=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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;_P(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var v=a[f],h=Z(v)?new Rh({name:v}):v instanceof Rh?v:new Rh(v),c=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=c,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(c),i[c]=h,u[c]!=null&&(l=!0),h.createInvertedIndices&&(s[c]=[]),n&&(h.storeDimIndex=f),p.itemName===0&&(this._nameDimIdx=h.storeDimIndex),p.itemId===0&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=K();A(o,function(g){d.set(i[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 a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(Lt(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);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(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof Vm&&(i=t),!i){var o=this.dimensions,s=J_(t)||He(t)?new y2(t,o.length):t;i=new Vm;var l=Cn(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=L3(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 a=this._store.appendValues(t,e&&e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&hg(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==$n&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Sr;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var v=n.getItem(f,u);if(!this.hasItemOption&&KB(v)&&(this.hasItemOption=!0),v){var h=v.name;i[f]==null&&h!=null&&(i[f]=pe(h,null));var c=v.id;o[f]==null&&c!=null&&(o[f]=pe(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)hg(this,f);Aw(this)}},r.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},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){Wl(t)?G(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=Ul(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return Cv(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},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 a=this,n=this._store;return H(t)?n.getValues(Cn(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;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 a=t&&this._invertedIndicesMap[t],n=a&&a[e];return n==null||isNaN(n)?Cw:n},r.prototype.each=function(t,e,a){nt(t)&&(a=e,e=t,t=[]);var n=a||this,i=Cn(Yl(t),this._getStoreDimIndex,this);this._store.each(i,n?q(e,n):e)},r.prototype.filterSelf=function(t,e,a){nt(t)&&(a=e,e=t,t=[]);var n=a||this,i=Cn(Yl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?q(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Ct(t);return A(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){nt(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=Cn(Yl(t),this._getStoreDimIndex,this),s=Xl(this);return s._store=this._store.map(o,i?q(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=Cn(Yl(t),this._getStoreDimIndex,this);this._store.modify(o,i?q(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=Xl(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.minmaxDownSample=function(t,e){var a=Xl(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=Xl(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new At(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new cn(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Cv(t,a)},function(a){return Cv(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Wl(t)?G(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),H(i)?i=i.slice():Wl(i)&&(i=G({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Wl(e)?G(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Wl(t)?G(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,a){this._itemLayouts[t]=a?G(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Sm(a,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(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Cn(this.dimensions,this._getDimInfo,this),this.hostModel)),vg(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];nt(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(l_(arguments)))})},r.internalField=function(){Aw=function(t){var e=t._invertedIndicesMap;A(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new k3(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Cw;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Ul=function(t,e,a){return pe(t._getCategory(e,a),null)},Cv=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=Ul(t,t._idDimIdx,e)),a==null&&(a=O3+e),a},Yl=function(t){return H(t)||(t=t!=null?[t]:[]),t},Xl=function(t){var e=new r(t._schema?t._schema:Cn(t.dimensions,t._getDimInfo,t),t.hostModel);return vg(e,t),e},vg=function(t,e){A(N3.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,A(B3,function(a){t[a]=at(e[a])}),t._calculationInfo=G({},e._calculationInfo)},hg=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=Ul(t,i,e)),l==null&&o!=null&&(n[e]=l=Ul(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),n[e]=l}}}(),r}();function Nf(r,t){J_(r)||(r=j_(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=K(),i=[],o=V3(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xP(o),l=a===r.dimensionsDefine,u=l?SP(r):f1(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var v=K(f),h=new M2(o),c=0;c<h.length;c++)h[c]=-1;function p(T){var M=h[T];if(M<0){var D=a[T],L=ut(D)?D:{name:D},I=new Rh,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var R=i.length;return h[T]=R,I.storeDimIndex=T,i.push(I),I}return i[M]}if(!s)for(var c=0;c<o;c++)p(c);v.each(function(T,M){var D=Wt(T).slice();if(D.length===1&&!Z(D[0])&&D[0]<0){v.set(M,!1);return}var L=v.set(M,[]);A(D,function(I,P){var R=Z(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,g(p(R),M,P))})});var d=0;A(e,function(T){var M,D,L,I;if(Z(T))M=T,I={};else{I=T,M=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=G({},I),I.ordinalMeta=P,D=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=v.get(M);if(R!==!1){if(R=Wt(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&R.push(d++)}A(R,function(O,k){var V=p(O);if(l&&I.type!=null&&(V.type=I.type),g(st(V,I),M,k),V.name==null&&D){var z=D[k];!ut(z)&&(z={name:z}),V.name=V.displayName=z.name,V.defaultTooltip=z.defaultTooltip}L&&st(V.otherDims,L)})}});function g(T,M,D){$I.get(M)!=null?T.otherDims[M]=D:(T.coordDim=M,T.coordDimIndex=D,n.set(M,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(T){T.name==null&&(T.name=T.coordDim)}if(s)A(i,function(T){x(T)}),i.sort(function(T,M){return T.storeDimIndex-M.storeDimIndex});else for(var b=0;b<o;b++){var w=p(b),C=w.coordDim;C==null&&(w.coordDim=z3(S,n,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),x(w),w.type==null&&(f2(r,b)===Le.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return pp(i,function(T){return T.name},function(T,M){M>0&&(T.name=T.name+(M-1))}),new mP({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function V3(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;ut(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function z3(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var G3=function(){function r(t){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=t}return r}();function F3(r){var t=r.get("coordinateSystem"),e=new G3(t),a=H3[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var H3={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",te).models[0],i=r.getReferringComponents("yAxis",te).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),cs(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),cs(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",te).models[0];t.coordSysDims=["single"],e.set("single",n),cs(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",te).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),cs(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),cs(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),cs(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",te).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function cs(r){return r.get("type")==="category"}function W3(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;U3(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,v,h,c=!0;function p(S){return S.type!=="ordinal"&&S.type!=="time"}if(A(i,function(S,x){Z(S)&&(i[x]=S={name:S}),p(S)||(c=!1)}),A(i,function(S,x){l&&!S.isExtraCoord&&(!a&&!u&&S.ordinalMeta&&(u=S),!f&&p(S)&&(!c||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!n||n===S.coordDim)&&(f=S))}),f&&!a&&!u&&(a=!0),f){v="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,g=f.type,y=0;A(i,function(S){S.coordDim===d&&y++});var m={name:v,coordDim:d,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:h,coordDim:h,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,g),_.storeDimIndex=s.ensureCalculationDimension(v,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:v}}function U3(r){return!_P(r.schema)}function ai(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function bP(r,t){return ai(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Y3(r,t){var e=r.get("coordinateSystem"),a=Ef.get(e),n;return t&&t.coordSysDims&&(n=W(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=gc(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function X3(r,t,e){var a,n;return e&&A(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function _n(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=j_(r)):(n=a.getSource(),i=n.sourceFormat===Sr);var o=F3(t),s=Y3(t,o),l=e.useEncodeDefaulter,u=nt(l)?l:l?St(u2,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=Nf(n,f),h=X3(v.dimensions,e.createInvertedIndices,o),c=i?null:a.getSharedDataStore(v),p=W3(t,{schema:v,store:c}),d=new tr(v,t);d.setCalculationInfo(p);var g=h!=null&&Z3(n)?function(y,m,_,S){return S===h?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(i?n:c,null,g),d}function Z3(r){if(r.sourceFormat===Sr){var t=$3(r.data||[]);return!H(dl(t))}}function $3(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var aa=function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();dp(aa);var q3=0,Qu=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++q3,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&W(a,K3);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!Z(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r}();function K3(r){return ut(r)&&r.value!=null?r.value:r+""}var fr=0,tf=1,J3={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},wP=Ct(J3),tn=2,TP=3;function v1(r,t,e){var a;r=r||{};var n=se();if(n){var i=n.createBreakScaleMapper(t,e);i.hasBreaks()&&(A(wP,function(o){i[o]&&(r[o]=q(i[o],i))}),a=i)}return a==null&&Km(r,e),{brk:a,mapper:r}}function h1(r,t){A(wP,function(e){r[e]=t[e]})}function c1(r,t){r.freeze=re}function ef(r){return r.getExtentUnsafe(fr,tn)}function yc(r,t){return r.getExtentUnsafe(tf,t)||r.getExtentUnsafe(fr,t)}function j3(r){var t=yc(r,TP);return t[1]-t[0]}function Np(r){var t=r.getExtentUnsafe(fr,TP);return t[1]-t[0]}function Km(r,t){var e=r||{},a=[];return e._extents=a,a[fr]=t?t.slice():Re(),G(e,Q3),e}var Q3={needTransform:function(){return!1},normalize:function(r){var t=this._extents[tf]||this._extents[fr];return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])},scale:function(r){var t=this._extents[tf]||this._extents[fr];return r*(t[1]-t[0])+t[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var t=yc(this,null);return r>=t[0]&&r<=t[1]},getExtent:function(){return this._extents[fr].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,t){Mw(this._extents,fr,r,t)},setExtent2:function(r,t,e){var a=this._extents;a[r]||(a[r]=a[fr].slice()),Mw(a,r,t,e)},freeze:function(){}};function Mw(r,t,e,a){_o(e,a)&&(r[t][0]=e,r[t][1]=a)}function CP(r){return mc(r)||el(r)}function mc(r){return r.type==="interval"}function Bf(r){return r.type==="time"}function el(r){return r.type==="log"}function Xe(r){return r.type==="ordinal"}function tH(r){var t=d_(r),e=Fo(10,t),a=ln(r/e);return a?a===2?a=3:a===3?a=5:a*=2:a=1,Pt(a*e,-t)}function Co(r){return Ka(r)+2}function Av(r,t){return Wu(r)/Wu(t)}function cg(r,t,e){var a=e&&e.lookup;if(a){for(var n=0;n<a.from.length;n++)if(r===a.from[n])return a.to[n]}return Fo(t,r)}function AP(r,t,e){var a=r.slice();if(a[0]===a[1]){var n=e&&e.ctnShp;if(a[0]!==0){var i=ee(a[0]);t[1]||(a[1]+=i/2),a[0]-=i/2}else n&&(a[0]=-1),a[1]=1}return(!fn(a[0])||!fn(a[1]))&&(a[0]=0,a[1]=1),a[1]<a[0]&&a.reverse(),a}function eH(r,t){return[r[0]!==t[0],r[1]!==t[1]]}function Bp(r,t){return r=r||t,ln(xt(r,1))}function MP(r,t,e){var a=ef(r),n=a[0],i=r.count(),o=Math.max((t||0)+1,1);n!==0&&o>1&&i/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==a[0]&&l(a[0],!0,!0);for(var s=n;s<=a[1];s+=o)l(s,!1,s===a[0]||s===a[1]);s-o!==a[1]&&l(a[1],!0,!0);function l(u,f,v){e({value:u,offInterval:f},v)}}var rf=function(r){N(t,r);function t(e){var a=r.call(this)||this;a.type="ordinal",a.parse=t.parse,h1(a,t.decoratedMethods);var n=e.ordinalMeta;n||(n=new Qu({})),H(n)&&(n=new Qu({categories:W(n,function(o){return ut(o)?o.value:o})})),a._ordinalMeta=n;var i=v1(null,null,e.extent||[0,n.categories.length-1]);return a._mapper=i.mapper,c1(a),a}return t.parse=function(e){return e==null?e=NaN:Z(e)?(e=this._ordinalMeta.getOrdinal(e),e==null&&(e=NaN)):e=ln(e),e},t.prototype.getTicks=function(){var e=[];return MP(this,0,function(a){e.push(a)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=zt(s,a.length);o<l;++o){var u=n[o]=a[o];i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n[o]=f,i[f]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){var e=ef(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(ln(this._mapper.scale(e)))},transformIn:function(e,a){return this._mapper.transformIn(this._getTickNumber(e),a)},transformOut:function(e,a){return this.getRawOrdinalNumber(this._mapper.transformOut(e,a))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,a){return this._mapper.getExtentUnsafe(e,a)},setExtent:function(e,a){return this._mapper.setExtent(e,a)},setExtent2:function(e,a,n){return this._mapper.setExtent2(e,a,n)}},t}(aa);aa.registerClass(rf);function p1(r,t,e,a){for(var n=r.getTicks({expandToNicedExtent:!0}),i=[],o=r.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,v=[],h=l.value-u.value,c=h/t,p=Co(c);f<t-1;){var d=Pt(u.value+(f+1)*c,p);d>o[0]&&d<o[1]&&v.push(d),f++}var g=se();g&&g.pruneTicksByBreak("auto",v,e,function(y){return y},a,o),i.push(v)}}return i}var Kn=function(r){N(t,r);function t(e){var a=r.call(this)||this;a.type="interval",a.parse=t.parse,e=e||{};var n=NL(a,e),i=v1(a,n,null);return a.brk=i.brk,a._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},a}return t.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.getConfig=function(){return at(this._cfg)},t.prototype.setConfig=function(e){var a=ef(this);this._cfg=e=at(e),e.niceExtent==null&&(e.niceExtent=a.slice()),e.intervalPrecision==null&&(e.intervalPrecision=Co(e.interval))},t.prototype.getTicks=function(e){e=e||{};var a=this._cfg,n=a.interval,i=ef(this),o=a.niceExtent,s=a.intervalPrecision,l=se(),u=this.brk,f=l&&u,v=[];if(!n)return v;if(e.breakTicks==="only_break"&&f)return l.addBreaksToTicks(v,u.breaks,i),v;var h=3e3;i[0]<o[0]&&v.push({value:e.expandToNicedExtent?Pt(o[0]-n,s):i[0]});for(var c=function(_,S){return ln((S-_)/n)},p=a.intervalCount,d=o[0],g=0;;g++){if(p==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(g>p)break;d=zt(d,o[1]),g===p&&(d=o[1])}if(v.push({value:d}),d=Pt(d+n,s),u){var y=u.calcNiceTickMultiple(d,c);y>=0&&(d=Pt(d+y*n,s))}if(v.length>0&&d===v[v.length-1].value)break;if(v.length>h)return[]}var m=v.length?v[v.length-1].value:o[1];return i[1]>m&&v.push({value:e.expandToNicedExtent?Pt(m+n,s):i[1]}),f&&l.pruneTicksByBreak(e.pruneByBreak,v,u.breaks,function(_){return _.value},a.interval,i),f&&e.breakTicks!=="none"&&l.addBreaksToTicks(v,u.breaks,i),v},t.prototype.getMinorTicks=function(e){return p1(this,e,oc(this),this._cfg.interval)},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=Ka(e.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var i=Pt(e.value,n,!0);return UL(i)},t.type="interval",t}(aa);aa.registerClass(Kn);var rH=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},DP=function(r){N(t,r);function t(e){var a=r.call(this)||this;a.type="time",a.parse=t.parse,a._locale=e.locale,a._useUTC=e.useUTC,a._interval=0;var n=NL(a,e),i=v1(a,n,null);return a.brk=i.brk,a}return t.prototype.getLabel=function(e){return Lp(e.value,yb[E5(Ru(this._minLevelUnit))]||yb.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,a,n){return k5(e,a,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=ef(this),i=se(),o=this.brk,s=i&&o,l=[];if(!a)return l;var u=this._useUTC;if(s&&e.breakTicks==="only_break")return se().addBreaksToTicks(l,o.breaks,n),l;l=uH(this._minLevelUnit,this._approxInterval,u,n,Np(this),o);var f=dr.length-1,v=0;return A(l,function(h){h.time&&(f=Math.min(f,pt(dr,h.time.upperTimeUnit)),v=Math.max(v,h.time.level))}),s&&se().pruneTicksByBreak(e.pruneByBreak,l,o.breaks,function(h){return h.value},this._approxInterval,n),s&&e.breakTicks!=="none"&&se().addBreaksToTicks(l,o.breaks,n,function(h){for(var c=Math.max(pt(dr,Fs(h.vmin,u)),pt(dr,Fs(h.vmax,u))),p=0,d=0;d<dr.length;d++)if(!IP(dr[d],h.vmin,h.vmax,u)){p=d;break}var g=Math.min(p,f),y=Math.max(g,c);return{level:v,lowerTimeUnit:dr[y],upperTimeUnit:dr[g]}}),l},t.prototype.getMinorTicks=function(e){return p1(this,e,oc(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return Lt(e)?Math.round(e):+Ho(e)},t.type="time",t}(aa),Mv=[["second",V_],["minute",z_],["hour",Pu],["quarter-day",Pu*6],["half-day",Pu*12],["day",Er*1.2],["half-week",Er*3.5],["week",Er*7],["month",Er*31],["quarter",Er*95],["half-year",gb/2],["year",gb]];function IP(r,t,e,a){return Em(new Date(t),r,a).getTime()===Em(new Date(e),r,a).getTime()}function aH(r,t){return r/=Er,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function nH(r){var t=30*Er;return r/=t,r>6?6:r>3?3:r>2?2:1}function iH(r){return r/=Pu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Dw(r,t){return r/=t?z_:V_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function oH(r){return xt(g_(r,!0),1)}function sH(r,t,e){var a=Math.max(0,pt(dr,t)-1);return Em(new Date(r),dr[a],e).getTime()}function lH(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function uH(r,t,e,a,n,i){var o=3e3,s=I5,l=0;function u(E,O,k,V,z,F,U){for(var X=lH(z,E),Y=O,Q=new Date(Y);Y<k&&Y<=a[1]&&(U.push({value:Y}),!(l++>o));)if(Q[z](Q[V]()+E),Y=Q.getTime(),i){var gt=i.calcNiceTickMultiple(Y,X);gt>0&&(Q[z](Q[V]()+gt*E),Y=Q.getTime())}U.push({value:Y,notAdd:Y>a[1]})}function f(E,O,k){var V=[],z=!O.length;if(!IP(Ru(E),a[0],a[1],e)){z&&(O=[{value:sH(a[0],E,e)},{value:a[1]}]);for(var F=0;F<O.length-1;F++){var U=O[F].value,X=O[F+1].value;if(U!==X){var Y=void 0,Q=void 0,gt=void 0,Et=!1;switch(E){case"year":Y=Math.max(1,Math.round(t/Er/365)),Q=BL(e),gt=O5(e);break;case"half-year":case"quarter":case"month":Y=nH(t),Q=G_(e),gt=VL(e);break;case"week":case"half-week":case"day":Y=aH(t),Q=F_(e),gt=zL(e),Et=!0;break;case"half-day":case"quarter-day":case"hour":Y=iH(t),Q=H_(e),gt=GL(e);break;case"minute":Y=Dw(t,!0),Q=W_(e),gt=FL(e);break;case"second":Y=Dw(t,!1),Q=U_(e),gt=HL(e);break;case"millisecond":Y=oH(t),Q=Y_(e),gt=WL(e);break}X>=a[0]&&U<=a[1]&&u(Y,U,X,Q,gt,Et,V),E==="year"&&k.length>1&&F===0&&k.unshift({value:k[0].value-Y})}}for(var F=0;F<V.length;F++)k.push(V[F])}}for(var v=[],h=[],c=0,p=0,d=0;d<s.length;++d){var g=Ru(s[d]);if(R5(s[d])){f(s[d],v[v.length-1]||[],h);var y=s[d+1]?Ru(s[d+1]):null;if(g!==y){if(h.length){p=c,h.sort(function(E,O){return E.value-O.value});for(var m=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(m.push(h[_]),S>=a[0]&&S<=a[1]&&c++)}var x=n/t;if(c>x*1.5&&p>x/1.5||(v.push(m),c>x||r===s[d]))break}h=[]}}}for(var b=Bt(W(v,function(E){return Bt(E,function(O){return O.value>=a[0]&&O.value<=a[1]&&!O.notAdd})}),function(E){return E.length>0}),w=b.length-1,C=[],d=0;d<b.length;++d)for(var T=b[d],M=0;M<T.length;++M){var D=Fs(T[M].value,e);C.push({value:T[M].value,time:{level:w-d,upperTimeUnit:D,lowerTimeUnit:D}})}pp(C,pV,null),C.sort(function(E,O){return E.value-O.value});var L=C[0],I=C[C.length-1],P=Fs(a[0],e),R=Fs(a[1],e);return(!L||L.value>a[0])&&C.unshift({value:a[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!I||I.value<a[1])&&C.push({value:a[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),C}var fH=function(r,t){var e=r.getExtent();if(e[0]===e[1]&&(e[0]-=Er,e[1]+=Er),e[1]===-1/0&&e[0]===1/0){var a=new Date;e[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),e[0]=e[1]-Er}r.setExtent(e[0],e[1]);var n=Bp(t.splitNumber,10),i=Np(r)/n,o=t.minInterval,s=t.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=Mv.length,u=Math.min(rH(Mv,i,0,l),l-1),f=Mv[u][1],v=Mv[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:v})};aa.registerClass(DP);var Dv=0,Iv=1,vH=2,LP=function(r){N(t,r);function t(e){var a=r.call(this)||this;a.type="log",a.parse=Kn.parse,a.base=e.logBase||10;var n=[],i=[],o=a._lookup={from:n,to:i};n[Dv]=n[Iv]=i[Dv]=i[Iv]=NaN,h1(a,t.mapperMethods);var s=se(),l=e.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,a,{noNegative:!0},vH,u),a.powStub=new Kn({breakParsed:u.original}),a.intervalStub=new Kn({breakParsed:u.transformed}),c1(a,a.intervalStub),a}return t.prototype.getTicks=function(e){var a=this.base,n=this.powStub,i=se(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return W(o.getTicks(e||{}),function(f){var v=f.value,h=cg(v,a,u),c;if(i){var p=i.getTicksBreakOutwardTransform(this,f,oc(n),this._lookup);p&&(c=p.vBreak,h=p.tickVal)}return{value:h,break:c}},this)},t.prototype.getMinorTicks=function(e){return p1(this,e,oc(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,a){return this.intervalStub.getLabel(e,a)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Av(e,this.base))},scale:function(e){return cg(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,a){return e=Av(e,this.base),a&&a.depth===tn?e:this.intervalStub.transformIn(e,a)},transformOut:function(e,a){var n=a?a.depth:null;return Iw.depth=n,Lw.lookup=this._lookup,cg(n===tn?e:this.intervalStub.transformOut(e,Iw),this.base,Lw)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,a){this.setExtent2(fr,e,a)},setExtent2:function(e,a,n){if(!(!_o(a,n)||a<=0||n<=0)){var i=Pw,o=Pw;if(e===fr){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(e,i[Dv]=a,i[Iv]=n);var l=this.base;this.intervalStub.setExtent2(e,o[Dv]=Av(a,l),o[Iv]=Av(n,l))}},getFilter:function(){return{g:0}},sanitize:function(e,a){return _o(a[0],a[1])&&zr(e)&&e<=0&&(e=a[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,a){return a===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,a)}},t}(aa);aa.registerClass(LP);var Iw={},Lw={},Pw=[],PP={value:1,category:1,time:1,log:1},RP=yt();function Vp(r){var t=r.get("type");return(t==null||!J(PP,t)&&!aa.getClass(t))&&(t="value"),t}function Vf(r,t,e){var a=se(),n;switch(a&&(n=EP(r,t,e)),t){case"category":return new rf({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Re()});case"time":return new DP({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:n});case"log":return new LP({logBase:r.get("logBase"),breakOption:n});case"value":return new Kn({breakOption:n});default:return new(aa.getClass(t)||Kn)({})}}function hH(r,t,e){var a=r.getExtentUnsafe(fr,null),n=a[0],i=a[1];return _o(n,i)?n===t||i===t?pH:n<t&&i>t?cH:Jm:Jm}var cH=1,pH=2,Jm=3;function dH(r){RP(r).noOnMyZero=!0}function gH(r){return RP(r).noOnMyZero}function zf(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=L5(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if(Z(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(nt(t)){if(r.type==="category")return function(n,i){return t(_c(r,n),n.value-r.scale.getExtent()[0],null)};var a=se();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(_c(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function _c(r,t){var e=r.scale;return Xe(e)?e.getLabel(t):t.value}function d1(r){var t=r.get("interval");return t??"auto"}function yH(r){return r.type==="category"&&d1(r.getLabelModel())===0}function mH(r,t){var e={};return A(r.mapDimensionsAll(t),function(a){e[bP(r,a)]=!0}),Ct(e)}function rl(r){return r==="middle"||r==="center"}function af(r){return r.getShallow("show")}function EP(r,t,e){var a=r.get("breaks",!0);if(a!=null)return!se()||!e||!_H(t)?void 0:a}function _H(r){return r!=="category"}function kP(r,t,e,a,n,i){var o=el(r),s=o?r.intervalStub:r;if(s.setExtent(a[0],a[1]),o){var l=r.powStub,u={depth:tn},f=r.transformOut(a[0],u),v=r.transformOut(a[1],u),h=eH(e,a);t[0]&&!h[0]&&(f=n[0]),t[1]&&!h[1]&&(v=n[1]),l.setExtent(f,v)}s.setConfig(i)}function Al(r,t){return Xe(r)?r.getRawOrdinalNumber(t.value):t.value}function Gf(r,t){return Xe(r)&&!!t.get("boundaryGap")}var Ff=function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r}(),SH=yl(),Sc="|&",Ml=yt(),OP=-2,xH=-1,bH=yt();function g1(r,t){var e=r.model,a=Ml(Tl(e.ecModel)).keyed,n=a&&a.get(t);return n&&n.get(e.uid)}function wH(r,t){return BP(g1(r,t))}function TH(r,t){var e=[];return NP(r.model.ecModel,function(a){for(var n=0;n<t.length;n++)t[n]&&a.serByIdx[t[n].seriesIndex]&&e.push(BP(a))}),e}function NP(r,t){var e=Ml(Tl(r)).keyed;e&&e.each(function(a,n){a.each(function(i,o){t(i,n,o)})})}function BP(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function CH(r,t){var e=r.model.ecModel,a=Ml(Tl(e)).axSer;a&&zp(e,a.get(r.model.uid),t)}function Ao(r,t,e){var a=g1(r,t);a&&zp(r.model.ecModel,a.sers,e)}function zp(r,t,e){if(t)for(var a=0;a<t.length;a++){var n=t[a];r.isSeriesFiltered(n)||e(n)}}function AH(r,t){var e=g1(r,t);if(!e||!e.sers.length)return 0;var a=0;return zp(r.model.ecModel,e.sers,function(){a++}),a}function y1(r,t,e){var a=Ml(Tl(r)).keyed,n=a&&a.get(t);n&&n.each(function(i){e(i.axis)})}function VP(r,t){var e=r.model,a=Ml(Tl(e.ecModel)).keys;a&&A(a.get(e.uid),function(n){t(n)})}function MH(r){var t=bH(K2(r)),e=t.keyed||(t.keyed=K());NP(r,function(a,n,i){var o=e.get(n)||e.set(n,K()),s=o.get(i)||o.set(i,{});a.metrics.liPosMinGap&&zP.liPosMinGap(r,a,s)})}function DH(r,t){zP[r]=t}var zP={};function Mo(r,t,e){if(r){var a=t.ecModel,n=Ml(Tl(a)),i=r.model.uid,o=n.axSer||(n.axSer=K()),s=o.get(i)||o.set(i,[]);s.push(t);var l=t.subType,u=t.getBaseAxis()===r,f=Qm.get(jm(l,u,e))||Qm.get(jm(l,u,null));if(f){var v=n.keyed||(n.keyed=K()),h=n.keys||(n.keys=K()),c=f.key,p=v.get(c)||v.set(c,K()),d=p.get(i);d||(d=p.set(i,{axis:r,sers:[],serByIdx:[]}),d.metrics=f.getMetrics(r),(h.get(i)||h.set(i,[])).push(c)),d.sers.push(t),d.serByIdx[t.seriesIndex]=t}}}function jm(r,t,e){return r+Sc+j(t,!0)+Sc+(e||"")}function m1(r,t){var e=jm(t.seriesType,t.baseAxis,t.coordSysType);Qm.set(e,t),SH(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:MH})})}var Qm=K(),IH=yt(),al=1,LH=2,PH=3,GP=function(){function r(t,e,a,n,i){var o=Xe(t),s=o?e.getCategories().length:null,l;if(o){var u=e.getCategories(!0);l=u&&!u.length}var f=a.slice();(mc(t)||el(t)||Bf(t))&&(kI(f,Zl(t,e.get("dataMin",!0))),OI(f,Zl(t,e.get("dataMax",!0)))),hV(f)||(f[0]=f[1]=NaN);var v=[],h=[!1,!1],c=e.get("min",!0);c==="dataMin"?(v[0]=f[0],h[0]=!0):(v[0]=Zl(t,nt(c)?c({min:f[0],max:f[1]}):c),h[0]=v[0]!=null);var p=e.get("max",!0);p==="dataMax"?(v[1]=f[1],h[1]=!0):(v[1]=Zl(t,nt(p)?p({min:f[0],max:f[1]}):p),h[1]=v[1]!=null);var d=RH(t,e),g=o?null:f[1]-f[0]||Math.abs(f[0]);v[0]==null&&(v[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*g),v[1]==null&&(v[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*g),!fn(v[0])&&(v[0]=NaN),!fn(v[1])&&(v[1]=NaN);var y=l||Fe(v[0])||Fe(v[1])||o&&!s,m=mc(t),_=m&&e.needIncludeZero&&e.needIncludeZero();_&&(v[0]>0&&v[1]>0&&!h[0]&&(v[0]=0),v[0]<0&&v[1]<0&&!h[1]&&(v[1]=0));var S=!1;v[0]>v[1]&&(v.reverse(),S=!0);var x=Zl(t,e.get("startValue",!0)),b=x!=null;!zr(x)&&n&&(x=t.getDefaultStartValue?t.getDefaultStartValue():0),zr(x)&&(b||!m||_)&&(x<v[0]&&!h[0]?(v[0]=x,h[0]=!0):x>v[1]&&!h[1]&&(v[1]=x,h[1]=!0));var w=this._i={scale:t,dataMM:f,noZoomEffMM:v,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:x,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i};Rw(w,v)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,a=t.noZoomEffMM,n=t.zoomFixMM,i=t.fixMM,o={fixMM:i,zoomFixMM:n,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:a.slice()},s=o.effMM;return e[0]!=null&&(s[0]=e[0],i[0]=n[0]=!0),e[1]!=null&&(s[1]=e[1],i[1]=n[1]=!0),Rw(t,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},r}();function Rw(r,t){var e=r.scale,a=r.dataMM;e.sanitize&&(t[0]=e.sanitize(t[0],a),t[1]=e.sanitize(t[1],a),bh(t))}function Zl(r,t){return t==null?null:Fe(t)?NaN:r.parse(t)}function RH(r,t){var e;if(Xe(r))e=[0,0];else{var a=t.get("boundaryGap");typeof a=="boolean"&&(a=null),e=H(a)?a:[a,a]}return[Ew(e[0]),Ew(e[1])]}function Ew(r){return Ra(typeof r=="boolean"?0:r,1)||0}function FP(r){var t=IH(r.scale);return t.extent||(t.extent=Re()),t}function EH(r,t){FP(r).dimIdxInCoord=t.get(r.dim)}function Do(r,t){var e=r.scale,a=r.model,n=r.dim;e.rawExtentInfo||kH(e,r,n,a,t)}function kH(r,t,e,a,n){var i=FP(t),o=i.extent,s=!1;CH(t,function(f){if(f.boxCoordinateSystem){var v=KL(f).coord,h=i.dimIdxInCoord;if(h>=0){if(H(v)){var c=v[h];c!=null&&!H(c)&&dm(o,r.parse(c))}}}else if(f.coordinateSystem){var p=f.getData();if(p){var d=r.getFilter?r.getFilter():null;A(mH(p,e),function(g){vV(o,p.getApproximateExtent(g,d))})}f.__requireStartValue&&f.__requireStartValue(t)&&(s=!0)}});var l=NH(r,t,a),u=new GP(r,a,o,s,l);HP(r,u,n),i.extent=null}function OH(r,t){var e=r.scale;HP(e,new GP(e,r.model,t,!1,!1),PH)}function HP(r,t,e){r.rawExtentInfo=t,t.from=e}function Gp(r,t){_1.set(r,t)}var _1=K();function WP(r,t,e,a,n){r.rawExtentInfo||OH({scale:r,model:t},Re());var i=r.rawExtentInfo.makeFinal(),o=i.effMM;return r.setExtent(o[0],o[1]),r.setBlank(i.isBlank),a&&i.tggAxInv&&e&&!e.get("legacyMinMaxDontInverseAxis")&&(a.inverse=!a.inverse),i}function NH(r,t,e){var a=Gf(r,e),n=e.get("containShape",!0);if(n==null&&!a&&(n=!0),!n)return!1;var i=!1;return VP(t,function(o){i=!!_1.get(o)||i}),i}function BH(r,t,e,a){if(e.ctnShp){var n;if(VP(r,function(s){var l=_1.get(s);if(l){var u=l(r,a);u&&(n=n||[0,0],kI(n,u[0]),OI(n,u[1]),dH(r))}}),!!n){var i=t.getExtent();if(Xe(t))r.onBand||t.setExtent2(tf,zt(i[0],i[0]+n[0]),xt(i[1],i[1]+n[1]));else{var o=i.slice();e.zoomFixMM[0]||(o[0]=zt(o[0],t.transformOut(t.transformIn(o[0],null)+n[0],null))),e.zoomFixMM[1]||(o[1]=xt(o[1],t.transformOut(t.transformIn(o[1],null)+n[1],null))),(o[0]<i[0]||o[1]>i[1])&&t.setExtent2(tf,o[0],o[1])}}}}function kw(r,t){var e=el(r),a=e?r.intervalStub:r,n=t.fixMinMax||[],i=e?r.getExtent():null,o=a.getExtent(),s=AP(o,n,t.rawExtentResult);a.setExtent(s[0],s[1]),s=a.getExtent();var l=e?zH(a,t):VH(a,t),u=l.intervalPrecision,f=l.interval,v=t.userInterval;v!=null&&(l.interval=v,l.intervalPrecision=Co(v)),n[0]||(s[0]=Pt(Qr(s[0]/f)*f,u)),n[1]||(s[1]=Pt(Go(s[1]/f)*f,u)),v!=null&&(l.niceExtent=s.slice()),kP(r,n,o,s,i,l)}function VH(r,t){var e=Bp(t.splitNumber,5),a=Np(r),n=t.minInterval,i=t.maxInterval,o=g_(a/e,!0);n!=null&&o<n&&(o=n),i!=null&&o>i&&(o=i);var s=Co(o),l=r.getExtent(),u=[Pt(Go(l[0]/o)*o,s),Pt(Qr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function zH(r,t){var e=Bp(t.splitNumber,10),a=r.getExtent(),n=Np(r),i=xt(wI(n),1),o=e/n*i;o<=.5&&(i*=10);var s=Co(i),l=[Pt(Go(a[0]/i)*i,s),Pt(Qr(a[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function nl(r){var t=r.scale,e=r.model,a=e.axis,n=e.ecModel;GH(t,e,a,n)}function GH(r,t,e,a,n){var i=WP(r,t,a,e),o=mc(r)||Bf(r);UP(r,{splitNumber:t.get("splitNumber"),fixMinMax:i.fixMM,userInterval:t.get("interval"),minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null,rawExtentResult:i}),e&&a&&BH(e,r,i,a)}function UP(r,t){FH[r.type](r,t)}var FH={interval:kw,log:kw,time:fH,ordinal:re},HH=1e-8;function Ow(r,t){return Math.abs(r-t)<HH}function Ki(r,t,e){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=$a(n[0],n[1],o[0],o[1],t,e),n=o}var s=r[0];return(!Ow(n[0],s[0])||!Ow(n[1],s[1]))&&(a+=$a(n[0],n[1],s[0],s[1],t,e)),a!==0}var WH=[];function pg(r,t){for(var e=0;e<r.length;e++)ae(r[e],r[e],t)}function Nw(r,t,e,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(On(t,t,i),Nn(e,e,i))}}function UH(r){for(var t=0,e=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;t+=f,e+=(i+l)*f,a+=(o+u)*f,i=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var YP=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),Bw=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Vw=function(){function r(t){this.type="linestring",this.points=t}return r}(),XP=function(r){N(t,r);function t(e,a,n){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,n=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return UH(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Nw(s.exterior,n,i,e):A(s.points,function(l){Nw(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new ot(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Ki(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Ki(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new ot(e,a,n,i),u=o.calculateTransform(l),f=this.geometries,v=0;v<f.length;v++){var h=f[v];h.type==="polygon"?(pg(h.exterior,u),A(h.interiors,function(c){pg(c,u)})):A(h.points,function(c){pg(c,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t}(YP),YH=function(r){N(t,r);function t(e,a){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,a=e.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=pl(WH),o=e;o&&!o.isGeoSVGGraphicRoot;)Or(i,o.getLocalTransform(),i),o=o.parent;return Vr(i,i),ae(n,n,i),n},t}(YP);function XH(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return A(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=ZP(s,o,e);break;case"Polygon":dg(s,o,e);break;case"MultiLineString":dg(s,o,e);break;case"MultiPolygon":A(s,function(l,u){return dg(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function dg(r,t,e){for(var a=0;a<r.length;a++)r[a]=ZP(r[a],t[a],e)}function ZP(r,t,e){for(var a=[],n=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function ZH(r,t){return r=XH(r),W(Bt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Bw(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new Bw(l[0],l.slice(1)))});break;case"LineString":i.push(new Vw([n.coordinates]));break;case"MultiLineString":i.push(new Vw(n.coordinates))}var s=new XP(a[t||"name"],i,a.cp);return s.properties=a,s})}var $H=yt(),Ou=yt(),ta={estimate:1,determine:2};function xc(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function qH(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=r.scale;return{labels:W($P(e,a),function(n,i){return{formattedLabel:zf(r)(n,i),rawLabel:a.getLabel(n),tick:n}})}}return r.type==="category"?JH(r,t):QH(r)}function KH(r,t,e){var a=r.scale,n=r.getTickModel().get("customValues");return n?{ticks:$P(n,a)}:r.type==="category"?jH(r,t):{ticks:a.getTicks(e)}}function $P(r,t){var e=t.getExtent(),a=[];return A(r,function(n){n=t.parse(n),n>=e[0]&&n<=e[1]&&a.push(n)}),pp(a,dV,null),Ee(a),W(a,function(n){return{value:n}})}function JH(r,t){var e=r.getLabelModel(),a=qP(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function qP(r,t,e){var a=e4(r),n=d1(t),i=e.kind===ta.estimate;if(!i){var o=JP(a,n);if(o)return o}var s,l;nt(n)?s=bc(r,n,!1):(l=n==="auto"?r4(r,e):n,s=bc(r,l,!1));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return t0(a,n,u),!0}):t0(a,n,u),u}function jH(r,t){var e=t4(r),a=d1(t),n=JP(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),nt(a))i=bc(r,a,!0);else if(a==="auto"){var s=qP(r,r.getLabelModel(),xc(ta.determine));o=s.labelCategoryInterval,i=W(s.labels,function(l){return l.tick})}else o=a,i=bc(r,o,!0);return t0(e,a,{ticks:i,tickCategoryInterval:o})}function QH(r){var t=r.scale.getTicks(),e=zf(r);return{labels:W(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tick:a}})}}var t4=KP("axisTick"),e4=KP("axisLabel");function KP(r){return function(e){return Ou(e)[r]||(Ou(e)[r]={list:[]})}}function JP(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function t0(r,t,e){return r.list.push({key:t,value:e}),e}function r4(r,t){if(t.kind===ta.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Ou(r).autoInterval=e,!0}),e}var a=Ou(r).autoInterval;return a??(Ou(r).autoInterval=r.calculateCategoryInterval(t))}function a4(r,t){var e=t.kind,a=i4(r),n=zf(r),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var v=s[0],h=r.dataToCoord(v+1)-r.dataToCoord(v),c=Math.abs(h*Math.cos(i)),p=Math.abs(h*Math.sin(i)),d=0,g=0;v<=s[1];v+=u){var y=0,m=0,_=vp(n({value:v}),a.font,"center","top");y=_.width*1.3,m=_.height*1.3,d=Math.max(d,y,7),g=Math.max(g,m,7)}var S=d/c,x=g/p;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(S,x)));if(e===ta.estimate)return t.out.noPxChangeTryDetermine.push(q(n4,null,r,b,l)),b;var w=jP(r,b,l);return w??b}function n4(r,t,e){return jP(r,t,e)==null}function jP(r,t,e){var a=$H(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function i4(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 bc(r,t,e){var a=zf(r),n=r.scale,i=[],o=nt(t);return MP(n,o?0:t,function(s,l){var u=n.getLabel(s);if(o){var f=!!t(s.value,u);if(s.offInterval=!f,!f&&!l)return}i.push(e?s:{formattedLabel:a(s),rawLabel:u,tick:s})}),i}var o4=.8;function Oe(r,t){t=t||{};var e={w:NaN,w2:NaN},a=r.scale,n=t.fromStat,i=t.min,o=j3(a);zr(o)||(o=NaN);var s=r.getExtent(),l=ee(s[1]-s[0]);return Xe(a)?s4(e,r,o,l):n&&l4(e,r,o,l,n),i!=null&&(e.w=zr(e.w)?xt(i,e.w):i),e}function s4(r,t,e,a){var n=t.onBand,i=e+(n?1:0);i===0&&(i=1),r.w=a/i,!n&&e&&a&&(r.w2=r.w*e/a)}function l4(r,t,e,a,n){var i=!1,o=-1/0;A(n.key?[wH(t,n.key)]:TH(t,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===OP&&(i=!0))}),zr(e)&&e>0&&zr(o)?(r.w=a/e*o,r.w2=o):i&&(r.w=a*o4,r.w2=r.w*e/a)}var zw=[0,1],na=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this.scale;return t=a.normalize(a.parse(t)),kt(t,zw,Gw(this),e)},r.prototype.coordToData=function(t,e){var a=kt(t,Gw(this),zw,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(),a=KH(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=W(a.ticks,function(s){return{coord:this.dataToCoord(Al(this.scale,s)),tick:s}},this),i=e.get("alignWithLabel"),o=u4(this,n,i);return W(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(Xe(this.scale))return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=W(a,function(i){return W(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||xc(ta.determine),qH(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Oe(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(t){return t=t||xc(ta.determine),a4(this,t)},r}();function Gw(r){var t=r.getExtent();if(r.onBand){var e=t[1]-t[0],a=e/r.scale.count()/2;t[0]+=a,t[1]-=a}return t}function u4(r,t,e){var a=t.length;if(!r.onBand||e||!a)return!1;var n=Oe(r).w;if(!n)return!1;A(t,function(s){s.coord-=n/2});var i=r.scale.getExtent(),o=t[a-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+n,tick:{value:i[1]+1}}),!0}var $l=Math.PI*2,Bi=Ea.CMD,f4=["top","right","bottom","left"];function v4(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function h4(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,v=s*e+t;if(Math.abs(a-n)%$l<1e-4)return l[0]=f,l[1]=v,u-e;if(i){var h=a;a=yr(n),n=yr(h)}else a=yr(a),n=yr(n);a>n&&(n+=$l);var c=Math.atan2(s,o);if(c<0&&(c+=$l),c>=a&&c<=n||c+$l>=a&&c+$l<=n)return l[0]=f,l[1]=v,u-e;var p=e*Math.cos(a)+r,d=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function wc(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,v=a-t,h=Math.sqrt(f*f+v*v);f/=h,v/=h;var c=l*f+u*v,p=c/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var d=o[0]=r+p*f,g=o[1]=t+p*v;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function QP(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Zr=[];function c4(r,t,e){var a=QP(t.x,t.y,t.width,t.height,r.x,r.y,Zr);return e.set(Zr[0],Zr[1]),a}function p4(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,v=r.x,h=r.y,c=0;c<f.length;){var p=f[c++];c===1&&(a=f[c],n=f[c+1],i=a,o=n);var d=u;switch(p){case Bi.M:i=f[c++],o=f[c++],a=i,n=o;break;case Bi.L:d=wc(a,n,f[c],f[c+1],v,h,Zr,!0),a=f[c++],n=f[c++];break;case Bi.C:d=aI(a,n,f[c++],f[c++],f[c++],f[c++],f[c],f[c+1],v,h,Zr),a=f[c++],n=f[c++];break;case Bi.Q:d=iI(a,n,f[c++],f[c++],f[c],f[c+1],v,h,Zr),a=f[c++],n=f[c++];break;case Bi.A:var g=f[c++],y=f[c++],m=f[c++],_=f[c++],S=f[c++],x=f[c++];c+=1;var b=!!(1-f[c++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,c<=1&&(i=s,o=l);var w=(v-g)*_/m+g;d=h4(g,y,_,S,S+x,b,w,h,Zr),a=Math.cos(S+x)*m+g,n=Math.sin(S+x)*_+y;break;case Bi.R:i=a=f[c++],o=n=f[c++];var C=f[c++],T=f[c++];d=QP(i,o,C,T,v,h,Zr);break;case Bi.Z:d=wc(a,n,i,o,v,h,Zr,!0),a=i,n=o;break}d<u&&(u=d,e.set(Zr[0],Zr[1]))}return u}var $r=new lt,Zt=new lt,oe=new lt,ma=new lt,ga=new lt;function Fw(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||f4,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),v=f&&Vr([],f),h=t.get("length2")||0;u&&oe.copy(u);for(var c=0;c<o.length;c++){var p=o[c];v4(p,0,s,$r,ma),lt.scaleAndAdd(Zt,$r,ma,h),Zt.transform(v);var d=r.getBoundingRect(),g=u?u.distance(Zt):r instanceof wt?p4(Zt,r.path,oe):c4(Zt,d,oe);g<l&&(l=g,Zt.transform(f),oe.transform(f),oe.toArray(i[0]),Zt.toArray(i[1]),$r.toArray(i[2]))}tR(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Tc=[],qe=new lt;function tR(r,t){if(t<=180&&t>0){t=t/180*Math.PI,$r.fromArray(r[0]),Zt.fromArray(r[1]),oe.fromArray(r[2]),lt.sub(ma,$r,Zt),lt.sub(ga,oe,Zt);var e=ma.len(),a=ga.len();if(!(e<.001||a<.001)){ma.scale(1/e),ga.scale(1/a);var n=ma.dot(ga),i=Math.cos(t);if(i<n){var o=wc(Zt.x,Zt.y,oe.x,oe.y,$r.x,$r.y,Tc,!1);qe.fromArray(Tc),qe.scaleAndAdd(ga,o/Math.tan(Math.PI-t));var s=oe.x!==Zt.x?(qe.x-Zt.x)/(oe.x-Zt.x):(qe.y-Zt.y)/(oe.y-Zt.y);if(isNaN(s))return;s<0?lt.copy(qe,Zt):s>1&<.copy(qe,oe),qe.toArray(r[1])}}}}function d4(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,$r.fromArray(r[0]),Zt.fromArray(r[1]),oe.fromArray(r[2]),lt.sub(ma,Zt,$r),lt.sub(ga,oe,Zt);var a=ma.len(),n=ga.len();if(!(a<.001||n<.001)){ma.scale(1/a),ga.scale(1/n);var i=ma.dot(t),o=Math.cos(e);if(i<o){var s=wc(Zt.x,Zt.y,oe.x,oe.y,$r.x,$r.y,Tc,!1);qe.fromArray(Tc);var l=Math.PI/2,u=Math.acos(ga.dot(t)),f=l+u-e;if(f>=l)lt.copy(qe,oe);else{qe.scaleAndAdd(ga,s/Math.tan(Math.PI/2-f));var v=oe.x!==Zt.x?(qe.x-Zt.x)/(oe.x-Zt.x):(qe.y-Zt.y)/(oe.y-Zt.y);if(isNaN(v))return;v<0?lt.copy(qe,Zt):v>1&<.copy(qe,oe)}qe.toArray(r[1])}}}}function gg(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function g4(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=kn(a[0],a[1]),i=kn(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=dh([],a[1],a[0],o/n),l=dh([],a[1],a[2],o/i),u=dh([],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],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function S1(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<Yu.length;l++){var u=Yu[l],f=t[u],v=u==="normal";if(f){var h=f.get("show"),c=v?s:j(n.states[u]&&n.states[u].ignore,s);if(c||!j(h,o)){var p=v?a:a&&a.states[u];p&&(p.ignore=!0),a&&gg(a,!0,u,f);continue}a||(a=new ke,r.setTextGuideLine(a),!v&&(s||!o)&&gg(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),gg(a,!1,u,f)}}if(a){st(a.style,e),a.style.fill=null;var d=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,a.buildPath=g4}}function x1(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<rr.length;a++){var n=rr[a];e[n]=r.getModel([n,t])}return e}var Hw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],y4=1,Cc=2,eR=y4|Cc;function Ac(r,t,e){e=e||eR,t?r.dirty|=e:r.dirty&=~e}function rR(r,t){return t=t||eR,r.dirty==null||!!(r.dirty&t)}function Na(r){if(r)return rR(r)&&aR(r,r.label,r),r}function aR(r,t,e){var a=t.getComputedTransform();r.transform=E_(r.transform,a);var n=r.localRect=$u(r.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=Ps.textMargin);for(var v=0;v<4;v++)yg[v]=f===Ps.minMargin&&l&&l[v]!=null?l[v]:s&&s[v]!=null?s[v]:o?o[v]:0;f===Ps.textMargin&&bo(n,yg,!1,!1);var h=r.rect=$u(r.rect,n);return a&&h.applyTransform(a),f===Ps.minMargin&&bo(h,yg,!1,!1),r.axisAligned=R_(a),(r.label=r.label||{}).ignore=t.ignore,Ac(r,!1),Ac(r,!0,Cc),r}var yg=[0,0,0,0];function m4(r,t,e){return r.transform=E_(r.transform,e),r.localRect=$u(r.localRect,t),r.rect=$u(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=R_(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function e0(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var a=r.rect;a&&(a.x+=t.x,a.y+=t.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,e)}}function r0(r,t){for(var e=0;e<Hw.length;e++){var a=Hw[e];r[a]==null&&(r[a]=t[a])}return Na(r)}function Ww(r){var t=r.obb;return(!t||rR(r,Cc))&&(r.obb=t=t||new yL,t.fromBoundingRect(r.localRect,r.transform),Ac(r,!1,Cc)),t}function a0(r,t,e,a,n){var i=r.length,o=ct[t],s=ne[t];if(i<2)return!1;r.sort(function(w,C){return w.rect[o]-C.rect[o]});for(var l=0,u,f=!1,v=0;v<i;v++){var h=r[v],c=h.rect;u=c[o]-l,u<0&&(c[o]-=u,h.label[o]-=u,f=!0),l=c[o]+c[s]}var p=r[0],d=r[i-1],g,y;m(),g<0&&x(-g,.8),y<0&&x(y,.8),m(),_(g,y,1),_(y,g,-1),m(),g<0&&b(-g),y<0&&b(y);function m(){g=p.rect[o]-e,y=a-d.rect[o]-d.rect[s]}function _(w,C,T){if(w<0){var M=Math.min(C,-w);if(M>0){S(M*T,0,i);var D=M+w;D<0&&x(-D*T,1)}else x(-w*T,1)}}function S(w,C,T){w!==0&&(f=!0);for(var M=C;M<T;M++){var D=r[M],L=D.rect;L[o]+=w,D.label[o]+=w}}function x(w,C){for(var T=[],M=0,D=1;D<i;D++){var L=r[D-1].rect,I=Math.max(r[D].rect[o]-L[o]-L[s],0);T.push(I),M+=I}if(M){var P=Math.min(Math.abs(w)/M,C);if(w>0)for(var D=0;D<i-1;D++){var R=T[D]*P;S(R,0,D+1)}else for(var D=i-1;D>0;D--){var R=T[D-1]*P;S(-R,D,i)}}}function b(w){var C=w<0?-1:1;w=Math.abs(w);for(var T=Math.ceil(w/(i-1)),M=0;M<i-1;M++)if(C>0?S(T,0,M+1):S(-T,i-M-1,i),w-=T,w<=0)return}return f}function _4(r){for(var t=0;t<r.length;t++){var e=r[t],a=e.defaultAttr,n=e.labelLine;e.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}}function nR(r){var t=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function e(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=Na(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<t.length;l++)if(Fp(n,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(i),o&&e(o)):t.push(n)}}}function Fp(r,t,e,a){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,a)?!1:r.axisAligned&&t.axisAligned?!0:Ww(r).intersect(Ww(t),e,a)}function S4(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function x4(r,t){var e=r.label,a=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:S4(a&&a.shape.points)}}var Uw=["align","verticalAlign","width","height","fontSize"],Ze=new za,mg=yt(),b4=yt();function Lv(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var Pv=["x","y","rotation"],w4=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();ot.applyTransform(f,f,u),u?Ze.setLocalTransform(u):(Ze.x=Ze.y=Ze.rotation=Ze.originX=Ze.originY=0,Ze.scaleX=Ze.scaleY=1),Ze.rotation=yr(Ze.rotation);var v=n.__hostTarget,h;if(v){h=v.getBoundingRect().plain();var c=v.getComputedTransform();ot.applyTransform(h,h,c)}var p=h&&v.getTextGuideLine();this._labelList.push({label:n,labelLine:p,seriesModel:a,dataIndex:t,dataType:e,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:p&&p.ignore,x:Ze.x,y:Ze.y,scaleX:Ze.scaleX,scaleY:Ze.scaleY,rotation:Ze.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");(nt(n)||Ct(n).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ft(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(_,S){return function(){Fw(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;nt(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(x4(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var v=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*v:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=$(f.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=$(f.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var c=l.getTextGuideLine();c&&(c.setShape({points:f.labelLinePoints}),h=!1)}var p=mg(s);p.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*v:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<Uw.length;d++){var g=Uw[d];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=[];A(this._labelList,function(l){l.defaultAttr.ignore||n.push(r0({},l))});var i=Bt(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Bt(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});a0(i,0,0,e),a0(o,1,0,a);var s=Bt(n,function(l){return l.layoutOption.hideOverlap});_4(s),nR(s)},r.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=mg(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=ft(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var v=s.getModel("labelLine");S1(t,x1(s),l),Fw(t,v)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!Vs(t))){var i=mg(a),o=i.oldLayout,s=ft(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=e.getData(s.dataType);if(o){a.attr(o);var h=t.prevStates;h&&(pt(h,"select")>=0&&a.attr(i.oldLayoutSelect),pt(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Rt(a,u,e,l)}else if(a.attr(u),!bl(a).valueAnimation){var v=j(a.style.opacity,1);a.style.opacity=0,$t(a,{style:{opacity:v}},e,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};Lv(c,u,Pv),Lv(c,a.states.select,Pv)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};Lv(p,u,Pv),Lv(p,a.states.emphasis,Pv)}PL(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=b4(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),Rt(n,{shape:d},e)):(n.setShape(d),n.style.strokePercent=0,$t(n,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),_g=yt();function T4(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=_g(e).labelManager;n||(n=_g(e).labelManager=new w4),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=_g(e).labelManager;A(a.updatedSeries,function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Sg=Math.sin,xg=Math.cos,iR=Math.PI,Vi=Math.PI*2,C4=180/iR,oR=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){this._add("C",t,e,a,n,i,o)},r.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},r.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},r.prototype.ellipse=function(t,e,a,n,i,o,s,l){var u=s-o,f=!l,v=Math.abs(u),h=zn(v-Vi)||(f?u>=Vi:-u>=Vi),c=u>0?u%Vi:u%Vi+Vi,p=!1;h?p=!0:zn(v)?p=!1:p=c>=iR==!!f;var d=t+a*xg(o),g=e+n*Sg(o);this._start&&this._add("M",d,g);var y=Math.round(i*C4);if(h){var m=1/this._p,_=(f?1:-1)*(Vi-m);this._add("A",a,n,y,1,+f,t+a*xg(o+_),e+n*Sg(o+_)),m>.01&&this._add("A",a,n,y,0,+f,d,g)}else{var S=t+a*xg(s),x=e+n*Sg(s);this._add("A",a,n,y,+p,+f,S,x)}},r.prototype.rect=function(t,e,a,n){this._add("M",t,e),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,n,i,o,s,l,u){for(var f=[],v=this._p,h=1;h<arguments.length;h++){var c=arguments[h];if(isNaN(c)){this._invalid=!0;return}f.push(Math.round(c*v)/v)}this._d.push(t+f.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),b1="none",A4=Math.round;function M4(r){var t=r.fill;return t!=null&&t!==b1}function D4(r){var t=r.stroke;return t!=null&&t!==b1}var n0=["lineCap","miterLimit","lineJoin"],I4=W(n0,function(r){return"stroke-"+r.toLowerCase()});function L4(r,t,e,a){var n=t.opacity==null?1:t.opacity;if(e instanceof Ie){r("opacity",n);return}if(M4(t)){var i=Hu(t.fill);r("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*n:i.opacity*n;o<1&&r("fill-opacity",o)}else r("fill",b1);if(D4(t)){var s=Hu(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*n:s.opacity*n,v=t.strokeFirst;if(u!==1&&r("stroke-width",u),v&&r("paint-order",v?"stroke":"fill"),f<1&&r("stroke-opacity",f),t.lineDash){var h=a1(e),c=h[0],p=h[1];c&&(p=A4(p||0),r("stroke-dasharray",c.join(",")),(p||a)&&r("stroke-dashoffset",p))}for(var d=0;d<n0.length;d++){var g=n0[d];if(t[g]!==Qh[g]){var y=t[g]||Qh[g];y&&r(I4[d],y)}}}}var sR="http://www.w3.org/2000/svg",lR="http://www.w3.org/1999/xlink",P4="http://www.w3.org/2000/xmlns/",R4="http://www.w3.org/XML/1998/namespace",Yw="ecmeta_";function uR(r){return document.createElementNS(sR,r)}function xe(r,t,e,a,n){return{tag:r,attrs:e||{},children:a,text:n,key:t}}function E4(r,t){var e=[];if(t)for(var a in t){var n=t[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),e.push(i))}return"<"+r+" "+e.join(" ")+">"}function k4(r){return"</"+r+">"}function w1(r,t){t=t||{};var e=t.newline?`
|
|
36
|
+
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return E4(o,s)+(o!=="style"?Ke(l):l||"")+(i?""+e+W(i,function(u){return a(u)}).join(e)+e:"")+k4(o)}return a(r)}function O4(r,t,e){e=e||{};var a=e.newline?`
|
|
37
|
+
`:"",n=" {"+a,i=a+"}",o=W(Ct(r),function(l){return l+n+W(Ct(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=W(Ct(t),function(l){return"@keyframes "+l+n+W(Ct(t[l]),function(u){return u+n+W(Ct(t[l][u]),function(f){var v=t[l][u][f];return f==="d"&&(v='path("'+v+'")'),f+":"+v+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function i0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Xw(r,t,e,a){return xe("svg","root",{width:r,height:t,xmlns:sR,"xmlns:xlink":lR,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var N4=0;function fR(){return N4++}var Zw={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ui="transform-origin";function B4(r,t,e){var a=G({},r.shape);G(a,t),r.buildPath(e,a);var n=new oR;return n.reset(hI(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function V4(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[Ui]=e+"px "+a+"px")}var z4={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function vR(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function G4(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=i0(e.zrId);u.animation=!0,Hp(l,{},u,!0);var f=u.cssAnims,v=u.cssNodes,h=Ct(f),c=h.length;if(c){o=h[c-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in v){var m=v[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=vR(n,e);return i.replace(o,s)}}function $w(r){return Z(r)?Zw[r]?"cubic-bezier("+Zw[r]+")":v_(r)?r:"":""}function Hp(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof Cp){var s=G4(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=n[u],v=[f.getMaxTime()/1e3+"s"],h=$w(f.getClip().easing),c=f.getDelay();h?v.push(h):v.push("linear"),c&&v.push(c/1e3+"s"),f.getLoop()&&v.push("infinite");var p=v.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,x={},b={},w={},C="animation-timing-function";function T(vt,tt,dt){for(var et=vt.getTracks(),ht=vt.getMaxTime(),Ft=0;Ft<et.length;Ft++){var Dt=et[Ft];if(Dt.needsAnimate()){var Vt=Dt.keyframes,Ht=Dt.propName;if(dt&&(Ht=dt(Ht)),Ht)for(var le=0;le<Vt.length;le++){var cr=Vt[le],nr=Math.round(cr.time/ht*100)+"%",ci=$w(cr.easing),Qo=cr.rawValue;(Z(Qo)||Lt(Qo))&&(tt[nr]=tt[nr]||{},tt[nr][Ht]=cr.rawValue,ci&&(tt[nr][C]=ci))}}}}for(var M=0;M<S;M++){var D=_[M],L=D.targetName;L?L==="shape"&&T(D,b):!a&&T(D,x)}for(var I in x){var P={};Pa(P,r),G(P,x[I]);var R=cI(P),E=x[I][C];w[I]=R?{transform:R}:{},V4(w[I],P),E&&(w[I][C]=E)}var O,k=!0;for(var I in b){w[I]=w[I]||{};var V=!O,E=b[I][C];V&&(O=new Ea);var z=O.len();O.reset(),w[I].d=B4(r,b[I],O);var F=O.len();if(!V&&z!==F){k=!1;break}E&&(w[I][C]=E)}if(!k)for(var I in w)delete w[I].d;if(!a)for(var M=0;M<S;M++){var D=_[M],L=D.targetName;L==="style"&&T(D,w,function(et){return z4[et]})}for(var U=Ct(w),X=!0,Y,M=1;M<U.length;M++){var Q=U[M-1],gt=U[M];if(w[Q][Ui]!==w[gt][Ui]){X=!1;break}Y=w[Q][Ui]}if(X&&Y){for(var I in w)w[I][Ui]&&delete w[I][Ui];t[Ui]=Y}if(Bt(U,function(vt){return Ct(w[vt]).length>0}).length){var Et=vR(w,e);return Et+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+fR();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function F4(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};qw(a,t,e)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=rm(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),qw(a,t,e)}}function qw(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+fR(),e.cssStyleCache[n]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var nf=Math.round;function hR(r){return r&&Z(r.src)}function cR(r){return r&&nt(r.toDataURL)}function T1(r,t,e,a){L4(function(n,i){var o=n==="fill"||n==="stroke";o&&vI(i)?dR(t,r,n,a):o&&h_(i)?gR(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),$4(e,r,a)}function C1(r,t){var e=BB(t);e&&(e.each(function(a,n){a!=null&&(r[(Yw+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[Yw+"silent"]="true"))}function Kw(r){return zn(r[0]-1)&&zn(r[1])&&zn(r[2])&&zn(r[3]-1)}function H4(r){return zn(r[4])&&zn(r[5])}function A1(r,t,e){if(t&&!(H4(t)&&Kw(t))){var a=1e4;r.transform=Kw(t)?"translate("+nf(t[4]*a)/a+" "+nf(t[5]*a)/a+")":iB(t)}}function Jw(r,t,e){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(nf(a[i][0]*e)/e),n.push(nf(a[i][1]*e)/e);t.points=n.join(" ")}function jw(r){return!r.smooth}function W4(r){var t=W(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,a,n){for(var i=0;i<t.length;i++){var o=t[i],s=e[o[0]];s!=null&&(a[o[1]]=nf(s*n)/n)}}}var U4={circle:[W4(["cx","cy","r"])],polyline:[Jw,jw],polygon:[Jw,jw]};function Y4(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function pR(r,t){var e=r.style,a=r.shape,n=U4[r.type],i={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&hI(r)||4;if(n&&!t.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&Y4(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);n[0](a,i,f)}else{var v=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;v&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var c=h.getVersion(),p=r,d=p.__svgPathBuilder;(p.__svgPathVersion!==c||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new oR),d.reset(u),h.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=c,p.__svgPathStrokePercent=l),i.d=d.getStr()}return A1(i,r.transform),T1(i,e,r,t),C1(i,r),t.animation&&Hp(r,i,t),t.emphasis&&F4(r,i,t),xe(s,r.id+"",i)}function X4(r,t){var e=r.style,a=e.image;if(a&&!Z(a)&&(hR(a)?a=a.src:cR(a)&&(a=a.toDataURL())),!!a){var n=e.x||0,i=e.y||0,o=e.width,s=e.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),A1(l,r.transform),T1(l,e,r,t),C1(l,r),t.animation&&Hp(r,l,t),xe("image",r.id+"",l)}}function Z4(r,t){var e=r.style,a=e.text;if(a!=null&&(a+=""),!(!a||isNaN(e.x)||isNaN(e.y))){var n=e.font||nn,i=e.x||0,o=sB(e.y||0,Cf(n),e.textBaseline),s=oB[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(ZI(e)){var u="",f=e.fontStyle,v=XI(e.fontSize);if(!parseFloat(v))return;var h=e.fontFamily||zD,c=e.fontWeight;u+="font-size:"+v+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),c&&c!=="normal"&&(u+="font-weight:"+c+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),A1(l,r.transform),T1(l,e,r,t),C1(l,r),t.animation&&Hp(r,l,t),xe("text",r.id+"",l,void 0,a)}}function Qw(r,t){if(r instanceof wt)return pR(r,t);if(r instanceof Ie)return X4(r,t);if(r instanceof Js)return Z4(r,t)}function $4(r,t,e){var a=r.style;if(lB(a)){var n=uB(r),i=e.shadowCache,o=i[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=a.shadowOffsetX||0,v=a.shadowOffsetY||0,h=a.shadowBlur,c=Hu(a.shadowColor),p=c.opacity,d=c.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=xe("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[xe("feDropShadow","",{dx:f/l,dy:v/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),i[n]=o}t.filter=fp(o)}}function dR(r,t,e,a){var n=r[e],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(uI(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(fI(n))i="radialGradient",o.cx=j(n.x,.5),o.cy=j(n.y,.5),o.r=j(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var v=am(s[u].offset)*100+"%",h=s[u].color,c=Hu(h),p=c.color,d=c.opacity,g={offset:v};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(xe("stop",u+"",g))}var y=xe(i,"",o,l),m=w1(y),_=a.gradientCache,S=_[m];S||(S=a.zrId+"-g"+a.gradientIdx++,_[m]=S,o.id=S,a.defs[S]=xe(i,S,o,l)),t[e]=fp(S)}function gR(r,t,e,a){var n=r.style[e],i=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",v;if(lI(n)){var h=n.imageWidth,c=n.imageHeight,p=void 0,d=n.image;if(Z(d)?p=d:hR(d)?p=d.src:cR(d)&&(p=d.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";We(h,g),We(c,g)}else if(h==null||c==null){var y=function(M,D){if(M){var L=M.elm,I=h||D.width,P=c||D.height;M.tag==="pattern"&&(u?(P=1,I/=i.width):f&&(I=1,P/=i.height)),M.attrs.width=I,M.attrs.height=P,L&&(L.setAttribute("width",I),L.setAttribute("height",P))}},m=b_(p,null,r,function(M){l||y(b,M),y(v,M)});m&&m.width&&m.height&&(h=h||m.width,c=c||m.height)}v=xe("image","img",{href:p,width:h,height:c}),o.width=h,o.height=c}else n.svgElement&&(v=at(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(v){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var x=cI(n);x&&(o.patternTransform=x);var b=xe("pattern","",o,[v]),w=w1(b),C=a.patternCache,T=C[w];T||(T=a.zrId+"-p"+a.patternIdx++,C[w]=T,o.id=T,b=a.defs[T]=xe("pattern",T,o,[v])),t[e]=fp(T)}}function q4(r,t,e){var a=e.clipPathCache,n=e.defs,i=a[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=xe("clipPath",i,o,[pR(r,e)])}t["clip-path"]=fp(i)}function tT(r){return document.createTextNode(r)}function Ji(r,t,e){r.insertBefore(t,e)}function eT(r,t){r.removeChild(t)}function rT(r,t){r.appendChild(t)}function yR(r){return r.parentNode}function mR(r){return r.nextSibling}function bg(r,t){r.textContent=t}var aT=58,K4=120,J4=xe("","");function o0(r){return r===void 0}function pa(r){return r!==void 0}function j4(r,t,e){for(var a={},n=t;n<=e;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function Su(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function of(r){var t,e=r.children,a=r.tag;if(pa(a)){var n=r.elm=uR(a);if(M1(J4,r),H(e))for(t=0;t<e.length;++t){var i=e[t];i!=null&&rT(n,of(i))}else pa(r.text)&&!ut(r.text)&&rT(n,tT(r.text))}else r.elm=tT(r.text);return r.elm}function _R(r,t,e,a,n){for(;a<=n;++a){var i=e[a];i!=null&&Ji(r,of(i),t)}}function Mc(r,t,e,a){for(;e<=a;++e){var n=t[e];if(n!=null)if(pa(n.tag)){var i=yR(n.elm);eT(i,n.elm)}else eT(r,n.elm)}}function M1(r,t){var e,a=t.elm,n=r&&r.attrs||{},i=t.attrs||{};if(n!==i){for(e in i){var o=i[e],s=n[e];s!==o&&(o===!0?a.setAttribute(e,""):o===!1?a.removeAttribute(e):e==="style"?a.style.cssText=o:e.charCodeAt(0)!==K4?a.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?a.setAttributeNS(P4,e,o):e.charCodeAt(3)===aT?a.setAttributeNS(R4,e,o):e.charCodeAt(5)===aT?a.setAttributeNS(lR,e,o):a.setAttribute(e,o))}for(e in n)e in i||a.removeAttribute(e)}}function Q4(r,t,e){for(var a=0,n=0,i=t.length-1,o=t[0],s=t[i],l=e.length-1,u=e[0],f=e[l],v,h,c,p;a<=i&&n<=l;)o==null?o=t[++a]:s==null?s=t[--i]:u==null?u=e[++n]:f==null?f=e[--l]:Su(o,u)?(Cs(o,u),o=t[++a],u=e[++n]):Su(s,f)?(Cs(s,f),s=t[--i],f=e[--l]):Su(o,f)?(Cs(o,f),Ji(r,o.elm,mR(s.elm)),o=t[++a],f=e[--l]):Su(s,u)?(Cs(s,u),Ji(r,s.elm,o.elm),s=t[--i],u=e[++n]):(o0(v)&&(v=j4(t,a,i)),h=v[u.key],o0(h)?Ji(r,of(u),o.elm):(c=t[h],c.tag!==u.tag?Ji(r,of(u),o.elm):(Cs(c,u),t[h]=void 0,Ji(r,c.elm,o.elm))),u=e[++n]);(a<=i||n<=l)&&(a>i?(p=e[l+1]==null?null:e[l+1].elm,_R(r,p,e,n,l)):Mc(r,t,a,i))}function Cs(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(M1(r,t),o0(t.text)?pa(a)&&pa(n)?a!==n&&Q4(e,a,n):pa(n)?(pa(r.text)&&bg(e,""),_R(e,null,n,0,n.length-1)):pa(a)?Mc(e,a,0,a.length-1):pa(r.text)&&bg(e,""):r.text!==t.text&&(pa(a)&&Mc(e,a,0,a.length-1),bg(e,t.text)))}function tW(r,t){if(Su(r,t))Cs(r,t);else{var e=r.elm,a=yR(e);of(t),a!==null&&(Ji(a,t.elm,mR(e)),Mc(a,[r],0,0))}return t}var eW=0,rW=function(){function r(t,e,a){if(this.type="svg",this.configLayer=aW(),this.storage=e,this._opts=a=G({},a),this.root=t,this._id="zr"+eW++,this._oldVNode=Xw(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=uR("svg");M1(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",tW(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Qw(t,i0(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=i0(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=nW(a,n,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=xe("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=W(Ct(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(xe("defs","defs",{},u)),t.animation){var f=O4(i.cssNodes,i.cssAnims,{newline:!0});if(f){var v=xe("style","stl",{},[],f);o.push(v)}}return Xw(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},w1(this.renderToVNode({animation:j(t.cssAnimation,!0),emphasis:j(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:j(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var n=t.length,i=[],o=0,s,l,u=0,f=0;f<n;f++){var v=t[f];if(!v.invisible){var h=v.__clipPaths,c=h&&h.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(c-1,p-1);d>=0&&!(h&&l&&h[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;y<c;y++){var m={};q4(h[y],m,e);var _=xe("g","clip-g-"+u++,m,[]);(s?s.children:a).push(_),i[o++]=_,s=_}l=h;var S=Qw(v,e);S&&(s?s.children:a).push(S)}}},r.prototype.resize=function(t,e){var a=this._opts,n=this.root,i=this._viewport;if(t!=null&&(a.width=t),e!=null&&(a.height=e),n&&i&&(i.style.display="none",t=Rs(n,0,a),e=Rs(n,1,a),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(h_(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),a="data:image/svg+xml;";return t?(e=vB(e),e&&a+"base64,"+e):a+"charset=UTF-8,"+encodeURIComponent(e)},r}();function aW(r){return function(){}}function nW(r,t,e,a){var n;if(e&&e!=="none")if(n=xe("rect","bg",{width:r,height:t,x:"0",y:"0"}),vI(e))dR({fill:e},n.attrs,"fill",a);else if(h_(e))gR({style:{fill:e},dirty:re,getBoundingRect:function(){return{width:r,height:t}}},n.attrs,"fill",a);else{var i=Hu(e),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function iW(r){r.registerPainter("svg",rW)}function nT(r,t,e){var a=Qe.createCanvas(),n=t.getWidth(),i=t.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*e,a.height=i*e,a}function wg(r){return!r.__cursors.get(mL)}function iT(r){var t=r.__cursors.get(mL);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var SR=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=Th,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var o;n=n||$h,typeof e=="string"?o=nT(e,a,n):ut(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(YD(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return t.prototype.afterBrush=function(){this.__prevIdx=iT(this)},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=nT("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ot(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var x=new ot(0,0,0,0);x.copy(S),o.push(x)}else{for(var b=!1,w=1/0,C=0,T=0;T<o.length;++T){var M=o[T];if(M.intersect(S)){var D=new ot(0,0,0,0);D.copy(M),D.union(S),o[T]=D,b=!0;break}else if(l){u.copy(S),u.union(M);var L=S.width*S.height,I=M.width*M.height,P=u.width*u.height,R=P-L-I;R<w&&(w=R,C=T)}}if(l&&(o[C].union(S),b=!0),!b){var x=new ot(0,0,0,0);x.copy(S),o.push(x)}l||(l=o.length>=s)}}for(var v=iT(this),h=v.startIdx;h<v.endIdx;++h){var c=e[h];if(c){var p=c.shouldBePainted(n,i,!0,!0),d=c.__isRendered&&(c.__dirty&ur||!p)?c.getPrevPaintRect():null;d&&f(d);var g=p&&(c.__dirty&ur||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var y=this.__prevIdx,h=y.startIdx;h<y.endIdx;++h){var c=a[h],p=c&&c.shouldBePainted(n,i,!0,!0);if(c&&(!p||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var m;do{m=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var _=h+1;_<o.length;)o[h].intersect(o[_])?(m=!0,o[h].union(o[_]),o.splice(_,1)):_++;h++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=a+"px"),i.width=e*n,i.height=a*n,s&&(s.width=e*n,s.height=a*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,v=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/v,l/v));var c=this.domBack;function p(d,g,y,m){if(o.clearRect(d,g,y,m),a&&a!=="transparent"){var _=void 0;if(op(a)){var S=a.global||a.__width===y&&a.__height===m;_=S&&a.__canvasGradient||Wm(o,a,{x:0,y:0,width:y,height:m}),a.__canvasGradient=_,a.__width=y,a.__height=m}else dN(a)&&(a.scaleX=a.scaleX||v,a.scaleY=a.scaleY||v,_=Um(o,a,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||a,o.fillRect(d,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,d,g,y,m),o.restore())}!n||u?p(0,0,s,l):n.length&&A(n,function(d){p(d.x*v,d.y*v,d.width*v,d.height*v)})},t}(Hr),oT=1e5,zi=314159,Tg=void 0,oW=1,Cg=2;function sW(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function lW(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}function sT(r,t,e,a){var n=new SR(r,t,t.dpr);return n.zlevel=e,n.zlevel2=a,n.__builtin__=!0,xR(n),n}function xR(r){r.__cursorStack=[],r.__cursors=K()}function uW(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function fW(r,t){var e=r.__cursors,a=+t;return e.get(a)||(r.__cursorStack.push(a),e.set(a,uW({key:a})))}function Rv(r,t){for(var e=r.__cursorStack,a=0;a<e.length;a++)t(r.__cursors.get(e[a]))}function Ag(r,t){var e=r.layers;return e[t]||(e[t]=new Array(3))}function Ve(r,t,e){for(var a=r.layerStack,n=0;n<a.length;n++){var i=a[n].zl,o=a[n].zl2,s=r.layers[i][o];(!e||(!(e&Nu)||s.__builtin__)&&(!(e&s0)||!s.__builtin__)&&(!(e&bR)||s!==r.hoverlayer))&&t(s,i,o,n)}}var Nu=1,s0=2,bR=4,Ev=Nu|bR,vW=function(){function r(t,e,a,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=a=G({},a||{}),this.dpr=a.devicePixelRatio||$h,this._singleCanvas=i,this.root=t;var o=t.style;if(o&&(YD(t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],i){var l=t,u=l.width,f=l.height;a.width!=null&&(u=a.width),a.height!=null&&(f=a.height),this.dpr=a.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var v=sT(l,this,zi,Th);v.initContext(),this._insertLayer(v,zi,Th,!0),this._domRoot=t}else{this._width=Rs(t,0,a),this._height=Rs(t,1,a);var s=this._domRoot=lW(this._width,this._height);t.appendChild(s)}}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;t&&!ut(t)?e={paintAll:!!t}:e=t||{};var a=j(e.refresh,!0),n=j(e.refreshHover,!1);if(n&&(this._hoverLayerDirty=Cg),!a)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,e.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(i,o,this._redrawId);var s=this._backgroundColor;return Ve(this._i,function(l,u,f,v){l.refresh&&l.refresh(v===0?s:null)},s0),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},r.prototype._paintHoverList=function(t){var e=this._i.hoverlayer,a=this._hoverLayerDirty;if(this._hoverLayerDirty=Tg,a!==Tg&&(!e&&a===Cg&&(e=this._i.hoverlayer=this._ensureLayer(oT)),!!e)){e.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,o=0,s=t.length;o<s;o++){var l=t[o];if(l.__inHover){i||(i=e.ctx,i.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),oo(i,l,n),u&&(l.style=f)}}i&&(Ws(i,n),i.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(oT)},r.prototype.paintOne=function(t,e){Q2(t,e)},r.prototype._paintList=function(t,e,a){if(this._redrawId===a){var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),n)Ve(this._i,function(o){o.afterBrush&&o.afterBrush()},Ev),this._paintHoverList(t);else{var i=this;Hh(function(){i._paintList(t,e,a)})}}},r.prototype._compositeManually=function(){var t=this._ensureLayer(zi).ctx,e=this._domRoot.width,a=this._domRoot.height;t.clearRect(0,0,e,a),Ve(this._i,function(n){n.virtual&&t.drawImage(n.dom,0,0,e,a)},Nu)},r.prototype._doPaintList=function(t,e){var a=this,n=!0;return Ve(this._i,function(i){var o=!1;if(Rv(i,function(v){(v.drawIdx<v.endIdx||v.notClearIdx>=0)&&(o=!0)}),!(!o&&!i.__dirty)){var s=a._opts.useDirtyRect&&!wg(i)?i.createRepaintRects(t,e,a._width,a._height):null,l=a._i.layerStack[0],u=!0;if(i.__dirty){u=!1,i.__dirty=!1;var f=i.zlevel===l.zl&&i.zlevel2===l.zl2?a._backgroundColor:null;i.clear(!1,f,s)}Rv(i,function(v){var h=a._paintPerCursor(i,v,t,s,u);n=n&&h})}},Ev),Mt.wxa&&Ve(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),n},r.prototype._paintPerCursor=function(t,e,a,n,i){var o=t.ctx;if(n)if(!n.length)e.drawIdx=e.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(t,e,a,u,i),o.restore()}else o.save(),this._paintPerCursorInRect(t,e,a,null,i),o.restore();return e.drawIdx>=e.endIdx},r.prototype._paintPerCursorInRect=function(t,e,a,n,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=t.ctx,l=wg(t),u=l&&Qe.getTime(),f=e.drawIdx,v=e.notClearIdx,h=v>=0?Math.min(v,f):f;h<e.endIdx;h++){var c=a[h];if(!(h<f&&!c.notClear)){if(c.__inHover&&(this._hoverLayerDirty=Cg),n!=null){var p=c.getPaintRect();p&&p.intersect(n)&&(oo(s,c,o),c.setPrevPaintRect(p))}else oo(s,c,o);if(l){var d=Qe.getTime()-u;if(d>15){h++;break}}}}Ws(s,o),e.drawIdx=Math.max(h,f)},r.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},r.prototype._ensureLayer=function(t,e,a){e=e||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(t=zi,e=0);var i=Ag(this._i,t)[e];return i||(i=sT("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&mt(i,this._layerConfig[t],!0),(a||n&&t!==zi)&&(i.virtual=!0),this._insertLayer(i,t,e,!1),i.initContext()),i},r.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},r.prototype._insertLayer=function(t,e,a,n){var i=this._i,o=i.layers,s=i.layerStack,l=this._domRoot,u=null;if(!(o[e]&&o[e][a])&&sW(t)){for(var f=s.length,v=0;v<f&&(s[v].zl<e||s[v].zl===e&&s[v].zl2<a);)v++;if(v>0&&(u=Ag(i,s[v-1].zl)[s[v-1].zl2]),s.splice(v,0,{zl:e,zl2:a}),Ag(i,e)[a]=t,!n&&!t.virtual)if(u){var h=u.dom;h.nextSibling?l.insertBefore(t.dom,h.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(t,e){return Ve(this._i,function(a,n){t.call(e,a,n)})},r.prototype.eachBuiltinLayer=function(t,e){return Ve(this._i,function(a,n){t.call(e,a,n)},Nu)},r.prototype.eachOtherLayer=function(t,e){return Ve(this._i,function(a,n){t.call(e,a,n)},s0)},r.prototype.getLayers=function(){var t={};return Ve(this._i,function(e,a,n){t[e.id]=e}),t},r.prototype._updateLayerStatus=function(t,e){var a=this;if(a._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){a._needsManuallyCompositing=!0;break}}Ve(a._i,function(g){g.__dirty=!1,Rv(g,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},Ev);for(var o,s=null,l=null,u=!1,f=0,v=t.length;f<v;f++){var i=t[f],h=i.zlevel,c=i.incremental,p=void 0;if(o!==h&&(o=h,u=!1),c?(u=!0,p=t5):p=u?Qz:Th,(!s||h!==s.zlevel||p!==s.zlevel2)&&(s=a._ensureLayer(h,p),l=null,!s.__builtin__)){o_("ZLevel "+h+" has been used by unknown layer "+s.id);continue}if((!l||c!==l.key)&&(l=fW(s,c),!l.used))if(l.used=!0,!e&&l.first===i.id){var d=f-l.startIdx;l.startIdx=f,l.drawIdx+=d,l.endIdx+=d}else s.__dirty=!0,l.first=i.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,i.__dirty&ur&&!i.__inHover&&((!c||!i.notClear&&f<l.drawIdx)&&(s.__dirty=!0),c&&i.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Ve(a._i,function(g){for(var y=g.__cursorStack,m=g.__cursors,_=y.length-1;_>=0;_--){var S=m.get(y[_]);if(!S.used)g.__dirty=!0,m.removeKey(y[_]),y.splice(_,1);else{var x=S.endIdxNew;(wg(g)?x<S.drawIdx:x!==S.endIdx||!x||t[x-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=x?t[x-1].id:NaN}}g.__dirty&&(Rv(g,function(b){b.drawIdx=b.startIdx}),a._hoverLayerDirty===Tg&&(a._hoverLayerDirty=oW))},Ev)},r.prototype.clear=function(){return Ve(this._i,function(t){t.clear(),xR(t)},Nu),this},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Ve(this._i,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?mt(a[t],e,!0):a[t]=e,Ve(this._i,function(n,i){mt(n,a[i],!0)})}},r.prototype.delLayer=function(t){for(var e=this._i.layerStack,a=this._i.layers,n=e.length-1;n>=0;n--){var i=e[n];if(i.zl===t){var o=a[t][i.zl2];if(o.__builtin__)continue;if(e.splice(n,1),a[t][i.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(t,e){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;t!=null&&(n.width=t),e!=null&&(n.height=e),t=Rs(i,0,n),e=Rs(i,1,n),a.style.display="",(this._width!==t||e!==this._height)&&(a.style.width=t+"px",a.style.height=e+"px",Ve(this._i,function(o){o.resize(t,e)}),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this._ensureLayer(zi).resize(t,e)}return this},r.prototype.clearLayer=function(t){A(this._i.layers[t],function(e){e&&!e.__builtin__&&e.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[zi][0].dom;var e=new SR("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var a=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height;Ve(this._i,function(v){v.__builtin__?a.drawImage(v.dom,0,0,n,i):v.renderToCanvas&&(a.save(),v.renderToCanvas(a),a.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];oo(a,f,o)}Ws(a,o)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function hW(r){r.registerPainter("canvas",vW)}var cW=function(r){N(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){return _n(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new it,n=he("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=he(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.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=B.color.neutral00,u.style.lineWidth=2),a},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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},t}(Xt);function il(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Qs(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(Qs(r,t,e[o]));return i.join(" ")}}function wR(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!H(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var Hf=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,s){this.removeAll();var l=he(e,-1,-1,2,2,null,s);l.attr({z2:j(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=pW,this._symbolType=e,this.add(l)},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(){vn(this.childAt(0))},t.prototype.downplay=function(){hn(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),f=o!==this._symbolType,v=i&&i.disableAnimation;if(f){var h=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,h)}else{var c=this.childAt(0);c.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};v?c.attr(p):Rt(c,p,s,a),Fr(c)}if(this._updateCommon(e,a,l,n,i),f){var c=this.childAt(0);if(!v){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,$t(c,p,s,a)}}v&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,v,h,c,p,d,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,v=i.selectItemStyle,h=i.focus,c=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),v=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=ge(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=$o(e.getItemVisual(a,"symbolOffset"),n);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(a,"style"),w=b.fill;if(s instanceof Ie){var C=s.style;s.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(G({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=e.getItemVisual(a,"liftZ"),M=this._z2;T!=null?M==null&&(this._z2=s.z2,s.z2+=T):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;we(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:w,defaultOpacity:b.opacity});function L(R){return D?e.getName(R):il(e,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Kt(this,h,c,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=ft(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&ri(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ri(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Cl(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t}(it);function pW(r,t){this.parent.drift(r,t)}function kv(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a&&a.isIgnore&&a.isIgnore(e))&&!(a&&a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function lT(r){return r!=null&&!ut(r)&&(r={isIgnore:r}),r||{}}function uT(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:ge(t),cursorStyle:t.get("cursor")}}function fT(r,t,e,a,n,i,o){var s=new r(t,e,a,n);return s.setPosition(i),t.setItemGraphicEl(e,s),o.add(s),s}var Wf=function(){function r(t){this.group=new it,this._SymbolCtor=t||Hf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=lT(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=this._seriesScope=uT(t),u={disableAnimation:s},f=e.getSymbolPoint||function(v){return t.getItemLayout(v)};i||a.removeAll(),t.diff(i).add(function(v){var h=f(v);kv(t,h,v,e)&&fT(o,t,v,l,u,h,a)}).update(function(v,h){var c=i.getItemGraphicEl(h),p=f(v);if(!kv(t,p,v,e)){a.remove(c);return}var d=t.getItemVisual(v,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)a.remove(c),c=new o(t,v,l,u),c.setPosition(p);else{c.updateData(t,v,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):Rt(c,y,n)}a.add(c),t.setItemGraphicEl(v,c)}).remove(function(v){var h=i.getItemGraphicEl(v);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(t){var e=this._data;if(e)for(var a=this,n=e.getStore(),i=0,o=n.count();i<o;i++){var s=e.getItemGraphicEl(i),l=a._getSymbolPoint(i);kv(e,l,i,t)?(s=s||fT(a._SymbolCtor,e,i,a._seriesScope,{disableAnimation:!0},l,a.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(a.group.remove(s),e.setItemGraphicEl(i,null))}},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=uT(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a,n){this._progressiveEls=[],n=lT(n);function i(u){u.isGroup||(u.incremental=a,u.ensureState("emphasis").hoverLayer=xl)}for(var o=t.start;o<t.end;o++){var s=e.getItemLayout(o);if(kv(e,s,o,n)){var l=new this._SymbolCtor(e,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),e.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(t){vi(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r}();function TR(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=dW(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,v=W(r.dimensions,function(p){return t.mapDimension(p)}),h=!1,c=t.getCalculationInfo("stackResultDimension");return ai(t,v[0])&&(h=!0,v[0]=c),ai(t,v[1])&&(h=!0,v[1]=c),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function dW(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:Lt(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function CR(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function Nr(r,t){return!isFinite(r)||!isFinite(t)}var gW=typeof Float32Array!==ml?Float32Array:void 0,yW=typeof Float64Array!==ml?Float64Array:void 0;function _a(r){return D1({ctor:gW},r).arr}function D1(r,t){var e=r.arr,a=r.ctor;if(t>jh&&(t=jh),!e||r.typed&&e.length<t){var n=void 0;if(a)try{n=new a(t),r.typed=!0,e&&n.set(e)}catch{}if(!n&&(n=[],r.typed=!1,e))for(var i=0,o=e.length;i<o;i++)n[i]=e[i];r.arr=n}return r}function mW(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function _W(r,t,e,a,n,i,o,s){for(var l=mW(r,t),u=[],f=[],v=[],h=[],c=[],p=[],d=[],g=TR(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,b=void 0,w=void 0;switch(S.cmd){case"=":b=S.idx*2,w=S.idx1*2;var C=y[b],T=y[b+1],M=m[w],D=m[w+1];(isNaN(C)||isNaN(T))&&(C=M,T=D),u.push(C,T),f.push(M,D),v.push(e[b],e[b+1]),h.push(a[w],a[w+1]),d.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=n.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);w=L*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var R=CR(g,n,t,L);v.push(R[0],R[1]),h.push(a[w],a[w+1]),d.push(t.getRawIndex(L));break;case"-":x=!1}x&&(c.push(S),p.push(p.length))}p.sort(function(Q,gt){return d[Q]-d[gt]});for(var E=u.length,O=_a(E),k=_a(E),V=_a(E),z=_a(E),F=[],_=0;_<p.length;_++){var U=p[_],X=_*2,Y=U*2;O[X]=u[Y],O[X+1]=u[Y+1],k[X]=f[Y],k[X+1]=f[Y+1],V[X]=v[Y],V[X+1]=v[Y+1],z[X]=h[Y],z[X+1]=h[Y+1],F[_]=c[U]}return{current:O,next:k,stackedOnCurrent:V,stackedOnNext:z,status:F}}var An=Math.min,Mn=Math.max;function l0(r,t,e,a,n,i,o,s,l){for(var u,f,v,h,c,p,d=e,g=0;g<a;g++){var y=t[d*2],m=t[d*2+1];if(d>=n||d<0)break;if(Nr(y,m)){if(l){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](y,m),v=y,h=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var x=d+i,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g<a;)g++,x+=i,d+=i,b=t[x*2],w=t[x*2+1],y=t[d*2],m=t[d*2+1],_=y-u,S=m-f;var C=g+1;if(l)for(;Nr(b,w)&&C<a;)C++,x+=i,b=t[x*2],w=t[x*2+1];var T=.5,M=0,D=0,L=void 0,I=void 0;if(C>=a||Nr(b,w))c=y,p=m;else{M=b-u,D=w-f;var P=y-u,R=b-y,E=m-f,O=w-m,k=void 0,V=void 0;if(s==="x"){k=Math.abs(P),V=Math.abs(R);var z=M>0?1:-1;c=y-z*k*o,p=m,L=y+z*V*o,I=m}else if(s==="y"){k=Math.abs(E),V=Math.abs(O);var F=D>0?1:-1;c=y,p=m-F*k*o,L=y,I=m+F*V*o}else k=Math.sqrt(P*P+E*E),V=Math.sqrt(R*R+O*O),T=V/(V+k),c=y-M*o*(1-T),p=m-D*o*(1-T),L=y+M*o*T,I=m+D*o*T,L=An(L,Mn(b,y)),I=An(I,Mn(w,m)),L=Mn(L,An(b,y)),I=Mn(I,An(w,m)),M=L-y,D=I-m,c=y-M*k/V,p=m-D*k/V,c=An(c,Mn(u,y)),p=An(p,Mn(f,m)),c=Mn(c,An(u,y)),p=Mn(p,An(f,m)),M=y-c,D=m-p,L=y+M*V/k,I=m+D*V/k}r.bezierCurveTo(v,h,c,p,y,m),v=L,h=I}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var AR=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),SW=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new AR},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Nr(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Nr(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=l0(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=Ea.CMD,s,l,u=a==="x",f=[],v=0;v<i.length;){var h=i[v++],c=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[v++],l=i[v++];break;case o.L:if(c=i[v++],p=i[v++],_=u?(e-s)/(c-s):(e-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[e,S]:[S,e]}s=c,l=p;break;case o.C:c=i[v++],p=i[v++],d=i[v++],g=i[v++],y=i[v++],m=i[v++];var x=u?Uh(s,c,d,y,e,f):Uh(l,p,g,m,e,f);if(x>0)for(var b=0;b<x;b++){var w=f[b];if(w<=1&&w>=0){var S=u?Se(l,p,g,m,w):Se(s,c,d,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(wt),xW=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(AR),MR=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new xW},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Nr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Nr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=l0(e,n,o,s,s,1,a.smooth,l,a.connectNulls);l0(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(wt);function DR(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var v=new bt({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),c=h.isHorizontal(),p=h.inverse;c?(p&&(v.shape.x+=l),v.shape.width=0):(p||(v.shape.y+=u),v.shape.height=0);var d=nt(n)?function(g){n(g,v)}:null;$t(v,{shape:{width:l,height:u,x:o,y:s}},e,null,a,d)}return v}function IR(r,t,e){var a=r.getArea(),n=Pt(a.r0,1),i=Pt(a.r,1),o=new Ue({shape:{cx:Pt(r.cx,1),cy:Pt(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,$t(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function Io(r,t,e,a,n){if(r){if(r.type==="polar")return IR(r,t,e);if(r.type==="cartesian2d")return DR(r,t,e,a,n)}else return null;return null}var sf=0,lf=1,uf=2;function Es(r,t,e){r?t.setClipPath(e):t.removeClipPath()}function LR(r){var t=r.coordinateSystem;if(r.get("clip",!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function Lo(r,t){return r.type===t}function vT(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"&&!!r.getViewRect}function PR(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||J(r,"text")))}function RR(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},J(a,"text")&&(o.text=a.text),J(a,"rich")&&(o.rich=a.rich),J(a,"textFill")&&(o.fill=a.textFill),J(a,"textStroke")&&(o.stroke=a.textStroke),J(a,"fontFamily")&&(o.fontFamily=a.fontFamily),J(a,"fontSize")&&(o.fontSize=a.fontSize),J(a,"fontStyle")&&(o.fontStyle=a.fontStyle),J(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=J(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),J(a,"textPosition")&&(n.position=a.textPosition),J(a,"textOffset")&&(n.offset=a.textOffset),J(a,"textRotation")&&(n.rotation=a.textRotation),J(a,"textDistance")&&(n.distance=a.textDistance)}return hT(o,r),A(o.rich,function(l){hT(l,l)}),{textConfig:n,textContent:i}}function hT(r,t){t&&(t.font=t.textFont||t.font,J(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),J(t,"textAlign")&&(r.align=t.textAlign),J(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),J(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),J(t,"textWidth")&&(r.width=t.textWidth),J(t,"textHeight")&&(r.height=t.textHeight),J(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),J(t,"textPadding")&&(r.padding=t.textPadding),J(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),J(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),J(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),J(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),J(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),J(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),J(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function cT(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||B.color.neutral99;pT(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||B.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||B.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,A(t.rich,function(s){pT(s,s)}),a}function pT(r,t){t&&(J(t,"fill")&&(r.textFill=t.fill),J(t,"stroke")&&(r.textStroke=t.fill),J(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),J(t,"font")&&(r.font=t.font),J(t,"fontStyle")&&(r.fontStyle=t.fontStyle),J(t,"fontWeight")&&(r.fontWeight=t.fontWeight),J(t,"fontSize")&&(r.fontSize=t.fontSize),J(t,"fontFamily")&&(r.fontFamily=t.fontFamily),J(t,"align")&&(r.textAlign=t.align),J(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),J(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),J(t,"width")&&(r.textWidth=t.width),J(t,"height")&&(r.textHeight=t.height),J(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),J(t,"padding")&&(r.textPadding=t.padding),J(t,"borderColor")&&(r.textBorderColor=t.borderColor),J(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),J(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),J(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),J(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),J(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),J(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),J(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),J(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),J(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),J(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}function dT(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function gT(r){for(var t=Re(),e=Re(),a=0;a<r.length;){var n=r[a++],i=r[a++];Nr(n,i)||(dm(t,n),dm(e,i))}return[t,e]}function yT(r,t){var e=gT(r),a=e[0],n=e[1],i=gT(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(a[1]-o[1]),Math.abs(n[1]-s[1]))}function mT(r){return Lt(r)?r:r?.5:0}function bW(r,t,e){if(e.valueDim==null)return[];for(var a=t.count(),n=_a(a*2),i=0;i<a;i++){var o=CR(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Dn(r,t,e,a,n){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],v=[],h=[];if(n){for(l=0;l<r.length;l+=2){var c=t||r;Nr(c[l],c[l+1])||h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(v[0]=r[l+2],v[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),a){case"end":u[o]=v[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var p=(f[o]+v[o])/2,d=[];u[o]=d[o]=p,u[1-o]=f[1-o],d[1-o]=v[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=v[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function wW(r,t){var e=[],a=r.length,n,i;function o(f,v,h){var c=f.coord,p=(h-c)/(v.coord-c),d=nB(p,[f.color,v.color]);return{coord:h,color:d}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function TW(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=W(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,v=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),v.reverse());var h=wW(u,n==="x"?e.getWidth():e.getHeight()),c=h.length;if(!c&&f)return u[0].coord<0?v[1]?v[1]:u[f-1].color:v[0]?v[0]:u[0].color;var p=10,d=h[0].coord-p,g=h[c-1].coord+p,y=g-d;if(y<.001)return"transparent";A(h,function(_){_.offset=(_.coord-d)/y}),h.push({offset:c?h[c-1].offset:.5,color:v[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:v[0]||"transparent"});var m=new ei(0,0,0,0,h,!0);return m[n]=d,m[n+"2"]=g,m}}}function CW(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&AW(i,t))){var o=t.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){l.tick.offInterval||(s[Al(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function AW(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Hf.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function MW(r){for(var t=r.length/2;t>0&&Nr(r[t*2-2],r[t*2-1]);t--);return t-1}function _T(r,t){return[r[t*2],r[t*2+1]]}function DW(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!Nr(o,r[u*2+1-n])){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function ER(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<rr.length;t++)if(r.get([rr[t],"endLabel","show"]))return!0;return!1}function Mg(r,t,e,a){if(Lo(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=ER(a)?function(c,p){r._endLabelOnDuring(c,p,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=DR(t,e,a,function(){var c=r._endLabel;c&&e&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var v=f.shape,h=Math.max(v.width,v.height);u?(v.y-=h,v.height+=h*2):(v.x-=h,v.width+=h*2)}return l&&l(1,f),f}else return IR(t,e,a)}function IW(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var LW=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new it,a=new Wf;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=q(this._changePolyState,this)},t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],v=i.type==="polar",h=this._coordSys,c=this._symbolDraw,p=this._polyline,d=this._polygon,g=this._lineGroup,y=!a.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=TR(i,s,_),x=m&&bW(i,s,S),b=e.get("showSymbol"),w=e.get("connectNulls"),C=b&&!v&&CW(e,s,i),T=this._data;T&&T.eachItemGraphicEl(function(tt,dt){tt.__temp&&(o.remove(tt),T.setItemGraphicEl(dt,null))}),b||c.remove(),o.add(g);var M=v?!1:e.get("step"),D;i&&i.getArea&&e.get("clip",!0)&&(D=i.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=TW(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&h.type===i.type&&M===this._step))b&&c.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(tt){return[f[tt*2],f[tt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,D),M&&(x&&(x=Dn(x,f,i,M,w)),f=Dn(f,null,i,M,w)),p=this._newPolyline(f),m?d=this._newPolygon(f,x):d&&(g.remove(d),d=this._polygon=null),v||this._initOrUpdateEndLabel(e,i,To(L)),g.setClipPath(Mg(this,i,!0,e));else{m&&!d?d=this._newPolygon(f,x):d&&!m&&(g.remove(d),d=this._polygon=null),v||this._initOrUpdateEndLabel(e,i,To(L));var I=g.getClipPath();if(I){var P=Mg(this,i,!1,e);$t(I,{shape:P.shape},e)}else g.setClipPath(Mg(this,i,!0,e));b&&c.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(tt){return[f[tt*2],f[tt*2+1]]}}),(!dT(this._stackedOnPoints,x)||!dT(this._points,f))&&(y?this._doUpdateAnimation(s,x,i,n,M,_,w):(M&&(x&&(x=Dn(x,f,i,M,w)),f=Dn(f,null,i,M,w)),p.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:x})))}var R=e.getModel("emphasis"),E=R.get("focus"),O=R.get("blurScope"),k=R.get("disabled");if(p.useStyle(st(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),de(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var V=p.getState("emphasis").style;V.lineWidth=+p.style.lineWidth+1}ft(p).seriesIndex=e.seriesIndex,Kt(p,E,O,k);var z=mT(e.get("smooth")),F=e.get("smoothMonotone");if(p.setShape({smooth:z,smoothMonotone:F,connectNulls:w}),d){var U=s.getCalculationInfo("stackedOnSeries"),X=0;d.useStyle(st(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(X=mT(U.get("smooth"))),d.setShape({smooth:z,stackedOnSmooth:X,smoothMonotone:F,connectNulls:w}),de(d,e,"areaStyle"),ft(d).seriesIndex=e.seriesIndex,Kt(d,E,O,k)}var Y=this._changePolyState;s.eachItemGraphicEl(function(tt){tt&&(tt.onHoverStateChange=Y)}),this._polyline.onHoverStateChange=Y,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=f,this._step=M,this._valueOrigin=_;var Q=e.get("triggerEvent"),gt=e.get("triggerLineEvent"),Et=gt===!0||Q===!0||Q==="line",vt=gt===!0||Q===!0||Q==="area";this.packEventData(e,p,Et),d&&this.packEventData(e,d,vt)},t.prototype.packEventData=function(e,a,n){ft(a).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line",selfType:a===this._polygon?"area":"line"}:null},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=mo(o,i);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],v=l[s*2+1];if(Nr(f,v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,v))return;var h=e.get("zlevel")||0,c=e.get("z")||0;u=new Hf(o,s),u.x=f,u.y=v,u.setZ(h,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Gt.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=mo(o,i);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 Gt.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;rc(this._polyline,e),a&&rc(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new SW({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new MR({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");nt(f)&&(f=f(null));var v=u.get("animationDelay")||0,h=nt(v)?v(null):v;e.eachItemGraphicEl(function(c,p){var d=c;if(d){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,x=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=n;i?(y=b.x,m=b.x+b.width,_=c.x):(y=b.y+b.height,m=b.y,_=c.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var C=nt(v)?v(p):f*w+h,T=d.getSymbolPath(),M=T.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(ER(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 It({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=MW(l);f>=0&&(we(s,ge(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(v,h,c){return c!=null?wR(o,c):il(o,v)},enableTextSetter:!0},IW(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?d:0)*(m?-1:1),b=(y?0:-d)*(m?-1:1),w=y?"x":"y",C=DW(v,S,w),T=C.range,M=T[1]-T[0],D=void 0;if(M>=1){if(M>1&&!c){var L=_T(v,T[0]);u.attr({x:L[0]+x,y:L[1]+b}),o&&(D=h.getRawValue(T[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+x,y:L[1]+b});var I=h.getRawValue(T[0]),P=h.getRawValue(T[1]);o&&(D=EI(n,p,I,P,C.t))}i.lastFrameIndex=T[0]}else{var R=e===1||i.lastFrameIndex>0?T[0]:0,L=_T(v,R);o&&(D=h.getRawValue(R)),u.attr({x:L[0]+x,y:L[1]+b})}if(o){var E=bl(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,v=e.hostModel,h=_W(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),c=h.current,p=h.stackedOnCurrent,d=h.next,g=h.stackedOnNext;if(o&&(p=Dn(h.stackedOnCurrent,h.current,n,o,l),c=Dn(h.current,null,n,o,l),g=Dn(h.stackedOnNext,h.next,n,o,l),d=Dn(h.next,null,n,o,l)),yT(c,d)>3e3||f&&yT(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=c;var y={shape:{points:d}};h.current!==c&&(y.shape.__points=h.next),u.stopAnimation(),Rt(u,y,v),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),Rt(f,{shape:{stackedOnPoints:g}},v),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,C=0;C<m.length;C++){var T=m[C].el,M=m[C].ptIdx*2;T.x=w[M],T.y=w[M+1],T.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Gt);function Uf(r,t){return{seriesType:r,plan:Zo(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(n){var s=W(n.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");ai(a,s[0])&&(s[0]=u),ai(a,s[1])&&(s[1]=u);var f=a.getStore(),v=a.getDimensionIndex(s[0]),h=a.getDimensionIndex(s[1]);return l&&{progress:function(c,p){for(var d=c.end-c.start,g=o&&_a(d*l),y=[],m=[],_=c.start,S=0;_<c.end;_++){var x=void 0;if(l===1){var b=f.get(v,_);x=n.dataToPoint(b,null,m)}else y[0]=f.get(v,_),y[1]=f.get(h,_),x=n.dataToPoint(y,null,m);o?(g[S++]=x[0],g[S++]=x[1]):p.setItemLayout(_,x.slice())}o&&(p.setLayout("points",g),p.setLayout("pointsRange",{start:c.start,end:c.end}))}}}}}}var PW={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],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]}},RW=function(r){return Math.round(r.length/2)};function kR(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),v=a.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(v||1),c=Math.round(s/h);if(isFinite(c)&&c>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/c));var p=void 0;Z(i)?p=PW[i]:nt(i)&&(p=i),p&&t.setData(n.downSample(n.mapDimension(u.dim),1/c,p,RW))}}}}}function EW(r){r.registerChartView(LW),r.registerSeriesModel(cW),r.registerLayout(Uf("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,kR("line"))}var OR=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"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 a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(na),u0=null;function kW(r){u0||(u0=r)}function Yf(){return u0}var Wp="expandAxisBreak",NR="collapseAxisBreak",BR="toggleAxisBreak",I1="axisbreakchanged",OW={type:Wp,event:I1,update:"update",refineEvent:L1},NW={type:NR,event:I1,update:"update",refineEvent:L1},BW={type:BR,event:I1,update:"update",refineEvent:L1};function L1(r,t,e,a){var n=[];return A(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function VW(r){r.registerAction(OW,t),r.registerAction(NW,t),r.registerAction(BW,t);function t(e,a){var n=[],i=Bs(a,e);function o(s,l){A(i[s],function(u){var f=u.updateAxisBreaks(e);A(f.breaks,function(v){var h;n.push(st((h={},h[l]=u.componentIndex,h),v))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var Gn=Math.PI,zW=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],GW=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Po=yt(),VR=yt(),zR=function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r}();function FW(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=P1(r.axisName)&&rl(r.nameLocation);A(a,function(p){var d=Na(p);if(!(!d||d.label.ignore)){o.push(d);var g=i.transGroup;l&&(g.transform?Vr(ql,g.transform):pl(ql),d.transform&&Or(ql,ql,d.transform),ot.copy(Ov,d.localRect),Ov.applyTransform(ql),s?s.union(Ov):ot.copy(s=new ot(0,0,0,0),Ov))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(p,d){return Math.abs(p.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var v=n.getExtent(),h=Math.min(v[0],v[1]),c=Math.max(v[0],v[1])-h;s.union(new ot(h,0,c,1))}i.stOccupiedRect=s,i.labelInfoList=o}var ql=Qt(),Ov=new ot(0,0,0,0),GR=function(r,t,e,a,n,i){if(rl(r.nameLocation)){var o=i.stOccupiedRect;o&&FR(m4({},o,i.transGroup.transform),a,n)}else HR(i.labelInfoList,i.dirVec,a,n)};function FR(r,t,e){var a=new lt;Fp(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&e0(t,a)}function HR(r,t,e,a){for(var n=lt.dot(a,t)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||FR(s,e,a)}}var er=function(){function r(t,e,a,n){this.group=new it,this._axisModel=t,this._api=e,this._local={},this._shared=n||new zR(GR),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,a=e.getDefaultOption?e.getDefaultOption():{},n=j(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");(i==null||i==="auto")&&(i=j(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:j(t.nameDirection,1),tickDirection:j(t.tickDirection,1),labelDirection:j(t.labelDirection,1),labelOffset:j(t.labelOffset,0),silent:j(t.silent,!0),axisName:n,nameLocation:_r(e.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:P1(n)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new it({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new lt(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var a=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(HW,function(n){t[n]&&WW[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,e||{})}),this},r.innerTextLayout=function(t,e,a){var n=bI(e-t),i,o;return Ks(n)?(o=a>0?"top":"bottom",i="center"):Ks(n-Gn)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<Gn?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,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}(),HW=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],WW={axisLine:function(r,t,e,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],v=[l[1],0],h=f[0]>v[0];u&&(ae(f,f,u),ae(v,v,u));var c=G({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:c};if(a.get(["axisLine","breakLine"])&&sc(a.axis.scale))Yf().buildAxisBreakLine(a,n,i,p);else{var d=new fe(G({shape:{x1:f[0],y1:f[1],x2:v[0],y2:v[1]}},p));js(d.shape,d.style.lineWidth),d.anid="line",n.add(d)}var g=a.get(["axisLine","symbol"]);if(g!=null){var y=a.get(["axisLine","symbolSize"]);Z(g)&&(g=[g,g]),(Z(y)||Lt(y))&&(y=[y,y]);var m=$o(a.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];A([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-v[0])*(f[0]-v[0])+(f[1]-v[1])*(f[1]-v[1]))}],function(x,b){if(g[b]!=="none"&&g[b]!=null){var w=he(g[b],-_/2,-S/2,_,S,c.stroke,!0),C=x.r+x.offset,T=h?v:f;w.attr({rotation:x.rotate,x:T[0]+C*Math.cos(r.rotation),y:T[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,s){var l=xT(t,n,s);l&&ST(r,t,e,a,n,i,o,ta.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=xT(t,n,s);l&&ST(r,t,e,a,n,i,o,ta.determine);var u=ZW(r,n,i,a);XW(r,t.labelLayoutList,u),$W(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,s){var l=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(P1(u)){var f=r.nameLocation,v=r.nameDirection,h=a.getModel("nameTextStyle"),c=a.get("nameGap")||0,p=a.axis.getExtent(),d=a.axis.inverse?-1:1,g=new lt(0,0),y=new lt(0,0);f==="start"?(g.x=p[0]-d*c,y.x=-d):f==="end"?(g.x=p[1]+d*c,y.x=d):(g.x=(p[0]+p[1])/2,g.y=r.labelOffset+v*c,y.y=v);var m=Qt();y.transform(fi(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*Gn/180);var S,x;rl(f)?S=er.innerTextLayout(r.rotation,_??r.rotation,v):(S=UW(r.rotation,f,_||0,p),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var b=h.getFont(),w=a.get("nameTruncate",!0)||{},C=w.ellipsis,T=je(r.raw.nameTruncateMaxWidth,w.maxWidth,x),M=s.nameMarginLevel||0,D=new It({x:g.x,y:g.y,rotation:S.rotation,silent:er.isLabelSilent(a),style:Yt(h,{text:u,font:b,overflow:"truncate",width:T,ellipsis:C,fill:h.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(mn({el:D,componentModel:a,itemName:u}),D.__fullText=u,D.anid="name",a.get("triggerEvent")){var L=er.makeAxisEventDataBase(a);L.targetType="axisName",L.name=u,ft(D).eventData=L}i.add(D),D.updateTransform(),t.nameEl=D;var I=l.nameLayout=Na({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:rl(f)?zW[M]:GW[M]});if(l.nameLocation=f,n.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&I){var P=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,I,y,P)}}}};function ST(r,t,e,a,n,i,o,s){UR(t)||qW(r,t,n,s,a,o);var l=t.labelLayoutList;KW(r,a,l,i),QW(a,r.rotation,l);var u=r.optionHideOverlap;YW(a,l,u),u&&nR(Bt(l,function(f){return f&&!f.label.ignore})),FW(r,e,a,l)}function UW(r,t,e,a){var n=bI(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return Ks(n-Gn/2)?(o=l?"bottom":"top",i="center"):Ks(n-Gn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<Gn*1.5&&n>Gn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function YW(r,t,e){var a=r.axis,n=r.get(["axisLabel","customValues"]);if(yH(a))return;function i(u,f,v){var h=Na(t[f]),c=Na(t[v]),p=a.scale;if(!(!h||!c)){if(u==null){if(!e&&n)return;var d=Po(h.label).labelInfo.tick;if(Bf(p)&&d.notNice||Xe(p)&&d.offInterval){As(h.label);return}}if(u===!1||h.suggestIgnore){As(h.label);return}if(c.suggestIgnore){As(c.label);return}var g=.1;if(!e){var y=[0,0,0,0];h=r0({marginForce:y},h),c=r0({marginForce:y},c)}Fp(h,c,null,{touchThreshold:g})&&As(u?c.label:h.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=t.length;i(o,0,1),i(s,l-1,l-2)}function XW(r,t,e){r.showMinorTicks||A(t,function(a){if(a&&a.label.ignore)for(var n=0;n<e.length;n++){var i=e[n],o=VR(i),s=Po(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){As(i);return}}})}function As(r){r&&(r.ignore=!0)}function WR(r,t,e,a,n){for(var i=[],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&&(ae(o,o,t),ae(s,s,t));var f=new fe({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});js(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f);var v=VR(f);v.onBand=!!r[l].onBand,v.tickValue=r[l].tickValue}return i}function ZW(r,t,e,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),f=WR(u,e.transform,l,st(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<f.length;v++)t.add(f[v]);return f}function $W(r,t,e,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=st(l.getLineStyle(),st(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),v=0;v<s.length;v++)for(var h=WR(s[v],e.transform,u,f,"minorticks_"+v),c=0;c<h.length;c++)t.add(h[c])}}function xT(r,t,e){if(UR(r)){var a=r.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(e.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(t.remove(r.labelGroup),f0(r,null,null,null))}return!0}function qW(r,t,e,a,n,i){var o=n.axis,s=je(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new it;e.add(l);var u=xc(a);if(!s||o.scale.isBlank()){f0(t,[],l,u);return}var f=n.getModel("axisLabel"),v=o.getViewLabels(u),h=(je(r.raw.labelRotate,f.get("rotate"))||0)*Gn/180,c=er.innerTextLayout(r.rotation,h,r.labelDirection),p=n.getCategories&&n.getCategories(!0),d=[],g=n.get("triggerEvent"),y=1/0,m=-1/0;A(v,function(S,x){var b,w=S.tick,C=S.formattedLabel,T=S.rawLabel,M=f,D=Al(o.scale,w);if(p&&p[D]){var L=p[D];ut(L)&&L.textStyle&&(M=new At(L.textStyle,f,n.ecModel))}var I=M.getTextColor()||n.get(["axisLine","lineStyle","color"]),P=M.getShallow("align",!0)||c.textAlign,R=j(M.getShallow("alignMinLabel",!0),P),E=j(M.getShallow("alignMaxLabel",!0),P),O=M.getShallow("verticalAlign",!0)||M.getShallow("baseline",!0)||c.textVerticalAlign,k=j(M.getShallow("verticalAlignMinLabel",!0),O),V=j(M.getShallow("verticalAlignMaxLabel",!0),O),z=10+(((b=w.time)===null||b===void 0?void 0:b.level)||0);y=Math.min(y,z),m=Math.max(m,z);var F=new It({x:0,y:0,rotation:0,silent:er.isLabelSilent(n),z2:z,style:Yt(M,{text:C,align:x===0?R:x===v.length-1?E:P,verticalAlign:x===0?k:x===v.length-1?V:O,fill:nt(I)?I(o.type==="category"?T:o.type==="value"?D+"":D,x):I})});F.anid="label_"+D;var U=Po(F);if(U.labelInfo=S,U.layoutRotation=c.rotation,mn({el:F,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return F.isTruncated},value:T,tickIndex:x}}),g){var X=er.makeAxisEventDataBase(n);X.targetType="axisLabel",X.value=T,X.tickIndex=x;var Y=S.tick.break;if(Y){var Q=Y.parsedBreak;X.break={start:Q.vmin,end:Q.vmax}}o.type==="category"&&(X.dataIndex=D),ft(F).eventData=X,Y&&jW(n,i,F,Y)}d.push(F),l.add(F)});var _=W(d,function(S){return{label:S,priority:Po(S).labelInfo.tick.break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});f0(t,_,l,u)}function UR(r){return!!r.labelLayoutList}function f0(r,t,e,a){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=a}function KW(r,t,e,a){var n=t.get(["axisLabel","margin"]);A(e,function(i,o){var s=Na(i);if(s){var l=s.label,u=Po(l);s.suggestIgnore=l.ignore,l.ignore=!1,Pa(Ya,JW);var f=t.axis;Ya.x=f.dataToCoord(Al(f.scale,u.labelInfo.tick)),Ya.y=r.labelOffset+r.labelDirection*n,Ya.rotation=u.layoutRotation,a.add(Ya),Ya.updateTransform(),a.remove(Ya),Ya.decomposeTransform(),Pa(l,Ya),l.markRedraw(),Ac(s,!0),Na(s)}})}var Ya=new bt,JW=new bt;function P1(r){return!!r}function jW(r,t,e,a){e.on("click",function(n){var i={type:Wp,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(i)})}function QW(r,t,e){var a=se();if(a){var n=a.retrieveAxisBreakPairs(e,function(o){return o&&Po(o.label).labelInfo.tick.break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&A(n,function(o){Yf().adjustBreakLabelPair(r.axis.inverse,t,[Na(e[o[0]]),Na(e[o[1]])])})}}function Dc(r,t,e){e=e||{};var a=t.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,h=l==="x"?[u[2]-v,u[3]+v]:[u[0]-v,u[1]+v];if(i){var c=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(c,h[1]),h[0])}n.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=p[o],n.labelOffset=i?h[f[o]]-h[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),je(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function tU(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function eU(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,te).models[0];t[a]=i}),t}function rU(r,t,e,a,n,i){for(var o=Dc(r,e),s=!1,l=!1,u=0;u<t.length;u++)CP(t[u].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new er(e,a,o,n)}function aU(r,t,e){var a=Dc(t,e);r.updateCfg(a)}function nU(r){return r.dim+"_"+r.index}function iU(){DH("liPosMinGap",oU)}function oU(r,t,e){var a=K(),n=e.serUids,i=e.liPosMinGap,o,s=t.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,v=T2(f);function h(_){zp(r,t.sers,function(S){var x=S.getRawData(),b=x.getDimensionIndex(x.mapDimension(s.dim));b>=0&&_(b,S,x.getStore())})}var c=0;if(h(function(_,S,x){a.set(S.uid,1),(!n||!n.hasKey(S.uid))&&(o=!0),c+=x.count()}),(!n||n.keys().length!==a.keys().length)&&(o=!0),!o&&i!=null){t.liPosMinGap=i;return}D1(Gi,c);var p=0;h(function(_,S,x){for(var b=0,w=x.count();b<w;++b){var C=x.get(_,b);isFinite(C)&&(!f||C2(v,C))&&(u&&(C=l.transformIn(C,null)),Gi.arr[p++]=C)}});var d=Gi.typed?Gi.arr.subarray(0,p):(Gi.arr.length=p,Gi.arr);Gi.typed?d.sort():Ee(d);for(var g=1/0,y=1;y<p;++y){var m=d[y]-d[y-1];m>0&&m<g&&(g=m)}e.liPosMinGap=t.liPosMinGap=zr(g)?g:p>0?OP:xH,e.serUids=a}var Gi=D1({ctor:yW},50);function Up(r){return function(t,e){var a=Oe(t,{fromStat:{key:r}});if(zr(a.w2))return[-a.w2/2,a.w2/2]}}function co(r){return r+Sc}function Ko(r,t){return r+Sc+t}function R1(r){return iU(),{liPosMinGap:!Xe(r.scale)}}var Ca="bar",ff="pictorialBar";function YR(r,t,e,a){m1(r,{key:t,seriesType:e,coordSysType:a,getMetrics:R1})}function XR(r){var t=r.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var ZR={left:0,right:0,top:0,bottom:0},Ic=["25%","25%"],jr="cartesian2d",sU=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=Xo(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&Oa(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Oa(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:ZR,outerBoundsContain:"all",outerBoundsClampWidth:Ic[0],outerBoundsClampHeight:Ic[1],backgroundColor:B.color.transparent,borderWidth:1,borderColor:B.color.neutral30},t}(Tt),lU=yl(),v0="__ec_stack_";function $R(r){return r.get("stack")||v0+r.seriesIndex}function uU(r){if(Xe(r.axis.scale)){for(var t=Oe(r.axis),e=[],a=0;a<r.count;a++)e.push(st({stackId:v0+a},r));for(var n=qR({bandWidthResult:t,seriesInfo:e}),i=[],a=0;a<r.count;a++){var o=n[v0+a];o.offsetCenter=o.offset+o.width/2,i.push(o)}return i}}function fU(r,t){var e=vU(r,t);return e.columnMap=qR(e),e}function vU(r,t){var e=Ko(t,jr),a=[],n=Oe(r,{fromStat:{key:e},min:1});return Ao(r,e,function(i){a.push({barWidth:$(i.get("barWidth"),n.w),barMaxWidth:$(i.get("barMaxWidth"),n.w),barMinWidth:$(i.get("barMinWidth")||(jR(i)?.5:1),n.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:$R(i)})}),{bandWidthResult:n,seriesInfo:a}}function qR(r){var t=r.bandWidthResult.w,e=t,a=0,n,i,o=[],s={};A(r.seriesInfo,function(d,g){g||(i=d.defaultBarGap||0);var y=d.stackId;J(s,y)||a++;var m=s[y];m||(m=s[y]={width:0,maxWidth:0},o.push(y));var _=d.barWidth;_&&!m.width&&(m.width=_,_=zt(e,_),e-=_);var S=d.barMaxWidth;S&&(m.maxWidth=S);var x=d.barMinWidth;x&&(m.minWidth=x);var b=d.barGap;b!=null&&(i=b);var w=d.barCategoryGap;w!=null&&(n=w)}),n==null&&(n=xt(35-o.length*4,15)+"%");var l=$(n,t),u=$(i,1),f=(e-l)/(a+(a-1)*u);f=xt(f,0),A(o,function(d){var g=s[d],y=g.maxWidth,m=g.minWidth;if(g.width){var _=g.width;y&&(_=zt(_,y)),m&&(_=xt(_,m)),g.width=_,e-=_+u*_,a--}else{var _=f;y&&y<_&&(_=zt(y,e)),m&&m>_&&(_=m),_!==f&&(g.width=_,e-=_+u*_,a--)}}),f=(e-l)/(a+(a-1)*u),f=xt(f,0);var v=0,h;A(o,function(d){var g=s[d];g.width||(g.width=f),h=g,v+=g.width*(1+u)}),h&&(v-=h.width*u);var c={},p=-v/2;return A(o,function(d){var g=s[d];c[d]=c[d]||{bandWidth:t,offset:p,width:g.width},p+=g.width*(1+u)}),c}function KR(r){return{seriesType:r,overallReset:function(t){var e=Ko(r,jr);y1(t,e,function(a){var n=fU(a,r);Ao(a,e,function(i){var o=n.columnMap[$R(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function JR(r){return{seriesType:r,plan:Zo(),reset:function(t){if(tU(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),v=ai(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),c=i.toGlobalCoord(i.dataToCoord(XR(i))),p=jR(t),d=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var x=_.count,b=p&&_a(x*3),w=p&&l&&_a(x*3),C=p&&_a(x),T=a.master.getRect(),M=h?T.width:T.height,D,L=S.getStore(),I=0;(D=_.next())!=null;){var P=L.get(v?g:o,D),R=L.get(s,D),E=c,O=void 0;v&&(O=+P-L.get(o,D));var k=void 0,V=void 0,z=void 0,F=void 0;if(h){var U=a.dataToPoint([P,R]);v&&(E=a.dataToPoint([O,R])[0]),k=E,V=U[1]+m,z=U[0]-E,F=y,ee(z)<d&&(z=(z<0?-1:1)*d)}else{var U=a.dataToPoint([R,P]);v&&(E=a.dataToPoint([R,O])[1]),k=U[0]+m,V=E,z=y,F=U[1]-E,ee(F)<d&&(F=(F<=0?-1:1)*d)}p?(b[I]=k,b[I+1]=V,b[I+2]=h?z:F,w&&(w[I]=h?T.x:k,w[I+1]=h?V:T.y,w[I+2]=M),C[D]=D):S.setItemLayout(D,{x:k,y:V,width:z,height:F}),I+=3}p&&S.setLayout({largePoints:b,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function jR(r){return r.pipelineContext&&r.pipelineContext.large}function hU(r){return Up(Ko(r,jr))}function QR(r){lU(r,function(){function t(e){var a=Ko(e,jr);YR(r,a,e,jr),Gp(a,hU(e))}t("bar"),t("pictorialBar")})}var vf=function(r){N(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,a){return _n(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(h,c){if(h.type==="category"&&a!=null){var p=h.getTicksCoords(),d=h.getTickModel().get("alignWithLabel"),g=o[c],y=a[c]==="x1"||a[c]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[c]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,x=0;x<p.length;x++){var b=p[x].coord,w=x===p.length-1?p[x-1].tickValue+S:p[x].tickValue;if(w===g){_=b;break}else if(w<g)m=b;else if(m!=null&&w>g){_=(b+m)/2;break}x===1&&(S=w-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[c]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),v=i.getBaseAxis().isHorizontal()?0:1;s[v]+=u+f/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},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",defaultBarGap:"10%"},t}(Xt);Xt.registerClass(vf);var cU=function(r){N(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 _n(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.__preparePipelineContext=function(e,a){var n=NI(this,e,a);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series."+Ca,t.dependencies=["grid","polar"],t.defaultOption=hi(vf.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:B.color.primary,borderWidth:2}},realtimeSort:!1}),t}(vf),pU=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}(),Lc=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new pU},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,v=a.endAngle,h=a.clockwise,c=Math.PI*2,p=h?v-f<c:f-v<c;p||(f=v-(h?c:-c));var d=Math.cos(f),g=Math.sin(f),y=Math.cos(v),m=Math.sin(v);p?(e.moveTo(d*o+n,g*o+i),e.arc(d*u+n,g*u+i,l,-Math.PI+f,f,!h)):e.moveTo(d*s+n,g*s+i),e.arc(n,i,s,f,v,!h),e.arc(y*u+n,m*u+i,l,v-Math.PI*2,v-Math.PI,!h),o!==0&&e.arc(n,i,o,v,f,h)},t}(wt);function dU(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return qh(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,v=u.cy,h=u.r,c=u.r0,p=(h+c)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=e?Math.abs(h-c)/2:0,_=Math.cos,S=Math.sin,x=f+h*_(d),b=v+h*S(d),w="left",C="top";switch(s){case"startArc":x=f+(c-l)*_(y),b=v+(c-l)*S(y),w="center",C="top";break;case"insideStartArc":x=f+(c+l)*_(y),b=v+(c+l)*S(y),w="center",C="bottom";break;case"startAngle":x=f+p*_(d)+Nv(d,l+m,!1),b=v+p*S(d)+Bv(d,l+m,!1),w="right",C="middle";break;case"insideStartAngle":x=f+p*_(d)+Nv(d,-l+m,!1),b=v+p*S(d)+Bv(d,-l+m,!1),w="left",C="middle";break;case"middle":x=f+p*_(y),b=v+p*S(y),w="center",C="middle";break;case"endArc":x=f+(h+l)*_(y),b=v+(h+l)*S(y),w="center",C="bottom";break;case"insideEndArc":x=f+(h-l)*_(y),b=v+(h-l)*S(y),w="center",C="top";break;case"endAngle":x=f+p*_(g)+Nv(g,l+m,!0),b=v+p*S(g)+Bv(g,l+m,!0),w="left",C="middle";break;case"insideEndAngle":x=f+p*_(g)+Nv(g,-l+m,!0),b=v+p*S(g)+Bv(g,-l+m,!0),w="right",C="middle";break;default:return qh(a,n,i)}return a=a||{},a.x=x,a.y=b,a.align=w,a.verticalAlign=C,a}}function gU(r,t,e,a){if(Lt(a)){r.setTextConfig({rotation:a});return}else if(H(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+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=i;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 Nv(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Bv(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Sa(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;H(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:W(a,function(i){return Ra(i,n)})}}var Dg=Math.max,Ig=Math.min,yU=function(r){N(t,r);function t(){var e=r.call(this)||this;return e.type=Ca,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),v;u.type==="cartesian2d"?v=f.isHorizontal():u.type==="polar"&&(v=f.dim==="angle");var h=e.isAnimationEnabled()?e:null,c=mU(e,u);c&&this._enableRealtimeSort(c,s,n);var p=e.get("clip",!0)||c,d=u.getArea();o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,b=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function C(D){var L=Vv[u.type](s,D);if(!L)return null;var I=CU(u,v,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[D]=I,I}s.diff(l).add(function(D){var L=s.getItemModel(D),I=Vv[u.type](s,D,L);if(I&&(y&&C(D),!(!s.hasValue(D)||!AT[u.type](I)))){var P=!1;p&&(P=bT[u.type](d,I));var R=wT[u.type](e,s,D,I,v,h,f.model,!1,g);c&&(R.forceLabelAnimation=!0),MT(R,s,D,L,I,e,v,u.type==="polar"),b?R.attr({shape:I}):c?TT(c,h,R,I,D,v,!1,!1):$t(R,{shape:I},e,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,L){var I=s.getItemModel(D),P=Vv[u.type](s,D,I);if(P){if(y){var R=void 0;x.length===0?R=C(L):(R=x[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var E=Vv[u.type](s,D),O=eE(v,E,u);Rt(R,{shape:O},h,D)}var k=l.getItemGraphicEl(L);if(!s.hasValue(D)||!AT[u.type](P)){o.remove(k);return}var V=!1;p&&(V=bT[u.type](d,P),V&&o.remove(k));var z=k&&(k.type==="sector"&&g||k.type==="sausage"&&!g);if(z&&(k&&Qa(k,e,L),k=null),k?Fr(k):k=wT[u.type](e,s,D,P,v,h,f.model,!0,g),c&&(k.forceLabelAnimation=!0),w){var F=k.getTextContent();if(F){var U=bl(F);U.prevValue!=null&&(U.prevValue=U.value)}}else MT(k,s,D,I,P,e,v,u.type==="polar");b?k.attr({shape:P}):c?TT(c,h,k,P,D,v,!0,w):Rt(k,{shape:P},e,D,null),s.setItemGraphicEl(D,k),k.ignore=V,o.add(k)}}).remove(function(D){var L=l.getItemGraphicEl(D);L&&Qa(L,e,D)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new it);T.removeAll();for(var M=0;M<S.length;++M)T.add(S[M]);o.add(T),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),IT(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),IT(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&Io(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:W(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),v=f<0?Number.MIN_VALUE:a(e.indexOfRawIndex(f));if(v>s)return!0;s=v}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Qa(i,e,ft(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=Ca,t}(Gt),bT={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=Dg(t.x,r.x),s=Ig(t.x+t.width,n),l=Dg(t.y,r.y),u=Ig(t.y+t.height,i),f=s<o,v=u<l;return t.x=f&&o>n?s:o,t.y=v&&l>i?u:l,t.width=f?0:s-o,t.height=v?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),f||v},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=Ig(t.r,r.r),i=Dg(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},wT={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new bt({shape:G({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,v=n?"height":"width";f[v]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?Lc:Ue,f=new u({shape:a,z2:1});f.name="item";var v=tE(n);if(f.calculateTextPosition=dU(v,{isRoundCap:u===Lc}),i){var h=f.shape,c=n?"r":"endAngle",p={};h[c]=n?a.r0:a.startAngle,p[c]=a[c],(s?Rt:$t)(f,{shape:p},i)}return f}};function mU(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function TT(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Rt:$t)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Rt:$t)(e,{shape:u},f,n)}function CT(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var _U=["x","y","width","height"],SU=["cx","cy","r","startAngle","endAngle"],AT={cartesian2d:function(r){return!CT(r,_U)},polar:function(r){return!CT(r,SU)}},Vv={cartesian2d:function(r,t,e){var a=r.getItemLayout(t);if(!a)return null;var n=e?bU(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function xU(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function tE(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function MT(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,v=Sa(a.getModel("itemStyle"),f,!0);G(f,v),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=a.getShallow("cursor");h&&r.attr("cursor",h);var c=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?AU(n,i.coordinateSystem):MU(n,i.coordinateSystem),p=ge(a);we(r,p,{labelFetcher:i,labelDataIndex:e,defaultText:il(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=r.getTextContent();if(s&&d){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,gU(r,g==="outside"?c:g,tE(o),a.get(["label","rotate"]))}LL(d,p,i.getRawValue(e),function(m){return wR(t,m)});var y=a.getModel(["emphasis"]);Kt(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),de(r,a),xU(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function bU(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var wU=function(){function r(){}return r}(),DT=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new wU},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(wt);function IT(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=a?Ta(r):0;if(u){var v=new DT({shape:{points:u},incremental:f,silent:!0,z2:0});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,v.useStyle(l.getItemStyle()),t.add(v),e&&e.push(v)}var h=new DT({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=i,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(n.getVisual("style")),h.style.stroke=null,ft(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",LT),h.on("mousemove",LT)),e&&e.push(h)}var LT=e1(function(r){var t=this,e=TU(t,r.offsetX,r.offsetY);ft(t).dataIndex=e>=0?e:null},30,!1);function TU(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,v=i.length/3;f<v;f++){var h=f*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function eE(r,t,e){if(Lo(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function CU(r,t,e){var a=r.type==="polar"?Ue:bt;return new a({shape:eE(t,e,r),silent:!0,z2:0})}function AU(r,t){if(r.height===0){var e=t.getOtherAxis(t.getBaseAxis());return e.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function MU(r,t){if(r.width===0){var e=t.getOtherAxis(t.getBaseAxis());return e.inverse?"left":"right"}return r.width>=0?"right":"left"}function DU(r){r.registerChartView(yU),r.registerSeriesModel(cU),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,KR(Ca)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,JR(Ca)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,kR(Ca)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})}),QR(r)}function Xf(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}function Dl(r,t,e){t=H(t)&&{coordDimensions:t}||G({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=Nf(a,t).dimensions,i=new tr(n,r);return i.initData(a,e),i}var Il=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 a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}(),Jn="pie",IU=yt(),rE=function(r){N(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){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Il(q(this.getData,this),q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Dl(this,{coordDimensions:["value"],encodeDefaulter:St(Z_,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=IU(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=YB(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){yo(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series."+Jn,t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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}(Xt);z5({fullType:rE.type,getCoord2:function(r){return r.getShallow("center")}});var LU=Math.PI/180;function PT(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function f(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var _=d.list[m],S=Math.abs(_.label.y-e),x=a+_.len,b=x*x,w=Math.sqrt(Math.abs((1-S*S/y)*b)),C=t+(w+_.len2)*n,T=C-_.label.x,M=_.targetTextWidth-T*n;aE(_,M,!0),_.label.x=C}}function v(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if(d[m].labelAlignTo==="none"){var _=d[m],S=_.label.y>e?y:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var b=_.label.x-t-_.len2*n,w=a+_.len,C=Math.abs(b)<w?Math.sqrt(x*x/(1-b*b/w/w)):w;S.rB=C,S.maxY=x}S.list.push(_)}f(g),f(y)}for(var h=r.length,c=0;c<h;c++)if(r[c].position==="outer"&&r[c].labelAlignTo==="labelLine"){var p=r[c].label.x-u;r[c].linePoints[1][0]+=p,r[c].label.x=u}a0(r,1,l,l+o)&&v(r)}function PU(r,t,e,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,v=-Number.MAX_VALUE,h=0;h<r.length;h++){var c=r[h].label;Lg(r[h])||(c.x<t?(f=Math.min(f,c.x),l.push(r[h])):(v=Math.max(v,c.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var p=r[h];if(!Lg(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var c=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?c.x<t?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+n-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?c.x<t?g=f-o-p.bleedMargin:g=o+n-v-p.bleedMargin:c.x<t?g=c.x-o-p.bleedMargin:g=o+n-c.x-p.bleedMargin,p.targetTextWidth=g,aE(p,g,!1)}}PT(u,t,e,a,1,n,i,o,s,v),PT(l,t,e,a,-1,n,i,o,s,f);for(var h=0;h<r.length;h++){var p=r[h];if(!Lg(p)&&p.linePoints){var c=p.label,d=p.linePoints,y=p.labelAlignTo==="edge",m=c.style.padding,_=m?m[1]+m[3]:0,S=c.style.backgroundColor?0:_,x=p.rect.width+S,b=d[1][0]-d[2][0];y?c.x<t?d[2][0]=o+p.edgeDistance+x+p.labelDistance:d[2][0]=o+n-p.edgeDistance-x-p.labelDistance:(c.x<t?d[2][0]=c.x+p.labelDistance:d[2][0]=c.x-p.labelDistance,d[1][0]=d[2][0]+b),d[1][1]=d[2][1]=c.y}}}function aE(r,t,e){if(r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(t<f||e){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var v=a.getBoundingRect();a.setStyle("width",Math.ceil(v.width)),a.setStyle("backgroundColor",o)}else{var h=t-l,c=t<f?h:e?h>r.unconstrainedWidth?null:h:null;a.setStyle("width",c)}nE(i,a)}}}function nE(r,t){RT.rect=r,aR(RT,t,RU)}var RU={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},RT={};function Lg(r){return r.position==="center"}function EU(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*LU,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,v=s.y,h=s.height;function c(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),C=w.shape,T=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(b),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=$(L.get("edgeDistance"),u),O=L.get("bleedMargin");O==null&&(O=Math.min(u,h)>200?10:2);var k=D.getModel("labelLine"),V=k.get("length");V=$(V,u);var z=k.get("length2");if(z=$(z,u),Math.abs(C.endAngle-C.startAngle)<o){A(T.states,c),T.ignore=!0,M&&(A(M.states,c),M.ignore=!0);return}if(p(T)){var F=(C.startAngle+C.endAngle)/2,U=Math.cos(F),X=Math.sin(F),Y,Q,gt,Et;a=C.cx,n=C.cy;var vt=I==="inside"||I==="inner";if(I==="center")Y=C.cx,Q=C.cy,Et="center";else{var tt=(vt?(C.r+C.r0)/2*U:C.r*U)+a,dt=(vt?(C.r+C.r0)/2*X:C.r*X)+n;if(Y=tt+U*3,Q=dt+X*3,!vt){var et=tt+U*(V+l-C.r),ht=dt+X*(V+l-C.r),Ft=et+(U<0?-1:1)*z,Dt=ht;R==="edge"?Y=U<0?f+E:f+u-E:Y=Ft+(U<0?-P:P),Q=Dt,gt=[[tt,dt],[et,ht],[Ft,Dt]]}Et=vt?"center":R==="edge"?U>0?"right":"left":U>0?"left":"right"}var Vt=Math.PI,Ht=0,le=L.get("rotate");if(Lt(le))Ht=le*(Vt/180);else if(I==="center")Ht=0;else if(le==="radial"||le===!0){var cr=U<0?-F+Vt:-F;Ht=cr}else if(le==="tangential"||le==="tangential-noflip"&&I!=="outside"&&I!=="outer"){var nr=Math.atan2(U,X);nr<0&&(nr=Vt*2+nr);var ci=X>0;ci&&le!=="tangential-noflip"&&(nr=Vt+nr),Ht=nr-Vt}if(i=!!Ht,T.x=Y,T.y=Q,T.rotation=Ht,T.setStyle({verticalAlign:"middle"}),vt){T.setStyle({align:Et});var rd=T.states.select;rd&&(rd.x+=T.x,rd.y+=T.y)}else{var Qo=new ot(0,0,0,0);nE(Qo,T),e.push({label:T,labelLine:M,position:I,len:V,len2:z,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new lt(U,X),linePoints:gt,textAlign:Et,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:O,rect:Qo,unconstrainedWidth:Qo.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:vt})}}),!i&&r.get("avoidLabelOverlap")&&PU(e,a,n,l,u,h,f,v);for(var d=0;d<e.length;d++){var g=e[d],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(A(y.states,c),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var x=g.linePoints;_||!x?(A(m.states,c),m.ignore=!0):(tR(x,g.minTurnAngle),d4(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new lt(x[0][0],x[0][1])})}}}var ET=Math.PI*2,zv=Math.PI/180,kU=me(Jn,OU);function OU(r,t){r.eachSeriesByType(Jn,function(e){var a=e.getData(),n=a.mapDimension("value"),i=r2(e,t),o=i.cx,s=i.cy,l=i.r,u=i.r0,f=i.viewRect,v=-e.get("startAngle")*zv,h=e.get("endAngle"),c=e.get("padAngle")*zv;h=h==="auto"?v-ET:-h*zv;var p=e.get("minAngle")*zv,d=p+c,g=0;a.each(n,function(E){!isNaN(E)&&g++});var y=a.getSum(n),m=Math.PI/(y||g)*2,_=e.get("clockwise"),S=e.get("roseType"),x=e.get("stillShowZeroSum"),b=a.getDataExtent(n);b[0]=0;var w=_?1:-1,C=[v,h],T=w*c/2;_p(C,!_),v=C[0],h=C[1];var M=iE(e);M.startAngle=v,M.endAngle=h,M.clockwise=_,M.cx=o,M.cy=s,M.r=l,M.r0=u;var D=Math.abs(h-v),L=D,I=0,P=v;if(a.setLayout({viewRect:f,r:l}),a.each(n,function(E,O){var k;if(isNaN(E)){a.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?k=y===0&&x?m:E*m:k=D/g,k<d?(k=d,L-=d):I+=E;var V=P+w*k,z=0,F=0;c>k?(z=P+w*k/2,F=z):(z=P+T,F=V-T),a.setItemLayout(O,{angle:k,startAngle:z,endAngle:F,clockwise:_,cx:o,cy:s,r0:u,r:S?kt(E,b,[u,l]):l}),P=V}),L<ET&&g)if(L<=.001){var R=D/g;a.each(n,function(E,O){if(!isNaN(E)){var k=a.getItemLayout(O);k.angle=R;var V=0,z=0;R<c?(V=v+w*(O+1/2)*R,z=V):(V=v+w*O*R+T,z=v+w*(O+1)*R-T),k.startAngle=V,k.endAngle=z}})}else m=L/I,P=v,a.each(n,function(E,O){if(!isNaN(E)){var k=a.getItemLayout(O),V=k.angle===d?d:E*m,z=0,F=0;V<c?(z=P+w*V/2,F=z):(z=P+T,F=P+w*V-T),k.startAngle=z,k.endAngle=F,P+=w*V}})})}var iE=yt(),NU=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new It;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),f=e.getItemLayout(a),v=G(Sa(l.getModel("itemStyle"),f,!0),f);if(isNaN(v.startAngle)){o.setShape(v);return}if(i){o.setShape(v);var h=s.getShallow("animationType");s.ecModel.ssr?($t(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):h==="scale"?(o.shape.r=f.r0,$t(o,{shape:{r:f.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),$t(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,Rt(o,{shape:{endAngle:f.endAngle}},s,a))}else Fr(o),Rt(o,{shape:v},s,a);o.useStyle(e.getItemVisual(a,"style")),de(o,l);var c=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(c)*p,g=Math.sin(c)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=G({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Sa(u.getModel("itemStyle"),f)),G(o.ensureState("select"),{x:d,y:g,shape:Sa(l.getModel(["select","itemStyle"]),f)}),G(o.ensureState("blur"),{shape:Sa(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&G(m.ensureState("select"),{x:d,y:g}),G(_.ensureState("select"),{x:d,y:g}),Kt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;we(i,ge(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var v=i.getTextContent();i.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new ke,this.setTextGuideLine(c)),S1(this,x1(o),{stroke:u,opacity:_r(s.get(["lineStyle","opacity"]),f,1)})}},t}(Ue),BU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Jn,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),v=1;isNaN(f&&f.startAngle)&&v<o.count();++v)f=o.getItemLayout(v);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=iE(e),c=new Ue({shape:at(h)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(p){var d=new NU(o,p,u);o.setItemGraphicEl(p,d),l.add(d)}).update(function(p,d){var g=s.getItemGraphicEl(d);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var d=s.getItemGraphicEl(p);Qa(d,e,p)}).execute(),EU(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type=Jn,t}(Gt);function VU(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Lt(o)&&!isNaN(o)&&o<0)})}}}function zU(r){r.registerChartView(BU),r.registerSeriesModel(rE),Z2(Jn,r.registerAction),r.registerLayout(kU),r.registerProcessor(Xf(Jn)),r.registerProcessor(VU(Jn))}var GU=function(r){N(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,a){return _n(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:B.color.primary}},universalTransition:{divideShape:"clone"}},t}(Xt),oE=4,FU=function(){function r(){}return r}(),HU=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new FU},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<oE,f=this.softClipShape,v;if(u){this._ctx=l;return}for(this._ctx=null,v=this._off;v<n.length;){var h=n[v++],c=n[v++];isNaN(h)||isNaN(c)||f&&!f.contain(h,c)||(s.x=h-i[0]/2,s.y=c-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,a=e.points,n=e.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,v=i[f]-s/2,h=i[f+1]-l/2;if(e>=v&&a>=h&&e<=v+s&&a<=h+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,v=-1/0,h=0;h<n.length;){var c=n[h++],p=n[h++];l=Math.min(c,l),f=Math.max(c,f),u=Math.min(p,u),v=Math.max(p,v)}e=this._rect=new ot(l-o/2,u-s/2,f-l+o,v-u+s)}return e},t}(wt),WU=function(){function r(){this.group=new it}return r.prototype.updateData=function(t,e){this._clear(),this._data=t;var a=this._create();a.setShape({points:t.getLayout("points")}),this._setCommon(a,t,e)},r.prototype.updateLayout=function(t){var e=this._data;if(e){var a=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;a=new Float32Array(a.buffer,o,i)}n.setShape("points",a),n.reset(),n.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,a,n){var i=this._newAdded[0],o=e.getLayout("points"),s=i&&i.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=t.end,i.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=t.start,f.endIndex=t.end,f.incremental=a,f.setShape({points:o}),this._setCommon(f,e,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new HU({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;a=a||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=a.clipShape||null,t.symbolProxy=he(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<oE;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=ft(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var v=t.hoverDataIdx;v>=0&&(u.dataIndex=v+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),UU=function(r){N(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,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,Pg(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),Ta(a),Pg(a)),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),this._finished){var o=Uf("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(Pg(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new WU:new Wf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Gt);function Pg(r){return{clipShape:LR(r)}}var h0=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",te).models[0]},t.type="cartesian2dAxis",t}(Tt);ye(h0,Ff);var sE={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:"auto",onZeroAxisIndex:null,lineStyle:{color:B.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:B.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:B.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[B.color.backgroundTint,B.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:B.color.neutral00,borderColor:B.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},YU=mt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},sE),E1=mt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:B.color.axisMinorSplitLine,width:1}}},sE),XU=mt({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},E1),ZU=st({logBase:10},E1);const lE={category:YU,value:E1,time:XU,log:ZU};function ol(r,t,e,a){A(PP,function(n,i){var o=mt(mt({},lE[i],!0),a,!0),s=function(l){N(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,v){var h=qu(this),c=h?Xo(f):{},p=v.getTheme();mt(f,p.get(i+"Axis")),mt(f,this.getDefaultOption()),f.type=kT(f),h&&Oa(f,c,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Qu.createByAxisModel(this))},u.prototype.getCategories=function(f){var v=this.option;if(v.type==="category")return f?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var v=Yf();return v?v.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",kT)}function kT(r){return r.type||(r.data?"category":"value")}var $U=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 W(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Bt(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}(),Eh=["x","y"];function OT(r){return(r.type==="interval"||r.type==="time")&&!sc(r)}var qU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=jr,e.dimensions=Eh,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!OT(e)||!OT(a))){var n=yc(e,null),i=yc(a,null),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,v=(s[1]-o[1])/u,h=o[0]-n[0]*f,c=o[1]-i[0]*v,p=this._transform=[f,0,0,v,h,c];this._invTransform=Vr([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.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,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new ot(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ae(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return ae(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new ot(i,o,s,l)},t}($U);function uE(r,t){var e=r.scale,a=r.model,n=WP(e,a,a.ecModel,r),i=el(e),o=el(t)?t.intervalStub:t,s=i?e.intervalStub:e,l=e.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),v=u.length-1,h,c,p;if(v===1)h=c=0,p=1;else if(v===2){var d=ee(u[0].value-u[1].value),g=ee(u[1].value-u[2].value);h=c=0,d===g?p=2:(p=1,d<g?h=d/g:c=g/d)}else{var y=o.getConfig().interval;h=(1-(u[0].value-f[0].value)/y)%1,c=(1-(f[v].value-u[v].value)/y)%1,p=v-(h?1:0)-(c?1:0)}var m=n.zoomFixMM,_=m[0]||m[1],S=[n.fixMM[0]||_,n.fixMM[1]||_],x=e.getExtent(),b=s.getExtent(),w=AP(b,S),C,T,M,D,L,I;function P(U){for(var X=50,Y=0;Y<X&&!U();Y++)M=i?M*xt(l,2):tH(M),D=Co(M)}function R(){C=Pt(I-M*h,D)}function E(){T=Pt(L+M*c,D)}function O(){I=h?Pt(C+M*h,D):C}function k(){L=c?Pt(T-M*c,D):T}if(S[0]&&S[1]){C=w[0],T=w[1],M=(T-C)/(p+h+c);var V=r.getExtent(),z=ee(V[1]-V[0]);D=p_([T,C],z,.5/p),O(),k(),zr(D)&&(M=Pt(M,D))}else{var F=w[1]-w[0];M=i?xt(wI(F),1):g_(F/p,TI),D=Co(M),S[0]?(C=w[0],P(function(){if(O(),L=Pt(I+M*p,D),E(),T>=w[1])return!0})):S[1]?(T=w[1],P(function(){if(k(),I=Pt(L-M*p,D),R(),C<=w[0])return!0})):P(function(){I=Pt(Go(w[0]/M)*M,D),L=Pt(Qr(w[1]/M)*M,D);var U=ln((L-I)/M);if(U<=p){var X=p-U,Y=void 0,Q=n.incl0||i;if(Q&&w[0]===0)Y=[0,X];else if(Q&&w[1]===0)Y=[X,0];else{var gt=Qr(X/2);Y=X%2===0?[gt,gt]:C+T<w[0]+w[1]?[gt,gt+1]:[gt+1,gt]}if(I=Pt(I-M*Y[0],D),L=Pt(L+M*Y[1],D),R(),E(),C<=w[0]&&T>=w[1])return!0}})}kP(e,S,b,[C,T],x,{interval:M,intervalCount:p,intervalPrecision:D,niceExtent:[I,L]})}var NT=[[3,1],[0,2]],KU=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Eh,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;A(this._axesList,function(o){Do(o,al);var s=o.scale;Xe(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=Ct(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):nl(f)}A(l,function(v){jU(v,v.__alignTo)?nl(v):uE(v,v.__alignTo.scale)})}n(a.x),n(a.y);var i={};A(a.x,function(o){BT(a,"y",o,i)}),A(a.y,function(o){BT(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=_e(t,e),i=this._rect=Jt(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(c0(o,i),!a){var u=e8(i,s,o,l,e),f=void 0;if(l)p0?(p0(this._axesList,i),c0(o,i)):f=FT(i.clone(),"axisLabel",null,i,o,u,n);else{var v=r8(t,i,n),h=v.outerBoundsRect,c=v.parsedOuterBoundsContain,p=v.outerBoundsClamp;h&&(f=FT(h,c,p,i,o,u,n))}fE(i,o,ta.determine,null,f,n),A(this._coordsList,function(d){d.calcAffineTransform()})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}ut(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",te).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",te).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,pt(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.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,a){var n=this,i=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,v){A(s.y,function(h,c){var p="x"+v+"y"+c,d=new qU(p);d.master=n,d.model=t,n._coordsMap[p]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(h)})}),zT(s.x),zT(s.y);function u(f){return function(v,h){if(JU(v,t)){var c=v.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var p=Vp(v),d=new OR(f,Vf(v,p,!0),[0,0],p,c);d.onBand=Gf(d.scale,v),d.inverse=v.get("inverse"),v.axis=d,d.model=v,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return A(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);pt(e,i)<0&&e.push(i),pt(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o),A(o._axesList,function(s){EH(s,r.dimIdxMap)})}),t.eachSeries(function(n){var i,o;kf({targetModel:n,coordSysType:jr,coordSysProvider:s});function s(){var l=eU(n),u=l.xAxisModel,f=l.yAxisModel;i=u.axis,o=f.axis;var v=u.getCoordSysModel(),h=v.coordinateSystem;return h.getCartesian(u.componentIndex,f.componentIndex)}i&&o&&(Mo(i,n,jr),Mo(o,n,jr))},this),a},r.dimensions=Eh,r.dimIdxMap=f1(Eh),r}();function JU(r,t){return r.getCoordSysModel()===t}function BT(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)VT(s,n[l])&&(i=n[l]);else for(var u in n)if(J(n,u)&&VT(s,n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(v){return v.dim+"_"+v.index}}function VT(r,t){if(!t)return!1;var e=t.scale,a=hH(e,0),n=t&&t.type!=="category"&&t.type!=="time"&&a!==Jm;return n&&r==="auto"&&gH(t)&&(n=!1),n}function zT(r){for(var t=Ct(r),e,a=[],n=t.length-1;n>=0;n--){var i=r[+t[n]];CP(i.scale)&&EP(i.model,i.type,!0)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?a.push(i):e=i)}e||(e=a.pop()),e&&A(a,function(o){o.__alignTo=e})}function jU(r,t){return sc(r.scale)||sc(t.scale)||t.scale.getTicks().length<2}function QU(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}function c0(r,t){A(r.x,function(e){return GT(e,t.x,t.width)}),A(r.y,function(e){return GT(e,t.y,t.height)})}function GT(r,t,e){var a=[0,e],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),QU(r,t)}var p0;function t8(r){p0=r}function FT(r,t,e,a,n,i,o){fE(a,n,ta.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=ui(s,function(h){return h>0})==null;return bo(a,s,!0,!0,e),c0(n,a),l;function u(h){A(n[ct[h]],function(c){if(af(c.model)){var p=i.ensureRecord(c.model),d=p.labelInfoList;if(d)for(var g=0;g<d.length;g++){var y=d[g],m=c.scale.normalize(Al(c.scale,Po(y.label).labelInfo.tick));m=h===1?1-m:m,f(y.rect,h,m),f(y.rect,1-h,NaN)}var _=p.nameLayout;if(_){var m=rl(p.nameLocation)?.5:NaN;f(_.rect,h,m),f(_.rect,1-h,NaN)}}})}function f(h,c,p){var d=r[ct[c]]-h[ct[c]],g=h[ne[c]]+h[ct[c]]-(r[ne[c]]+r[ct[c]]);d=v(d,1-p),g=v(g,p);var y=NT[c][0],m=NT[c][1];s[y]=xt(s[y],d),s[m]=xt(s[m],g)}function v(h,c){return h>0&&!Fe(c)&&c>1e-4&&(h/=c),h}}function e8(r,t,e,a,n){var i=new zR(a8);return A(e,function(o){return A(o,function(s){if(af(s.model)){var l=!a;s.axisBuilder=rU(r,t,s.model,n,i,l)}})}),i}function fE(r,t,e,a,n,i){var o=e===ta.determine;A(t,function(u){return A(u,function(f){af(f.model)&&(aU(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ct[1-u]]=r[ne[u]]<=i.refContainer[ne[u]]*.5?0:1-u===1?2:1}A(t,function(u,f){return A(u,function(v){af(v.model)&&((a==="all"||o)&&v.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&v.axisBuilder.build({axisLine:!0}))})})}function r8(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=Jt(r.get("outerBounds",!0)||ZR,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||pt(["all","axisLabel"],i)<0?o="all":o=i;var s=[Jh(j(r.get("outerBoundsClampWidth",!0),Ic[0]),t.width),Jh(j(r.get("outerBoundsClampHeight",!0),Ic[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var a8=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";GR(r,t,e,a,n,i),rl(r.nameLocation)||A(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&HR(s.labelInfoList,s.dirVec,a,n)})};function n8(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return i8(e,r,t),e.seriesInvolved&&s8(e,r),e}function i8(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=hf(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,v=f.getModel("tooltip",a);if(A(s.getAxes(),St(d,!1,null)),s.getTooltipAxes&&a&&v.get("show")){var h=v.get("trigger")==="axis",c=v.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(v.get(["axisPointer","axis"]));(h||c)&&A(p.baseAxes,St(d,c?"cross":!0,h)),c&&A(p.otherAxes,St(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!d0(_))){y==null&&(y=_.get("triggerTooltip")),_=g?o8(m,v,n,t,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=hf(m.model),C=y||x||m.type==="category",T=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:C,snap:x,useHandle:d0(_),seriesModels:[],linkGroup:null};u[w]=T,r.seriesInvolved=r.seriesInvolved||C;var M=l8(i,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[w]=T,D.mapper=i[M].mapper,T.linkGroup=D}}}})}function o8(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(h){l[h]=at(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var v=l.lineStyle=o.get("crossStyle");v&&st(u,v.textStyle)}}return r.model.getModel("axisPointer",new At(l,e,a))}function s8(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[hf(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function l8(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(Rg(i[a+"AxisId"],e.id)||Rg(i[a+"AxisIndex"],e.componentIndex)||Rg(i[a+"AxisName"],e.name))return n}}function Rg(r,t){return r==="all"||H(r)&&pt(r,t)>=0||r===t}function u8(r){var t=k1(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=d0(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function k1(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[hf(r)]}function f8(r){var t=k1(r);return t&&t.axisPointerModel}function d0(r){return!!r.get(["handle","show"])}function hf(r){return r.type+"||"+r.id}var HT={},Jo=function(r){N(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,a,n,i){this.axisPointerClass&&u8(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=f8(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){HT[e]=a},t.getAxisPointerClass=function(e){return e&&HT[e]},t.type="axis",t}(qt),g0=yt();function vE(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,v=g0(r).splitAreaColors,h=K(),c=0;if(v)for(var p=0;p<u.length;p++){var d=v.get(u[p].tickValue);if(d!=null){c=(d+(f-1)*p)%f;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=H(s)?s:[s];for(var p=1;p<u.length;p++){var m=n.toGlobalCoord(u[p].coord),_=void 0,S=void 0,x=void 0,b=void 0;n.isHorizontal()?(_=g,S=l.y,x=m-_,b=l.height,g=_+x):(_=l.x,S=g,x=l.width,b=m-S,g=S+b);var w=u[p-1].tickValue;w!=null&&h.set(w,c),t.add(new bt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:st({fill:s[c]},y),autoBatch:!0,silent:!0})),c=(c+1)%f}g0(r).splitAreaColors=h}}}function hE(r){g0(r).splitAreaColors=null}var v8=["splitArea","splitLine","minorSplitLine","breakArea"],cE=function(r){N(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,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!af(e)){this._axisGroup.add(e.axis.axisBuilder.group),A(v8,function(l){e.get([l,"show"])&&h8[l](this,this._axisGroup,e,e.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Lf(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){hE(this)},t.type="cartesianAxis",t}(Jo),h8={splitLine:function(r,t,e,a,n){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=H(l)?l:[l];for(var v=a.coordinateSystem.getRect(),h=i.isHorizontal(),c=0,p=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],g=[],y=s.getLineStyle(),m=0;m<p.length;m++){var _=i.toGlobalCoord(p[m].coord);if(!(m===0&&!u||m===p.length-1&&!f)){var S=p[m].tickValue;h?(d[0]=_,d[1]=v.y,g[0]=_,g[1]=v.y+v.height):(d[0]=v.x,d[1]=_,g[0]=v.x+v.width,g[1]=_);var x=c++%l.length,b=new fe({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:st({stroke:l[x]},y),silent:!0});js(b.shape,y.lineWidth),t.add(b)}}}},minorSplitLine:function(r,t,e,a,n){var i=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var v=[],h=[],c=s.getLineStyle(),p=0;p<f.length;p++)for(var d=0;d<f[p].length;d++){var g=i.toGlobalCoord(f[p][d].coord);u?(v[0]=g,v[1]=l.y,h[0]=g,h[1]=l.y+l.height):(v[0]=l.x,v[1]=g,h[0]=l.x+l.width,h[1]=g);var y=new fe({anid:"minor_line_"+f[p][d].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:h[0],y2:h[1]},style:c,silent:!0});js(y.shape,c.lineWidth),t.add(y)}},splitArea:function(r,t,e,a,n){vE(r,t,e,a)},breakArea:function(r,t,e,a,n){var i=Yf(),o=e.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,r,e,a.coordinateSystem.getRect(),n)}},pE=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(cE),c8=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=pE.type,e}return t.type="yAxis",t}(cE),p8=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new bt({shape:e.coordinateSystem.getRect(),style:st({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(qt),WT={offset:0};function dE(r){r.registerComponentView(p8),r.registerComponentModel(sU),r.registerCoordinateSystem("cartesian2d",KU),ol(r,"x",h0,WT),ol(r,"y",h0,WT),r.registerComponentView(pE),r.registerComponentView(c8),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Yp="single",d8="singleAxis",y0="singleAxis",kh=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type=y0,t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(Tt);ye(kh,Ff.prototype);function g8(r,t){var e=r.coordinateSystem,a=e&&e.type,n=e&&e.getBaseAxis&&e.getBaseAxis(),i=n&&n.scale&&n.scale.type,o=a===jr&&i==="ordinal"||a===Yp,s=t.model.get("jitter")>0;return o&&s}var y8=yt();function UT(r,t,e,a){if(r instanceof OR){var n=r.scale.type;if(n!=="ordinal")return e}var i=r.model,o=i.get("jitter");if(!(o>0))return e;var s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=Xe(r.scale)?Oe(r).w:null;return s?gE(e,o,u,a):m8(r,t,e,a,o,l)}function gE(r,t,e,a){if(e===null)return r+(Math.random()-.5)*t;var n=e-a*2,i=Math.min(Math.max(0,t),n);return r+(Math.random()-.5)*i}function m8(r,t,e,a,n,i){var o=y8(r);o.items||(o.items=[]);var s=o.items,l=YT(s,t,e,a,n,i,1),u=YT(s,t,e,a,n,i,-1),f=Math.abs(l-e)<Math.abs(u-e)?l:u,v=Xe(r.scale)?Oe(r).w:null,h=Math.abs(f-e);return h>n/2||v&&h>v/2-a?gE(e,n,v,a):(s.push({fixedCoord:t,floatCoord:f,r:a}),f)}function YT(r,t,e,a,n,i,o){for(var s=e,l=0;l<r.length;l++){var u=r[l],f=t-u.fixedCoord,v=s-u.floatCoord,h=f*f+v*v,c=a+u.r+i;if(h<c*c){var p=u.floatCoord+Math.sqrt(c*c-f*f)*o;if(Math.abs(p-e)>n/2)return Number.MAX_VALUE;if(o===1&&p>s||o===-1&&p<s){s=p,l=-1;continue}}}return s}function _8(){return{seriesType:"scatter",plan:Zo(),reset:function(r){var t=r.coordinateSystem;if(!(!t||t.type!==jr&&t.type!==Yp)){var e=t.getBaseAxis&&t.getBaseAxis(),a=e&&g8(r,e);if(a){var n=e.dim,i=e.orient,o=i==="horizontal"&&e.type!=="category"||i==="vertical"&&e.type==="category",s=n==="y"||n==="single"&&o,l=n==="x"||n==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){for(var v=f.getLayout("points"),h=!!v,c=u.start;c<u.end;c++){var p=h?(c-u.start)*2:-1,d=h?[v[p],v[p+1]]:f.getItemLayout(c);if(d){var g=f.getItemVisual(c,"symbolSize"),y=g instanceof Array?(g[1]+g[0])/2:g;if(s){var m=UT(e,d[0],d[1],y/2);h?v[p+1]=m:d[1]=m}else if(l){var m=UT(e,d[1],d[0],y/2);h?v[p]=m:d[0]=m}}}}}}}}}}function S8(r){_t(dE),r.registerSeriesModel(GU),r.registerChartView(UU),r.registerLayout(Uf("scatter"))}function x8(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,_8())}function b8(r){var t=r.polar;if(t){H(t)||(t=[t]);var e=[];A(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],H(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}A(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var cf="radar",w8=function(r){N(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.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Il(q(this.getData,this),q(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return Dl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=O2(this,e);return ve("section",{header:u,sortBlocks:!0,blocks:W(s,function(v){var h=i.get(i.mapDimension(v.dim),e);return ve("nameValue",{markerType:"subItem",markerColor:f,name:v.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(W(n.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series."+cf,t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Xt),T8=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=cf,e}return t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,c){var p=h.getItemVisual(c,"symbol")||"circle";if(p!=="none"){var d=Cl(h.getItemVisual(c,"symbolSize")),g=he(p,-1,-1,2,2),y=h.getItemVisual(c,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function f(h,c,p,d,g,y){p.removeAll();for(var m=0;m<c.length-1;m++){var _=u(d,g);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Uo[y?"initProps":"updateProps"](_,{x:c[m][0],y:c[m][1]},e,g)):_.setPosition(c[m]),p.add(_))}}function v(h){return W(h,function(c){return[i.cx,i.cy]})}s.diff(l).add(function(h){var c=s.getItemLayout(h);if(c){var p=new Ye,d=new ke,g={shape:{points:c}};p.shape.points=v(c),d.shape.points=v(c),$t(p,g,e,h),$t(d,g,e,h);var y=new it,m=new it;y.add(d),y.add(p),y.add(m),f(d.shape.points,c,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,c){var p=l.getItemGraphicEl(c),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(d.shape.points,m.shape.points,y,s,h,!1),Fr(g),Fr(d),Rt(d,m,e),Rt(g,m,e),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,c){var p=s.getItemModel(c),d=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(c,"style"),_=m.fill;o.add(h),d.useStyle(st(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),de(d,p,"lineStyle"),de(g,p,"areaStyle");var S=p.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,A(["emphasis","select","blur"],function(w){var C=p.getModel([w,"areaStyle"]),T=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(w).ignore=T&&x;var M=p.getModel([w,"lineStyle"]).getLineStyle();d.ensureState(w).style=M;var D=C.getAreaStyle();g.ensureState(w).style=D;var L=p.getModel([w,"itemStyle"]).getItemStyle();y.eachChild(function(I){I.ensureState(w).style=at(L)})}),g.useStyle(st(p.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=p.getModel("emphasis");y.eachChild(function(w){if(w instanceof Ie){var C=w.style;w.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var T=s.getStore().get(s.getDimensionIndex(w.__dimIdx),c);(T==null||isNaN(T))&&(T=""),we(w,ge(p),{labelFetcher:s.hostModel,labelDataIndex:c,labelDimIndex:w.__dimIdx,defaultText:T,inheritColor:_,defaultOpacity:m.opacity})}),Kt(h,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=cf,t}(Gt),Kl=lE.value,Bu="radar",yE=Bu,C8=Bu,mE=5;function Gv(r,t){return st({show:t},r)}var A8=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),v=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),p=W(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=u;d.color!=null&&(g=st({color:d.color},u));var y=mt(at(d),{boundaryGap:e,splitNumber:a,clockwise:n,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:d.text,showName:f,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:c},!1);if(Z(v)){var m=y.name;y.name=v.replace("{value}",m??"")}else nt(v)&&(y.name=v(y.name,y));var _=new At(y,null,this.ecModel);return ye(_,Ff.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=Yo("ec_radar"),_},this);this._indicatorModels=p},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=yE,t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:B.color.axisLabel},boundaryGap:[0,0],splitNumber:mE,axisNameGap:15,scale:!1,shape:"polygon",axisLine:mt({lineStyle:{color:B.color.neutral20}},Kl.axisLine),axisLabel:Gv(Kl.axisLabel,!1),axisTick:Gv(Kl.axisTick,!1),splitLine:Gv(Kl.splitLine,!0),splitArea:Gv(Kl.splitArea,!0),indicator:[]},t}(Tt),M8=function(r){N(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,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=W(i,function(s){var l=s.model.get("showName")?s.name:"",u=new er(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),v=s.get("show"),h=l.get("color"),c=u.get("color"),p=H(h)?h:[h],d=H(c)?c:[c],g=[],y=[];function m(R,E,O){var k=O%E.length;return R[k]=R[k]||[],k}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,x=a.cy,b=0;b<_.length;b++){if(f){var w=m(g,p,b);g[w].push(new yn({shape:{cx:S,cy:x,r:_[b].coord}}))}if(v&&b<_.length-1){var w=m(y,d,b);y[w].push(new Df({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var C,T=W(n,function(R,E){var O=R.getTicksCoords();return C=C==null?O.length-1:Math.min(O.length-1,C),W(O,function(k){return a.coordToPoint(k.coord,E)})}),M=[],b=0;b<=C;b++){for(var D=[],L=0;L<n.length;L++)D.push(T[L][b]);if(D[0]&&D.push(D[0].slice()),f){var w=m(g,p,b);g[w].push(new ke({shape:{points:D}}))}if(v&&M){var w=m(y,d,b-1);y[w].push(new Ye({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();A(y,function(R,E){this.group.add(Rr(R,{style:st({stroke:"none",fill:d[E%d.length]},P),silent:!0}))},this),A(g,function(R,E){this.group.add(Rr(R,{style:st({fill:"none",stroke:p[E%p.length]},I),silent:!0}))},this)},t.type="radar",t}(qt),D8=function(r){N(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t}(na),I8=function(){function r(t,e,a){this.type=Bu,this.dimensions=[],this._model=t,this._indicatorAxes=W(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new D8(o,new Kn);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],v=Math.abs(i-f.angle);v<o&&(s=f,l=u,o=v)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=_e(t,e).refContainer,n=t.get("center"),i=t.get("clockwise")||!1,o=Math.min(a.width,a.height)/2;this.cx=$(n[0],a.width)+a.x,this.cy=$(n[1],a.height)+a.y,this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(Z(s)||Lt(s))&&(s=[0,s]),this.r0=$(s[0],o),this.r=$(s[1],o);var l=i?-1:1;A(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var v=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;v=Math.atan2(Math.sin(v),Math.cos(v)),u.angle=v},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model,i=Bp(n.get("splitNumber"),mE),o=new Kn;o.setExtent(0,i),o.setConfig({interval:1}),A(a,function(s){Do(s,al),uE(s,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent(yE,function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType(C8,function(n){if(n.get("coordinateSystem")===Bu){var i=n.coordinateSystem=a[n.get("radarIndex")||0];i&&A(i.getIndicatorAxes(),function(o){Mo(o,n,Bu)})}}),a},r.dimensions=[],r}();function L8(r){r.registerCoordinateSystem("radar",I8),r.registerComponentModel(A8),r.registerComponentView(M8),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var P8=me(cf,R8);function R8(r){r.eachSeriesByType(cf,function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(n){var i=n.getIndicatorAxes();A(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=XT(f)?f:ZT(n)})}),e.each(function(o){var s=ui(a[o],function(l){return XT(l)})||ZT(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function XT(r){return!isNaN(r[0])&&!isNaN(r[1])}function ZT(r){return[r.cx,r.cy]}function E8(r){_t(L8),r.registerChartView(T8),r.registerSeriesModel(w8),r.registerLayout(P8),r.registerProcessor(Xf("radar")),r.registerPreprocessor(b8)}var O1=yt();function k8(r,t,e){O1(r)[t]=e}function O8(r,t,e){var a=O1(r),n=a[t];n===e&&(a[t]=null)}function $T(r,t){return!!O1(r)[t]}Ga({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},re);var N8={axisPointer:1,tooltip:1,brush:1};function _E(r,t,e){var a=t.getComponentByElement(r.topTarget);if(!a||a===e||N8.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===e)return!1;var i=wo(a),o=wo(e);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var jo=function(r){N(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=q(a._mousedownHandler,a),i=q(a._mousemoveHandler,a),o=q(a._mouseupHandler,a),s=q(a._mousewheelHandler,a),l=q(a._pinchHandler,a);return a.enable=function(u,f){var v=f.zInfo,h=wo(v.component),c=h.z,p=h.zlevel,d={component:v.component,z:c,zlevel:p,z2:j(v.z2,-1/0)},g=G({},f.triggerInfo);this._opt=st(G({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(jl(e,"mousedown",n,d),jl(e,"mousemove",i,d),jl(e,"mouseup",o,d)),(u===!0||u==="scale"||u==="zoom")&&(jl(e,"mousewheel",s,d),jl(e,"pinch",l,d)))},a.disable=function(){this._enabled&&(this._enabled=!1,Ql(e,"mousedown",n),Ql(e,"mousemove",i),Ql(e,"mouseup",o),Ql(e,"mousewheel",s),Ql(e,"pinch",l))},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,a,n){var i=this._opt,o=i.zInfoParsed;if(_E(e,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(e,a,n)),u&&s.isInClip&&!s.isInClip(e,a,n)&&(u=!1),u},t.prototype._decideCursorStyle=function(e,a,n,i){var o=e.target;if(!o&&this._checkPointer(e,a,n))return this._opt.cursorGrab;if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(KS(e)||Jl(e))){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this._checkPointer(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var a=this._zr;if(!(e.gestureEvent==="pinch"||$T(a,"globalPan")||Jl(e))){var n=e.offsetX,i=e.offsetY;if(!this._dragging||!Oh("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=n-s,f=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&on(e.event),e.__ecRoamConsumed=!0,qT(this,"pan","moveOnMouseMove",e,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!Jl(e)){var a=this._zr;if(!KS(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&a.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!Jl(e)){var a=Oh("zoomOnMouseWheel",e,this._opt),n=Oh("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var v=Math.abs(i),h=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!($T(this._zr,"globalPan")||Jl(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(on(i.event),i.__ecRoamConsumed=!0,qT(e,a,n,i,o))},t}(Hr);function Jl(r){return r.__ecRoamConsumed}var B8=yt();function Xp(r){var t=B8(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function jl(r,t,e,a){for(var n=Xp(r),i=n.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:a}),V8(r,t)}function Ql(r,t,e){for(var a=Xp(r),n=a.roam[t]||[],i=0;i<n.length;i++)if(n[i].listener===e){n.splice(i,1),n.length||z8(r,t);return}}function V8(r,t){var e=Xp(r);e.uniform[t]||r.on(t,e.uniform[t]=function(a){var n=e.roam[t];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function z8(r,t){var e=Xp(r),a=e.uniform;a[t]&&(r.off(t,a[t]),a[t]=null)}function qT(r,t,e,a,n){n.isAvailableBehavior=q(Oh,null,e,a),r.trigger(t,n)}function Oh(r,t,e){var a=e[r];return!r||a&&(!Z(a)||t.event[a+"Key"])}function SE(r){if(Z(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Eg,Pc={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},KT=Ct(Pc),Rc={"alignment-baseline":"textBaseline","stop-color":"stopColor"},JT=Ct(Rc),G8=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var a=SE(t);this._defsUsePending=[];var n=new it;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||e.width),l=parseFloat(a.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),pr(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;W8(this._defs,this._defsUsePending),this._defsUsePending=[];var f,v;if(o){var h=Zp(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(v=bE(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var c=n;n=new it,n.add(c),c.scaleX=c.scaleY=v.scale,c.x=v.x,c.y=v.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new bt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:v,named:i}},r.prototype._parseNode=function(t,e,a,n,i,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=Eg[s];if(f&&J(Eg,s)){l=f.call(this,t,e);var v=t.getAttribute("name");if(v){var h={name:v,namedFrom:null,svgNodeTagLower:s,el:l};a.push(h),s==="g"&&(u=h)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var c=jT[s];if(c&&J(jT,s)){var p=c.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var a=new Js({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});wr(e,a),pr(t,a,this._defsUsePending,!1,!1),F8(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=function(){Eg={g:function(t,e){var a=new it;return wr(e,a),pr(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new bt;return wr(e,a),pr(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new yn;return wr(e,a),pr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new fe;return wr(e,a),pr(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new wp;return wr(e,a),pr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=eC(a));var i=new Ye({shape:{points:n||[]},silent:!0});return wr(e,i),pr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=eC(a));var i=new ke({shape:{points:n||[]},silent:!0});return wr(e,i),pr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new Ie;return wr(e,a),pr(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new it;return wr(e,s),pr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new it;return wr(e,s),pr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",n=hL(a);return wr(e,n),pr(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),jT={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new ei(t,e,a,n);return QT(r,i),tC(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new gL(t,e,a);return QT(r,n),tC(r,n),n}};function QT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function tC(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};xE(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",s=i.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=vr(o),u=l&&l[3];u&&(l[3]*=Yn(s),o=xa(l,"rgba"))}t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function wr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),st(t.__inheritedStyle,r.__inheritedStyle))}function eC(r){for(var t=Zp(r),e=[],a=0;a<t.length;a+=2){var n=parseFloat(t[a]),i=parseFloat(t[a+1]);e.push([n,i])}return e}function pr(r,t,e,a,n){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(X8(r,t),xE(r,o,s),a||Z8(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=rC(i,"fill",o.fill,e)),o.stroke!=null&&(i.style.stroke=rC(i,"stroke",o.stroke,e)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=W(Zp(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function F8(r,t){var e=t.__selfStyle;if(e){var a=e.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var H8=/^url\(\s*#(.*?)\)/;function rC(r,t,e,a){var n=e&&e.match(H8);if(n){var i=kr(n[1]);a.push([r,t,i]);return}return e==="none"&&(e=null),e}function W8(r,t){for(var e=0;e<t.length;e++){var a=t[e];a[0].style[a[1]]=r[a[2]]}}var U8=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Zp(r){return r.match(U8)||[]}var Y8=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,kg=Math.PI/180;function X8(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var a=[],n=null;e.replace(Y8,function(v,h,c){return a.push(h,c),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=Zp(o);switch(n=n||Qt(),s){case"translate":La(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":f_(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":fi(n,n,-parseFloat(l[0])*kg,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*kg);Or(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*kg);Or(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var aC=/([^\s:;]+)\s*:\s*([^:;]+)/g;function xE(r,t,e){var a=r.getAttribute("style");if(a){aC.lastIndex=0;for(var n;(n=aC.exec(a))!=null;){var i=n[1],o=J(Pc,i)?Pc[i]:null;o&&(t[o]=n[2]);var s=J(Rc,i)?Rc[i]:null;s&&(e[s]=n[2])}}}function Z8(r,t,e){for(var a=0;a<KT.length;a++){var n=KT[a],i=r.getAttribute(n);i!=null&&(t[Pc[n]]=i)}for(var a=0;a<JT.length;a++){var n=JT[a],i=r.getAttribute(n);i!=null&&(e[Rc[n]]=i)}}function bE(r,t){var e=t.width/r.width,a=t.height/r.height,n=Math.min(e,a);return{scale:n,x:-(r.x+r.width/2)*n+(t.x+t.width/2),y:-(r.y+r.height/2)*n+(t.y+t.height/2)}}function $8(r,t){var e=new G8;return e.parse(r,t)}var q8=K(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),K8=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=t,this._parsedXML=SE(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=j8(t.named),a=e.regions,n=e.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,a;try{e=t&&$8(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,We(a!=null)}catch(g){throw new Error(`Invalid svg format
|
|
38
|
+
`+g.message)}var n=new it;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,v=void 0,h=void 0;if(i!=null?(u=0,v=i):s&&(u=s.x,v=s.width),o!=null?(f=0,h=o):s&&(f=s.y,h=s.height),u==null||f==null){var c=a.getBoundingRect();u==null&&(u=c.x,v=c.width),f==null&&(f=c.y,h=c.height)}l=this._boundingRect=new ot(u,f,v,h)}if(s){var p=bE(s,l);a.scaleX=a.scaleY=p.scale,a.x=p.x,a.y=p.y}n.setClipPath(new bt({shape:l.plain()}));var d=[];return A(e.named,function(g){q8.get(g.svgNodeTagLower)!=null&&(d.push(g),J8(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r}();function J8(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function j8(r){var t=[],e=K();return A(r,function(a){if(a.namedFrom==null){var n=new YH(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var m0=[126,25],nC="南海诸岛",Yi=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Fi=0;Fi<Yi.length;Fi++)for(var ps=0;ps<Yi[Fi].length;ps++)Yi[Fi][ps][0]/=10.5,Yi[Fi][ps][1]/=-10.5/.75,Yi[Fi][ps][0]+=m0[0],Yi[Fi][ps][1]+=m0[1];function Q8(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===nC)return;t.push(new XP(nC,W(Yi,function(a){return{type:"polygon",exterior:a}}),m0))}}var t6={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function e6(r,t){if(r==="china"){var e=t6[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var r6=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function a6(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:r6[0]})}var n6="name",i6=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=K(),this._mapName=t,this._specialAreas=a,this._geoJSON=s6(e)}return r.prototype.load=function(t,e){e=e||n6;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:o6(n)})}var i=K(),o=[];return A(a.regions,function(s){var l=s.name;t&&J(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ot(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?ZH(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
|
|
39
|
+
`+i.message)}return Q8(e,n),A(n,function(i){var o=i.name;e6(e,i),a6(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function o6(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function s6(r){return Z(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var tu=K();const pn={registerMap:function(r,t,e){if(t.svg){var a=new K8(r,t.svg);tu.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new i6(r,n,e);tu.set(r,a)}},getGeoResource:function(r){return tu.get(r)},getMapForUser:function(r){var t=tu.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=tu.get(r);if(a)return a.load(t,e)}};var Ro=0,Eo=1,Ba=2;var l6="view",$p=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;i.type=l6,i.dimensions=["x","y"];var o=i;o.invertY=e,o.lgCt=a,o.lgGeo=n;var s=o.trans=[];return s[Ro]=Ns(),s[Eo]=Ns(),s[Ba]=Ns(),o.mtRaw=Qt(),o.mtRawInv=Qt(),o.mtOverall=Qt(),o.mtOverallInv=Qt(),o.zoom=1,i}return t.prototype.getBoundingRect=function(){return wE(null,this)},t.prototype.getViewRect=function(){return N1(null,this)},t.prototype.getRoamTransform=function(){return ti(this.trans[Eo])},t.prototype.dataToPoint=function(e,a,n){var i=a?this.mtRaw:this.mtOverall;return n=n||[],i?ae(n,e,i):ze(n,e)},t.prototype.pointToData=function(e,a,n){n=n||[];var i=this.mtOverallInv;return i?ae(n,e,i):ze(n,e)},t.prototype.convertToPixel=function(e,a,n){var i=uC(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=uC(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){var a=this;return Zs(Fv,a.dataRect),$D(Fv,Fv,a.mtOverall),VN(Fv,e[0],e[1])},t.dimensions=["x","y"],t}(za),Fv=up();function Ec(r,t){return go([],t.mtOverall)}function u6(r){return r.zoom}function wE(r,t){return Zs(up(),t.dataRect)}function N1(r,t){return Zs(up(),t.viewRect)}function pf(r,t,e){return Pa(r||Ns(),t.trans[e])}function B1(r){return!!(r.dataRect&&r.viewRect)}function f6(r,t,e,a){a===Eo?TE(r,t.trans[Ro],e):Pa(r,e)}function iC(r,t,e){ti(e,Hv),Or(Hv,Hv,t.mtRawInv),Dp(r,Hv)}var Hv=Qt();function V1(r,t){var e=r;e.centerOption=t.getShallow("center");var a=e.zoomLimit=t.getShallow("scaleLimit"),n=t.getShallow("zoom");e.zoom=G1(n||1,a)||1,B1(e)&&z1(e)}function qp(r,t,e,a,n){var i=r;i.dataRect=new ot(t,e,a,n),B1(i)&&z1(i)}function kc(r,t,e,a,n){var i=r;i.viewRect=new ot(t,e,a,n),B1(i)&&z1(i)}function z1(r){v6(r),c6(r),p6(r)}function v6(r){var t=r.dataRect,e=r.viewRect,a=r.trans[Ro],n=r.invertY;n&&(t=Zs(h6,t),t.y=-t.y-t.height),ZD(oC,t,e),Dp(a,oC),n&&(a.scaleY=-a.scaleY);var i=ti(a,r.mtRaw);Vr(r.mtRawInv,i)}var oC=Qt(),h6=up();function c6(r){var t=CE(r),e=y6(Og,r,r.centerOption)?ae(Og,Og,r.mtRaw):t,a=r.zoom,n=r.trans[Eo];n.x=t[0]-a*e[0],n.y=t[1]-a*e[1],n.scaleX=n.scaleY=a}var Og=[];function p6(r){var t=r.trans,e=t[Eo],a=t[Ro],n=t[Ba];TE(n,a,e);var i=ti(n,r.mtOverall),o=Vr(r.mtOverallInv,i);sC(r,n,i,o),sC(r.lgGeo,n,i,o)}function sC(r,t,e,a){r&&(Pa(r,t),go(r.transform||(r.transform=[]),e),go(r.invTransform||(r.invTransform=[]),a))}function TE(r,t,e){ti(t,lC),ti(e,Wv),Or(Wv,Wv,lC),Dp(r,Wv)}var lC=Qt(),Wv=Qt();function uC(r){var t=r.seriesModel;return t?t.coordinateSystem:null}function CE(r){var t=r.viewRect;return Ng[0]=t.x+t.width/2,Ng[1]=t.y+t.height/2,Ng}var Ng=[];function AE(r){return r&&r.type==="view"}function ni(r,t,e,a){var n=e;n.syncBackEl=r,n.syncBackType=t,a?Rt(r,pf(null,e,t),a):(pf(r,e,t),r.dirty())}function d6(r,t,e,a){var n=r,i=n.syncBackEl;i?(i.stopAnimation(),f6(In,n,i,n.syncBackType)):Pa(In,n.trans[Ba]),iC(Bg,n,In),a?g6(In,Bg,n,a):Pa(In,Bg),iC(In,n,In),_6(n,t,e,In)}var In=Ns(),Bg=Ns();function ME(r,t,e){var a=Oc(t);a&&(d6(a,t,e,r),V1(a,t))}function Oc(r){return r.__ownRoamView?r.__ownRoamView():null}function DE(r,t,e,a){e.setUpdatePayload(k_(r));var n=jI(a,t);n&&n.__updateOnOwnRoam&&n.__updateOnOwnRoam(r,t,a)}function g6(r,t,e,a){a.dx!=null&&a.dy!=null&&(r.x+=a.dx,r.y+=a.dy);var n=a.zoom;if(n!=null){var i=IE(t),o=G1(i*n,e.zoomLimit),s=o/i;r.x-=(a.originX-r.x)*(s-1),r.y-=(a.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function IE(r){return r.scaleX}function y6(r,t,e){var a=t.dataRect;if(!e)return!1;var n=t.lgCt;return n?Wn(r,$(e[0],n.w),$(e[1],n.h)):a&&Wn(r,$(e[0],a.width,a.x),$(e[1],a.height,a.y)),!0}function m6(r,t){var e=r.centerOption,a=r.dataRect;return!e||r.lgCt?t.slice():[fC(0,t,e,a),fC(1,t,e,a)]}function fC(r,t,e,a){return e&&a&&a[ne[r]]&&WB(e[r])?(t[r]-a[ct[r]])/a[ne[r]]*100+"%":t[r]}function LE(r,t){return t&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:t.getWidth(),h:t.getHeight()}:null}function _6(r,t,e,a){var n=CE(r),i=IE(a),o=ee(i)>1e-6;eu[0]=o?(n[0]-a.x)/i:n[0],eu[1]=o?(n[1]-a.y)/i:n[1],ae(eu,eu,r.mtRawInv);var s=m6(r,eu);vC(t,s,i),A(e,function(l){l!==t&&vC(l,s.slice(),i)})}var eu=[];function vC(r,t,e){var a=r.option;a.center=t,a.zoom=e}function G1(r,t){if(t){var e=t.min||0,a=t.max||1/0;r=Math.max(Math.min(a,r),e)}return r}function PE(r,t){var e=t.getShallow("nodeScaleRatio",!0)||1,a=r;return((a.zoom-1)*e+1)/(a.trans[Ba].scaleX||1)}function Kp(r,t,e,a,n,i,o,s){var l=Oc(r);if(!l){e.disable();return}e.enable(j(r.get("roam"),o),{api:t,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:a,isInClip:function(f,v,h){return!n||n.contain(v,h)}}});function u(f){var v=r.mainType,h=k_(st({type:EE(v,r.subType,KI)},f));s&&(h.componentType=v),h[v+"Id"]=r.id,t.dispatchAction(h)}e.off("pan").off("zoom").on("pan",function(f){i&&i("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){i&&i("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function RE(r){return function(t,e,a){return Vg.copy(r.getBoundingRect()),Vg.applyTransform(r.getComputedTransform()),Vg.contain(e,a)}}var Vg=new ot(0,0,0,0);function F1(r,t,e){var a=EE(t,e,KI);r.registerAction({type:a,event:a,update:"none"},function(n,i,o){i.eachComponent(S_(n,t,e),function(s){ME(n,s),DE(n,s,i,o)})})}function EE(r,t,e){return(r!==ka?r:t==="map"?"geo":t)+e}function kE(r){return r.zoom!=null}function H1(r,t,e,a,n,i,o){var s=new $p(null,LE(r.ecModel,t));return qp(s,e,a,n,i),o?kc(s,o.x,o.y,o.width,o.height):kc(s,e,a,n,i),V1(s,r),s}var W1=["rect","circle","line","ellipse","polygon","polyline","path"],S6=K(W1),x6=K(W1.concat(["g"])),b6=K(W1.concat(["g"])),OE=yt();function Uv(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function hC(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var NE=function(){function r(t){var e=this.group=new it,a=this._transformGroup=new it;e.add(a),this.uid=Yo("ec_map_draw"),this._controller=new jo(t.getZr()),a.add(this._regionsGroup=new it),a.add(this._svgGroup=new it)}return r.prototype.draw=function(t,e,a,n,i){var o=this,s=t.getData&&t.getData();Us(t)&&e.eachComponent({mainType:"series",subType:"map"},function(d){!s&&d.getHostGeoModel()===t&&(s=d.getData())});var l=t.coordinateSystem,u=l.view,f=this._regionsGroup,v=this._transformGroup,h=!f.childAt(0)||i,c;l.shouldClip()?(c=N1(null,u),this.group.setClipPath(new bt({shape:c.clone()}))):this.group.removeClipPath(),ni(v,Eo,u,h?null:t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,a,l,t,s,p):l.resourceType==="geoSVG"&&this._buildSVG(u,a,l,t,s,p),Kp(t,a,this._controller,function(d,g,y){return t.coordinateSystem.containPoint([g,y])},c,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(t,f,a,n)},r.prototype.__updateOnOwnRoam=function(t){ni(this._transformGroup,Eo,t.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(t,e,a,n,i,o){var s=this._regionsGroupByName=K(),l=K(),u=this._regionsGroup,f=a.projection,v=f&&f.stream,h=ti(pf(null,t,Ro));function c(g,y){return y&&(g=y(g)),g&&ae([],g,h)}function p(g){for(var y=[],m=!v&&f&&f.project,_=0;_<g.length;++_){var S=c(g[_],m);S&&y.push(S)}return y}function d(g){return{shape:{points:p(g)}}}u.removeAll(),A(a.regions,function(g){var y=g.name,m=s.get(y),_=l.get(y)||{},S=_.dataIdx,x=_.regionModel;if(!m){m=s.set(y,new it),u.add(m),S=i?i.indexOfName(y):null,x=Us(n)?n.getRegionModel(y):i?i.getItemModel(S):null;var b=x.get("silent",!0);b!=null&&(m.silent=b),l.set(y,{dataIdx:S,regionModel:x})}var w=[],C=[];A(g.geometries,function(D){if(D.type==="polygon"){var L=[D.exterior].concat(D.interiors||[]);v&&(L=mC(L,v)),A(L,function(P){w.push(new Ye(d(P)))})}else{var I=D.points;v&&(I=mC(I,v,!0)),A(I,function(P){C.push(new ke(d(P)))})}});var T=c(g.getCenter(),f&&f.project);function M(D,L){if(D.length){var I=new Cp({culling:!0,segmentIgnoreThreshold:1,shape:{paths:D}});m.add(I),cC(e,i,o,I,S,x),pC(n,i,I,y,x,S,T),L&&(hC(I),A(I.states,hC))}}M(w),M(C,!0)}),s.each(function(g,y){var m=l.get(y),_=m.dataIdx,S=m.regionModel;dC(n,i,g,y,S,_),gC(n,i,g,y,S),yC(n,g,y,S)},this)},r.prototype._buildSVG=function(t,e,a,n,i,o){var s=a.map;pf(this._svgGroup,t,Ro),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=K(),u=!1;A(this._svgGraphicRecord.named,function(f){var v=f.name,h=f.svgNodeTagLower,c=f.el,p=i?i.indexOfName(v):null,d=n.getRegionModel(v);S6.get(h)!=null&&c instanceof Gr&&cC(e,i,o,c,p,d),c instanceof Gr&&(c.culling=!0);var g=d.get("silent",!0);if(g!=null&&(c.silent=g),c.z2EmphasisLift=0,!f.namedFrom&&(b6.get(h)!=null&&pC(n,i,c,v,d,p,null),dC(n,i,c,v,d,p),gC(n,i,c,v,d),x6.get(h)!=null)){var y=yC(n,c,v,d);y==="self"&&(u=!0);var m=l.get(v)||l.set(v,[]);m.push(c)}},this),this._enableBlurEntireSVG(u,n)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&Us(e)){var a=e.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){xo(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var a=e.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(t);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=pn.getGeoResource(t);if(e&&e.type==="geoSVG"){var a=e.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=pn.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=OE(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,a,n){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function cC(r,t,e,a,n,i){var o=i.getModel("itemStyle"),s=i.getModel(["emphasis","itemStyle"]),l=i.getModel(["blur","itemStyle"]),u=i.getModel(["select","itemStyle"]),f=Uv(o),v=Uv(s),h=Uv(u),c=Uv(l);if(t){var p=t.getItemVisual(n,"style"),d=t.getItemVisual(n,"decal");e&&p.fill&&(f.fill=p.fill),d&&(f.decal=tl(d,r))}a.setStyle(f),a.style.strokeNoScale=!0,a.ensureState("emphasis").style=v,a.ensureState("select").style=h,a.ensureState("blur").style=c,xo(a)}function pC(r,t,e,a,n,i,o){var s=t&&isNaN(t.get(t.mapDimension("value"),i)),l=t&&t.getItemLayout(i);if(Us(r)||s||l&&l.showLabel){var u=Us(r)?a:i,f=void 0;(!t||i>=0)&&(f=r);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;we(e,ge(n),{labelFetcher:f,labelDataIndex:u,defaultText:a},v);var h=e.getTextContent();if(h&&(OE(h).ignore=h.ignore,e.textConfig&&o)){var c=e.getBoundingRect().clone();e.textConfig.layoutRect=c,e.textConfig.position=[(o[0]-c.x)/c.width*100+"%",(o[1]-c.y)/c.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function dC(r,t,e,a,n,i){t?t.setItemGraphicEl(i,e):ft(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:a,region:n&&n.option||{}}}function gC(r,t,e,a,n){t||mn({el:e,componentModel:r,itemName:a,itemTooltipOption:n.get("tooltip")})}function yC(r,t,e,a){t.highDownSilentOnTouch=!!r.get("selectedMode");var n=a.getModel("emphasis"),i=n.get("focus");return Kt(t,i,n.get("blurScope"),n.get("disabled")),Us(r)&&Az(t,r,e),i}function mC(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),a}function Us(r){return r.mainType==="geo"}var ko="map",w6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var a=Dl(this,{coordDimensions:["value"],encodeDefaulter:St(Z_,this)}),n=K(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=pn.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return A(u.regions,function(f){var v=f.name,h=n.get(v),c=f.properties&&f.properties.echartsStyle,p;h==null?(p={name:v},i.push(p)):p=a.getRawDataItem(h),c&&mt(p,c)}),a.appendData(i),a},t.prototype.getHostGeoModel=function(){if(jL(this).kind!==JL)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var a=this.getData();return a.get(a.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var a=this.getData();return a.getItemModel(a.indexOfName(e))},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=[];return A(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),v=i.mapDimension("value");isNaN(u.originalData.get(v,f))||l.push(u.name)}),ve("section",{header:l.join(", "),noHeader:!l.length,blocks:[ve("nameValue",{name:s,value:o})]})},t.prototype.getLegendIcon=function(e){var a=e.icon||"roundRect",n=he(a,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=B.color.neutral00,n.style.lineWidth=2),n},t.prototype.__ownRoamView=function(){return Nc(this)?this.coordinateSystem.view:null},t.type="series."+ko,t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:B.color.tertiary},itemStyle:{borderWidth:.5,borderColor:B.color.border,areaColor:B.color.background},emphasis:{label:{show:!0,color:B.color.primary},itemStyle:{areaColor:B.color.highlight}},select:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},nameProperty:"name"},t}(Xt);function BE(r){return r.indexOf("i")===0}function Nc(r){return df(r.seriesGroup)===r&&!r.getHostGeoModel()}function df(r){return r.f[0]}function U1(r,t){var e={};return r.eachRawSeriesByType(ko,function(a){var n=a.getHostGeoModel(),i=n?"o"+n.id:"i"+a.getMapType(),o=e[i]=e[i]||{f:[],r:[]};!r.isSeriesFiltered(a)&&!t&&o.f.push(a),o.r.push(a)}),e}var T6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=ko,e}return t.prototype.render=function(e,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){var s=this._mapDraw;s&&i&&i.type==="geoRoam"&&s.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id?s&&o.add(s.group):Nc(e)?(s=s||(this._mapDraw=new NE(n)),o.add(s.group),s.draw(e,a,n,this,i)):this._clearMapDraw(),e.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(e)}}},t.prototype.__updateOnOwnRoam=function(e,a,n){var i=this._mapDraw;Nc(a)&&i&&i.__updateOnOwnRoam(a)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e){var a=e.originalData,n=this.group;a.each(a.mapDimension("value"),function(i,o){if(!isNaN(i)){var s=a.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,f=new yn({style:{fill:e.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:_l+1)});if(!u){var v=df(e.seriesGroup).getData(),h=a.getName(o),c=v.indexOfName(h),p=a.getItemModel(o),d=p.getModel("label"),g=v.getItemGraphicEl(c);we(f,ge(p),{labelFetcher:{getFormattedLabel:function(y,m){return e.getFormattedLabel(c,m)}},defaultText:h}),f.disableLabelAnimation=!0,d.get("position")||f.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(y){rc(f,y)}}n.add(f)}}})},t.type=ko,t}(Gt),C6={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},VE=["lng","lat"],_C=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;i.dimensions=VE,i.type="geo",i._nameCoordMap=K(),i.name=e;var o=n.projection,s=pn.load(a,n.nameMap,n.nameProperty),l=pn.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=C6[l.type];i._clip=n.clip;var v=o?!1:f.invertLongitute;i.view=new $p(v,LE(n.ecModel,n.api),i),i.map=a,i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var h;if(o)for(var c=0;c<u.length;c++){var p=u[c].getBoundingRect(o);h=h||p.clone(),h.union(p)}else h=s.boundingRect;return qp(i.view,h.x,h.y,h.width,h.height),i.aspectScale=o?1:j(n.aspectScale,f.aspectScale),i}return t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(e))return a[n]}},t.prototype.addGeoCoord=function(e,a){this._nameCoordMap.set(e,a)},t.prototype.getGeoCoord=function(e){var a=this._regionsMap.get(e);return this._nameCoordMap.get(e)||a&&a.getCenter()},t.prototype.dataToPoint=function(e,a,n){if(Z(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.view.dataToPoint(e,a,n)}},t.prototype.pointToData=function(e,a,n){var i=this.projection;return i&&(e=i.unproject(e)),e&&this.view.pointToData(e,n)},t.prototype.convertToPixel=function(e,a,n){var i=SC(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=SC(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.view.containPoint(e)},t.prototype.getArea=function(e){e=e||0;var a=N1(null,this.view);return a.x-=e,a.y-=e,a.width+=2*e,a.height+=2*e,a},t.prototype.shouldClip=function(){return this._clip},t.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},t.prototype.getViewRect=function(){return this.view.getViewRect()},t.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},t}(za);function SC(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",te).models[0]||{}).coordinateSystem:null}function xC(r,t){var e=this.view,a=r.get("boundingCoords");if(a!=null){var n=a[0],i=a[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var s=n[0],l=n[1],u=i[0],f=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var v=function(b,w,C,T){for(var M=C-b,D=T-w,L=0;L<=100;L++){var I=L/100,P=o.project([b+M*I,w+D*I]);On(n,n,P),Nn(i,i,P)}};v(s,l,u,l),v(u,l,u,f),v(u,f,s,f),v(s,f,u,l)}qp(e,n[0],n[1],i[0]-n[0],i[1]-n[1])}}var h=e.getBoundingRect(),c=r.get("layoutCenter"),p=r.get("layoutSize"),d=_e(r,t).refContainer,g=h.width/h.height*this.aspectScale,y=!1,m,_;c&&p&&(m=[$(c[0],d.width)+d.x,$(c[1],d.height)+d.y],_=$(p,Math.min(d.width,d.height)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var x=r.getBoxLayoutParams();x.aspect=g,S=Jt(x,d),S=a2(r,S,g)}kc(e,S.x,S.y,S.width,S.height),V1(e,r)}function A6(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var M6=function(){function r(){this.dimensions=VE}return r.prototype.create=function(t,e){var a=[];function n(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection"),clip:i.getShallow("clip",!0)}}return t.eachComponent("geo",function(i,o){var s=i.get("map"),l=new _C(s+o,s,G({nameMap:i.get("nameMap"),api:e,ecModel:t},n(i)));a.push(l),i.coordinateSystem=l,l.model=i,l.resize=xC,l.resize(i,e)}),t.eachSeries(function(i){kf({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var o=i.subType===ko?i.getHostGeoModel():i.getReferringComponents("geo",te).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),A(U1(t,!0),function(i,o){if(BE(o)){var s=i.r[0],l=[];A(i.r,function(h){l.push(h.get("nameMap")),h.seriesGroup=null});var u=o.slice(1),f=new _C(u,u,G({nameMap:s_(l),api:e,ecModel:t},n(s))),v;A(i.r,function(h){v=j(v,h.get("scaleLimit"))}),a.push(f),f.resize=xC,f.resize(s,e),A(i.r,function(h){h.coordinateSystem=f,A6(f,h)})}}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=K(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=pn.load(e,a,n);return A(l.regions,function(u){var f=u.name,v=o.get(f),h=u.properties&&u.properties.echartsStyle;v||(v={name:f},i.push(v)),h&&mt(v,h)}),i},r}(),zE=new M6,D6=function(r){N(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,a,n){this.mergeDefaultAndTheme(e,n);var i=pn.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color=e.defaultItemStyleColor||B.color.backgroundTint)}yo(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=zE.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=Ia(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new At(o,e,e.ecModel)),o.selected&&(n[s]=!0)),i},K()),a.selectedMap||(a.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new At(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,a){var n=this.getRegionModel(e),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};if(nt(i))return o.status=a,i(o);if(Z(i))return i.replace("{a}",e??"")},t.prototype.select=function(e){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var a=this.option.selectedMap;a&&(a[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var a=this.option.selectedMap;return!!(a&&a[e])},t.prototype.__ownRoamView=function(){return this.coordinateSystem.view},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:B.color.tertiary},itemStyle:{borderWidth:.5,borderColor:B.color.border},emphasis:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},select:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},regions:[]},t}(Tt),I6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,a){this._api=a},t.prototype.render=function(e,a,n,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new NE(n));var o=this._mapDraw;o.draw(e,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,a,n)},t.prototype.__updateOnOwnRoam=function(e,a,n){var i=this._mapDraw;i&&i.__updateOnOwnRoam(a)},t.prototype._handleRegionClick=function(e){var a;no(e.target,function(n){return(a=ft(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},t.prototype.updateSelectStatus=function(e,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=ft(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(qt);function L6(r,t,e){pn.registerMap(r,t,e)}function GE(r){r.registerCoordinateSystem("geo",zE),r.registerComponentModel(D6),r.registerComponentView(I6),r.registerImpl("registerMap",L6),r.registerImpl("getMap",function(e){return pn.getMapForUser(e)});function t(e,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[e](n.name);var u=l.coordinateSystem;A(u.regions,function(v){o[v.name]=l.isSelected(v.name)||!1});var f=[];A(o,function(v,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,a,n){var i=e.componentType||(e.geoId!=null||e.geoName!=null||e.geoIndex!=null?"geo":ka),o=i===ka;if(!(i!=="geo"&&!o)){var s=o?"map":null;a.eachComponent(S_(e,i,s),function(l){o&&!Nc(l)||(ME(e,l,o?l.seriesGroup.r:null),DE(e,l,a,n))})}})}var P6=me(ko,R6);function R6(r){A(U1(r),function(t,e){if(!(!df(t)||!BE(e))){var a={};A(t.f,function(i){var o=i.coordinateSystem,s=i.originalData;i.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),v=o.getRegion(f);if(!(!v||isNaN(l))){var h=a[f]||0,c=o.dataToPoint(v.getCenter());a[f]=h+1,s.setItemLayout(u,{point:c,offset:h})}})});var n=df(t).getData();n.each(function(i){var o=n.getName(i),s=n.getItemLayout(i)||{};s.showLabel=!a[o],n.setItemLayout(i,s)})}})}function E6(r,t){var e={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f<u;f++)s=Math.min(s,e[i][f]),l=Math.max(l,e[i][f]),o+=e[i][f];var v;return t==="min"?v=s:t==="max"?v=l:t==="average"?v=o/u:v=o,u===0?NaN:v})}var k6=me(ko,O6);function O6(r){A(U1(r),function(t){var e=df(t);if(e){var a=E6(W(t.f,function(n){return n.getData()}),e.get("mapValueCalculation"));A(t.f,function(n){n.seriesGroup=t,n.originalData=n.getData(),n.setData(a.cloneShallow())})}})}function N6(r){_t(GE),r.registerChartView(T6),r.registerSeriesModel(w6),r.registerLayout(P6),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,k6),Z2("map",r.registerAction)}function B6(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],a,n;a=e.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function V6(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){G6(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=F6(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function z6(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function bC(r){return arguments.length?r:U6}function xu(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function G6(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function F6(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,v=s.hierNode.modifier;s=zg(s),i=Gg(i),s&&i;){n=zg(n),o=Gg(o),n.hierNode.ancestor=r;var h=s.hierNode.prelim+v-i.hierNode.prelim-u+a(s,i);h>0&&(W6(H6(s,r,e),r,h),u+=h,l+=h),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!zg(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=v-l),i&&!Gg(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function zg(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Gg(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function H6(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function W6(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function U6(r,t){return r.parentNode===t.parentNode?1:2}var Br=yt();function FE(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,HE(t,e,r),A(e,function(a){A(t.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,St(Y6,r))})}),t.wrapMethod("cloneShallow",St(Z6,r)),A(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,St(X6,r))}),We(e[t.dataType]===t)}function Y6(r,t){if(K6(this)){var e=G({},Br(this).datas);e[this.dataType]=t,HE(t,e,r)}else Y1(t,this.dataType,Br(this).mainData,r);return t}function X6(r,t){return r.struct&&r.struct.update(),t}function Z6(r,t){return A(Br(t).datas,function(e,a){e!==t&&Y1(e.cloneShallow(),a,t,r)}),t}function $6(r){var t=Br(this).mainData;return r==null||t==null?t:Br(t).datas[r]}function q6(){var r=Br(this).mainData;return r==null?[{data:r}]:W(Ct(Br(r).datas),function(t){return{type:t,data:Br(r).datas[t]}})}function K6(r){return Br(r).mainData===r}function HE(r,t,e){Br(r).datas={},A(t,function(a,n){Y1(a,n,r,e)})}function Y1(r,t,e,a){Br(e).datas[t]=r,Br(r).mainData=e,r.dataType=t,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=r),r.getLinkedData=$6,r.getLinkedDataAll=q6}var J6=function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,a){nt(t)&&(a=e,e=t,t=null),t=t||{},Z(t)&&(t={order:t});var n=t.order||"preorder",i=this[t.attr||"children"],o;n==="preorder"&&(o=e.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,a);n==="postorder"&&e.call(a,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].contains(t);if(i)return i}},r.prototype.getAncestors=function(t){for(var e=[],a=t?this:this.parentNode;a;)e.push(a),a=a.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),X1=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,a){this.root.eachNode(t,e,a)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,a=0,n=e.length;a<n;a++)e[a].dataIndex=-1;for(var a=0,n=t.count();a<n;a++)e[t.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,a){var n=new r(e),i=[],o=1;s(t);function s(f,v){var h=f.value;o=Math.max(o,H(h)?h.length:1),i.push(f);var c=new J6(pe(f.name,""),n);v?j6(c,v):n.root=c,n._nodes.push(c);var p=f.children;if(p)for(var d=0;d<p.length;d++)s(p[d],c)}n.root.updateDepthAndHeight(0);var l=Nf(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new tr(l,e);return u.initData(i),a&&a(u),FE({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r}();function j6(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}function gf(r,t,e){if(r&&pt(t,r.type)>=0){var a=e.getData().tree.root,n=r.targetNode;if(Z(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function WE(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function Z1(r,t){var e=WE(r);return pt(e,t)>=0}function Jp(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var Oo="tree",Q6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new At(n,this,this.ecModel),o=X1.createTree(a,this,s);function s(v){v.wrapMethod("getItemModel",function(h,c){var p=o.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var h=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=h&&h.collapsed!=null?!h.collapsed:v.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ve("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Jp(n,this),a.collapsed=!n.isExpand,a},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+Oo,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:B.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Xt),tY=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),eY=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new tY},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,v=1-f,h=$(a.forkPosition,1),c=[];c[f]=o[f],c[v]=o[v]+(l[v]-o[v])*h,e.moveTo(o[0],o[1]),e.lineTo(c[0],c[1]),e.moveTo(s[0],s[1]),c[f]=s[f],e.lineTo(c[0],c[1]),c[f]=l[f],e.lineTo(c[0],c[1]),e.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var d=n[p];e.moveTo(d[0],d[1]),c[f]=d[f],e.lineTo(c[0],c[1])}},t}(wt),rY=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Oo,e._mainGroup=new it,e}return t.prototype.init=function(e,a){this._controller=new jo(a.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,a,n){var i=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,n),Kp(e,n,this._controller,RE(this.group),null);var u=this._data;i.diff(u).add(function(f){wC(i,f)&&TC(i,f,null,s,e)}).update(function(f,v){var h=u.getItemGraphicEl(v);if(!wC(i,f)){h&&AC(u,v,h,s,e);return}TC(i,f,h,s,e)}).remove(function(f){var v=u.getItemGraphicEl(f);v&&AC(u,f,v,s,e)}).execute(),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,v){f.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:v})})}),this._data=i,this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,a,n){ni(this.group,Ba,a.coordinateSystem,null),kE(e)&&this._updateNodeAndLinkScale(a)},t.prototype._updateViewCoordSys=function(e,a){var n=e.getData(),i=[];n.each(function(v){var h=n.getItemLayout(v);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];mp(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=e.coordinateSystem=H1(e,a,o[0],o[1],s[0]-o[0],s[1]-o[1]);ni(this.group,Ba,f,this._firstRender?null:e),this._min=o,this._max=s},t.prototype._updateNodeAndLinkScale=function(e){var a=e.getData(),n=PE(e.coordinateSystem,e);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=Oo,t}(Gt);function wC(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function TC(r,t,e,a,n){var i=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:B.color.neutral00,f=r.tree.root,v=o.parentNode===f?o:o.parentNode||o,h=r.getItemGraphicEl(v.dataIndex),c=v.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:c,d=o.getLayout();i?(e=new Hf(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=p.x,e.y=p.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=d.rawX,e.__radialRawY=d.rawY,a.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,Rt(e,{x:d.x,y:d.y},n);var g=e.getSymbolPath();if(n.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(d.x===m.x&&o.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(b.y-m.y,b.x-m.x),S<0&&(S=Math.PI*2+S),x=b.x<m.x,x&&(S=S-Math.PI)}else S=Math.atan2(d.y-m.y,d.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=d.x<m.x,x&&(S=S-Math.PI)):(x=d.x>m.x,x||(S=S-Math.PI));var w=x?"left":"right",C=s.getModel("label"),T=C.get("rotate"),M=T*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:C.get("position")||w,rotation:T==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?zu(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(ft(e).focus=I),aY(n,o,f,e,p,c,d,a),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Mf||rc(e.__edge,P)}})}function aY(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),v=r.getOrient(),h=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=a.__edge=new If({shape:_0(f,v,h,n,n)})),Rt(d,{shape:_0(f,v,h,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}d||(d=a.__edge=new eY({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:v,forkPosition:c}})),Rt(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}d&&!(u==="polyline"&&!t.isExpand)&&(d.useStyle(st({strokeNoScale:!0,fill:null},p)),de(d,l,"lineStyle"),xo(d),s.add(d))}function CC(r,t,e,a,n){var i=t.tree.root,o=UE(i,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var f=t.getItemGraphicEl(s.dataIndex),v=f.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?v:void 0),c=a.get("edgeShape"),p=a.get("layout"),d=a.get("orient"),g=a.get(["lineStyle","curveness"]);h&&(c==="curve"?ri(h,{shape:_0(p,d,g,l,l),style:{opacity:0}},a,{cb:function(){e.remove(h)},removeOpt:n}):c==="polyline"&&a.get("layout")==="orthogonal"&&ri(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){e.remove(h)},removeOpt:n}))}}function UE(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,a;a=e.getLayout(),a==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:a}}function AC(r,t,e,a,n){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=UE(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};ri(e,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),A(i.children,function(u){CC(u,r,a,n,l)}),CC(i,r,a,n,l)}function _0(r,t,e,a,n){var i,o,s,l,u,f,v,h;if(r==="radial"){u=a.rawX,v=a.rawY,f=n.rawX,h=n.rawY;var c=xu(u,v),p=xu(u,v+(h-v)*e),d=xu(f,h+(v-h)*e),g=xu(f,h);return{x1:c.x||0,y1:c.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=a.x,v=a.y,f=n.x,h=n.y,(t==="LR"||t==="RL")&&(i=u+(f-u)*e,o=v,s=f+(u-f)*e,l=h),(t==="TB"||t==="BT")&&(i=u,o=v+(h-v)*e,s=f,l=h+(v-h)*e);return{x1:u,y1:v,x2:f,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}function nY(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)t(i,e)}function ru(r,t){for(var e=[r],a;a=e.pop();)if(t(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)e.push(n[i])}}function iY(r,t){r.eachSeriesByType("tree",function(e){oY(e,t)})}function oY(r,t){var e=_e(r,t).refContainer,a=Jt(r.getBoxLayoutParams(),e);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,s=null;n==="radial"?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,s=bC(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=a.width,o=a.height,s=bC());var l=r.getData().tree.root,u=l.children[0];if(u){B6(l),nY(u,V6,s),l.hierNode.modifier=-u.hierNode.prelim,ru(u,z6);var f=u,v=u,h=u;ru(u,function(S){var x=S.getLayout().x;x<f.getLayout().x&&(f=S),x>v.getLayout().x&&(v=S),S.depth>h.depth&&(h=S)});var c=f===v?1:s(f,v)/2,p=c-f.getLayout().x,d=0,g=0,y=0,m=0;if(n==="radial")d=i/(v.getLayout().x+c+p),g=o/(h.depth-1||1),ru(u,function(S){y=(S.getLayout().x+p)*d,m=(S.depth-1)*g;var x=xu(y,m);S.setLayout({x:x.x,y:x.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(v.getLayout().x+c+p),d=i/(h.depth-1||1),ru(u,function(S){m=(S.getLayout().x+p)*g,y=_==="LR"?(S.depth-1)*d:i-(S.depth-1)*d,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(d=i/(v.getLayout().x+c+p),g=o/(h.depth-1||1),ru(u,function(S){y=(S.getLayout().x+p)*d,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function sY(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:ka,subType:Oo,query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),F1(r,ka,Oo)}var lY=me(Oo,uY);function uY(r){r.eachSeriesByType(Oo,function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");G(s,o)})})}function fY(r){r.registerChartView(rY),r.registerSeriesModel(Q6),r.registerLayout(iY),r.registerVisual(lY),sY(r)}var MC=["treemapZoomToNode","treemapRender","treemapMove"];function vY(r){for(var t=0;t<MC.length;t++)r.registerAction({type:MC[t],update:"updateView"},re);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,a){a.eachComponent({mainType:"series",subType:"treemap",query:e},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=gf(e,s,i);if(l){var u=i.getViewRoot();u&&(e.direction=Z1(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function YE(r){var t=r.getData(),e=t.tree,a={};e.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Nm(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var hY=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};XE(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new At({itemStyle:o},this,a);i=e.levels=cY(i,a);var l=W(i||[],function(v){return new At(v,s,a)},this),u=X1.createTree(n,this,f);function f(v){v.wrapMethod("getItemModel",function(h,c){var p=u.getNodeByDataIndex(c),d=p?l[p.depth]:null;return h.parentModel=d||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return ve("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Jp(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},G(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=K(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){YE(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:B.size.l,top:B.size.xxxl,right:B.size.l,bottom:B.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:B.size.m,emptyItemWidth:25,itemStyle:{color:B.color.backgroundShade,textStyle:{color:B.color.secondary}},emphasis:{itemStyle:{color:B.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:B.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:B.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Xt);function XE(r){var t=0;A(r.children,function(a){XE(a);var n=a.value;H(n)&&(n=n[0]),t+=n});var e=r.value;H(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),H(r.value)?r.value[0]=e:r.value=e}function cY(r,t){var e=Wt(t.get("color")),a=Wt(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;A(r,function(s){var l=new At(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}var pY=8,DC=8,Fg=5,dY=function(){function r(t){this.group=new it,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),v=_e(t,e).refContainer,h={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},c={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},p=Jt(h,v);this._prepare(a,c,u),this._renderContent(t,c,p,s,l,u,f,n),Pp(o,h,v)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=pe(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+pY*2,e.emptyItemWidth);e.totalWidth+=s+DC,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i,o,s,l){for(var u=0,f=e.emptyItemWidth,v=t.get(["breadcrumb","height"]),h=e.totalWidth,c=e.renderList,p=i.getModel("itemStyle").getItemStyle(),d=c.length-1;d>=0;d--){var g=c[d],y=g.node,m=g.width,_=g.text;h>a.width&&(h-=m-f,m=f,_=null);var S=new Ye({shape:{points:gY(u,0,m,v,d===c.length-1,d===0)},style:st(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new It({style:Yt(o,{text:_})}),textConfig:{position:"inside"},z2:_l*1e4,onclick:St(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Yt(s,{text:_}),S.ensureState("emphasis").style=p,Kt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),yY(S,t,y),u+=m+DC}},r.prototype.remove=function(){this.group.removeAll()},r}();function gY(r,t,e,a,n,i){var o=[[n?r:r-Fg,t],[r+e,t],[r+e,t+a],[n?r:r-Fg,t+a]];return!i&&o.splice(2,0,[r+e+Fg,t+a/2]),!n&&o.push([r,t+a/2]),o}function yY(r,t,e){ft(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Jp(e,t)}}var mY=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r}();function _Y(){return new mY}var yf=Math.max,Bc=Math.min,$1=A,ZE=["itemStyle","borderWidth"],SY=["itemStyle","gapWidth"],xY=["upperLabel","show"],bY=["upperLabel","height"];const wY={seriesType:"treemap",reset:function(r,t,e,a){var n=r.option,i=_e(r,e).refContainer,o=Jt(r.getBoxLayoutParams(),i),s=a&&a.type,l=["treemapZoomToNode","treemapRootToNode"],u=gf(a,l,r),f=s==="treemapRender"||s==="treemapMove"?a.rootRect:null,v=r.getViewRoot(),h=WE(v);if(s!=="treemapMove"){var c=!1,p=s==="treemapZoomToNode"?(c=!0,IY(r,u,v,o)):f?(c=!0,G({},f)):G({},o);if(c){var d=JE(o,p);d=jE(d,r),p.width=o.width*d,p.height=o.height*d}var g=n.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var y={squareRatio:n.squareRatio,sort:g,leafDepth:n.leafDepth};v.hostTree.clearLayouts();var m={x:0,y:0,width:p.width,height:p.height,area:p.width*p.height};v.setLayout(m),$E(v,y,!1,0),m=v.getLayout(),$1(h,function(S,x){var b=(h[x+1]||v).getValue();S.setLayout(G({dataExtent:[b,b],borderWidth:0,upperHeight:0},m))})}var _=r.getData().tree.root;_.setLayout(LY(o,f,u),!0),r.setLayoutInfo(o),qE(_,new ot(-o.x,-o.y,e.getWidth(),e.getHeight()),h,v,0)}};function $E(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(ZE),u=s.get(SY)/2,f=KE(s),v=Math.max(l,f),h=l-u,c=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:f},!0),n=yf(n-2*h,0),i=yf(i-h-c,0);var p=n*i,d=TY(r,s,p,t,e,a);if(d.length){var g={x:h,y:c,width:n,height:i},y=Bc(n,i),m=1/0,_=[];_.area=0;for(var S=0,x=d.length;S<x;){var b=d[S];_.push(b),_.area+=b.getLayout().area;var w=DY(_,y,t.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,IC(_,y,g,u,!1),y=Bc(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&IC(_,y,g,u,!0),!e){var C=s.get("childrenVisibleMin");C!=null&&p<C&&(e=!0)}for(var S=0,x=d.length;S<x;S++)$E(d[S],t,e,a+1)}}}function TY(r,t,e,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=Bt(o,function(c){return!c.isRemoved()}),AY(o,s);var u=MY(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=CY(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,v=o.length;f<v;f++){var h=o[f].getValue()/u.sum*e;o[f].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function CY(r,t,e,a,n){if(!a)return e;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*t<i&&(s=l,e-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),e}function AY(r,t){return t&&r.sort(function(e,a){var n=t==="asc"?e.getValue()-a.getValue():a.getValue()-e.getValue();return n===0?t==="asc"?e.dataIndex-a.dataIndex:a.dataIndex-e.dataIndex:n}),r}function MY(r,t,e){for(var a=0,n=0,i=t.length;n<i;n++)a+=t[n].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=Re(),$1(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function DY(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=t*t*e;return l?yf(u*a/l,l/(u*n)):1/0}function IC(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(n||f>e[l[o]])&&(f=e[l[o]]);for(var v=0,h=r.length;v<h;v++){var c=r[v],p={},d=f?c.getLayout().area/f:0,g=p[l[o]]=yf(f-2*a,0),y=e[s[i]]+e[l[i]]-u,m=v===h-1||y<d?y:d,_=p[l[i]]=yf(m-2*a,0);p[s[o]]=e[s[o]]+Bc(a,g/2),p[s[i]]=u+Bc(a,_/2),u+=m,c.setLayout(p,!0)}e[s[o]]+=f,e[l[o]]-=f}function IY(r,t,e,a){var n=(t||{}).node,i=a.width,o=a.height,s=G({},a);if(!n||n===e)return s;for(var l,u=i*o,f=u*r.option.zoomToNodeRatio;l=n.parentNode;){for(var v=0,h=l.children,c=0,p=h.length;c<p;c++)v+=h[c].getValue();var d=n.getValue();if(d===0)return s;f*=v/d;var g=l.getModel(),y=g.get(ZE),m=Math.max(y,KE(g));f+=4*y*y+(3*y+m)*Math.pow(f,.5),f>jh&&(f=jh),n=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:i*_,height:o*_}}function LY(r,t,e){if(t)return{x:t.x,y:t.y};var a={x:0,y:0};if(!e)return a;var n=e.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function qE(r,t,e,a,n){var i=r.getLayout(),o=e[n],s=o&&o===r;if(!(o&&!s||n===e.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new ot(t.x-i.x,t.y-i.y,t.width,t.height);$1(r.viewChildren||[],function(u){qE(u,l,e,a,n+1)})}}function KE(r){return r.get(xY)?r.get(bY):0}function JE(r,t){return t.width/r.width||t.height/r.height||1}function jE(r,t){return G1(r,t.get("scaleLimit",!0))}var S0=it,LC=bt,PC=3,RC="label",EC="upperLabel",PY=_l*10,RY=_l*2,EY=_l*3,Xi=So([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),kC=function(r){var t=Xi(r);return t.stroke=t.fill=t.lineWidth=null,t},Vc=yt(),kY=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=au(),e}return t.prototype.render=function(e,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(pt(o,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=gf(i,s,e),u=i&&i.type,f=e.layoutInfo,v=!this._oldTree,h=this._storage,c=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(f),d=e.get("animation"),g=this._doRender(p,e,c);d&&!v&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,e,c):g.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,l)}},t.prototype._giveContainerGroup=function(e){var a=this._containerGroup;return a||(a=this._containerGroup=new S0,this._initEvents(a),this.group.add(a)),a.x=e.x,a.y=e.y,a},t.prototype._doRender=function(e,a,n){var i=a.getData().tree,o=this._oldTree,s=au(),l=au(),u=this._storage,f=[];function v(g,y,m,_){return OY(a,l,u,n,s,f,g,y,m,_)}c(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var h=p(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:d};function c(g,y,m,_,S){_?(y=g,A(g,function(w,C){!w.isRemoved()&&b(C,C)})):new cn(y,g,x,x).add(b).update(b).remove(St(b,null)).execute();function x(w){return w.getId()}function b(w,C){var T=w!=null?g[w]:null,M=C!=null?y[C]:null,D=v(T,M,m,S);D&&c(T&&T.viewChildren||[],M&&M.viewChildren||[],D,_,S+1)}}function p(g){var y=au();return g&&A(g,function(m,_){var S=y[_];A(m,function(x){x&&(S.push(x),Vc(x).willDelete=!0)})}),y}function d(){A(h,function(g){A(g,function(y){y.parent&&y.parent.remove(y)})}),A(f,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(e,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(nt(o)?0:o)||0,u=(nt(s)?null:s)||"cubicOut",f=_Y();A(a.willDeleteEls,function(v,h){A(v,function(c,p){if(!c.invisible){var d=c.parent,g,y=Vc(d);if(i&&i.direction==="drillDown")g=d===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=h==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(c,g,l,0,u)}})}),A(this._storage,function(v,h){A(v,function(c,p){var d=a.lastsForAnimation[h][p],g={};d&&(c instanceof it?d.oldX!=null&&(g.x=c.x,g.y=c.y,c.x=d.oldX,c.y=d.oldY):(d.oldShape&&(g.shape=G({},c.shape),c.setShape(d.oldShape)),d.fadein?(c.setStyle("opacity",0),g.style={opacity:1}):c.style.opacity!==1&&(g.style={opacity:1})),f.add(c,g,l,0,u))})},this),this._state="animating",f.finished(q(function(){this._state="ready",a.renderFinally()},this)).start()},t.prototype._resetController=function(e){var a=this,n=this.seriesModel,i=this._controller;i||(i=this._controller=new jo(e.getZr()),i.on("pan",q(this._onPan,this)),i.on("zoom",q(this._onZoom,this))),i.enable(n.get("roam"),{api:e,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:function(o,s,l){var u=a._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>PC||Math.abs(e.dy)>PC)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new ot(l.x,l.y,l.width,l.height),f=o.layoutInfo,v=JE(f,l),h=v*i;h=jE(h,o);var c=h/v;a-=f.x,n-=f.y;var p=Qt();La(p,p,[-a,-n]),f_(p,p,[c,c]),La(p,p,[a,n]),u.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&lc(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new dY(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(Z1(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=au(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t}(Gt);function au(){return{nodeGroup:[],background:[],content:[]}}function OY(r,t,e,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),v=r.getData(),h=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var c=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,x=_&&_.length,b=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),C=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),M=b.get("borderRadius")||0,D=Q("nodeGroup",S0);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),Vc(D).nodeWidth=c,Vc(D).nodeHeight=p,f.isAboveViewRoot)return D;var L=Q("background",LC,u,RY);L&&z(D,L,x&&f.upperLabelHeight);var I=h.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),O=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)Xu(D)&&ro(D,!1),L&&(ro(L,!E),v.setItemGraphicEl(o.dataIndex,L),Tm(L,O,R));else{var k=Q("content",LC,u,EY);k&&F(D,k),L.disableMorphing=!0,L&&Xu(L)&&ro(L,!1),ro(D,!E),v.setItemGraphicEl(o.dataIndex,D);var V=h.getShallow("cursor");V&&k.attr("cursor",V),Tm(D,O,R)}return D;function z(vt,tt,dt){var et=ft(tt);if(et.dataIndex=o.dataIndex,et.seriesIndex=r.seriesIndex,tt.setShape({x:0,y:0,width:c,height:p,r:M}),g)U(tt);else{tt.invisible=!1;var ht=o.getVisual("style"),Ft=ht.stroke,Dt=kC(b);Dt.fill=Ft;var Vt=Xi(w);Vt.fill=w.get("borderColor");var Ht=Xi(C);Ht.fill=C.get("borderColor");var le=Xi(T);if(le.fill=T.get("borderColor"),dt){var cr=c-2*d;X(tt,Ft,ht.opacity,{x:d,y:0,width:cr,height:S})}else tt.removeTextContent();tt.setStyle(Dt),tt.ensureState("emphasis").style=Vt,tt.ensureState("blur").style=Ht,tt.ensureState("select").style=le,xo(tt)}vt.add(tt)}function F(vt,tt){var dt=ft(tt);dt.dataIndex=o.dataIndex,dt.seriesIndex=r.seriesIndex;var et=Math.max(c-2*d,0),ht=Math.max(p-2*d,0);if(tt.culling=!0,tt.setShape({x:d,y:d,width:et,height:ht,r:M}),g)U(tt);else{tt.invisible=!1;var Ft=o.getVisual("style"),Dt=Ft.fill,Vt=kC(b);Vt.fill=Dt,Vt.decal=Ft.decal;var Ht=Xi(w),le=Xi(C),cr=Xi(T);X(tt,Dt,Ft.opacity,null),tt.setStyle(Vt),tt.ensureState("emphasis").style=Ht,tt.ensureState("blur").style=le,tt.ensureState("select").style=cr,xo(tt)}vt.add(tt)}function U(vt){!vt.invisible&&i.push(vt)}function X(vt,tt,dt,et){var ht=h.getModel(et?EC:RC),Ft=pe(h.get("name"),null),Dt=ht.getShallow("show");we(vt,ge(h,et?EC:RC),{defaultText:Dt?Ft:null,inheritColor:tt,defaultOpacity:dt,labelFetcher:r,labelDataIndex:o.dataIndex});var Vt=vt.getTextContent();if(Vt){var Ht=Vt.style,le=sp(Ht.padding||0);et&&(vt.setTextConfig({layoutRect:et}),Vt.disableLabelLayout=!0),Vt.beforeUpdate=function(){var nr=Math.max((et?et.width:vt.shape.width)-le[1]-le[3],0),ci=Math.max((et?et.height:vt.shape.height)-le[0]-le[2],0);(Ht.width!==nr||Ht.height!==ci)&&Vt.setStyle({width:nr,height:ci})},Ht.truncateMinChar=2,Ht.lineOverflow="truncate",Y(Ht,et,f);var cr=Vt.getState("emphasis");Y(cr?cr.style:null,et,f)}}function Y(vt,tt,dt){var et=vt?vt.text:null;if(!tt&&dt.isLeafRoot&&et!=null){var ht=r.get("drillDownIcon",!0);vt.text=ht?ht+" "+et:et}}function Q(vt,tt,dt,et){var ht=m!=null&&e[vt][m],Ft=n[vt];return ht?(e[vt][m]=null,gt(Ft,ht)):g||(ht=new tt,ht instanceof Gr&&(ht.z2=NY(dt,et)),Et(Ft,ht)),t[vt][y]=ht}function gt(vt,tt){var dt=vt[y]={};tt instanceof S0?(dt.oldX=tt.x,dt.oldY=tt.y):dt.oldShape=G({},tt.shape)}function Et(vt,tt){var dt=vt[y]={},et=o.parentNode,ht=tt instanceof it;if(et&&(!a||a.direction==="drillDown")){var Ft=0,Dt=0,Vt=n.background[et.getRawIndex()];!a&&Vt&&Vt.oldShape&&(Ft=Vt.oldShape.width,Dt=Vt.oldShape.height),ht?(dt.oldX=0,dt.oldY=Dt):dt.oldShape={x:Ft,y:Dt,width:0,height:0}}dt.fadein=!ht}}function NY(r,t){return r*PY+t}var mf=A,BY=ut,zc=-1,be=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=at(t);this.type=a,this.mappingMethod=e,this._normalizeData=GY[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Hg(n),VY(n)):e==="category"?n.categories?zY(n):Hg(n,!0):(We(e!=="linear"||n.dataExtent),Hg(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return q(this._normalizeData,this)},r.listVisualTypes=function(){return Ct(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){ut(t)?A(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=H(t)?[]:ut(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&mf(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(H(t))t=t.slice();else if(BY(t)){var e=[];mf(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||Z(l)&&l===t+"")return o;a&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,v=u.close;if(f){if(f[0]===-1/0){if(Xv(v[1],t,f[1]))return o}else if(f[1]===1/0){if(Xv(v[0],f[0],t))return o}else if(Xv(v[0],f[0],t)&&Xv(v[1],t,f[1]))return o;a&&h(f[0],o),a&&h(f[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function h(c,p){var d=Math.abs(c-t);d<i&&(i=d,n=p)}},r.visualHandlers={color:{applyVisual:nu("color"),getColorMapper:function(){var t=this.option;return q(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),bu.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=gd(e,t.parsedVisual,n),i?n:xa(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return xa(gd(t,this.option.parsedVisual),"rgba")},category:bu,piecewise:function(t,e){var a=b0.call(this,e);return a==null&&(a=xa(gd(t,this.option.parsedVisual),"rgba")),a},fixed:Zi}},colorHue:Yv(function(t,e){return Xn(t,e)}),colorSaturation:Yv(function(t,e){return Xn(t,null,e)}),colorLightness:Yv(function(t,e){return Xn(t,null,null,e)}),colorAlpha:Yv(function(t,e){return Yh(t,e)}),decal:{applyVisual:nu("decal"),_normalizedToVisual:{linear:null,category:bu,piecewise:null,fixed:null}},opacity:{applyVisual:nu("opacity"),_normalizedToVisual:x0([0,1])},liftZ:{applyVisual:nu("liftZ"),_normalizedToVisual:{linear:Zi,category:Zi,piecewise:Zi,fixed:Zi}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:OC,category:bu,piecewise:function(t,e){var a=b0.call(this,e);return a==null&&(a=OC.call(this,t)),a},fixed:Zi}},symbolSize:{applyVisual:nu("symbolSize"),_normalizedToVisual:x0([0,1])}},r}();function VY(r){var t=r.pieceList;r.hasSpecialVisual=!1,A(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function zY(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(mf(t,function(o,s){e[o]=s}),!H(a)){var n=[];ut(a)?mf(a,function(o,s){var l=e[s];n[l??zc]=o}):n[zc]=a,a=QE(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function Hg(r,t){var e=r.visual,a=[];ut(e)?mf(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),QE(r,a)}function Yv(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:x0([0,1])}}function OC(r){var t=this.option.visual;return t[Math.round(kt(r,[0,1],[0,t.length-1],!0))]||{}}function nu(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function bu(r){var t=this.option.visual;return t[this.option.loop&&r!==zc?r%t.length:r]}function Zi(){return this.option.visual[0]}function x0(r){return{linear:function(t){return kt(t,r,this.option.visual,!0)},category:bu,piecewise:function(t,e){var a=b0.call(this,e);return a==null&&(a=kt(t,r,this.option.visual,!0)),a},fixed:Zi}}function b0(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=be.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function QE(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=W(t,function(e){var a=vr(e);return a||[0,0,0,1]})),t}var GY={linear:function(r){return kt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=be.findPieceIndex(r,t,!0);if(e!=null)return kt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??zc},fixed:re};function Xv(r,t,e){return r?t<=e:t<e}var FY="itemStyle",tk=yt();const HY={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||ek(e,{},r.getViewRoot().getAncestors(),r)}};function ek(r,t,e,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(FY),l=WY(s,t,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),v=s.get("borderColorSaturation"),h;v!=null&&(h=NC(l),f=UY(v,h)),u.stroke=f;var c=r.viewChildren;if(!c||!c.length)h=NC(l),u.fill=h;else{var p=YY(r,n,i,s,l,c);A(c,function(d,g){if(d.depth>=e.length||d===e[d.depth]){var y=XY(n,l,d,g,p,a);ek(d,y,e,a)}})}}}function WY(r,t,e){var a=G({},t),n=e.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function NC(r){var t=Wg(r,"color");if(t){var e=Wg(r,"colorAlpha"),a=Wg(r,"colorSaturation");return a&&(t=Xn(t,null,null,a)),e&&(t=Yh(t,e)),t}}function UY(r,t){return t!=null?Xn(t,null,null,r):null}function Wg(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function YY(r,t,e,a,n,i){if(!(!i||!i.length)){var o=Ug(t,"color")||n.color!=null&&n.color!=="none"&&(Ug(t,"colorAlpha")||Ug(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=t.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(f==="index"||f==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var h=new be(v);return tk(h).drColorMappingBy=f,h}}}function Ug(r,t){var e=r.get(t);return H(e)&&e.length?{name:t,range:e}:null}function XY(r,t,e,a,n,i){var o=G({},t);if(n){var s=n.type,l=s==="color"&&tk(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}function ZY(r){r.registerSeriesModel(hY),r.registerChartView(kY),r.registerVisual(HY),r.registerLayout(wY),vY(r)}function ds(r){return"_EC_"+r}var $Y=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var a=this._nodesMap;if(!a[ds(t)]){var n=new $i(t,e);return n.hostGraph=this,this.nodes.push(n),a[ds(t)]=n,n}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[ds(t)]},r.prototype.addEdge=function(t,e,a){var n=this._nodesMap,i=this._edgesMap;if(Lt(t)&&(t=this.nodes[t]),Lt(e)&&(e=this.nodes[e]),t instanceof $i||(t=n[ds(t)]),e instanceof $i||(e=n[ds(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new rk(t,e,a);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof $i&&(t=t.id),e instanceof $i&&(e=e.id);var a=this._edgesMap;return this._directed?a[t+"-"+e]:a[t+"-"+e]||a[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof $i||(e=this._nodesMap[ds(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],v=f.node1===l?f.node2:f.node1;if(!v.__visited){if(t.call(n,v,l))return;s.push(v),v.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(s){var l=n[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,a=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r}(),$i=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var a=this.edges[e];a.dataIndex<0||(t.edge.push(a.dataIndex),t.node.push(a.node1.dataIndex,a.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=K(),e=K(),a=0,n=this.edges.length;a<n;a++){var i=this.edges[a];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,e.set(u.dataIndex,!0);for(var f=u.inEdges,v=0,h=f.length,c=void 0,p=void 0;v<h;v++)c=f[v],p=c.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),o.push(c.node1))}for(l=0;l<s.length;){var d=s[l];l++,e.set(d.dataIndex,!0);for(var g=d.outEdges,v=0,y=g.length,m=void 0,_=void 0;v<y;v++)m=g[v],_=m.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r}(),rk=function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=K(),e=K();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,e.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,v=void 0;l<u;l++)f=o.inEdges[l],v=f.dataIndex,v>=0&&!t.hasKey(v)&&(t.set(v,!0),a.push(f.node1))}for(i=0;i<n.length;){var h=n[i];i++,e.set(h.dataIndex,!0);for(var c=h.outEdges,l=0,u=c.length,p=void 0,d=void 0;l<u;l++)p=h.outEdges[l],d=p.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),n.push(p.node2))}return{edge:t.keys(),node:e.keys()}},r}();function ak(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}ye($i,ak("hostGraph","data"));ye(rk,ak("hostGraph","edgeData"));function q1(r,t,e,a,n){for(var i=new $Y(a),o=0;o<r.length;o++)i.addNode(je(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],v=f.source,h=f.target;i.addEdge(v,h,u)&&(l.push(f),s.push(je(pe(f.id,null),v+" > "+h)),u++)}var c=e.get("coordinateSystem"),p;if(c==="cartesian2d"||c==="polar"||c==="matrix")p=_n(r,e);else{var d=Ef.get(c),g=d?d.dimensions||[]:[];pt(g,"value")<0&&g.concat(["value"]);var y=Nf(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;p=new tr(y,e),p.initData(r)}var m=new tr(["value"],e);return m.initData(l,s),n&&n(p,m),FE({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var w0="-->",jp=function(r){return r.get("autoCurveness")||null},nk=function(r,t){var e=jp(r),a=20,n=[];if(Lt(e))a=e;else if(H(e)){r.__curvenessList=e;return}t>a&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},_f=function(r,t,e){var a=[r.id,r.dataIndex].join("."),n=[t.id,t.dataIndex].join(".");return[e.uid,a,n].join(w0)},ik=function(r){var t=r.split(w0);return[t[0],t[2],t[1]].join(w0)},qY=function(r,t){var e=_f(r.node1,r.node2,t);return t.__edgeMap[e]},KY=function(r,t){var e=T0(_f(r.node1,r.node2,t),t),a=T0(_f(r.node2,r.node1,t),t);return e+a},T0=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function JY(r){jp(r)&&(r.__curvenessList=[],r.__edgeMap={},nk(r))}function jY(r,t,e,a){if(jp(e)){var n=_f(r,t,e),i=e.__edgeMap,o=i[ik(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function K1(r,t,e,a){var n=jp(t),i=H(n);if(!n)return null;var o=qY(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=KY(r,t);nk(t,u),r.lineStyle=r.lineStyle||{};var f=_f(r.node1,r.node2,t),v=t.__curvenessList,h=i||u%2?0:1;if(o.isForward)return v[h+s];var c=ik(f),p=T0(c,t),d=v[s+p+h];return a?i?n&&n[0]===0?(p+h)%2?d:-d:((p%2?0:1)+h)%2?d:-d:(p+h)%2?d:-d:v[s+p+h]}var ar="graph",QY=function(r){N(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.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Il(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),yo(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){JY(this);var s=q1(i,n,this,!0,l);return A(s.edges,function(u){jY(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var v=At.prototype.getModel;function h(p,d){var g=v.call(this,p,d);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=c,p.getModel=h,p});function c(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ve("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var v=B2({series:this,dataIndex:e,multipleSeries:a});return v},t.prototype._updateCategoriesData=function(){var e=W(this.option.categories||[],function(n){return n.value!=null?n:G({value:0},n)}),a=new tr(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.prototype.__ownRoamView=function(){var e=this.coordinateSystem;return AE(e)&&e},t.type="series."+ar,t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:B.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:B.color.primary}}},t}(Xt);function Zv(r){return r instanceof Array||(r=[r,r]),r}var t7=me(ar,e7);function e7(r){r.eachSeriesByType(ar,function(t){var e=t.getGraph(),a=t.getEdgeData(),n=Zv(t.get("edgeSymbol")),i=Zv(t.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",t.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=e.getEdgeByIndex(o),u=Zv(s.getShallow("symbol",!0)),f=Zv(s.getShallow("symbolSize",!0)),v=s.getModel("lineStyle").getLineStyle(),h=a.ensureUniqueItemVisual(o,"style");switch(G(h,v),h.stroke){case"source":{var c=l.node1.getVisual("style");h.stroke=c&&c.fill;break}case"target":{var c=l.node2.getVisual("style");h.stroke=c&&c.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}function ok(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),J1(e,r)}}function J1(r,t){r.eachEdge(function(e,a){var n=_r(e.getModel().get(["lineStyle","curveness"]),-K1(e,t,a,!0),0),i=ja(e.node1.getLayout()),o=ja(e.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),e.setLayout(s)})}var r7=me(ar,a7);function a7(r,t){r.eachSeriesByType(ar,function(e){var a=e.get("layout"),n=e.coordinateSystem;if(n&&n.type!=="view"){var i=e.getData(),o=[];A(n.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var v=i.get(o[f],s);isNaN(v)||(u=!0),l.push(v)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}J1(i.graph,e)}else(!a||a==="none")&&ok(e)})}function wu(r){var t=r.coordinateSystem;return AE(t)?PE(t,r):1}function Tu(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var BC=Math.PI,Yg=[];function j1(r,t,e,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,v=o.count();if(o.setLayout({cx:l,cy:u}),!!v){if(e){var h=n.pointToData(a),c=h[0],p=h[1],d=[c-l,p-u];cl(d,d),ph(d,d,f),e.setLayout([l+d[0],u+d[1]],!0);var g=r.get(["circular","rotateLabel"]);sk(e,g,l,u)}n7[t](r,s,o,f,l,u,v),s.eachEdge(function(y,m){var _=_r(y.getModel().get(["lineStyle","curveness"]),K1(y,r,m),0),S=ja(y.node1.getLayout()),x=ja(y.node2.getLayout()),b,w=(S[0]+x[0])/2,C=(S[1]+x[1])/2;+_&&(_*=3,b=[l*_+w*(1-_),u*_+C*(1-_)]),y.setLayout([S,x,b])})}}}var n7={value:function(r,t,e,a,n,i,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var v=f.getValue("value"),h=u*(l?v:1)/2;s+=h,f.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=h})},symbolSize:function(r,t,e,a,n,i,o){var s=0;Yg.length=o;var l=wu(r);t.eachNode(function(v){var h=Tu(v);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var c=Math.asin(h/2/a);isNaN(c)&&(c=BC/2),Yg[v.dataIndex]=c,s+=c*2});var u=(2*BC-s)/o/2,f=0;t.eachNode(function(v){var h=u+Yg[v.dataIndex];f+=h,(!v.getLayout()||!v.getLayout().fixed)&&v.setLayout([a*Math.cos(f)+n,a*Math.sin(f)+i]),f+=h})}};function sk(r,t,e,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-e);u<0&&(u=Math.PI*2+u);var f=l[0]<e;f&&(u=u-Math.PI);var v=f?"left":"right";s.setTextConfig({rotation:-u,position:v,origin:"center"});var h=s.ensureState("emphasis");G(h.textConfig||(h.textConfig={}),{position:v})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var i7=me(ar,o7);function o7(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&j1(t,"symbolSize")})}var gs=Wy;function s7(r,t,e){for(var a=r,n=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,f=0;f<a.length;f++){var v=a[f];v.p||(v.p=zo(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=ja(v.p),v.edges=null}var h=e.friction==null?.6:e.friction,c=h,p,d;return{warmUp:function(){c=h*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(a,n);for(var y=[],m=a.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){var x=S.n1,b=S.n2;to(y,b.p,x.p);var w=Uy(y)-S.d,C=b.w/(x.w+b.w);isNaN(C)&&(C=0),cl(y,y),!x.fixed&&gs(x.p,x.p,y,C*w*c),!b.fixed&&gs(b.p,b.p,y,-(1-C)*w*c)}}for(var _=0;_<m;_++){var T=a[_];T.fixed||(to(y,l,T.p),gs(T.p,T.p,y,u*c))}for(var _=0;_<m;_++)for(var x=a[_],M=_+1;M<m;M++){var b=a[M];to(y,b.p,x.p);var w=Uy(y);w===0&&(Wn(y,Math.random()-.5,Math.random()-.5),w=1);var D=(x.rep+b.rep)/w/w;!x.fixed&&gs(x.pp,x.pp,y,D),!b.fixed&&gs(b.pp,b.pp,y,-D)}for(var L=[],_=0;_<m;_++){var T=a[_];T.fixed||(to(L,T.p,T.pp),gs(T.p,T.p,L,c),ze(T.pp,T.p))}c=c*.992;var I=c<.01;d&&d(a,n,I),g&&g(I)}}}var l7=me(ar,u7);function u7(r){r.eachSeriesByType(ar,function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var a=t.preservedPoints||{},n=t.getGraph(),i=n.data,o=n.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,a[S]||[NaN,NaN])}):!l||l==="none"?ok(t):l==="circular"&&j1(t,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),v=s.get("repulsion"),h=s.get("edgeLength"),c=H(v)?v:[v,v],p=H(h)?h:[h,h];p=[p[1],p[0]];var d=i.mapArray("value",function(_,S){var x=i.getItemLayout(S),b=kt(_,u,c);return isNaN(b)&&(b=(c[0]+c[1])/2),{w:b,rep:b,fixed:i.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=n.getEdgeByIndex(S),b=kt(_,f,p);isNaN(b)&&(b=(p[0]+p[1])/2);var w=x.getModel(),C=_r(x.getModel().get(["lineStyle","curveness"]),-K1(x,t,S,!0),0);return{n1:d[x.node1.dataIndex],n2:d[x.node2.dataIndex],d:b,curveness:C,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=s7(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var x=0,b=_.length;x<b;x++)_[x].fixed&&ze(_[x].p,n.getNodeByIndex(x).getLayout())}),m.afterStep(function(_,S,x){for(var b=0,w=_.length;b<w;b++)_[b].fixed||n.getNodeByIndex(b).setLayout(_[b].p),a[i.getId(b)]=_[b].p;for(var b=0,w=S.length;b<w;b++){var C=S[b],T=n.getEdgeByIndex(b),M=C.n1.p,D=C.n2.p,L=T.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],ze(L[0],M),ze(L[1],D),+C.curveness&&(L[2]=[(M[0]+D[0])/2-(M[1]-D[1])*C.curveness,(M[1]+D[1])/2-(D[0]-M[0])*C.curveness]),T.setLayout(L)}}),t.forceLayout=m,t.preservedPoints=a,m.step()}else t.forceLayout=null})}function f7(r,t,e){var a=_e(r,t),n=G(r.getBoxLayoutParams(),{aspect:e}),i=Jt(n,a.refContainer);return a2(r,i,e)}function v7(r,t){var e=[];return r.eachSeriesByType("graph",function(a){kf({targetModel:a,coordSysType:"view",coordSysProvider:n,isDefaultDataCoordSys:!0});function n(){var i=a.getData(),o=i.mapArray(function(p){var d=i.getItemModel(p);return[+d.get("x"),+d.get("y")]}),s=[],l=[];mp(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=f7(a,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var v=l[0]-s[0],h=l[1]-s[1],c=H1(a,t,s[0],s[1],v,h,f);return e.push(c),c}}),e}var VC=fe.prototype,Xg=If.prototype,lk=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(lk);function Zg(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var uk=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-line",a}return t.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new lk},t.prototype.buildPath=function(e,a){Zg(a)?VC.buildPath.call(this,e,a):Xg.buildPath.call(this,e,a)},t.prototype.pointAt=function(e){return Zg(this.shape)?VC.pointAt.call(this,e):Xg.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var a=this.shape,n=Zg(a)?[a.x2-a.x1,a.y2-a.y1]:Xg.tangentAt.call(this,e);return cl(n,n)},t}(wt),$g=["fromSymbol","toSymbol"];function zC(r){return"_"+r+"Type"}function GC(r,t,e){var a=t.getItemVisual(e,r);if(!a||a==="none")return a;var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Cl(n),u=$o(o||0,l);return a+l+u+(i||"")+(s||"")}function FC(r,t,e){var a=t.getItemVisual(e,r);if(!(!a||a==="none")){var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Cl(n),u=$o(o||0,l),f=he(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function h7(r){var t=new uk({name:"line",subPixelOptimize:!0});return C0(t.shape,r),t}function C0(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var Q1=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createLine(e,a,n),i}return t.prototype._createLine=function(e,a,n){var i=e.hostModel,o=e.getItemLayout(a),s=e.getItemVisual(a,"z2"),l=h7(o);l.shape.percent=0,$t(l,{z2:j(s,0),shape:{percent:1}},i,a),this.add(l),A($g,function(u){var f=FC(u,e,a);this.add(f),this[zC(u)]=GC(u,e,a)},this),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(a),l={shape:{}};C0(l.shape,s),Rt(o,l,i,a),A($g,function(u){var f=GC(u,e,a),v=zC(u);if(this[v]!==f){this.remove(this.childOfName(u));var h=FC(u,e,a);this.add(h)}this[v]=f},this),this._updateCommonStl(e,a,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,v=n&&n.emphasisDisabled,h=n&&n.focus,c=n&&n.blurScope;if(!n||e.hasItemOption){var p=e.getItemModel(a),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),v=d.get("disabled"),h=d.get("focus"),c=d.get("blurScope"),f=ge(p)}var g=e.getItemVisual(a,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,A($g,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var C=0;C<rr.length;C++){var T=rr[C],M=o.getState(T);if(M){var D=M.style||{},L=w.ensureState(T),I=L.style||(L.style={});D.stroke!=null&&(I[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(I.opacity=D.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(a);we(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(b,w){return i.getFormattedLabel(b,w,e.dataType)}},inheritColor:y||B.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?e.getName(a):isFinite(m)?Pt(m,10):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");H(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Kt(this,h,c,v)},t.prototype.highlight=function(){vn(this)},t.prototype.downplay=function(){hn(this)},t.prototype.updateLayout=function(e,a){this.childOfName("line").stopAnimation(),this.setLinePoints(e.getItemLayout(a))},t.prototype.setLinePoints=function(e){var a=this.childOfName("line");C0(a.shape,e),a.dirty()},t.prototype.beforeUpdate=function(){var e=this,a=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),v=l.pointAt(u),h=to([],v,f);cl(h,h);function c(M,D){var L=M.__specifiedRotation;if(L==null){var I=l.tangentAt(D);M.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else M.attr("rotation",L)}if(a&&(a.setPosition(f),c(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(v),c(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],b=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(S[1],S[0]);v[0]<f[0]&&(C=Math.PI+C),i.rotation=C}var T=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=m,d="top";break;default:T=0,d="middle"}switch(i.__position){case"end":i.x=h[0]*y+v[0],i.y=h[1]*m+v[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+f[0],i.y=-h[1]*m+f[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+T,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+T,p="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+v[0],i.y=v[1]+T,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-T;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},t}(it),tS=function(){function r(t){this.group=new it,this._LineCtor=t||Q1}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=HC(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=HC(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[];function n(l){!l.isGroup&&!c7(l)&&(l.incremental=a,l.ensureState("emphasis").hoverLayer=xl)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(qg(o)){var s=new this._LineCtor(e,i,this._seriesScope);s.traverse(n),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){vi(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,a){var n=t.getItemLayout(e);if(qg(n)){var i=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,a,n,i){var o=t.getItemGraphicEl(a);if(!qg(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,i):o=new this._LineCtor(e,n,i),e.setItemGraphicEl(n,o),this.group.add(o)},r}();function c7(r){return r.animators&&r.animators.length>0}function HC(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:ge(t)}}function WC(r){return isNaN(r[0])||isNaN(r[1])}function qg(r){return r&&!WC(r[0])&&!WC(r[1])}var Kg=[],Jg=[],jg=[],ys=Me,Qg=so,UC=Math.abs;function YC(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){Kg[0]=ys(a[0],n[0],i[0],f),Kg[1]=ys(a[1],n[1],i[1],f);var v=UC(Qg(Kg,t)-l);v<o&&(o=v,s=f)}for(var h=0;h<32;h++){var c=s+u;Jg[0]=ys(a[0],n[0],i[0],s),Jg[1]=ys(a[1],n[1],i[1],s),jg[0]=ys(a[0],n[0],i[0],c),jg[1]=ys(a[1],n[1],i[1],c);var v=Qg(Jg,t)-l;if(UC(v)<.01)break;var p=Qg(jg,t)-l;u/=2,v<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function ty(r,t){var e=[],a=Gu,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[ja(u[0]),ja(u[1])],u[2]&&u.__original.push(ja(u[2])));var h=u.__original;if(u[2]!=null){if(ze(n[0],h[0]),ze(n[1],h[2]),ze(n[2],h[1]),f&&f!=="none"){var c=Tu(s.node1),p=YC(n,h[0],c*t);a(n[0][0],n[1][0],n[2][0],p,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],p,e),n[0][1]=e[3],n[1][1]=e[4]}if(v&&v!=="none"){var c=Tu(s.node2),p=YC(n,h[1],c*t);a(n[0][0],n[1][0],n[2][0],p,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],p,e),n[1][1]=e[1],n[2][1]=e[2]}ze(u[0],n[0]),ze(u[1],n[2]),ze(u[2],n[1])}else{if(ze(i[0],h[0]),ze(i[1],h[1]),to(o,i[1],i[0]),cl(o,o),f&&f!=="none"){var c=Tu(s.node1);Wy(i[0],i[0],o,c*t)}if(v&&v!=="none"){var c=Tu(s.node2);Wy(i[1],i[1],o,-c*t)}ze(u[0],i[0]),ze(u[1],i[1])}})}var fk=yt();function p7(r){if(r)return fk(r).bridge}function XC(r,t){r&&(fk(r).bridge=t)}var d7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=ar,e}return t.prototype.init=function(e,a){var n=new Wf,i=new tS,o=this.group,s=new it;this._controller=new jo(a.getZr()),s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=Oc(e),s=!1;this._model=e,this._api=n,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(n);var f=this._symbolDraw,v=this._lineDraw;o&&ni(l,Ba,o,this._firstRender?null:e),ty(e.getGraph(),wu(e));var h=e.getData();f.updateData(h);var c=e.getEdgeData();v.updateData(c),this._updateNodeAndLinkScale(),o&&Kp(e,n,this._controller,function(S,x,b){return e.coordinateSystem.containPoint([x,b])},null),clearTimeout(this._layoutTimeout);var p=e.forceLayout,d=e.get(["force","layoutAnimation"]);p&&(s=!0,this._startForceLayoutIteration(p,n,d));var g=e.get("layout");h.graph.eachNode(function(S){var x=S.dataIndex,b=S.getGraphicEl(),w=S.getModel();if(b){b.off("drag").off("dragend");var C=w.get("draggable");C&&b.on("drag",function(M){switch(g){case"force":p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,n,d),p.setFixed(x),h.setItemLayout(x,[b.x,b.y]);break;case"circular":h.setItemLayout(x,[b.x,b.y]),S.setLayout({fixed:!0},!0),j1(e,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(e);break;case"none":default:h.setItemLayout(x,[b.x,b.y]),J1(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){p&&p.setUnfixed(x)}),b.setDraggable(C,!!w.get("cursor"));var T=w.get(["emphasis","focus"]);T==="adjacency"&&(ft(b).focus=S.getAdjacentDataIndices())}}),h.graph.eachEdge(function(S){var x=S.getGraphicEl(),b=S.getModel().get(["emphasis","focus"]);x&&b==="adjacency"&&(ft(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=h.getLayout("cx"),_=h.getLayout("cy");h.graph.eachNode(function(S){sk(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(e,a,n){var i=this,o=!1;(function s(){e.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype.__updateOnOwnRoam=function(e,a,n){var i=Oc(a);!this._active||!i||(ni(this._mainGroup,Ba,i,null),kE(e)&&(this._updateNodeAndLinkScale(),ty(a.getGraph(),wu(a)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=wu(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(ty(e.getGraph(),wu(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,a=e.coordinateSystem;if(a.type==="view"){var n=p7(e);if(n)return{bridge:n,coordSys:a}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(Ec(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new it,l=n.group.children(),u=i.group.children(),f=new it,v=new it;s.add(v),s.add(f);for(var h=0;h<l.length;h++){var c=l[h],p=c.children()[0],d=c.x,g=c.y,y=at(p.shape),m=G(y,{width:p.scaleX,height:p.scaleY,x:d-p.scaleX/2,y:g-p.scaleY/2}),_=at(p.style),S=new p.constructor({shape:m,style:_,z2:151});v.add(S)}for(var h=0;h<u.length;h++){var c=u[h],x=c.children()[0],_=at(x.style),m=at(x.shape),b=new uk({style:_,shape:m,z2:151});f.add(b)}o.bridge.renderContent({api:a,roamType:e.get("roam"),viewportRect:null,group:s,targetTrans:Ec(null,o.coordSys)})}},t.type=ar,t}(Gt),g7=me(ar,y7);function y7(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType(ar,function(e){var a=e.getCategoriesData(),n=e.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Lt(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}var m7=me(ar,_7);function _7(r){var t={};r.eachSeriesByType(ar,function(e){var a=e.getCategoriesData(),n=e.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),a.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],v=0;v<f.length;v++){var h=l.getShallow(f[v],!0);h!=null&&a.setItemVisual(o,f[v],h)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){Z(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),f=n.ensureUniqueItemVisual(o,"style");G(f,u);for(var v=["symbol","symbolSize","symbolKeepAspect"],h=0;h<v.length;h++)n.setItemVisual(o,v[h],a.getItemVisual(l,v[h]))}})})}function S7(r){r.registerChartView(d7),r.registerSeriesModel(QY),r.registerProcessor(g7),r.registerVisual(m7),r.registerVisual(t7),r.registerLayout(r7),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,i7),r.registerLayout(l7),r.registerCoordinateSystem("graphView",{dimensions:$p.dimensions,create:v7}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},re),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},re),F1(r,ka,ar)}var Sf="chord",x7=function(r){N(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){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new Il(q(this.getData,this),q(this.getRawData,this))},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[];if(i&&n){var o=q1(i,n,this,!0,s);return o.data}function s(l,u){var f=At.prototype.getModel;function v(c,p){var d=f.call(this,c,p);return d.resolveParentPath=h,d}u.wrapMethod("getItemModel",function(c){return c.resolveParentPath=h,c.getModel=v,c});function h(c){if(c&&(c[0]==="label"||c[1]==="label")){var p=c.slice();return c[0]==="label"?p[0]="edgeLabel":c[1]==="label"&&(p[1]="edgeLabel"),p}return c}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){var i=this.getDataParams(e,n);if(n==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(e),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ve("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return ve("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(a==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(e);if(n.name==null&&(n.name=i.getName(e)),n.value==null){var s=o.getLayout().value;n.value=s}}return n},t.type="series."+Sf,t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(Xt),ZC=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;ft(i).dataType="node",i.z2=2;var o=new It;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.graph.getNodeByIndex(a),l=e.hostModel,u=s.getModel(),f=u.getModel("emphasis"),v=e.getItemLayout(a),h=G(Sa(u.getModel("itemStyle"),v,!0),v),c=this;if(isNaN(h.startAngle)){c.setShape(h);return}i?c.setShape(h):Rt(c,{shape:h},l,a);var p=G(Sa(u.getModel("itemStyle"),v,!0),v);o.setShape(p),o.useStyle(e.getItemVisual(a,"style")),de(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(a,c),de(c,u,"itemStyle");var d=f.get("focus");Kt(this,d==="adjacency"?s.getAdjacentDataIndices():d,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this.getTextContent(),o=n.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=a.getModel("label");i.ignore=!f.get("show");var v=ge(a),h=n.getVisual("style");we(i,v,{labelFetcher:{getFormattedLabel:function(m,_,S,x,b,w){return e.getFormattedLabel(m,_,"node",x,_r(b,v.normal&&v.normal.get("formatter"),a.get("name")),w)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:h.fill,defaultOpacity:h.opacity,defaultOutsidePosition:"startArc"});var c=f.get("position")||"outside",p=f.get("distance")||0,d;c==="outside"?d=o.r+p:d=(o.r+o.r0)/2,this.textConfig={inside:c!=="outside"};var g=c!=="outside"?f.get("align")||"center":l>0?"left":"right",y=c!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*d+o.cx,y:u*d+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(Ue),b7=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this)||this;return ft(o).dataType="edge",o.updateData(e,a,n,i,!0),o}return t.prototype.buildPath=function(e,a){e.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;e.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),e.bezierCurveTo((a.cx-a.s2[0])*n+a.s2[0],(a.cy-a.s2[1])*n+a.s2[1],(a.cx-a.t1[0])*n+a.t1[0],(a.cy-a.t1[1])*n+a.t1[1],a.t1[0],a.t1[1]),e.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),e.bezierCurveTo((a.cx-a.t2[0])*n+a.t2[0],(a.cy-a.t2[1])*n+a.t2[1],(a.cx-a.s1[0])*n+a.s1[0],(a.cy-a.s1[1])*n+a.s1[1],a.s1[0],a.s1[1]),e.closePath()},t.prototype.updateData=function(e,a,n,i,o){var s=e.hostModel,l=a.graph.getEdgeByIndex(n),u=l.getLayout(),f=l.node1.getModel(),v=a.getItemModel(l.dataIndex),h=v.getModel("lineStyle"),c=v.getModel("emphasis"),p=c.get("focus"),d=G(Sa(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(d.sStartAngle)||isNaN(d.tStartAngle)){g.setShape(d);return}o?(g.setShape(d),$C(g,l,e,h)):(Fr(g),$C(g,l,e,h),Rt(g,{shape:d},s,n)),Kt(this,p==="adjacency"?l.getAdjacentDataIndices():p,c.get("blurScope"),c.get("disabled")),de(g,v,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},t}(wt);function $C(r,t,e,a){var n=t.node1,i=t.node2,o=r.style;r.setStyle(a.getLineStyle());var s=a.get("color");switch(s){case"source":o.fill=e.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=e.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=e.getItemVisual(n.dataIndex,"style").fill,u=e.getItemVisual(i.dataIndex,"style").fill;if(Z(l)&&Z(u)){var f=r.shape,v=(f.s1[0]+f.s2[0])/2,h=(f.s1[1]+f.s2[1])/2,c=(f.t1[0]+f.t2[0])/2,p=(f.t1[1]+f.t2[1])/2;o.fill=new ei(v,h,c,p,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var w7=Math.PI/180,T7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Sf,e}return t.prototype.init=function(e,a){},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group,l=-e.get("startAngle")*w7;if(i.diff(o).add(function(f){var v=i.getItemLayout(f);if(v){var h=new ZC(i,f,l);ft(h).dataIndex=f,s.add(h)}}).update(function(f,v){var h=o.getItemGraphicEl(v),c=i.getItemLayout(f);if(!c){h&&Qa(h,e,v);return}h?h.updateData(i,f,l):h=new ZC(i,f,l),s.add(h)}).remove(function(f){var v=o.getItemGraphicEl(f);v&&Qa(v,e,f)}).execute(),!o){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=$(u[0],n.getWidth()),this.group.originY=$(u[1],n.getHeight()),$t(this.group,{scaleX:1,scaleY:1},e)}this._data=i,this.renderEdges(e,l)},t.prototype.renderEdges=function(e,a){var n=e.getData(),i=e.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new b7(n,i,l,a);ft(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,i,l,a),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&Qa(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type=Sf,t}(Gt),ey=Math.PI/180,C7=me(Sf,A7);function A7(r,t){r.eachSeriesByType(Sf,function(e){M7(e,t)})}function M7(r,t){var e=r.getData(),a=e.graph,n=r.getEdgeData(),i=n.count();if(i){var o=r2(r,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=Math.max((r.get("padAngle")||0)*ey,0),h=Math.max((r.get("minAngle")||0)*ey,0),c=-r.get("startAngle")*ey,p=c+Math.PI*2,d=r.get("clockwise"),g=d?1:-1,y=[c,p];_p(y,!d);var m=y[0],_=y[1],S=_-m,x=e.getSum("value")===0&&n.getSum("value")===0,b=[],w=0;a.eachEdge(function(k){var V=x?1:k.getValue("value");x&&(V>0||h)&&(w+=2);var z=k.node1.dataIndex,F=k.node2.dataIndex;b[z]=(b[z]||0)+V,b[F]=(b[F]||0)+V});var C=0;if(a.eachNode(function(k){var V=k.getValue("value");isNaN(V)||(b[k.dataIndex]=Math.max(V,b[k.dataIndex]||0)),!x&&(b[k.dataIndex]>0||h)&&w++,C+=b[k.dataIndex]||0}),!(w===0||C===0)){v*w>=Math.abs(S)&&(v=Math.max(0,(Math.abs(S)-h*w)/w)),(v+h)*w>=Math.abs(S)&&(h=(Math.abs(S)-v*w)/w);var T=(S-v*w*g)/C,M=0,D=0,L=0;a.eachNode(function(k){var V=b[k.dataIndex]||0,z=T*(C?V:1)*g;Math.abs(z)<h?M+=h-Math.abs(z):(D+=Math.abs(z)-h,L+=Math.abs(z)),k.setLayout({angle:z,value:V})});var I=!1;if(M>D){var P=M/D;a.eachNode(function(k){var V=k.getLayout().angle;Math.abs(V)>=h?k.setLayout({angle:V*P,ratio:P},!0):k.setLayout({angle:h,ratio:h===0?1:V/h},!0)})}else a.eachNode(function(k){if(!I){var V=k.getLayout().angle,z=Math.min(V/L,1),F=z*M;V-F<h&&(I=!0)}});var R=M;a.eachNode(function(k){if(!(R<=0)){var V=k.getLayout().angle;if(V>h&&h>0){var z=I?1:Math.min(V/L,1),F=V-h,U=Math.min(F,Math.min(R,M*z));R-=U,k.setLayout({angle:V-U,ratio:(V-U)/V},!0)}else h>0&&k.setLayout({angle:h,ratio:V===0?1:h/V},!0)}});var E=m,O=[];a.eachNode(function(k){var V=Math.max(k.getLayout().angle,h);k.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:E,endAngle:E+V*g,clockwise:d},!0),O[k.dataIndex]=E,E+=(V+v)*g}),a.eachEdge(function(k){var V=x?1:k.getValue("value"),z=T*(C?V:1)*g,F=k.node1.dataIndex,U=O[F]||0,X=Math.abs((k.node1.getLayout().ratio||1)*z),Y=U+X*g,Q=[s+f*Math.cos(U),l+f*Math.sin(U)],gt=[s+f*Math.cos(Y),l+f*Math.sin(Y)],Et=k.node2.dataIndex,vt=O[Et]||0,tt=Math.abs((k.node2.getLayout().ratio||1)*z),dt=vt+tt*g,et=[s+f*Math.cos(vt),l+f*Math.sin(vt)],ht=[s+f*Math.cos(dt),l+f*Math.sin(dt)];k.setLayout({s1:Q,s2:gt,sStartAngle:U,sEndAngle:Y,t1:et,t2:ht,tStartAngle:vt,tEndAngle:dt,cx:s,cy:l,r:f,value:V,clockwise:d}),O[F]=Y,O[Et]=dt})}}}function D7(r){r.registerChartView(T7),r.registerSeriesModel(x7),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,C7),r.registerProcessor(Xf("chord"))}var I7=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),L7=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new I7},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,f)},t}(wt);function P7(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=$(e[0],t.getWidth()),s=$(e[1],t.getHeight()),l=$(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function $v(r,t){var e=r==null?"":r+"";return t&&(Z(t)?e=t.replace("{value}",e):nt(t)&&(e=t(r))),e}var R7=function(r){N(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,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=P7(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,v=e.getModel("axisLine"),h=v.get("roundCap"),c=h?Lc:Ue,p=v.get("show"),d=v.getModel("lineStyle"),g=d.get("width"),y=[u,f];_p(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;p&&x<i.length;x++){var b=Math.min(Math.max(i[x][0],0),1);f=u+m*b;var w=new c({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[x][1]}),w.setStyle(d.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),A(S,function(T){return s.add(T)});var C=function(T){if(T<=0)return i[0][1];var M;for(M=0;M<i.length;M++)if(i[M][0]>=T&&(M===0?0:i[M-1][0])<T)return i[M][1];return i[M-1][1]};this._renderTicks(e,a,n,C,o,u,f,l,g),this._renderTitleAndDetail(e,a,n,C,o),this._renderAnchor(e,o),this._renderPointer(e,a,n,C,o,u,f,l,g)},t.prototype._renderTicks=function(e,a,n,i,o,s,l,u,f){for(var v=this.group,h=o.cx,c=o.cy,p=o.r,d=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),x=m.get("splitNumber"),b=$(y.get("length"),p),w=$(m.get("length"),p),C=s,T=(l-s)/S,M=T/x,D=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,R,E=0;E<=S;E++){if(P=Math.cos(C),R=Math.sin(C),y.get("show")){var O=I?I+f:f,k=new fe({shape:{x1:P*(p-O)+h,y1:R*(p-O)+c,x2:P*(p-b-O)+h,y2:R*(p-b-O)+c},style:D,silent:!0});D.stroke==="auto"&&k.setStyle({stroke:i(E/S)}),v.add(k)}if(_.get("show")){var O=_.get("distance")+I,V=$v(Pt(E*(g-d)/S+d,zB),_.get("formatter")),z=i(E/S),F=P*(p-b-O)+h,U=R*(p-b-O)+c,X=_.get("rotate"),Y=0;X==="radial"?(Y=-C+2*Math.PI,Y>Math.PI/2&&(Y+=Math.PI)):X==="tangential"?Y=-C-Math.PI/2:Lt(X)&&(Y=X*Math.PI/180),Y===0?v.add(new It({style:Yt(_,{text:V,x:F,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:z}),silent:!0})):v.add(new It({style:Yt(_,{text:V,x:F,y:U,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:F,originY:U,rotation:Y}))}if(m.get("show")&&E!==S){var O=m.get("distance");O=O?O+f:f;for(var Q=0;Q<=x;Q++){P=Math.cos(C),R=Math.sin(C);var gt=new fe({shape:{x1:P*(p-O)+h,y1:R*(p-O)+c,x2:P*(p-w-O)+h,y2:R*(p-w-O)+c},silent:!0,style:L});L.stroke==="auto"&>.setStyle({stroke:i((E+Q/x)/S)}),v.add(gt),C+=M}C-=M}else C+=T}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,f){var v=this.group,h=this._data,c=this._progressEls,p=[],d=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),x=+e.get("max"),b=[S,x],w=[s,l];function C(M,D){var L=m.getItemModel(M),I=L.getModel("pointer"),P=$(I.get("width"),o.r),R=$(I.get("length"),o.r),E=e.get(["pointer","icon"]),O=I.get("offsetCenter"),k=$(O[0],o.r),V=$(O[1],o.r),z=I.get("keepAspect"),F;return E?F=he(E,k-P/2,V-R,P,R,null,z):F=new L7({shape:{angle:-Math.PI/2,width:P,r:R,x:k,y:V}}),F.rotation=-(D+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function T(M,D){var L=g.get("roundCap"),I=L?Lc:Ue,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(M+1)*R,O=P?o.r:o.r-M*R,k=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:O}});return P&&(k.z2=kt(m.get(_,M),[S,x],[100,0],!0)),k}(y||d)&&(m.diff(h).add(function(M){var D=m.get(_,M);if(d){var L=C(M,s);$t(L,{rotation:-((isNaN(+D)?w[0]:kt(D,b,w,!0))+Math.PI/2)},e),v.add(L),m.setItemGraphicEl(M,L)}if(y){var I=T(M,s),P=g.get("clip");$t(I,{shape:{endAngle:kt(D,b,w,P)}},e),v.add(I),Sm(e.seriesIndex,m.dataType,M,I),p[M]=I}}).update(function(M,D){var L=m.get(_,M);if(d){var I=h.getItemGraphicEl(D),P=I?I.rotation:s,R=C(M,P);R.rotation=P,Rt(R,{rotation:-((isNaN(+L)?w[0]:kt(L,b,w,!0))+Math.PI/2)},e),v.add(R),m.setItemGraphicEl(M,R)}if(y){var E=c[D],O=E?E.shape.endAngle:s,k=T(M,O),V=g.get("clip");Rt(k,{shape:{endAngle:kt(L,b,w,V)}},e),v.add(k),Sm(e.seriesIndex,m.dataType,M,k),p[M]=k}}).execute(),m.each(function(M){var D=m.getItemModel(M),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled"),E=i(kt(m.get(_,M),b,[0,1],!0));if(d){var O=m.getItemGraphicEl(M),k=m.getItemVisual(M,"style"),V=k.fill;if(O instanceof Ie){var z=O.style;O.useStyle(G({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},k))}else O.useStyle(k),O.type!=="pointer"&&O.setColor(V);O.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",E),O.z2EmphasisLift=0,de(O,D),Kt(O,I,P,R)}if(y){var F=p[M];F.useStyle(m.getItemVisual(M,"style")),F.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",E),F.z2EmphasisLift=0,de(F,D),Kt(F,I,P,R)}}),this._progressEls=p)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=he(s,a.cx-o/2+$(l[0],a.r),a.cy-o/2+$(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),v=+e.get("max"),h=new it,c=[],p=[],d=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new It({silent:!0}),p[y]=new It({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new it,x=i(kt(_,[f,v],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+$(w[0],o.r),T=o.cy+$(w[1],o.r),M=c[y];M.attr({z2:g?0:2,style:Yt(b,{x:C,y:T,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+$(L[0],o.r),P=o.cy+$(L[1],o.r),R=$(D.get("width"),o.r),E=$(D.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,M=p[y],k=D.get("formatter");M.attr({z2:g?0:2,style:Yt(D,{x:I,y:P,text:$v(_,k),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:O})}),LL(M,{normal:D},_,function(z){return $v(z,k)}),d&&PL(M,y,l,e,{getFormattedLabel:function(z,F,U,X,Y,Q){return $v(Q?Q.interpolatedValue:_,k)}}),S.add(M)}h.add(S)}),this.group.add(h),this._titleEls=c,this._detailEls=p},t.type="gauge",t}(Gt),E7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Dl(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,B.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:B.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:B.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:B.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:B.color.neutral00,borderWidth:0,borderColor:B.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:B.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:B.color.transparent,borderWidth:0,borderColor:B.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:B.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Xt);function k7(r){r.registerChartView(R7),r.registerSeriesModel(E7)}var sl="funnel",O7=function(r){N(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){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Il(q(this.getData,this),q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return Dl(this,{coordDimensions:["value"],encodeDefaulter:St(Z_,this)})},t.prototype._defaultLabelLine=function(e){yo(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series."+sl,t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:B.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:B.color.primary}}},t}(Xt),N7=["itemStyle","opacity"],B7=function(r){N(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new ke,s=new It;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(N7);f=f??1,n||Fr(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,$t(i,{style:{opacity:f}},o,a)):Rt(i,{style:{opacity:f},shape:{points:l.points}},o,a),de(i,s),this._updateLabel(e,a),Kt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),f=u.label,v=e.getItemVisual(a,"style"),h=v.fill;we(o,ge(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:v.opacity,defaultText:e.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var c=l.getModel("label"),p=c.get("color"),d=p==="inherit"?h:null;n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:d,outsideFill:d});var g=f.linePoints;i.setShape({points:g}),n.textGuideLineConfig={anchor:g?new lt(g[0][0],g[0][1]):null},Rt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),S1(n,x1(l),{stroke:h})},t}(Ye),V7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=sl,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new B7(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Qa(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=sl,t}(Gt);function z7(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return nt(t)?n.sort(t):t!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function G7(r){var t=r.hostModel,e=vk(t);r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",v,h,c,p;if(f)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,c=(u[0][1]+u[3][1])/2,v="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,c=(u[1][1]+u[2][1])/2,v="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,c=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,v="center"),p=[[h,c],[h,c]];else{var d=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");Z(o)&&(!e&&pt(["top","bottom"],o)>-1&&(o="left"),e&&pt(["left","right"],o)>-1&&(o="bottom")),o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-_,h=y-5,v="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+_,h=y+5,v="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,c=m-5,v="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,c=m+5,v="center"):o==="rightTop"?(d=e?u[3][0]:u[1][0],g=e?u[3][1]:u[1][1],e?(m=g-_,c=m-5,v="center"):(y=d+_,h=y+5,v="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],e?(m=g+_,c=m+5,v="center"):(y=d+_,h=y+5,v="bottom")):o==="leftTop"?(d=u[0][0],g=e?u[0][1]:u[1][1],e?(m=g-_,c=m-5,v="center"):(y=d-_,h=y-5,v="right")):o==="leftBottom"?(d=e?u[1][0]:u[3][0],g=e?u[1][1]:u[2][1],e?(m=g+_,c=m+5,v="center"):(y=d-_,h=y-5,v="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e?(m=g+_,c=m+5,v="center"):(y=d+_,h=y+5,v="left")),e?(y=d,h=y):(m=g,c=m),p=[[d,g],[y,m]]}l.label={linePoints:p,x:h,y:c,verticalAlign:"middle",textAlign:v,inside:f}})}var F7=me(sl,H7);function H7(r,t){r.eachSeriesByType(sl,function(e){var a=e.getData(),n=a.mapDimension("value"),i=e.get("sort"),o=_e(e,t),s=Jt(e.getBoxLayoutParams(),o.refContainer),l=vk(e),u=s.width,f=s.height,v=z7(a,i),h=s.x,c=s.y,p=l?[$(e.get("minSize"),f),$(e.get("maxSize"),f)]:[$(e.get("minSize"),u),$(e.get("maxSize"),u)],d=a.getDataExtent(n),g=e.get("min"),y=e.get("max");g==null&&(g=Math.min(d[0],0)),y==null&&(y=d[1]);var m=e.get("funnelAlign"),_=e.get("gap"),S=l?u:f,x=(S-_*(a.count()-1))/a.count(),b=function(R,E){if(l){var O=a.get(n,R)||0,k=kt(O,[g,y],p,!0),V=void 0;switch(m){case"top":V=c;break;case"center":V=c+(f-k)/2;break;case"bottom":V=c+(f-k);break}return[[E,V],[E,V+k]]}var z=a.get(n,R)||0,F=kt(z,[g,y],p,!0),U;switch(m){case"left":U=h;break;case"center":U=h+(u-F)/2;break;case"right":U=h+u-F;break}return[[U,E],[U+F,E]]};i==="ascending"&&(x=-x,_=-_,l?h+=u:c+=f,v=v.reverse());for(var w=0;w<v.length;w++){var C=v[w],T=v[w+1],M=a.getItemModel(C);if(l){var D=M.get(["itemStyle","width"]);D==null?D=x:(D=$(D,u),i==="ascending"&&(D=-D));var L=b(C,h),I=b(T,h+D);h+=D+_,a.setItemLayout(C,{points:L.concat(I.slice().reverse())})}else{var P=M.get(["itemStyle","height"]);P==null?P=x:(P=$(P,f),i==="ascending"&&(P=-P));var L=b(C,c),I=b(T,c+P);c+=P+_,a.setItemLayout(C,{points:L.concat(I.slice().reverse())})}}G7(a)})}function vk(r){return r.get("orient")==="horizontal"}function W7(r){r.registerChartView(V7),r.registerSeriesModel(O7),r.registerLayout(F7),r.registerProcessor(Xf(sl))}var U7=.3,Y7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new it,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,a,n,i){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.dimensions,v=KC(e);s.diff(l).add(h).update(c).remove(p).execute();function h(g){var y=qC(s,o,g,f,u);ry(y,s,g,v)}function c(g,y){var m=l.getItemGraphicEl(y);o.add(m);var _=hk(s,g,f,u);s.setItemGraphicEl(g,m),Rt(m,{shape:{points:_}},e,g),Fr(m),ry(m,s,g,v)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=X7(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=qC(i,this._dataGroup,l,o.dimensions,o);u.incremental=Ta(a),ry(u,i,l,KC(a)),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Gt);function X7(r,t,e){var a=r.model,n=r.getRect(),i=new bt({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),$t(i,{shape:{width:n.width,height:n.height}},t,e),i}function hk(r,t,e,a){for(var n=[],i=0;i<e.length;i++){var o=e[i],s=r.get(r.mapDimension(o),t);Z7(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function qC(r,t,e,a,n){var i=hk(r,e,a,n),o=new ke({shape:{points:i},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function KC(r){var t=r.get("smooth",!0);return t===!0&&(t=U7),t=un(t),Fe(t)&&(t=0),{smooth:t}}function ry(r,t,e,a){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=t.getItemModel(e),i=n.getModel("emphasis");de(r,n,"lineStyle"),Kt(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function Z7(r,t){return t==="category"?r==null:r==null||isNaN(r)}var $7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,a){return _n(null,this,{useEncodeDefaulter:q(q7,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){e===o&&i.push(n.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},t}(Xt);function q7(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return A(t.dimensions,function(a){var n=K7(a);e[a]=n}),e}}function K7(r){return+r.replace("dim","")}var J7=["lineStyle","opacity"],j7={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){e.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(J7,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},n.start,n.end)}}}};function Q7(r){t9(r),e9(r)}function t9(r){if(!r.parallel){var t=!1;A(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function e9(r){var t=Wt(r.parallelAxis);A(t,function(e){if(ut(e)){var a=e.parallelIndex||0,n=Wt(r.parallel)[a];n&&n.parallelAxisDefault&&mt(e,n.parallelAxisDefault,!1)}})}var r9=5,a9=function(r){N(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,a,n){this._model=e,this._api=n,this._handlers||(this._handlers={},A(n9,function(i,o){n.getZr().on(o,this._handlers[o]=q(i,this))},this)),wl(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){Ju(this,"_throttledDispatchExpand"),A(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(G({type:"parallelAxisExpand"},e))},t.type="parallel",t}(qt),n9={mousedown:function(r){ay(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(ay(this,"click")&&t){var e=[r.offsetX,r.offsetY],a=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(a>r9)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!ay(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function ay(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var Gc="parallel",A0=Gc,i9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&mt(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=Bt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type=A0,t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Tt),o9=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(na);function ii(r,t,e,a,n,i){r=r||0;var o=Wi(e[1],-e[0]);if(n!=null&&(n=ms(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(Wi(t[1],-t[0]));s=ms(s,[0,o]),n=i=ms(s,[n,i]),a=0}t[0]=ms(t[0],e),t[1]=ms(t[1],e);var l=ny(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]=Wi(f[0],u):f[1]=Wi(f[1],-u),t[a]=ms(t[a],f);var v;return v=ny(t,a),n!=null&&(v.sign!==l.sign||v.span<n)&&(t[1-a]=Wi(t[a],l.sign*n)),v=ny(t,a),i!=null&&v.span>i&&(t[1-a]=Wi(t[a],v.sign*i)),t}function ny(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 ms(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var s9=function(){function r(t,e,a){this.type=Gc,this._axesMap=K(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;A(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=Vp(u),v=this._axesMap.set(o,new o9(o,Vf(u,f,!1),[0,0],f,l));v.onBand=Gf(v.scale,u),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){A(this.dimensions,function(a){var n=this._axesMap.get(a);Do(n,al),nl(n)},this)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(t,e){var a=_e(t,e).refContainer;this._rect=Jt(t.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,f=qv(t.get("axisExpandWidth"),l),v=qv(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>v&&v>1&&f>0&&s>0,c=t.get("axisExpandWindow"),p;if(c)p=qv(c[1]-c[0],l),c[1]=c[0]+p;else{p=qv(f*(v-1),l);var d=t.get("axisExpandCenter")||Qr(u/2);c=[f*d-p/2],c[1]=c[0]+p}var g=(s-p)/(u-v);g<3&&(g=0);var y=[Qr(Pt(c[0]/f,1))+1,Go(Pt(c[1]/f,1))-1],m=g/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),A(a,function(o,s){var l=(n.axisExpandable?u9:l9)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:Kh/2,vertical:0},v=[u[i].x+t.x,u[i].y+t.y],h=f[i],c=Qt();fi(c,c,h),La(c,c,v),this._axesLayout[o]={position:v,rotation:h,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;f<n;f++){var v=void 0;if(!u)v="normal";else{v="active";for(var h=t.getValues(s,f),c=0,p=o.length;c<p;c++){var d=l[c].getActiveState(h[c]);if(d==="inactive"){v="inactive";break}}}e(v,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,a=!1,n=0,i=t.length;n<i;n++)e.get(t[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(t,e){var a=this._axesLayout[e];return Jr([t,0],a.transform)},r.prototype.getAxisLayout=function(t){return at(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),a=e.pixelDimIndex,n=e.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var s=t[a]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),h=v[0]!=null;if(f)h&&f&&s<i*v[0]?(u="jump",l=s-i*v[2]):h&&f&&s>i*(1-v[0])?(u="jump",l=s-i*(1-v[2])):(l=s-i*v[1])>=0&&(l=s-i*(1-v[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?ii(l,n,o,"all"):u="none";else{var c=n[1]-n[0],p=o[1]*s/c;n=[xt(0,p-c/2)],n[1]=zt(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function qv(r,t){return zt(xt(r,t[0]),t[1])}function l9(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function u9(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*a-t.axisExpandWindow[0],l=a,u=!0):(s=e-(n-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function f9(r,t){var e=[];return r.eachComponent(A0,function(a,n){var i=new s9(a,r,t);i.name="parallel_"+n,i.resize(a,t),a.coordinateSystem=i,i.model=a,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")===Gc){var n=a.getReferringComponents(A0,te).models[0],i=a.coordinateSystem=n.coordinateSystem;i&&A(i.dimensions,function(o){Mo(i.getAxis(o),a,Gc)})}}),e}var v9={create:f9},M0=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return So([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=at(e);if(a)for(var n=a.length-1;n>=0;n--)Ee(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=e&&e<=a[i][1])return"active";return"inactive"},t}(Tt);ye(M0,Ff);var No=!0,xf=Math.min,ll=Math.max,h9=Math.pow,c9=1e4,p9=6,d9=6,JC="globalPan",g9={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},y9={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},jC={brushStyle:{lineWidth:2,stroke:B.color.backgroundTint,fill:B.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},m9=0,eS=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new it,a._uid="brushController_"+m9++,A(C9,function(n,i){this._handlers[i]=q(n,this)},a),a}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var a=this._zr;this._enableGlobalPan||k8(a,JC,this._uid),A(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=mt(at(jC),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;O8(e,JC,this._uid),A(this._handlers,function(a,n){e.off(n,a)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var a=this._panels={};A(e,function(n){a[n.panelId]=at(n)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=a.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=W(e,function(h){return mt(at(jC),h,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new cn(n,e,u,l).add(f).update(f).remove(v).execute(),this;function l(h,c){return(h.id!=null?h.id:a+c)+"-"+h.brushType}function u(h,c){return l(h.__brushOption,c)}function f(h,c){var p=e[h];if(c!=null&&n[c]===s)i[h]=n[c];else{var d=i[h]=c!=null?(n[c].__brushOption=p,n[c]):pk(o,ck(o,p));rS(o,d)}}function v(h){n[h]!==s&&o.group.remove(n[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),D0(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Hr);function ck(r,t){var e=Qp[t.brushType].createCover(r,t);return e.__brushOption=t,gk(e,t),r.group.add(e),e}function pk(r,t){var e=aS(t);return e.endCreating&&(e.endCreating(r,t),gk(t,t.__brushOption)),t}function dk(r,t){var e=t.__brushOption;aS(t).updateCoverShape(r,t,e.range,e)}function gk(r,t){var e=t.z;e==null&&(e=c9),r.traverse(function(a){a.z=e,a.z2=e})}function rS(r,t){aS(t).updateCommon(r,t),dk(r,t)}function aS(r){return Qp[r.__brushOption.brushType]}function nS(r,t,e){var a=r._panels;if(!a)return No;var n,i=r._transform;return A(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function yk(r,t){var e=r._panels;if(!e)return No;var a=t.__brushOption.panelId;return a!=null?e[a]:No}function D0(r){var t=r._covers,e=t.length;return A(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function Bo(r,t){var e=W(r._covers,function(a){var n=a.__brushOption,i=at(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function _9(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],a=t[0],n=e[0]-a[0],i=e[1]-a[1],o=h9(n*n+i*i,.5);return o>p9}function mk(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function _k(r,t,e,a){var n=new it;return n.add(new bt({name:"main",style:iS(e),silent:!0,draggable:!0,cursor:"move",drift:St(QC,r,t,n,["n","s","w","e"]),ondragend:St(Bo,t,{isEnd:!0})})),A(a,function(i){n.add(new bt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:St(QC,r,t,n,i),ondragend:St(Bo,t,{isEnd:!0})}))}),n}function Sk(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=ll(n,d9),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,f=e[0][1],v=e[1][1],h=f-i+n/2,c=v-i+n/2,p=f-o,d=v-s,g=p+n,y=d+n;Xa(r,t,"main",o,s,p,d),a.transformable&&(Xa(r,t,"w",l,u,i,y),Xa(r,t,"e",h,u,i,y),Xa(r,t,"n",l,u,g,i),Xa(r,t,"s",l,c,g,i),Xa(r,t,"nw",l,u,i,i),Xa(r,t,"ne",h,u,i,i),Xa(r,t,"sw",l,c,i,i),Xa(r,t,"se",h,c,i,i))}function I0(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(iS(e)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?L0(r,i[0]):x9(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?y9[s]+"-resize":null})})}function Xa(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(w9(oS(r,t,[[a,n],[a+i,n+o]])))}function iS(r){return st({strokeNoScale:!0},r.brushStyle)}function xk(r,t,e,a){var n=[xf(r,e),xf(t,a)],i=[ll(r,e),ll(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function S9(r){return zs(r.group)}function L0(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=Ap(e[t],S9(r));return a[n]}function x9(r,t){var e=[L0(r,t[0]),L0(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function QC(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=bk(t,n,i);A(a,function(u){var f=g9[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(xk(s[0][0],s[1][0],s[0][1],s[1][1])),rS(t,e),Bo(t,{isEnd:!1})}function b9(r,t,e,a){var n=t.__brushOption.range,i=bk(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),rS(r,t),Bo(r,{isEnd:!1})}function bk(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function oS(r,t,e){var a=yk(r,t);return a&&a!==No?a.clipPath(e,r._transform):at(e)}function w9(r){var t=xf(r[0][0],r[1][0]),e=xf(r[0][1],r[1][1]),a=ll(r[0][0],r[1][0]),n=ll(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function T9(r,t,e){if(!(!r._brushType||A9(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=nS(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===No||s.panelId===i.panelId)&&Qp[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function P0(r){var t=r.event;t.preventDefault&&t.preventDefault()}function R0(r,t,e){return r.childOfName("main").contain(t,e)}function wk(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),_9(r)||n){if(i&&!n){o.brushMode==="single"&&D0(r);var l=at(o);l.brushType=tA(l.brushType,i),l.panelId=i===No?null:i.panelId,n=r._creatingCover=ck(r,l),r._covers.push(n)}if(n){var u=Qp[tA(r._brushType,i)],f=n.__brushOption;f.range=u.getCreatingRange(oS(r,n,r._track)),a&&(pk(r,n),u.updateCommon(r,n)),dk(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&nS(r,t,e)&&D0(r)&&(s={isEnd:a,removeOnClick:!0});return s}function tA(r,t){return r==="auto"?t.defaultBrushType:r}var C9={mousedown:function(r){if(this._dragging)eA(this,r);else if(!r.target||!r.target.draggable){P0(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=nS(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,a=this.group.transformCoordToLocal(t,e);if(T9(this,r,a),this._dragging){P0(r);var n=wk(this,r,a,!1);n&&Bo(this,n)}},mouseup:function(r){eA(this,r)}};function eA(r,t){if(r._dragging){P0(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=wk(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Bo(r,i)}}function A9(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var Qp={lineX:rA(0),lineY:rA(1),rect:{createCover:function(r,t){function e(a){return a}return _k({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=mk(r);return xk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){Sk(r,t,e,a)},updateCommon:I0,contain:R0},polygon:{createCover:function(r,t){var e=new it;return e.add(new ke({name:"main",style:iS(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Ye({name:"main",draggable:!0,drift:St(b9,r,t),ondragend:St(Bo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:oS(r,t,e)})},updateCommon:I0,contain:R0}};function rA(r){return{createCover:function(t,e){return _k({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=mk(t),a=xf(e[0][r],e[1][r]),n=ll(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=yk(t,e);if(o!==No&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),Sk(t,e,l,n)},updateCommon:I0,contain:R0}}function Tk(r){return r=sS(r),function(t){return CL(t,r)}}function Ck(r,t){return r=sS(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function Ak(r,t,e){var a=sS(r);return function(n,i){return a.contain(i[0],i[1])&&!_E(n,t,e)}}function sS(r){return ot.create(r)}var M9=function(r){N(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,a){r.prototype.init.apply(this,arguments),(this._brushController=new eS(a.getZr())).on("brush",q(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!D9(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!e.get("show")){var s=L9(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,v=e.axis.dim,h=l.getAxisLayout(v),c=G({strokeContainThreshold:f},h),p=new er(e,n,c);p.build(),this._axisGroup.add(p.group),this._refreshBrushController(c,u,e,s,f,n),Lf(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),v=ot.create({x:l[0],y:-o/2,width:u,height:o});v.x-=f,v.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Tk(v),isTargetByCursor:Ak(v,s,i),getLinearBrushOtherExtent:Ck(v,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(I9(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=W(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(qt);function D9(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function I9(r){var t=r.axis;return W(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function L9(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var P9={type:"axisAreaSelect",event:"axisAreaSelected"};function R9(r){r.registerAction(P9,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var E9={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Mk(r){r.registerComponentView(a9),r.registerComponentModel(i9),r.registerCoordinateSystem("parallel",v9),r.registerPreprocessor(Q7),r.registerComponentModel(M0),r.registerComponentView(M9),ol(r,"parallel",M0,E9),R9(r)}function k9(r){_t(Mk),r.registerChartView(Y7),r.registerSeriesModel($7),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,j7)}var dn="sankey",O9=function(r){N(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,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new At(o[l],this,a));var u=q1(i,n,this,!0,f);return u.data;function f(v,h){v.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(c.parentModel=m)}return c}),h.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(c.parentModel=_)}return c})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(c){return isNaN(c)||c==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ve("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),v=f.getLayout().value,h=this.getDataParams(e,n).data.name;return ve("nameValue",{name:h!=null?h+"":null,value:v,noValue:i(v)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+dn,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:B.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:B.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(Xt),N9=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),B9=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new N9},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){vn(this)},t.prototype.downplay=function(){hn(this)},t}(wt),V9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=dn,e._mainGroup=new it,e}return t.prototype.init=function(e,a){this._controller=new jo(a.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,a,n){var i=e.getGraph(),o=this._mainGroup,s=e.layoutInfo,l=s.width,u=s.height,f=e.getData(),v=e.getData("edge"),h=e.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(e,n),Kp(e,n,this._controller,RE(o),null),i.eachEdge(function(c){var p=new B9,d=ft(p);d.dataIndex=c.dataIndex,d.seriesIndex=e.seriesIndex,d.dataType="edge";var g=c.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),_=c.node1.getLayout(),S=c.node1.getModel(),x=S.get("localX"),b=S.get("localY"),w=c.node2.getLayout(),C=c.node2.getModel(),T=C.get("localX"),M=C.get("localY"),D=c.getLayout(),L,I,P,R,E,O,k,V;p.shape.extent=Math.max(1,D.dy),p.shape.orient=h,h==="vertical"?(L=(x!=null?x*l:_.x)+D.sy,I=(b!=null?b*u:_.y)+_.dy,P=(T!=null?T*l:w.x)+D.ty,R=M!=null?M*u:w.y,E=L,O=I*(1-m)+R*m,k=P,V=I*m+R*(1-m)):(L=(x!=null?x*l:_.x)+_.dx,I=(b!=null?b*u:_.y)+D.sy,P=T!=null?T*l:w.x,R=(M!=null?M*u:w.y)+D.ty,E=L*(1-m)+P*m,O=I,k=L*m+P*(1-m),V=R),p.setShape({x1:L,y1:I,x2:P,y2:R,cpx1:E,cpy1:O,cpx2:k,cpy2:V}),p.useStyle(y.getItemStyle()),aA(p.style,h,c);var z=""+g.get("value"),F=ge(g,"edgeLabel");we(p,F,{labelFetcher:{getFormattedLabel:function(Y,Q,gt,Et,vt,tt){return e.getFormattedLabel(Y,Q,"edge",Et,_r(vt,F.normal&&F.normal.get("formatter"),z),tt)}},labelDataIndex:c.dataIndex,defaultText:z}),p.setTextConfig({position:"inside"});var U=g.getModel("emphasis");de(p,g,"lineStyle",function(Y){var Q=Y.getItemStyle();return aA(Q,h,c),Q}),o.add(p),v.setItemGraphicEl(c.dataIndex,p);var X=U.get("focus");Kt(p,X==="adjacency"?c.getAdjacentDataIndices():X==="trajectory"?c.getTrajectoryDataIndices():X,U.get("blurScope"),U.get("disabled"))}),i.eachNode(function(c){var p=c.getLayout(),d=c.getModel(),g=d.get("localX"),y=d.get("localY"),m=d.getModel("emphasis"),_=d.get(["itemStyle","borderRadius"])||0,S=new bt({shape:{x:g!=null?g*l:p.x,y:y!=null?y*u:p.y,width:p.dx,height:p.dy,r:_},style:d.getModel("itemStyle").getItemStyle(),z2:10});we(S,ge(d),{labelFetcher:{getFormattedLabel:function(b,w){return e.getFormattedLabel(b,w,"node")}},labelDataIndex:c.dataIndex,defaultText:c.id}),S.disableLabelAnimation=!0,S.setStyle("fill",c.getVisual("color")),S.setStyle("decal",c.getVisual("style").decal),de(S,d),o.add(S),f.setItemGraphicEl(c.dataIndex,S),ft(S).dataType="node";var x=m.get("focus");Kt(S,x==="adjacency"?c.getAdjacentDataIndices():x==="trajectory"?c.getTrajectoryDataIndices():x,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(c,p){var d=f.getItemModel(p);d.get("draggable")&&(c.drift=function(g,y){this.shape.x+=g,this.shape.y+=y,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/l,localY:this.shape.y/u})},c.draggable=!0,c.cursor="move")}),!this._data&&e.isAnimationEnabled()&&o.setClipPath(z9(o.getBoundingRect(),e,function(){o.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,a,n){ni(this.group,Ba,a.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,a){var n=e.layoutInfo,i=e.coordinateSystem=H1(e,a,n.x,n.y,n.width,n.height);ni(this.group,Ba,i,this._firstRender?null:e)},t.type=dn,t}(Gt);function aA(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),n=e.node2.getVisual("color");Z(a)&&Z(n)&&(r.fill=new ei(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function z9(r,t,e){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return $t(a,{shape:{width:r.width+20}},t,e),a}var G9=me(dn,F9);function F9(r,t){r.eachSeriesByType(dn,function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=_e(e,t).refContainer,o=Jt(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),f=u.nodes,v=u.edges;W9(f);var h=Bt(f,function(g){return g.getLayout().value===0}),c=h.length!==0?0:e.get("layoutIterations"),p=e.get("orient"),d=e.get("nodeAlign");H9(f,v,a,n,s,l,c,p,d)})}function H9(r,t,e,a,n,i,o,s,l){U9(r,t,e,n,i,s,l),$9(r,t,i,n,a,o,s),aX(r,s)}function W9(r){A(r,function(t){var e=jn(t.outEdges,Fc),a=jn(t.inEdges,Fc),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function U9(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],f=[],v=0,h=0;h<t.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var c=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:v},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var m=0;m<d.outEdges.length;m++){var _=d.outEdges[m],S=pt(t,_);s[S]=0;var x=_.node2,b=pt(r,x);--l[b]===0&&pt(f,x)<0&&f.push(x)}}++v,u=f,f=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=c>v-1?c:v-1;o&&o!=="left"&&Y9(r,o,i,w);var C=i==="vertical"?(n-e)/w:(a-e)/w;Z9(r,C,i)}function Dk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function Y9(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];pt(n,f.node1)<0&&n.push(f.node1)}}i=n,n=[],++o}A(r,function(v){Dk(v)||v.setLayout({depth:Math.max(0,a-v.getLayout().skNodeHeight)},!0)})}else t==="justify"&&X9(r,a)}function X9(r,t){A(r,function(e){!Dk(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function Z9(r,t,e){A(r,function(a){var n=a.getLayout().depth*t;e==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function $9(r,t,e,a,n,i,o){var s=q9(r,o);K9(s,t,e,a,n,o),iy(s,n,e,a,o);for(var l=1;i>0;i--)l*=.99,J9(s,l,o),iy(s,n,e,a,o),rX(s,l,o),iy(s,n,e,a,o)}function q9(r,t){var e=[],a=t==="vertical"?"y":"x",n=pm(r,function(i){return i.getLayout()[a]});return Ee(n.keys),A(n.keys,function(i){e.push(n.buckets.get(i))}),e}function K9(r,t,e,a,n,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(v){u+=v.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;f<o&&(o=f)}),A(r,function(s){A(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),A(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function iy(r,t,e,a,n){var i=n==="vertical"?"x":"y";A(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,v=o.length,h=n==="vertical"?"dx":"dy",c=0;c<v;c++)l=o[c],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[h]+t;var p=n==="vertical"?a:e;if(u=f-t-p,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var c=v-2;c>=0;--c)l=o[c],u=l.getLayout()[i]+l.getLayout()[h]+t-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function J9(r,t,e){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=jn(n.outEdges,j9,e)/jn(n.outEdges,Fc);if(isNaN(i)){var o=n.outEdges.length;i=o?jn(n.outEdges,Q9,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-oi(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-oi(n,e))*t;n.setLayout({y:l},!0)}}})})}function j9(r,t){return oi(r.node2,t)*r.getValue()}function Q9(r,t){return oi(r.node2,t)}function tX(r,t){return oi(r.node1,t)*r.getValue()}function eX(r,t){return oi(r.node1,t)}function oi(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Fc(r){return r.getValue()}function jn(r,t,e){for(var a=0,n=r.length,i=-1;++i<n;){var o=+t(r[i],e);isNaN(o)||(a+=o)}return a}function rX(r,t,e){A(r,function(a){A(a,function(n){if(n.inEdges.length){var i=jn(n.inEdges,tX,e)/jn(n.inEdges,Fc);if(isNaN(i)){var o=n.inEdges.length;i=o?jn(n.inEdges,eX,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-oi(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-oi(n,e))*t;n.setLayout({y:l},!0)}}})})}function aX(r,t){var e=t==="vertical"?"x":"y";A(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[e]-i.node2.getLayout()[e]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[e]-i.node1.getLayout()[e]})}),A(r,function(a){var n=0,i=0;A(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),A(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}var nX=me(dn,iX);function iX(r){r.eachSeriesByType(dn,function(t){var e=t.getGraph(),a=e.nodes,n=e.edges;if(a.length){var i=1/0,o=-1/0;A(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),A(a,function(s){var l=new be({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function oX(r){r.registerChartView(V9),r.registerSeriesModel(O9),r.registerLayout(G9),r.registerVisual(nX),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:ka,subType:dn,query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),F1(r,ka,dn)}var Ik=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l,u=t.layout;o==="category"?(u="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var f=["x","y"],v=u==="horizontal"?0:1,h=this._baseAxisDim=f[v],c=f[1-v],p=[n,i],d=p[v].get("type"),g=p[1-v].get("type"),y=t.data;if(y&&l){var m=[];A(y,function(x,b){var w;H(x)?(w=x.slice(),x.unshift(b)):H(x.value)?(w=G({},x),w.value=w.value.slice(),x.value.unshift(b)):w=x,m.push(w)}),t.data=m}var _=this.defaultValueDimensions,S=[{name:h,type:gc(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:gc(g),dimsDef:_.slice()}];return Dl(this,{coordDimensions:S,dimensionsCount:_.length+1,encodeDefaulter:St(u2,S,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r.prototype.getWhiskerBoxesLayout=function(){return this._layout},r}();function Hc(r,t){for(var e=t.ends.length,a=0,n=0;n<e;n++)r.contain(t.ends[n][0],t.ends[n][1])&&a++;return a?a<e?lf:sf:uf}var Aa="boxplot",Lk=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series."+Aa,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:B.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:B.color.shadow}},animationDuration:800},t}(Xt);ye(Lk,Ik,!0);var sX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Aa,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.getWhiskerBoxesLayout()==="horizontal"?1:0,u=e.get("clip",!0),f=e.coordinateSystem,v=f.getArea&&f.getArea(),h=u&&Io(f,!1,e);i.diff(s).add(function(c){if(i.hasValue(c)){var p=i.getItemLayout(c),d=u?Hc(v,p):sf;if(d===uf)return;var g=nA(p,i,c,l,!0);Es(d===lf,g,h),i.setItemGraphicEl(c,g),o.add(g)}}).update(function(c,p){var d=s.getItemGraphicEl(p);if(!i.hasValue(c)){o.remove(d);return}var g=i.getItemLayout(c),y=u?Hc(v,g):sf;if(y===uf){o.remove(d);return}d?(Fr(d),Pk(g,d,i,c)):d=nA(g,i,c,l),Es(y===lf,d,h),o.add(d),i.setItemGraphicEl(c,d)}).remove(function(c){var p=s.getItemGraphicEl(c);p&&o.remove(p)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type=Aa,t}(Gt),lX=function(){function r(){}return r}(),uX=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new lX},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(wt);function nA(r,t,e,a,n){var i=r.ends,o=new uX({shape:{points:n?fX(i,a,r):i}});return Pk(r,o,t,e,n),o}function Pk(r,t,e,a,n){var i=e.hostModel,o=Uo[n?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},i,a),t.useStyle(e.getItemVisual(a,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(a),l=s.getModel("emphasis");de(t,s),Kt(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function fX(r,t,e){return W(r,function(a){return a=a.slice(),a[t]=e.initBaseline,a})}var vX=yl(),hX=me(Aa,cX);function cX(r){var t=co(Aa);y1(r,t,function(e){var a=AH(e,t);if(a){var n=pX(e,a);Ao(e,t,function(i){var o=i.seriesIndex;dX(i,n.boxOffsetList[o],n.boxWidthList[o])})}})}function pX(r,t){var e=[],a=[],n=[],i=Oe(r,{fromStat:{key:co(Aa)},min:1}).w;Ao(r,co(Aa),function(f){var v=f.get("boxWidth");H(v)||(v=[v,v]),n[f.seriesIndex]=[$(v[0],i)||0,$(v[1],i)||0]});var o=i*.8-2,s=o/t*.3,l=(o-s*(t-1))/t,u=l/2-o/2;return Ao(r,co(Aa),function(f){var v=f.seriesIndex;a[v]=u,u+=s+l,e[v]=zt(xt(l,n[v][0]),n[v][1])}),{boxOffsetList:a,boxWidthList:e}}function dX(r,t,e){var a=r.coordinateSystem,n=r.getData(),i=e/2,o=r.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),f=n.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var v=0;v<n.count();v++){var h=n.get(u,v),c=_(h,f[2],v),p=_(h,f[0],v),d=_(h,f[1],v),g=_(h,f[3],v),y=_(h,f[4],v),m=[];S(m,d,!1),S(m,g,!0),m.push(p,d,y,g),x(m,p),x(m,y),x(m,c),n.setItemLayout(v,{initBaseline:c[s],ends:m})}function _(b,w,C){var T=n.get(w,C),M=[];M[o]=b,M[s]=T;var D;return isNaN(b)||isNaN(T)?D=[NaN,NaN]:(D=a.dataToPoint(M),D[o]+=t),D}function S(b,w,C){var T=w.slice(),M=w.slice();T[o]+=i,M[o]-=i,C?b.push(T,M):b.push(M,T)}function x(b,w){var C=w.slice(),T=w.slice();C[o]-=i,T[o]+=i,b.push(C,T)}}function gX(r){vX(r,function(){var t=co(Aa);m1(r,{key:t,seriesType:Aa,getMetrics:R1}),Gp(t,Up(t))})}function yX(r,t){t=t||{};for(var e=[],a=[],n=t.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=Ee(r[o].slice()),l=Id(s,.25),u=Id(s,.5),f=Id(s,.75),v=s[0],h=s[s.length-1],c=(n??1.5)*(f-l),p=i?v:Math.max(v,l-c),d=i?h:Math.min(h,f+c),g=t.itemNameFormatter,y=nt(g)?g({value:o}):Z(g)?g.replace("{value}",o+""):o+"";e.push([y,p,l,u,f,d]);for(var m=0;m<s.length;m++){var _=s[m];if(_<p||_>d){var S=[y,_];a.push(S)}}}return{boxData:e,outliers:a}}var mX={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==De){var a="";Ot(a)}var n=yX(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function _X(r){r.registerSeriesModel(Lk),r.registerChartView(sX),r.registerLayout(hX),r.registerTransform(mX),gX(r)}var si="candlestick",Rk=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,a,n){var i=a.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series."+si,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Xt);ye(Rk,Ik,!0);var SX=["itemStyle","borderColor"],xX=["itemStyle","borderColor0"],bX=["itemStyle","borderColorDoji"],wX=["itemStyle","color"],TX=["itemStyle","color0"];function lS(r,t){return t.get(r>0?wX:TX)}function uS(r,t){return t.get(r===0?bX:r>0?SX:xX)}var CX={seriesType:si,plan:Zo(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=lS(s,o),l.stroke=uS(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");G(u,l)}}}}}},AX=["color","borderColor"],MX=function(r){N(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,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&Io(l,!1,e);this._data||i.removeAll();var v=iA(e);a.diff(n).add(function(h){if(a.hasValue(h)){var c=a.getItemLayout(h),p=s?Hc(u,c):sf;if(p===uf)return;var d=oy(c,h,v,!0);$t(d,{shape:{points:c.ends}},e,h),Es(p===lf,d,f),sy(d,a,h,o),i.add(d),a.setItemGraphicEl(h,d)}}).update(function(h,c){var p=n.getItemGraphicEl(c);if(!a.hasValue(h)){i.remove(p);return}var d=a.getItemLayout(h),g=s?Hc(u,d):sf;if(g===uf){i.remove(p);return}p?(Rt(p,{shape:{points:d.ends}},e,h),Fr(p)):p=oy(d,h,v),sy(p,a,h,o),Es(g===lf,p,f),i.add(p),a.setItemGraphicEl(h,p)}).remove(function(h){var c=n.getItemGraphicEl(h);c&&i.remove(c)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),oA(e,this.group);var a=e.get("clip",!0)?Io(e.coordinateSystem,!1,e):null;Es(!!a,this.group,a)},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o=iA(a),s;(s=e.next())!=null;){var l=n.getItemLayout(s),u=oy(l,s,o);sy(u,n,s,i),u.incremental=Ta(a),this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(e,a){oA(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),Es(!1,this.group,null),this._data=null},t.type=si,t}(Gt),DX=function(){function r(){}return r}(),IX=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new DX},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(wt);function oy(r,t,e,a){var n=r.ends;return new IX({shape:{points:a?LX(n,e,r):n},z2:100})}function sy(r,t,e,a){var n=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0;var i=n.getShallow("cursor");i&&r.attr("cursor",i),r.__simpleBox=a,de(r,n);var o=t.getItemLayout(e).sign;A(r.states,function(l,u){var f=n.getModel(u),v=lS(o,f),h=uS(o,f)||v,c=l.style||(l.style={});v&&(c.fill=v),h&&(c.stroke=h)});var s=n.getModel("emphasis");Kt(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function LX(r,t,e){return W(r,function(a){return a=a.slice(),a[t]=e.initBaseline,a})}function iA(r){return r.getWhiskerBoxesLayout()==="horizontal"?1:0}var PX=function(){function r(){}return r}(),ly=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new PX},t.prototype.buildPath=function(e,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];e.moveTo(o,n[i++]),e.lineTo(o,n[i++])}else i+=3},t}(wt);function oA(r,t,e,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new ly({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new ly({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new ly({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),uy(1,o,r),uy(-1,s,r),uy(0,l,r),a&&(o.incremental=Ta(r),s.incremental=Ta(r),l.incremental=Ta(r)),e&&e.push(o,s,l)}function uy(r,t,e,a){var n=uS(r,e)||lS(r,e),i=e.getModel("itemStyle").getItemStyle(AX);t.useStyle(i),t.style.fill=null,t.style.stroke=n;var o=e.get("cursor");o&&t.attr("cursor",o)}function RX(r){!r||!H(r.series)||A(r.series,function(t){ut(t)&&t.type==="k"&&(t.type=si)})}var EX=yl(),kX={seriesType:si,plan:Zo(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),a=OX(r),n=r.getWhiskerBoxesLayout()==="horizontal"?0:1,i=1-n,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[n])),l=W(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],v=l[2],h=l[3];if(e.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:c};function c(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),x=m.get(f,y),b=m.get(v,y),w=m.get(h,y),C=zt(S,x),T=xt(S,x),M=O(C,_),D=O(T,_),L=O(b,_),I=O(w,_),P=[];k(P,D,0),k(P,M,1),P.push(z(I),z(D),z(L),z(M));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:sA(m,y,S,x,f,E),initBaseline:S>x?D[i]:M[i],ends:P,brushRect:V(b,w,_)})}function O(F,U){var X=[];return X[n]=U,X[i]=F,isNaN(U)||isNaN(F)?[NaN,NaN]:t.dataToPoint(X)}function k(F,U,X){var Y=U.slice(),Q=U.slice();Y[n]=Ch(Y[n]+a/2,1,!1),Q[n]=Ch(Q[n]-a/2,1,!0),X?F.push(Y,Q):F.push(Q,Y)}function V(F,U,X){var Y=O(F,X),Q=O(U,X);return Y[n]-=a/2,Q[n]-=a/2,{x:Y[0],y:Y[1],width:i?a:Q[0]-Y[0],height:i?Q[1]-Y[1]:a}}function z(F){return F[n]=Ch(F[n],1),F}}function p(d,g){for(var y=_a(d.count*4),m=0,_,S=[],x=[],b,w=g.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(b=d.next())!=null;){var T=w.get(s,b),M=w.get(u,b),D=w.get(f,b),L=w.get(v,b),I=w.get(h,b);if(isNaN(T)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=sA(w,b,M,D,f,C),S[n]=T,S[i]=L,_=t.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=t.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function sA(r,t,e,a,n,i){var o;return e>a?o=-1:e<a?o=1:o=i?0:t>0?r.get(n,t-1)<=a?1:-1:1,o}function OX(r,t){var e=r.getBaseAxis(),a=Oe(e,{fromStat:{key:co(si)},min:1}).w,n=$(j(r.get("barMaxWidth"),a),a),i=$(j(r.get("barMinWidth"),1),a),o=r.get("barWidth");return o!=null?$(o,a):xt(zt(a/2,n),i)}function NX(r){EX(r,function(){var t=co(si);m1(r,{key:t,seriesType:si,getMetrics:R1}),Gp(t,Up(t))})}function BX(r){r.registerChartView(MX),r.registerSeriesModel(Rk),r.registerPreprocessor(RX),r.registerVisual(CX),r.registerLayout(kX),NX(r)}function lA(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var VX=function(r){N(t,r);function t(e,a){var n=r.call(this)||this,i=new Hf(e,a),o=new it;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=he(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}lA(o,e)},t.prototype.updateEffectAnimation=function(e){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}lA(n,e)},t.prototype.highlight=function(){vn(this)},t.prototype.downplay=function(){hn(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,a){var n=this,i=e.hostModel;this.childAt(0).updateData(e,a);var o=this.childAt(1),s=e.getItemModel(a),l=e.getItemVisual(a,"symbol"),u=Cl(e.getItemVisual(a,"symbolSize")),f=e.getItemVisual(a,"style"),v=f&&f.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",v)});var c=$o(e.getItemVisual(a,"symbolOffset"),u);c&&(o.x=c[0],o.y=c[1]);var p=e.getItemVisual(a,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=a/e.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=l,d.color=v,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?d.showEffectOn!=="render"&&n.startEffectAnimation(d):g==="normal"&&d.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=d,Kt(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(it),zX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new Wf(VX)},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._symbolDraw;o.updateData(i,uA(e)),this.group.add(o.group)},t.prototype.updateTransform=function(e,a,n){var i=e.getData();this.group.dirty();var o=Uf("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(uA(e))},t.prototype._updateGroupTransform=function(e){var a=e.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=NN(a.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Gt);function uA(r){return{clipShape:LR(r)}}var GX=function(r){N(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,a){return _n(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Xt);function FX(r){r.registerChartView(zX),r.registerSeriesModel(GX),r.registerLayout(Uf("effectScatter"))}var Ek=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;return i.add(i.createLine(e,a,n)),i._updateEffectSymbol(e,a),i}return t.prototype.createLine=function(e,a,n){return new Q1(e,a,n)},t.prototype._updateEffectSymbol=function(e,a){var n=e.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");H(o)||(o=[o,o]);var l=e.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=he(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,a))},t.prototype._updateEffectAnimation=function(e,a,n){var i=this.childAt(1);if(i){var o=e.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),f=a.get("constantSpeed"),v=je(a.get("delay"),function(c){return c/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;nt(v)?h=v(n):h=v,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return kn(e.__p1,e.__cp1)+kn(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<=1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Me,f=jy;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var v=e.__t<=1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),h=e.__t<=1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(h,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=kn(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*kn(a,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,a){this.childAt(0).updateLayout(e,a);var n=e.getItemModel(a).getModel("effect");this._updateEffectAnimation(e,n,a)},t}(it),kk=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createPolyline(e,a,n),i}return t.prototype._createPolyline=function(e,a,n){var i=e.getItemLayout(a),o=new ke({shape:{points:i}});this.add(o),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(a)}};Rt(o,s,i,a),this._updateCommonStl(e,a,n)},t.prototype._updateCommonStl=function(e,a,n){var i=this.childAt(0),o=e.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,f=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var v=o.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),f=v.get("disabled"),l=v.get("focus"),u=v.get("blurScope")}i.useStyle(e.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,Kt(this,l,u,f)},t.prototype.updateLayout=function(e,a){var n=this.childAt(0);n.stopAnimation(),n.setShape("points",e.getItemLayout(a))},t}(it),HX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,a,n){return new kk(e,a,n)},t.prototype._updateAnimationPoints=function(e,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=kn(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var a=e.__t<=1?e.__t:2-e.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),v=n[l],h=n[l+1];e.x=v[0]*(1-f)+f*h[0],e.y=v[1]*(1-f)+f*h[1];var c=e.__t<=1?h[0]-v[0]:v[0]-h[0],p=e.__t<=1?h[1]-v[1]:v[1]-h[1];e.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(Ek),WX=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),UX=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new WX},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){e.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)e.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],f=n[o++],v=n[o++],h=n[o++];if(e.moveTo(u,f),i>0){var c=(u+v)/2-(f-h)*i,p=(f+h)/2-(v-u)*i;e.quadraticCurveTo(c,p,v,h)}else e.lineTo(v,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var v=i[u++],h=i[u++],c=1;c<f;c++){var p=i[u++],d=i[u++];if(Rn(v,h,p,d,s,e,a))return l}l++}else for(var l=0,u=0;u<i.length;){var v=i[u++],h=i[u++],p=i[u++],d=i[u++];if(o>0){var g=(v+p)/2-(h-d)*o,y=(h+d)/2-(p-v)*o;if(WI(v,h,g,y,p,d,s,e,a))return l}else if(Rn(v,h,p,d,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var f=n[u++],v=n[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(v,o),l=Math.max(v,l)}e=this._rect=new ot(i,o,s,l)}return e},t}(wt),YX=function(){function r(){this.group=new it}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e,a){var n=this._newAdded[0],i=e.getLayout("linesPoints"),o=n&&n.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=a,u.setShape({segs:i}),this._setCommon(u,e),u.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new UX({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=ft(t);o.seriesIndex=n.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),Ok={seriesType:"lines",plan:Zo(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,f=n.start;f<n.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var v=0,h=[],f=n.start;f<n.end;f++){var c=r.getLineCoords(f,o);e&&(s[v++]=c);for(var p=0;p<c;p++)h=t.dataToPoint(o[p],!1,h),s[v++]=h[0],s[v++]=h[1]}i.setLayout("linesPoints",s)}else for(var f=n.start;f<n.end;f++){var d=i.getItemModel(f),c=r.getLineCoords(f,o),g=[];if(e)for(var y=0;y<c;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}},XX=function(r){N(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,a,n){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=n.getZr(),f=!!Im(n);f&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&f&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(i);var v=e.get("clip",!0)&&Io(e.coordinateSystem,!1,e);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData(),Ta(a)),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=Ok.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),o.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new YX:new tS(o?i?HX:kk:i?Ek:Q1),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=Im(e);a&&this._lastZlevel!=null&&a.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(Gt),ZX=typeof Uint32Array>"u"?Array:Uint32Array,$X=typeof Float64Array>"u"?Array:Float64Array;function fA(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=W(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),s_([n,e[0],e[1]])}))}var qX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],fA(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(fA(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=zu(this._flatCoords,a.flatCoords),this._flatCoordsOffset=zu(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),Lt(e[0])){for(var n=e.length,i=new ZX(n),o=new $X(n),s=0,l=0,u=0,f=0;f<n;){u++;var v=e[f++];i[l++]=s+a,i[l++]=v;for(var h=0;h<v;h++){var c=e[f++],p=e[f++];o[s++]=c,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,a){var n=new tr(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getItemModel(e),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),v=[];u!=null&&v.push(u),f!=null&&v.push(f),l=v.join(" > ")}return ve("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Xt);function Kv(r){return r instanceof Array||(r=[r,r]),r}var KX={seriesType:"lines",reset:function(r){var t=Kv(r.get("symbol")),e=Kv(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=Kv(s.getShallow("symbol",!0)),u=Kv(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function JX(r){r.registerChartView(XX),r.registerSeriesModel(qX),r.registerLayout(Ok),r.registerVisual(KX)}var jX=256,QX=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Qe.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,v=this.canvas,h=v.getContext("2d"),c=t.length;v.width=e,v.height=a;for(var p=0;p<c;++p){var d=t[p],g=d[0],y=d[1],m=d[2],_=n(m);h.globalAlpha=_,h.drawImage(s,g-f,y-f)}if(!v.width||!v.height)return v;for(var S=h.getImageData(0,0,v.width,v.height),x=S.data,b=0,w=x.length,C=this.minOpacity,T=this.maxOpacity,M=T-C;b<w;){var _=x[b+3]/256,D=Math.floor(_*(jX-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*M+C),x[b++]=L[D],x[b++]=L[D+1],x[b++]=L[D+2],x[b++]=L[D+3]*_*256}else b+=4}return h.putImageData(S,0,0),v},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Qe.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=B.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();function tZ(r,t,e){var a=r[1]-r[0];t=W(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&e[s]}}function eZ(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(a){return a>=t[0]&&a<=t[1]}}var rZ=function(r){N(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,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):vT(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(vT(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=Lo(s,"cartesian2d"),u=Lo(s,"matrix"),f,v,h,c;if(l){var p=s.getAxis("x"),d=s.getAxis("y");f=Oe(p).w+.5,v=Oe(d).w+.5,h=p.scale.getExtent(),c=d.scale.getExtent()}for(var g=this.group,y=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),b=ge(e),w=e.getModel("emphasis"),C=w.get("focus"),T=w.get("blurScope"),M=w.get("disabled"),D=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],L=n;L<i;L++){var I=void 0,P=y.getItemVisual(L,"style");if(l){var R=y.get(D[0],L),E=y.get(D[1],L);if(isNaN(y.get(D[2],L))||isNaN(R)||isNaN(E)||R<h[0]||R>h[1]||E<c[0]||E>c[1])continue;var O=s.dataToPoint([R,E]);I=new bt({shape:{x:O[0]-f/2,y:O[1]-v/2,width:f,height:v},style:P})}else if(u){var k=s.dataToLayout([y.get(D[0],L),y.get(D[1],L)]).rect;if(Fe(k.x))continue;I=new bt({z2:1,shape:k,style:P})}else{if(isNaN(y.get(D[1],L)))continue;var V=s.dataToLayout([y.get(D[0],L)]),k=V.contentRect||V.rect;if(Fe(k.x)||Fe(k.y))continue;I=new bt({z2:1,shape:k,style:P})}if(y.hasItemOption){var z=y.getItemModel(L),F=z.getModel("emphasis");m=F.getModel("itemStyle").getItemStyle(),_=z.getModel(["blur","itemStyle"]).getItemStyle(),S=z.getModel(["select","itemStyle"]).getItemStyle(),x=z.get(["itemStyle","borderRadius"]),C=F.get("focus"),T=F.get("blurScope"),M=F.get("disabled"),b=ge(z)}I.shape.r=x;var U=e.getRawValue(L),X="-";U&&U[2]!=null&&(X=U[2]+""),we(I,b,{labelFetcher:e,labelDataIndex:L,defaultOpacity:P.opacity,defaultText:X}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=_,I.ensureState("select").style=S,Kt(I,C,T,M),I.incremental=Ta(e,o),o&&(I.states.emphasis.hoverLayer=xl),g.add(I),y.setItemGraphicEl(L,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new QX;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=e.getViewRect().clone(),v=e.getRoamTransform();f.applyTransform(v);var h=Math.max(f.x,0),c=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-h,y=d-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,C,T){var M=e.dataToPoint([w,C]);return M[0]-=h,M[1]-=c,M.push(T),M}),S=n.getExtent(),x=n.type==="visualMap.continuous"?eZ(S,n.option.range):tZ(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new Ie({style:{width:g,height:y,x:h,y:c,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Gt),aZ=function(r){N(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,a){return _n(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Ef.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:B.color.primary}}},t}(Xt);function nZ(r){r.registerChartView(rZ),r.registerSeriesModel(aZ)}var iZ=["itemStyle","borderWidth"],vA=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],fy=new yn,oZ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=ff,e}return t.prototype.render=function(e,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),v=l.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:f,valueDim:vA[+f],categoryDim:vA[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=cA(o,p),g=hA(o,p,d,h),y=pA(o,h,g);o.setItemGraphicEl(p,y),i.add(y),gA(y,h,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=cA(o,p),m=hA(o,p,y,h),_=Fk(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?cZ(g,h,m):g=pA(o,h,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),gA(g,h,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&dA(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var c=e.get("clip",!0)?Io(e.coordinateSystem,!1,e):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){dA(i,ft(o).dataIndex,e,o)}):n.removeAll()},t.type=ff,t}(Gt);function hA(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,v=e.isAnimationEnabled(),h={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:v?e:null,hoverScale:v&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};sZ(e,i,n,a,h),lZ(r,t,n,i,o,h.boundingLength,h.pxSign,f,a,h),uZ(e,h.symbolScale,u,a,h);var c=h.symbolSize,p=$o(e.get("symbolOffset"),c);return fZ(e,c,n,i,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,a,h),h}function sZ(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(H(o)){var v=[vy(s,o[0])-l,vy(s,o[1])-l];v[1]<v[0]&&v.reverse(),f=v[u]}else o!=null?f=vy(s,o)-l:t?f=a.coordSysExtent[i.index][u]-l:f=e[i.wh];n.boundingLength=f,t&&(n.repeatCutLength=e[i.wh]);var h=i.xy==="x",c=s.inverse;n.pxSign=h&&!c||!h&&c?f>=0?1:-1:f>0?1:-1}function vy(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function lZ(r,t,e,a,n,i,o,s,l,u){var f=l.valueDim,v=l.categoryDim,h=Math.abs(e[v.wh]),c=r.getItemVisual(t,"symbolSize"),p;H(c)?p=c.slice():c==null?p=["100%","100%"]:p=[c,c],p[v.index]=$(p[v.index],h),p[f.index]=$(p[f.index],a?h:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function uZ(r,t,e,a,n){var i=r.get(iZ)||0;i&&(fy.attr({scaleX:t[0],scaleY:t[1],rotation:e}),fy.updateTransform(),i/=fy.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function fZ(r,t,e,a,n,i,o,s,l,u,f,v){var h=f.categoryDim,c=f.valueDim,p=v.pxSign,d=Math.max(t[c.index]+s,0),g=d;if(a){var y=Math.abs(l),m=je(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=$(m,t[c.index]),x=Math.max(d+S*2,0),b=_?0:S*2,w=CI(a),C=w?a:yA((y+b)/x),T=y-C*d;S=T/2/(_?C:Math.max(C-1,1)),x=d+S*2,b=_?0:S*2,!w&&a!=="fixed"&&(C=u?yA((Math.abs(u)+b)/x):0),g=C*x-b,v.repeatTimes=C,v.symbolMargin=S}var M=p*(g/2),D=v.pathPosition=[];D[h.index]=e[h.wh]/2,D[c.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var L=v.bundlePosition=[];L[h.index]=e[h.xy],L[c.index]=e[c.xy];var I=v.barRectShape=G({},e);I[c.wh]=p*Math.max(Math.abs(e[c.wh]),Math.abs(D[c.index]+M)),I[h.wh]=e[h.wh];var P=v.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=f.ecSize[h.wh],P[c.xy]=0,P[c.wh]=e[c.wh]}function Nk(r){var t=r.symbolPatternSize,e=he(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Bk(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,v=i[t.valueDim.index]+o+e.symbolMargin*2;for(fS(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?Ys(d,null,p(f),e,a):Ys(d,null,{scaleX:0,scaleY:0},e,a,function(){n.remove(d)}),f++});f<u;f++){var h=Nk(e);h.__pictorialAnimationIndex=f,h.__pictorialRepeatTimes=u,n.add(h);var c=p(f);Ys(h,{x:c.x,y:c.y,scaleX:0,scaleY:0},{scaleX:c.scaleX,scaleY:c.scaleY,rotation:c.rotation},e,a)}function p(d){var g=s.slice(),y=e.pxSign,m=d;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=v*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Vk(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Ys(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=Nk(e),n.add(i),Ys(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function zk(r,t,e){var a=G({},t.barRectShape),n=r.__pictorialBarRect;n?Ys(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new bt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Gk(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=G({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)Rt(n,{shape:i},s,l);else{i[o.wh]=0,n=new bt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],Uo[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function cA(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=vZ,e.isAnimationEnabled=hZ,e}function vZ(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function hZ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function pA(r,t,e,a){var n=new it,i=new it;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Bk(n,t,e):Vk(n,t,e),zk(n,e,a),Gk(n,t,e,a),n.__pictorialShapeStr=Fk(r,e),n.__pictorialSymbolMeta=e,n}function cZ(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;Rt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Bk(r,t,e,!0):Vk(r,t,e,!0),zk(r,e,!0),Gk(r,t,e,!0)}function dA(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];fS(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),A(i,function(o){ri(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Fk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function fS(r,t,e){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function Ys(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&Uo[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function gA(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),v=i.get("blurScope"),h=i.get("scale");fS(r,function(d){if(d instanceof Ie){var g=d.style;d.useStyle(G({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else d.useStyle(e.style);var y=d.ensureState("emphasis");y.style=o,h&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=e.z2});var c=t.valueDim.posDesc[+(e.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,we(p,ge(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:il(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:c}),Kt(r,f,v,i.get("disabled"))}function yA(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var pZ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series."+ff,t.dependencies=["grid"],t.defaultOption=hi(vf.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:B.color.primary}}}),t}(vf);function dZ(r){r.registerChartView(oZ),r.registerSeriesModel(pZ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,KR(ff)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,JR(ff)),QR(r)}var hy=2,ul="themeRiver",gZ=function(r){N(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){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Il(q(this.getData,this),q(this.getRawData,this))},t.prototype.fixData=function(e){var a=e.length,n={},i=pm(e,function(h){return n.hasOwnProperty(h[0]+"")||(n[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,c){o.push({name:c,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var v=o[l].dataList[f][0]+"";n[v]=l}for(var v in n)n.hasOwnProperty(v)&&n[v]!==l&&(n[v]=l,e[a]=[v,0,u],a++)}return e},t.prototype.getInitialData=function(e,a){for(var n=this.getReferringComponents("singleAxis",te).models[0],i=n.get("type"),o=Bt(e.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=K(),f=0,v=0;v<s.length;++v)l.push(s[v][hy]),u.get(s[v][hy])||(u.set(s[v][hy],f),f++);var h=Nf(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:gc(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new tr(h,this);return c.initData(s),c},t.prototype.getLayerSeries=function(){for(var e=this.getData(),a=e.count(),n=[],i=0;i<a;++i)n[i]=i;var o=e.mapDimension("single"),s=pm(n,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(v,h){return e.get(o,v)-e.get(o,h)}),l.push({name:f,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,a,n){H(e)||(e=e?[e]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var v=Number.MAX_VALUE,h=-1,c=o[f].indices.length,p=0;p<c;++p){var d=i.get(e[0],o[f].indices[p]),g=Math.abs(d-a);g<=v&&(u=d,v=g,h=o[f].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getName(e),s=i.get(i.mapDimension("value"),e);return ve("nameValue",{name:o,value:s})},t.type="series."+ul,t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Xt),yZ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=ul,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,v=u.boundaryGap;s.x=0,s.y=f.y+v[0];function h(g){return g.name}var c=new cn(this._layersSeries||[],l,h,h),p=[];c.add(q(d,this,"add")).update(q(d,this,"update")).remove(q(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,C=0;C<w.length;C++){var T=i.getItemLayout(w[C]),M=T.x,D=T.y0,L=T.y;S.push(M,D),x.push(M,D+L),b=i.getItemVisual(w[C],"style")}var I,P=i.getItemLayout(w[0]),R=e.getModel("label"),E=R.get("margin"),O=e.getModel("emphasis");if(g==="add"){var k=p[y]=new it;I=new MR({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),k.add(I),s.add(k),e.isAnimationEnabled()&&I.setClipPath(mZ(I.getBoundingRect(),e,function(){I.removeClipPath()}))}else{var k=_[m];I=k.childAt(0),s.add(k),p[y]=k,Rt(I,{shape:{points:S,stackedOnPoints:x}},e),Fr(I)}we(I,ge(e),{labelDataIndex:w[C-1],defaultText:i.getName(w[C-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var V=I.getTextContent();V&&(V.x=P.x-E,V.y=P.y0+P.y/2),I.useStyle(b),i.setItemGraphicEl(y,I),de(I,e),Kt(I,O.get("focus"),O.get("blurScope"),O.get("disabled"))}this._layersSeries=l,this._layers=p},t.type=ul,t}(Gt);function mZ(r,t,e){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return $t(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),a}var _Z=me(ul,SZ);function SZ(r,t){r.eachSeriesByType(ul,function(e){var a=e.getData(),n=e.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=e.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=$(s[0],o.height),s[1]=$(s[1],o.height);var u=o.height-s[0]-s[1];mA(a,e,u)}else{s[0]=$(s[0],o.width),s[1]=$(s[1],o.width);var f=o.width-s[0]-s[1];mA(a,e,f)}a.setLayout("layoutInfo",i)})}function mA(r,t,e){if(r.count())for(var a=t.coordinateSystem,n=t.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=W(n,function(g){return W(g.indices,function(y){var m=a.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=xZ(s),u=l.y0,f=e/l.max,v=n.length,h=n[0].indices.length,c,p=0;p<h;++p){c=u[p]*f,r.setItemLayout(n[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:c,y:s[0][p][1]*f});for(var d=1;d<v;++d)c+=s[d-1][p][1]*f,r.setItemLayout(n[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:c,y:s[d][p][1]*f})}}function xZ(r){for(var t=r.length,e=r[0].length,a=[],n=[],i=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<e;++u)n[u]=(i-a[u])/2;i=0;for(var f=0;f<e;++f){var v=a[f]+n[f];v>i&&(i=v)}return{y0:n,max:i}}function bZ(r){r.registerChartView(yZ),r.registerSeriesModel(gZ),r.registerLayout(_Z),r.registerProcessor(Xf(ul))}var wZ=2,TZ=4,_A=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=wZ,o.textConfig={inside:!0},ft(o).seriesIndex=a.seriesIndex;var s=new It({z2:TZ,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ft(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),v=G({},f);v.label=null;var h=a.getVisual("style");h.lineJoin="bevel";var c=a.getVisual("decal");c&&(h.decal=tl(c,o));var p=Sa(l.getModel("itemStyle"),v,!0);G(v,p),A(rr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Sa(S,v);x&&(_.shape=x)}),e?(s.setShape(v),s.shape.r=f.r0,$t(s,{shape:{r:f.r}},n,a.dataIndex)):(Rt(s,{shape:v},n),Fr(s)),s.useStyle(h),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?zu(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Kt(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),v=this,h=v.getTextContent(),c=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!d,A(Yu,function(y){var m=y==="normal"?n.getModel("label"):n.getModel([y,"label"]),_=y==="normal",S=_?h:h.ensureState(y),x=e.getFormattedLabel(c,y);_&&(x=x||a.node.name),S.style=Yt(m,{},null,y!=="normal",!0),x&&(S.style.text=x);var b=m.get("show");b!=null&&!_&&(S.ignore=!b);var w=g(m,"position"),C=_?v:v.states[y],T=C.style.fill;C.textConfig={outsideFill:m.get("color")==="inherit"?T:null,inside:w!=="outside"};var M,D=g(m,"distance")||0,L=g(m,"align"),I=g(m,"rotate"),P=Math.PI*.5,R=Math.PI*1.5,E=yr(I==="tangential"?Math.PI/2-l:l),O=E>P&&!Ks(E-P)&&E<R;w==="outside"?(M=o.r+D,L=O?"right":"left"):!L||L==="center"?(o.r0===0&&Ks(s-2*Math.PI)?M=0:M=(o.r+o.r0)/2,L="center"):L==="left"?(M=o.r0+D,L=O?"right":"left"):L==="right"&&(M=o.r-D,L=O?"left":"right"),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*f+o.cy;var k=0;I==="radial"?k=yr(-l)+(O?Math.PI:0):I==="tangential"?k=yr(Math.PI/2-l)+(O?Math.PI:0):Lt(I)&&(k=I*Math.PI/180),S.rotation=yr(k)});function g(y,m){var _=y.get(m);return _??i.get(m)}h.dirtyStyle()},t}(Ue),Vo="sunburst",CZ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};Hk(n);var i=this._levelModels=W(e.levels||[],function(l){return new At(l,this,a)},this),o=X1.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var v=o.getNodeByDataIndex(f),h=i[v.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=Jp(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){YE(this)},t.type="series."+Vo,t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Xt);function Hk(r){var t=0;A(r.children,function(a){Hk(a);var n=a.value;H(n)&&(n=n[0]),t+=n});var e=r.value;H(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),H(r.value)?r.value[0]=e:r.value=e}var E0="sunburstRootToNode",SA="sunburstHighlight",AZ="sunburstUnhighlight";function MZ(r){r.registerAction({type:E0,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(n,i){var o=gf(t,[E0],n);if(o){var s=n.getViewRoot();s&&(t.direction=Z1(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:SA,update:"none"},function(t,e,a){t=G({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i){var o=gf(t,[SA],i);o&&(t.dataIndex=o.node.dataIndex)}a.dispatchAction(G(t,{type:"highlight"}))}),r.registerAction({type:AZ,update:"updateView"},function(t,e,a){t=G({},t),a.dispatchAction(G(t,{type:"downplay"}))})}var DZ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Vo,e}return t.prototype.render=function(e,a,n,i){var o=this;this.seriesModel=e,this.api=n,this.ecModel=a;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),f=this.group,v=e.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var c=this._oldChildren||[];p(h,c),y(l,u),this._initEvents(),this._oldChildren=h;function p(m,_){if(m.length===0&&_.length===0)return;new cn(_,m,S,S).add(x).update(x).remove(St(x,null)).execute();function S(b){return b.getId()}function x(b,w){var C=b==null?null:m[b],T=w==null?null:_[w];d(C,T)}}function d(m,_){if(!v&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,e,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new _A(m,e,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new _A(m,e,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";lc(u,f)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:E0,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type=Vo,t}(Gt),IZ=me(Vo,LZ);function LZ(r){var t={};function e(a,n,i){if(a.depth===0)return B.color.neutral50;for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&Z(s)&&(s=em(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType(Vo,function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");G(u,l)})})}var xA=Math.PI/180,PZ=me(Vo,RZ);function RZ(r,t){r.eachSeriesByType(Vo,function(e){var a=e.get("center"),n=e.get("radius");H(n)||(n=[0,n]),H(a)||(a=[a,a]);var i=t.getWidth(),o=t.getHeight(),s=Math.min(i,o),l=$(a[0],i),u=$(a[1],o),f=$(n[0],s/2),v=$(n[1],s/2),h=-e.get("startAngle")*xA,c=e.get("minAngle")*xA,p=e.getData().tree.root,d=e.getViewRoot(),g=d.depth,y=e.get("sort");y!=null&&Wk(d,y);var m=0;A(d.children,function(R){!isNaN(R.getValue())&&m++});var _=d.getValue(),S=Math.PI/(_||m)*2,x=d.depth>0,b=d.height-(x?-1:1),w=(v-f)/(b||1),C=e.get("clockwise"),T=e.get("stillShowZeroSum"),M=C?1:-1,D=function(R,E){if(R){var O=E;if(R!==p){var k=R.getValue(),V=_===0&&T?S:k*S;V<c&&(V=c),O=E+M*V;var z=R.depth-g-(x?-1:1),F=f+w*z,U=f+w*(z+1),X=e.getLevelModel(R);if(X){var Y=X.get("r0",!0),Q=X.get("r",!0),gt=X.get("radius",!0);gt!=null&&(Y=gt[0],Q=gt[1]),Y!=null&&(F=$(Y,s/2)),Q!=null&&(U=$(Q,s/2))}R.setLayout({angle:V,startAngle:E,endAngle:O,clockwise:C,cx:l,cy:u,r0:F,r:U})}if(R.children&&R.children.length){var Et=0;A(R.children,function(vt){Et+=D(vt,E+Et)})}return O-E}};if(x){var L=f,I=f+w,P=Math.PI*2;p.setLayout({angle:P,startAngle:h,endAngle:h+P,clockwise:C,cx:l,cy:u,r0:L,r:I})}D(d,h)})}function Wk(r,t){var e=r.children||[];r.children=EZ(e,t),e.length&&A(r.children,function(a){Wk(a,t)})}function EZ(r,t){if(nt(t)){var e=W(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return e.sort(function(n,i){return t(n.params,i.params)}),W(e,function(n){return r[n.index]})}else{var a=t==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function kZ(r){r.registerChartView(DZ),r.registerSeriesModel(CZ),r.registerLayout(PZ),r.registerVisual(IZ),MZ(r)}var bA={color:"fill",borderColor:"stroke"},OZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},en=yt(),NZ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return _n(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=en(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Xt);function BZ(r,t){return t=t||[0,0],W(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?Oe(n).w:Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function VZ(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:q(BZ,r)}}}function zZ(r,t){return t=t||[0,0],W([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function GZ(r){var t=r.view,e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:u6(t)},api:{coord:function(a){return r.dataToPoint(a)},size:q(zZ,r)}}}function FZ(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?Oe(e).w:Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function HZ(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:q(FZ,r)}}}function WZ(r,t){return t=t||[0,0],W(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?Oe(i).w:Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function UZ(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:q(WZ,r)}}}function YZ(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function XZ(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}var Uk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},wA=Ct(Uk);Ia(sn,function(r,t){return r[t]=1,r},{});sn.join(", ");var Wc=["","style","shape","extra"],fl=yt();function vS(r,t,e,a,n){var i=r+"Animation",o=Sl(r,a,n)||{},s=fl(t).userDuring;return o.duration>0&&(o.during=s?q(JZ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),G(o,e[i]),o}function Nh(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=fl(r),u=t.style;l.userDuring=t.during;var f={},v={};if(QZ(r,t,v),r.type==="compound")for(var h=r.shape.paths,c=t.shape.paths,p=0;p<c.length;p++){var d=c[p];cy("shape",d,h[p])}else cy("shape",t,v),cy("extra",t,v);if(!i&&s&&(jZ(r,t,f),TA("shape",r,t,f),TA("extra",r,t,f),t$(r,t,u,f)),v.style=u,ZZ(r,v,o),qZ(r,t),s)if(i){var g={};A(Wc,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),G(m?g[m]:g,_.enterFrom))});var y=vS("enter",r,t,e,n);y.duration>0&&r.animateFrom(g,y)}else $Z(r,t,n||0,e,f);Yk(r,t),u?r.dirty():r.markRedraw()}function Yk(r,t){for(var e=fl(r).leaveToProps,a=0;a<Wc.length;a++){var n=Wc[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=fl(r).leaveToProps={}),n&&(e[n]=e[n]||{}),G(n?e[n]:e,i.leaveTo))}}function td(r,t,e,a){if(r){var n=r.parent,i=fl(r).leaveToProps;if(i){var o=vS("update",r,t,e,0);o.done=function(){n&&n.remove(r)},r.animateTo(i,o)}else n&&n.remove(r)}}function po(r){return r==="all"}function ZZ(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function $Z(r,t,e,a,n){if(n){var i=vS("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function qZ(r,t){J(t,"silent")&&(r.silent=t.silent),J(t,"ignore")&&(r.ignore=t.ignore),r instanceof Gr&&J(t,"invisible")&&(r.invisible=t.invisible),r instanceof wt&&J(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var ha={},KZ={setTransform:function(r,t){return ha.el[r]=t,this},getTransform:function(r){return ha.el[r]},setShape:function(r,t){var e=ha.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=ha.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=ha.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=ha.el.style;if(t)return t[r]},setExtra:function(r,t){var e=ha.el.extra||(ha.el.extra={});return e[r]=t,this},getExtra:function(r){var t=ha.el.extra;if(t)return t[r]}};function JZ(){var r=this,t=r.el;if(t){var e=fl(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}ha.el=t,a(KZ)}}function TA(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),po(l))G(o,i);else for(var u=Wt(l),f=0;f<u.length;f++){var v=u[f],h=i[v];o[v]=h}else if(po(s)||pt(s,r)>=0){!o&&(o=a[r]={});for(var c=Ct(i),f=0;f<c.length;f++){var v=c[f],h=i[v];e$(n[v],h)&&(o[v]=h)}}}}}function cy(r,t,e){var a=t[r];if(a)for(var n=e[r]={},i=Ct(a),o=0;o<i.length;o++){var s=i[o];n[s]=Du(a[s])}}function jZ(r,t,e){for(var a=t.transition,n=po(a)?sn:Wt(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function QZ(r,t,e){for(var a=0;a<wA.length;a++){var n=wA[a],i=Uk[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<sn.length;a++){var s=sn[a];t[s]!=null&&(e[s]=t[s])}}function t$(r,t,e,a){if(e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!po(o)){var l=Wt(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],v=n[f];i[f]=v}}else if(r.getAnimationStyleProps&&(po(s)||po(o)||pt(s,"style")>=0)){var h=r.getAnimationStyleProps(),c=h?h.style:null;if(c){!i&&(i=a.style={});for(var p=Ct(e),u=0;u<p.length;u++){var f=p[u];if(c[f]){var v=n[f];i[f]=v}}}}}}}function e$(r,t){return He(r)?r!==t:r!=null&&isFinite(r)}var Xk=yt(),r$=["percent","easing","shape","style","extra"];function Zk(r){r.stopAnimation("keyframe"),r.attr(Xk(r))}function Uc(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(H(t)){A(t,function(s){Uc(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=Sl("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=Xk(r);A(Wc,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),A(a,function(u){var f=r.animators,v=s?u[s]:u;if(v){var h=Ct(v);if(s||(h=Bt(h,function(d){return pt(r$,d)<0})),!!h.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var c=0;c<f.length;c++)f[c]!==l&&f[c].targetName===l.targetName&&f[c].stopTracks(h);s&&(o[s]=o[s]||{});var p=s?o[s]:o;A(h,function(d){p[d]=((s?r[s]:r)||{})[d]}),l.whenWithKeys(n*u.percent,v,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var rn="emphasis",Fn="normal",hS="blur",cS="select",li=[Fn,rn,hS,cS],py={normal:["itemStyle"],emphasis:[rn,"itemStyle"],blur:[hS,"itemStyle"],select:[cS,"itemStyle"]},dy={normal:["label"],emphasis:[rn,"label"],blur:[hS,"label"],select:[cS,"label"]},a$=["x","y"],n$="e\0\0",Tr={normal:{},emphasis:{},blur:{},select:{}},i$={cartesian2d:VZ,geo:GZ,single:HZ,polar:UZ,calendar:YZ,matrix:XZ};function k0(r){return r instanceof wt}function O0(r){return r instanceof Gr}function o$(r,t){t.copyTransform(r),O0(t)&&O0(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,k0(t)&&k0(r)&&t.setShape(r.shape))}var s$=function(r){N(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,a,n,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=CA(e,s,a,n);o||l.removeAll(),s.diff(o).add(function(v){gy(n,null,v,u(v,i),e,l,s)}).remove(function(v){var h=o.getItemGraphicEl(v);h&&td(h,en(h).option,e)}).update(function(v,h){var c=o.getItemGraphicEl(h);gy(n,c,v,u(v,i),e,l,s)}).execute();var f=e.get("clip",!0)?Io(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,a,n,i,o){var s=a.getData(),l=CA(a,s,n,i),u=this._progressiveEls=[];function f(c){c.isGroup||(c.incremental=Ta(a),c.ensureState("emphasis").hoverLayer=xl)}for(var v=e.start;v<e.end;v++){var h=gy(null,null,v,l(v,o),a,this.group,s);h&&(h.traverse(f),u.push(h))}},t.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t}(Gt);function pS(r){var t=r.type,e;if(t==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=Kk(a);e=Zu(i,null,n,a.layout||"center"),en(e).customPathData=i}else if(t==="image")e=new Ie({}),en(e).customImagePath=r.style.image;else if(t==="text")e=new It({});else if(t==="group")e=new it;else if(t==="compoundPath"){var a=r.shape;if(!a||!a.paths){var o="";Ot(o)}var s=W(a.paths,function(f){if(f.type==="path")return Zu(f.shape.pathData,f,null);var v=ac(f.type);if(!v){var h="";Ot(h)}return new v});e=new Cp({shape:{paths:s}})}else{var l=ac(t);if(!l){var o="";Ot(o)}e=new l}return en(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function dS(r,t,e,a,n,i,o){Zk(t);var s=n&&n.normal.cfg;s&&t.setTextConfig(s),a&&a.transition==null&&(a.transition=a$);var l=a&&a.style;if(l){if(t.type==="text"){var u=l;J(u,"textFill")&&(u.fill=u.textFill),J(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,v=k0(t)?l.decal:null;r&&v&&(v.dirty=!0,f=tl(v,r)),l.__decalPattern=f}if(O0(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}Nh(t,a,i,{dataIndex:e,isInit:o,clearStyle:!0}),Uc(t,a.keyframeAnimation,i)}function $k(r,t,e,a,n){var i=t.isGroup?null:t,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),xo(i)}}function l$(r,t,e){if(!r.isGroup){var a=r,n=e.currentZ,i=e.currentZLevel;a.z=n,a.zlevel=i;var o=t.z2;o!=null&&(a.z2=o||0);for(var s=0;s<li.length;s++)u$(a,t,li[s])}}function u$(r,t,e){var a=e===Fn,n=a?t:Yc(t,e),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(e),o.z2=i||0)}function CA(r,t,e,a){var n=r.get("renderItem");if(typeof n=="string"){var i=MF(n);i&&(n=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):i$[o.type](o));for(var l=st({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:x,style:w,ordinalRawValue:b,styleEmphasis:C,visual:D,barLayout:L,currentSeriesIndices:I,font:P},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:f$(r.getData()),itemPayload:r.get("itemPayload")||{}},f,v,h={},c={},p={},d={},g=0;g<li.length;g++){var y=li[g];p[y]=r.getModel(py[y]),d[y]=r.getModel(dy[y])}function m(R){return R===f?v||(v=t.getItemModel(R)):t.getItemModel(R)}function _(R,E){return t.hasItemOption?R===f?h[E]||(h[E]=m(R).getModel(py[E])):m(R).getModel(py[E]):p[E]}function S(R,E){return t.hasItemOption?R===f?c[E]||(c[E]=m(R).getModel(dy[E])):m(R).getModel(dy[E]):d[E]}return function(R,E){return f=R,v=null,h={},c={},n&&n(st({dataIndexInside:R,dataIndex:t.getRawIndex(R),actionType:E?E.type:null},u),l)};function x(R,E){return E==null&&(E=f),t.getStore().get(t.getDimensionIndex(R||0),E)}function b(R,E){E==null&&(E=f),R=R||0;var O=t.getDimensionInfo(R);if(!O){var k=t.getDimensionIndex(R);return k>=0?t.getStore().get(k,E):void 0}var V=t.get(O.name,E),z=O&&O.ordinalMeta;return z?z.categories[V]:V}function w(R,E){E==null&&(E=f);var O=t.getItemVisual(E,"style"),k=O&&O.fill,V=O&&O.opacity,z=_(E,Fn).getItemStyle();k!=null&&(z.fill=k),V!=null&&(z.opacity=V);var F={inheritColor:Z(k)?k:B.color.neutral99},U=S(E,Fn),X=Yt(U,null,F,!1,!0);X.text=U.getShallow("show")?j(r.getFormattedLabel(E,Fn),il(t,E)):null;var Y=nc(U,F,!1);return M(R,z),z=cT(z,X,Y),R&&T(z,R),z.legacy=!0,z}function C(R,E){E==null&&(E=f);var O=_(E,rn).getItemStyle(),k=S(E,rn),V=Yt(k,null,null,!0,!0);V.text=k.getShallow("show")?_r(r.getFormattedLabel(E,rn),r.getFormattedLabel(E,Fn),il(t,E)):null;var z=nc(k,null,!0);return M(R,O),O=cT(O,V,z),R&&T(O,R),O.legacy=!0,O}function T(R,E){for(var O in E)J(E,O)&&(R[O]=E[O])}function M(R,E){R&&(R.textFill&&(E.textFill=R.textFill),R.textPosition&&(E.textPosition=R.textPosition))}function D(R,E){if(E==null&&(E=f),J(bA,R)){var O=t.getItemVisual(E,"style");return O?O[bA[R]]:null}if(J(OZ,R))return t.getItemVisual(E,R)}function L(R){if(o.type==="cartesian2d"){var E=o.getBaseAxis();return uU(st({axis:E},R))}}function I(){return e.getCurrentSeriesIndices()}function P(R){return O_(R,e)}}function f$(r){var t={};return A(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function gy(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=gS(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Kt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function gS(r,t,e,a,n,i){var o=-1,s=t;t&&qk(t,a,n)&&(o=pt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=pS(a),s&&o$(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Tr.normal.cfg=Tr.normal.conOpt=Tr.emphasis.cfg=Tr.emphasis.conOpt=Tr.blur.cfg=Tr.blur.conOpt=Tr.select.cfg=Tr.select.conOpt=null,Tr.isLegacy=!1,h$(u,e,a,n,l,Tr),v$(u,e,a,n,l),dS(r,u,e,a,Tr,n,l),J(a,"info")&&(en(u).info=a.info);for(var f=0;f<li.length;f++){var v=li[f];if(v!==Fn){var h=Yc(a,v),c=yS(a,h,v);$k(v,u,h,c,Tr)}}return l$(u,a,n),a.type==="group"&&c$(r,u,e,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function qk(r,t,e){var a=en(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&y$(i)&&Kk(i)!==a.customPathData||n==="image"&&J(o,"image")&&o.image!==a.customImagePath}function v$(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&qk(o,i,a)&&(o=null),o||(o=pS(i),r.setClipPath(o)),dS(null,o,t,i,null,a,n)}}function h$(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){AA(e,null,i),AA(e,rn,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=pS(o),r.setTextContent(f)),dS(null,f,t,o,null,a,n);for(var v=o&&o.style,h=0;h<li.length;h++){var c=li[h];if(c!==Fn){var p=i[c].conOpt;$k(c,f,p,yS(o,p,c),null)}}v?f.dirty():f.markRedraw()}}}}function AA(r,t,e){var a=t?Yc(r,t):r,n=t?yS(r,a,rn):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?t?Yc(s,t):s:null;if(n&&(e.isLegacy||PR(n,i,!!o,!!l))){e.isLegacy=!0;var u=RR(n,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var v=t?e[t]:e.normal;v.cfg=o,v.conOpt=l}function Yc(r,t){return t?r?r[t]:null:r}function yS(r,t,e){var a=t&&t.style;return a==null&&e===rn&&r&&(a=r.styleEmphasis),a}function c$(r,t,e,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){d$({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:n,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var v=i[f],h=t.childAt(f);v?(v.ignore==null&&(v.ignore=!1),gS(r,h,e,v,n,t)):h.ignore=!0}for(var c=t.childCount()-1;c>=f;c--){var p=t.childAt(c);p$(t,p,n)}}}function p$(r,t,e){t&&td(t,en(r).option,e)}function d$(r){new cn(r.oldChildren,r.newChildren,MA,MA,r).add(DA).update(DA).remove(g$).execute()}function MA(r,t){var e=r&&r.name;return e??n$+t}function DA(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;gS(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function g$(r){var t=this.context,e=t.oldChildren[r];e&&td(e,en(e).option,t.seriesModel)}function Kk(r){return r&&(r.pathData||r.d)}function y$(r){return r&&(J(r,"pathData")||J(r,"d"))}function m$(r){r.registerChartView(s$),r.registerSeriesModel(NZ)}var ji=yt(),IA=at,yy=q,mS=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,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,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var v=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),a.getZr().add(s);else{var h=St(LA,e,v);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}RA(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&Oe(n).w>s)return!0;if(o){var l=k1(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=ji(t).pointerEl=new Uo[i.type](IA(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=ji(t).labelEl=new It(IA(e.label));t.add(i),PA(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=ji(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=ji(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),PA(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Pf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){on(u.event)},onmousedown:yy(this._onHandleDragMove,this,0,0),drift:yy(this._onHandleDragMove,this),ondragend:yy(this._onHandleDragEnd,this)}),a.add(n)),RA(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");H(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,wl(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){LA(this._axisPointerModel,!e&&this._moveAnimation,this._handle,my(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(my(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(my(n)),ji(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.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(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Ju(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function LA(r,t,e,a){Jk(ji(e).lastProp,a)||(ji(e).lastProp=a,t?Rt(e,a,r):(e.stopAnimation(),e.attr(a)))}function Jk(r,t){if(ut(r)&&ut(t)){var e=!0;return A(t,function(a,n){e=e&&Jk(r[n],a)}),!!e}else return r===t}function PA(r,t){r[t.get(["label","show"])?"show":"hide"]()}function my(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function RA(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}function _S(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function jk(r,t,e,a,n){var i=e.get("value"),o=Qk(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Rf(s.get("padding")||0),u=s.getFont(),f=vp(o,u),v=n.position,h=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=n.align;p==="right"&&(v[0]-=h),p==="center"&&(v[0]-=h/2);var d=n.verticalAlign;d==="bottom"&&(v[1]-=c),d==="middle"&&(v[1]-=c/2),_$(v,h,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:Yt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function _$(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Qk(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:_c(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,v=u&&u.getDataParams(f);v&&s.seriesData.push(v)}),Z(o)?i=o.replace("{value}",i):nt(o)&&(i=o(s))}return i}function SS(r,t,e){var a=Qt();return fi(a,a,e.rotation),La(a,a,e.position),Jr([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function tO(r,t,e,a,n,i){var o=er.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),jk(t,a,n,i,{position:SS(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function xS(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function eO(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function EA(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}function bS(r,t,e){return Oe(r,{fromStat:{sers:W(t,function(a){return e.getSeriesByIndex(a.seriesIndex)})},min:1}).w}function wS(r,t,e){return[xt(zt(t[0],t[1]),r-e/2),zt(r+e/2,xt(t[0],t[1]))]}var S$=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=s.getGlobalExtent(),v=kA(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var c=_S(i),p=x$[u](s,h,f,v,i.get("seriesDataIndices"),i.ecModel);p.style=c,e.graphicKey=p.type,e.pointer=p}var d=Dc(l.getRect(),n);tO(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Dc(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=SS(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=kA(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,v=[e.x,e.y];v[f]+=a[f],v[f]=zt(l[1],v[f]),v[f]=xt(l[0],v[f]);var h=(u[1]+u[0])/2,c=[h,h];c[f]=v[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:e.rotation,cursorPoint:c,tooltipOption:p[f]}},t}(mS);function kA(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var x$={line:function(r,t,e,a){var n=xS([t,a[0]],[t,a[1]],OA(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e,a,n,i){var o=bS(r,n,i),s=a[1]-a[0],l=wS(t,e,o),u=l[0],f=l[1];return{type:"Rect",shape:eO([u,a[0]],[f-u,s],OA(r))}}};function OA(r){return r.dim==="x"?0:1}var b$=function(r){N(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,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:B.color.border,width:1,type:"dashed"},shadowStyle:{color:B.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:B.color.neutral00,padding:[5,7,5,7],backgroundColor:B.color.accent60,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:B.color.accent40,throttle:40}},t}(Tt),Ja=yt(),w$=A;function rO(r,t,e){if(!Mt.node){var a=t.getZr();Ja(a).records||(Ja(a).records={}),T$(a,t);var n=Ja(a).records[r]||(Ja(a).records[r]={});n.handler=e}}function T$(r,t){if(Ja(r).initialized)return;Ja(r).initialized=!0,e("click",St(_y,"click")),e("mousemove",St(_y,"mousemove")),e("mousewheel",St(_y,"mousewheel")),e("globalout",A$);function e(a,n){r.on(a,function(i){var o=M$(t);w$(Ja(r).records,function(s){s&&n(s,i,o.dispatchAction)}),C$(o.pendings,t)})}}function C$(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function A$(r,t,e){r.handler("leave",null,e)}function _y(r,t,e,a){t.handler(r,e,a)}function M$(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function N0(r,t){if(!Mt.node){var e=t.getZr(),a=(Ja(e).records||{})[r];a&&(Ja(e).records[r]=null)}}var D$=function(r){N(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,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";rO("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){N0("axisPointer",a)},t.prototype.dispose=function(e,a){N0("axisPointer",a)},t.type="axisPointer",t}(qt);function aO(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=mo(i,r);if(o==null||o<0||H(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),v=f.dim,h=u.dim,c=v==="x"||v==="radius"?1:0,p=i.mapDimension(h),d=[];d[c]=i.get(p,o),d[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(d)||[]}else e=l.dataToPoint(i.getValues(W(l.dimensions,function(y){return i.mapDimension(y)}),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 NA=yt();function I$(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||q(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Bh(n)&&(n=aO({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Bh(n),u=i.axesInfo,f=s.axesInfo,v=a==="leave"||Bh(n),h={},c={},p={list:[],map:{}},d={showPointer:St(P$,c),showTooltip:St(R$,p)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=N$(u,S);if(!v&&_&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(n)),C!=null&&BA(S,C,d,!1,h)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,x){var b=c[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,VA(S),VA(y)))),g[y.key]=w}})}),A(g,function(y,m){BA(f[m],y,d,!0,h)}),E$(c,f,h),k$(p,n,r,o),O$(f,o,e),h}}function BA(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=L$(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&G(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function L$(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),v,h;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,e);h=c.dataIndices,v=c.nestestValue}else{if(h=l.indicesOfNearest(a,f[0],r,e.type==="category"?.5:null),!h.length)return;v=l.getData().get(f[0],h[0])}if(zr(v)){var p=r-v,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,n=v,i.length=0),A(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function P$(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function R$(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=hf(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:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function E$(r,t,e){var a=e.axesInfo=[];A(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function k$(r,t,e,a){if(Bh(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function O$(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=NA(a)[n]||{},o=NA(a)[n]={};A(r,function(f,v){var h=f.axisPointerModel.option;h.status==="show"&&f.triggerEmphasis&&A(h.seriesDataIndices,function(c){o[c.seriesIndex+"|"+c.dataIndex]=c})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}A(i,function(f,v){!o[v]&&l.push(u(f))}),A(o,function(f,v){!i[v]&&s.push(u(f))}),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 N$(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function VA(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Bh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Zf(r){Jo.registerAxisPointerClass("CartesianAxisPointer",S$),r.registerComponentModel(b$),r.registerComponentView(D$),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!H(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=n8(t,e)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},I$)}function B$(r){_t(dE),_t(Zf)}var V$=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),f=l.getOtherAxis(s).getExtent(),v=s.dataToCoord(a),h=i.get("type");if(h&&h!=="none"){var c=_S(i),p=G$[h](s,l,v,u,f,i.get("seriesDataIndices"),i.ecModel);p.style=c,e.graphicKey=p.type,e.pointer=p}var d=i.get(["label","margin"]),g=z$(a,n,i,l,d);jk(e,n,i,o,g)},t}(mS);function z$(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,v;if(i.dim==="radius"){var h=Qt();fi(h,h,s),La(h,h,[a.cx,a.cy]),u=Jr([o,-n],h);var c=t.getModel("axisLabel").get("rotate")||0,p=er.innerTextLayout(s,c*Math.PI/180,-1);f=p.textAlign,v=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",v=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:v}}var G$={line:function(r,t,e,a,n){return r.dim==="angle"?{type:"Line",shape:xS(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a,n,i,o){var s=Math.PI/180,l=bS(r,i,o),u;if(r.dim==="angle")u=EA(t.cx,t.cy,n[0],n[1],(-e-l/2)*s,(-e+l/2)*s);else{var f=wS(e,a,l),v=f[0],h=f[1];u=EA(t.cx,t.cy,v,h,0,Math.PI*2)}return{type:"Sector",shape:u}}},Ma="polar",zA=Ma,F$=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type=Ma,t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Tt),TS=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",te).models[0]},t.type="polarAxis",t}(Tt);ye(TS,Ff);var H$=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(TS),W$=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(TS),CS=function(r){N(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(na);CS.prototype.dataToRadius=na.prototype.dataToCoord;CS.prototype.radiusToData=na.prototype.coordToData;var U$=yt(),AS=function(r){N(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=vp(s==null?"":s+"",a.getFont(),"center","top"),v=Math.max(f.height,7),h=v/u;isNaN(h)&&(h=1/0);var c=Math.max(0,Math.floor(h)),p=U$(e.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},t}(na);AS.prototype.dataToAngle=na.prototype.dataToCoord;AS.prototype.angleToData=na.prototype.coordToData;var nO=["radius","angle"],Y$=function(){function r(t){this.dimensions=nO,this.type=Ma,this.cx=0,this.cy=0,this._radiusAxis=new CS,this._angleAxis=new AS,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e,a){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],a)},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.pointToCoord(t);return a[0]=this._radiusAxis.radiusToData(n[0],e),a[1]=this._angleAxis.angleToData(n[1],e),a},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t,e){e=e||[];var a=t[0],n=t[1]/180*Math.PI;return e[0]=Math.cos(n)*a+this.cx,e[1]=-Math.sin(n)*a+this.cy,e},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,v=u*u+f*f,h=this.r,c=this.r0;return h!==c&&v-o<=h*h&&v+o>=c*c},x:this.cx-a[1],y:this.cy-a[1],width:a[1]*2,height:a[1]*2}},r.prototype.convertToPixel=function(t,e,a){var n=GA(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=GA(e);return n===this?this.pointToData(a):null},r}();function GA(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function X$(r,t,e){var a=t.get("center"),n=_e(t,e).refContainer;r.cx=$(a[0],n.width)+n.x,r.cy=$(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:H(s)||(s=[0,s]);var l=[$(s[0],o),$(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function Z$(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(Do(a,al),Do(n,al),nl(a),nl(n),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function $$(r){return r.mainType==="angleAxis"}function FA(r,t){var e;if(r.type=Vp(t),r.scale=Vf(t,r.type,!1),r.onBand=Gf(r.scale,t),r.inverse=t.get("inverse"),$$(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var q$={dimensions:nO,create:function(r,t){var e=[];return r.eachComponent(zA,function(a,n){var i=new Y$(n+"");i.update=Z$;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");FA(o,l),FA(s,u),X$(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")===Ma){var n=a.getReferringComponents(zA,te).models[0],i=a.coordinateSystem=n.coordinateSystem;i&&(Mo(i.getRadiusAxis(),a,Ma),Mo(i.getAngleAxis(),a,Ma))}}),e}},K$=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Jv(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function jv(r){var t=r.getRadiusAxis();return t.inverse?0:1}function HA(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var J$=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=[];A(n.getViewLabels(),function(f){if(!f.tick.offInterval){f=at(f);var v=n.scale;f.coord=n.dataToCoord(Al(v,f.tick)),u.push(f)}}),HA(u),HA(s),A(K$,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&j$[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Jo),j$={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=jv(e),v=f?0:1,h,c=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[v]===0?h=new Uo[c]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new Df({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[v]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[jv(e)],u=W(a,function(f){return new fe({shape:Jv(e,[l,l+s],f.coord)})});r.add(Rr(u,{style:st(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[jv(e)],f=[],v=0;v<n.length;v++)for(var h=0;h<n[v].length;h++)f.push(new fe({shape:Jv(e,[u,u+l],n[v][h].coord)}));r.add(Rr(f,{style:st(s.getModel("lineStyle").getLineStyle(),st(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,n,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");A(o,function(v,h){var c=l,p=v.tick.value,d=i[jv(e)],g=e.coordToPoint([d+u,v.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var x=s[p];ut(x)&&x.textStyle&&(c=new At(x.textStyle,l,l.ecModel))}var b=new It({silent:er.isLabelSilent(t),style:Yt(c,{x:g[0],y:g[1],fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),mn({el:b,componentModel:t,itemName:v.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:v.rawLabel,tickIndex:h}}),f){var w=er.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=v.rawLabel,ft(b).eventData=w}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=0;v<a.length;v++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new fe({shape:Jv(e,i,a[v].coord)}))}for(var v=0;v<f.length;v++)r.add(Rr(f[v],{style:st({stroke:l[v%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var f=0;f<n[u].length;f++)l.push(new fe({shape:Jv(e,i,n[u][f].coord)}));r.add(Rr(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,n,i){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=Math.PI/180,h=-a[0].coord*v,c=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),d=t.get("clockwise"),g=1,y=a.length;g<=y;g++){var m=g===y?a[0].coord:a[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Ue({shape:{cx:e.cx,cy:e.cy,r0:c,r:p,startAngle:h,endAngle:-m*v,clockwise:d},silent:!0})),h=-m*v}for(var g=0;g<f.length;g++)r.add(Rr(f[g],{style:st({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},Q$=["splitLine","splitArea","minorSplitLine"],tq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,o=this._axisGroup=new it;this.group.add(o);var s=e.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),v=s.getMinorTicksCoords(),h=u.getExtent()[0],c=s.getExtent(),p=rq(l,e,h),d=new er(e,n,p);d.build(),o.add(d.group),Lf(i,o,e),A(Q$,function(g){e.get([g,"show"])&&!s.scale.isBlank()&&eq[g](this.group,e,l,h,c,f,v)},this)}},t.type="radiusAxis",t}(Jo),eq={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=e.getAngleAxis(),v=Math.PI/180,h=f.getExtent(),c=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],d=0;d<i.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new Uo[c]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[d].coord,0),startAngle:-h[0]*v,endAngle:-h[1]*v,clockwise:f.inverse}}))}for(var d=0;d<p.length;d++)r.add(Rr(p[d],{style:st({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var v=0;v<o[f].length;v++)u.push(new yn({shape:{cx:e.cx,cy:e.cy,r:o[f][v].coord}}));r.add(Rr(u,{style:st({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,n,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=i[0].coord,h=1;h<i.length;h++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new Ue({shape:{cx:e.cx,cy:e.cy,r0:v,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),v=i[h].coord}for(var h=0;h<f.length;h++)r.add(Rr(f[h],{style:st({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function rq(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var aq=yl();function iO(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}var nq=me(Ca,iq);function iq(r){var t=Ko(Ca,Ma);y1(r,t,function(e){var a=sq(e,Ca),n={};Ao(e,t,function(i){oq(e,i,a,n)})})}function oq(r,t,e,a){var n=t.getData(),i=iO(t),o=e[i],s=o.offset,l=o.width,u=t.coordinateSystem,f=u.getOtherAxis(r),v=u.cx,h=u.cy,c=t.get("barMinHeight")||0,p=t.get("barMinAngle")||0;a[i]=a[i]||[];for(var d=n.mapDimension(f.dim),g=n.mapDimension(r.dim),y=ai(n,d),m=r.dim!=="radius"||!t.get("roundCap",!0),_=f.dataToCoord(XR(f)),S=0,x=n.count();S<x;S++){var b=n.get(d,S),w=n.get(g,S),C=b>=0?"p":"n",T=_;y&&(a[i][w]||(a[i][w]={p:_,n:_}),T=a[i][w][C]);var M=void 0,D=void 0,L=void 0,I=void 0;if(f.dim==="radius"){var P=f.dataToCoord(b)-_,R=r.dataToCoord(w);ee(P)<c&&(P=(P<0?-1:1)*c),M=T,D=T+P,L=R-s,I=L-l,y&&(a[i][w][C]=D)}else{var E=f.dataToCoord(b,m)-_,O=r.dataToCoord(w);ee(E)<p&&(E=(E<0?-1:1)*p),M=O+s,D=M+l,L=T,I=T+E,y&&(a[i][w][C]=I)}n.setItemLayout(S,{cx:v,cy:h,r0:M,r:D,startAngle:-L*Kh/180,endAngle:-I*Kh/180,clockwise:L>=I})}}function sq(r,t){var e=Ko(t,Ma),a=Oe(r,{fromStat:{key:e},min:1}).w,n=a,i=0,o="20%",s="30%",l={};Ao(r,e,function(g){var y=iO(g);l[y]||i++,l[y]=l[y]||{width:0,maxWidth:0};var m=$(g.get("barWidth"),a),_=$(g.get("barMaxWidth"),a),S=g.get("barGap"),x=g.get("barCategoryGap");m&&!l[y].width&&(m=zt(n,m),l[y].width=m,n-=m),_&&(l[y].maxWidth=_),S!=null&&(s=S),x!=null&&(o=x)});var u={},f=$(o,a),v=$(s,1),h=(n-f)/(i+(i-1)*v);h=xt(h,0),A(l,function(g,y){var m=g.maxWidth;m&&m<h&&(m=zt(m,n),g.width&&(m=zt(m,g.width)),n-=m,g.width=m,i--)}),h=(n-f)/(i+(i-1)*v),h=xt(h,0);var c=0,p;A(l,function(g,y){g.width||(g.width=h),p=g,c+=g.width*(1+v)}),p&&(c-=p.width*v);var d=-c/2;return A(l,function(g,y){u[y]=u[y]||{offset:d,width:g.width},d+=g.width*(1+v)}),u}function lq(r,t){aq(r,function(){var e=Ko(t,Ma);YR(r,e,t,Ma),Gp(e,Up(e))})}var uq={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},fq={splitNumber:5},vq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(qt);function hq(r){_t(Zf),Jo.registerAxisPointerClass("PolarAxisPointer",V$),r.registerCoordinateSystem("polar",q$),r.registerComponentModel(F$),r.registerComponentView(vq),ol(r,"angle",H$,uq),ol(r,"radius",W$,fq),r.registerComponentView(J$),r.registerComponentView(tq),r.registerLayout(nq),lq(r,Ca)}function B0(r,t){t=t||{};var e=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};n.rotation=Math.PI/2*f[o];var v={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=v[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),je(t.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var h=r.get(["axisLabel","rotate"]);return n.labelRotate=i==="top"?-h:h,n.z2=1,n}var cq=["splitArea","splitLine","breakArea"],pq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new it;var l=B0(e),u=new er(e,n,l);u.build(),o.add(this._axisGroup),o.add(u.group),A(cq,function(f){e.get([f,"show"])&&dq[f](this,this.group,this._axisGroup,e,n)},this),Lf(s,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)},t.prototype.remove=function(){hE(this)},t.type="singleAxis",t}(Jo),dq={splitLine:function(r,t,e,a,n){var i=a.axis;if(!i.scale.isBlank()){var o=a.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=a.coordinateSystem.getRect(),v=i.isHorizontal(),h=[],c=0,p=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],g=[],y=0;y<p.length;++y){var m=i.toGlobalCoord(p[y].coord);v?(d[0]=m,d[1]=f.y,g[0]=m,g[1]=f.y+f.height):(d[0]=f.x,d[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new fe({shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},silent:!0});js(_.shape,u);var S=c++%l.length;h[S]=h[S]||[],h[S].push(_)}for(var x=s.getLineStyle(["color"]),y=0;y<h.length;++y)t.add(Rr(h[y],{style:st({stroke:l[y%l.length]},x),silent:!0}))}},splitArea:function(r,t,e,a,n){vE(r,e,a,a)},breakArea:function(r,t,e,a,n){var i=Yf(),o=a.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,r,a,a.coordinateSystem.getRect(),n)}},gq=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,a){return this.coordinateSystem.pointToData(e)[0]},t}(na),oO=["single"],yq=function(){function r(t,e,a){this.type=Yp,this.dimension="single",this.dimensions=oO,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=this.dimension,i=Vp(t),o=new gq(n,Vf(t,i,!0),[0,0],i,t.get("position"));o.onBand=Gf(o.scale,t),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},r.prototype.update=function(t,e){var a=this._axis;Do(a,al),nl(a)},r.prototype.resize=function(t,e){var a=_e(t,e).refContainer;this._rect=Jt(t.getBoxLayoutParams(),a),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,a=e.isHorizontal(),n=a?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),this._updateAxisTransform(e,a?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var a=t.getExtent(),n=a[0]+a[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+e}:function(o){return n-o+e},t.toLocalCoord=i?function(o){return o-e}:function(o){return n-o+e}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(t){var e=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1])),a},r.prototype.dataToPoint=function(t,e,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(t,e,a){var n=WA(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=WA(e);return n===this?this.pointToData(a):null},r}();function WA(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function mq(r,t){var e=[];return r.eachComponent(y0,function(a,n){var i=new yq(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")===d8){var n=a.getReferringComponents(y0,te).models[0],i=a.coordinateSystem=n&&n.coordinateSystem;i&&Mo(i.getAxis(),a,Yp)}}),e}var _q={create:mq,dimensions:oO},UA=["x","y"],Sq=["width","height"],xq=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Xc(s),f=Qv(l,u),v=Qv(l,1-u),h=l.dataToPoint(a)[0],c=i.get("type");if(c&&c!=="none"){var p=_S(i),d=bq[c](s,h,f,v,i.get("seriesDataIndices"),i.ecModel);d.style=p,e.graphicKey=d.type,e.pointer=d}var g=B0(n);tO(a,e,g,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=B0(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=SS(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Xc(o),u=Qv(s,l),f=[e.x,e.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var v=Qv(s,1-l),h=(v[1]+v[0])/2,c=[h,h];return c[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},t}(mS),bq={line:function(r,t,e,a){var n=xS([t,a[0]],[t,a[1]],Xc(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e,a,n,i){var o=bS(r,n,i),s=a[1]-a[0],l=wS(t,e,o),u=l[0],f=l[1];return{type:"Rect",shape:eO([u,a[0]],[f-u,s],Xc(r))}}};function Xc(r){return r.isHorizontal()?0:1}function Qv(r,t){var e=r.getRect();return[e[UA[t]],e[UA[t]]+e[Sq[t]]]}var wq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(qt);function Tq(r){_t(Zf),Jo.registerAxisPointerClass("SingleAxisPointer",xq),r.registerComponentView(wq),r.registerComponentView(pq),r.registerComponentModel(kh),ol(r,"single",kh,kh.defaultOption),r.registerCoordinateSystem("single",_q)}var Cq=function(r){N(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,a,n){var i=Xo(e);r.prototype.init.apply(this,arguments),YA(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),YA(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:B.color.axisLine,width:1,type:"solid"}},itemStyle:{color:B.color.neutral00,borderWidth:1,borderColor:B.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:B.size.s,color:B.color.secondary},monthLabel:{show:!0,position:"start",margin:B.size.s,align:"center",formatter:null,color:B.color.secondary},yearLabel:{show:!0,position:null,margin:B.size.xl,formatter:null,color:B.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Tt);function YA(r,t){var e=r.cellSize,a;H(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=W([0,1],function(i){return F5(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Oa(r,t,{type:"box",ignoreSize:n})}var Aq=function(r){N(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,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,v=new bt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(v)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var v=a.start,h=0;v.time<=a.end.time;h++){p(v.formatedDate),h===0&&(v=s.getDateInfo(a.start.y+"-"+a.start.m));var c=v.date;c.setMonth(c.getMonth()+1),v=s.getDateInfo(c)}p(s.getNextNDay(a.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToCalendarLayout([d],!1).tl);var g=o._getLinePointsOfOneWeek(e,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new ke({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return Z(e)&&e?ZL(e,a):nt(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,v=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,c={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],v],right:[u[h][0],v]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new It({z2:30,style:Yt(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),v=[this._tlpoints,this._blpoints];(!s||Z(s))&&(s&&(a=Pm(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,c=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=o.get("silent"),g=0;g<v[h].length-1;g++){var y=v[h][g].slice(),m=this._firstDayOfMonth[g];if(p){var _=this._firstDayPoints[g];y[c]=(_[c]+v[0][g+1][c])/2}var S=o.get("formatter"),x=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},w=this._formatterLabel(S,b),C=new It({z2:30,style:G(Yt(o,{text:w}),this._monthTextPositionControl(y,p,n,u,l)),silent:d});i.add(C)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],f=e[1],v=n==="start";return a==="horizontal"?(u=u+i+(v?1:-1)*o[0]/2,s=v?"right":"left"):(f=f+i+(v?1:-1)*o[1]/2,l=v?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,a,n,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),v=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||Z(f)){f&&(a=Pm(f)||a);var c=a.get(["time","dayOfWeekShort"]);f=c||W(a.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(n.end.time,7-n.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];v=$(v,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(n.start.time,-(7+n.fweek)).time,v=-v);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(p,y),_=l.dataToCalendarLayout([m.time],!1).center,S=y;S=Math.abs((y+h)%7);var x=new It({z2:30,style:G(Yt(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,v,d)),silent:g});o.add(x)}}},t.type="calendar",t}(qt),Sy=864e5,Mq=function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t,this._update(e,a)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=Ho(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype._update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];A([0,1],function(v){f(i,v)&&(o[n[v]]=i[v]*s[v])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=Jt(o,l);A([0,1],function(v){f(i,v)||(i[v]=u[n[v]]/s[v])});function f(v,h){return v[h]!=null&&v[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e,a){a=a||[],H(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+Sy))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(a[0]=this._rect.x+s*this._sw+this._sw/2,a[1]=this._rect.y+l*this._sh+this._sh/2):(a[0]=this._rect.x+l*this._sw+this._sw/2,a[1]=this._rect.y+s*this._sh+this._sh/2),a},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToLayout=function(t,e,a){a=a||{};var n=a.rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(t,e);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,ot.copy(i,n),bo(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(t,e){var a=this.dataToPoint(t,e);return{center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},r.prototype.convertToPixel=function(t,e,a){var n=xy(e);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(t,e,a){var n=xy(e);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=xy(e);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(H(t)&&t.length===1&&(t=t[0]),H(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/Sy)-Math.floor(e[0].time/Sy)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),v=a?-f+1:f-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:v,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){kf({targetModel:i,coordSysType:"calendar",coordSysProvider:QL})}),a},r.dimensions=["time","value"],r}();function xy(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function Dq(r){r.registerComponentModel(Cq),r.registerComponentView(Aq),r.registerCoordinateSystem("calendar",Mq)}var qa={level:1,leaf:2,nonLeaf:3},an={none:0,all:1,body:2,corner:3};function V0(r,t,e){var a=t[ct[e]].getCell(r);return!a&&Lt(r)&&r<0&&(a=t[ct[1-e]].getUnitLayoutInfo(e,Math.round(r))),a}function sO(r){var t=r||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function lO(r,t,e,a,n){XA(r[0],t,n,e,a,0),XA(r[1],t,n,e,a,1)}function XA(r,t,e,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],s=H(o)?o:[o],l=s.length,u=!!e;if(l>=1?(ZA(r,t,s,u,n,i,0),l>1&&ZA(r,t,s,u,n,i,l-1)):r[0]=r[1]=NaN,u){var f=-n[ct[1-i]].getLocatorCount(i),v=n[ct[i]].getLocatorCount(i)-1;e===an.body?f=xt(0,f):e===an.corner&&(v=zt(-1,v)),v<f&&(f=v=NaN),Fe(r[0])&&(r[0]=f),Fe(r[1])&&(r[1]=v),r[0]=xt(zt(r[0],v),f),r[1]=xt(zt(r[1],v),f)}}function ZA(r,t,e,a,n,i,o){var s=V0(e[o],n,i);if(!s){r[0]=r[1]=NaN;return}var l=s.id[ct[i]],u=l,f=Rq(s);f&&(u+=f.span[ct[i]]-1),r[0]=zt(r[0],l,u),r[1]=xt(r[1],l,u)}function th(r,t){return Fe(r[t][0])||Fe(r[t][1])}function $A(r,t,e,a){t=t||Iq;for(var n=0;n<a;n++)t[n]=!1;for(;;){for(var i=!1,n=0;n<a;n++){var o=e[n];!t[n]&&o.cellMergeOwner&&Lq(r,o.locatorRange)&&(t[n]=!0,i=!0)}if(!i)break}}var Iq=[];function Lq(r,t){return!qA(r[0],t[0])||!qA(r[1],t[1])?!1:(r[0][0]=zt(r[0][0],t[0][0]),r[0][1]=xt(r[0][1],t[0][1]),r[1][0]=zt(r[1][0],t[1][0]),r[1][1]=xt(r[1][1],t[1][1]),!0)}function qA(r,t){return r[1]>=t[0]&&r[0]<=t[1]}function KA(r,t){r.id.set(t[0][0],t[1][0]),r.span.set(t[0][1]-r.id.x+1,t[1][1]-r.id.y+1)}function Pq(r,t){r[0][0]=t[0][0],r[0][1]=t[0][1],r[1][0]=t[1][0],r[1][1]=t[1][1]}function JA(r,t,e,a){var n=V0(t[a][0],e,a),i=V0(t[a][1],e,a);r[ct[a]]=r[ne[a]]=NaN,n&&i&&(r[ct[a]]=n.xy,r[ne[a]]=i.xy+i.wh-n.xy)}function iu(r,t,e,a){return r[ct[t]]=e,r[ct[1-t]]=a,r}function Rq(r){return r&&(r.type===qa.leaf||r.type===qa.nonLeaf)?r:null}function Zc(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var jA=function(){function r(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=Eq(t);var a=e.get("data",!0),n=e.get("length",!0);if(a!=null&&!H(a)&&(a=[]),a)this._initByDimModelData(a);else if(n!=null){a=Array(n);for(var i=0;i<n;i++)a[i]=null;this._initByDimModelData(a)}else this._initBySeriesData()}return r.prototype._initByDimModelData=function(t){var e=this,a=e._cells,n=e._levels,i=[],o=0;e._leavesCount=s(t,0,0),l();return;function s(u,f,v){var h=0;return u&&A(u,function(c,p){var d;Z(c)?d={value:c}:ut(c)?(d=c,c.value!=null&&!Z(c.value)&&(d={value:null})):d={value:null};var g={type:qa.nonLeaf,ordinal:NaN,level:v,firstLeafLocator:f,id:new lt,span:iu(new lt,e.dimIdx,1,1),option:d,xy:NaN,wh:NaN,dim:e,rect:Zc()};o++,(i[f]||(i[f]=[])).push(g),n[v]||(n[v]={type:qa.level,xy:NaN,wh:NaN,option:null,id:new lt,dim:e});var y=s(d.children,f,v+1),m=Math.max(1,y);g.span[ct[e.dimIdx]]=m,h+=m,f+=m}),h}function l(){for(var u=[];a.length<o;)for(var f=0;f<i.length;f++){var v=i[f].pop();if(v){v.ordinal=u.length;var h=v.option.value;u.push(h),a.push(v),e._uniqueValueGen.calcDupBase(h)}}e._uniqueValueGen.ensureValueUnique(u,a);var c=e._ordinalMeta=new Qu({categories:u,needCollect:!1,deduplication:!1});e._scale=new rf({ordinalMeta:c});for(var p=0;p<e._leavesCount;p++){var d=e._cells[p];d.type=qa.leaf,d.span[ct[1-e.dimIdx]]=e._levels.length-d.level}e._initCellsId(),e._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:qa.level,xy:NaN,wh:NaN,option:null,id:new lt,dim:t}],t._initLevelIdOptions();var e=t._ordinalMeta=new Qu({needCollect:!0,deduplication:!0,onCollect:function(a,n){var i=t._cells[n]={type:qa.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new lt,span:iu(new lt,t.dimIdx,1,1),option:{value:a+""},xy:NaN,wh:NaN,dim:t,rect:Zc()};t._leavesCount++,t._setCellId(i)}});t._scale=new rf({ordinalMeta:e})},r.prototype._setCellId=function(t){var e=this._levels.length,a=this.dimIdx;iu(t.id,a,t.firstLeafLocator,t.level-e)},r.prototype._initCellsId=function(){var t=this._levels.length,e=this.dimIdx;A(this._cells,function(a){iu(a.id,e,a.firstLeafLocator,a.level-t)})},r.prototype._initLevelIdOptions=function(){var t=this._levels.length,e=this.dimIdx,a=this._model.get("levels",!0);a=H(a)?a:[],A(this._levels,function(n,i){iu(n.id,e,0,i-t),n.option=a[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(t,e,a,n){if(t=t||new Zn,e===this.dimIdx){var i=this._leavesCount,o=a!=null?Math.max(0,a):0;n=n!=null?Math.min(n,i):i,t.reset(this._cells,o,o+n)}else{var i=this._levels.length,o=a!=null?Math.max(0,a+i):0;n=n!=null?Math.min(n,i):i,t.reset(this._levels,o,o+n)}return t},r.prototype.resetCellIterator=function(t){return(t||new Zn).reset(this._cells,0)},r.prototype.resetLevelIterator=function(t){return(t||new Zn).reset(this._levels,0)},r.prototype.getLayout=function(t,e,a){var n=this.getUnitLayoutInfo(e,a);t[ct[e]]=n?n.xy:NaN,t[ne[e]]=n?n.wh:NaN},r.prototype.getUnitLayoutInfo=function(t,e){return t===this.dimIdx?e<this._leavesCount?this._cells[e]:void 0:this._levels[e+this._levels.length]},r.prototype.getCell=function(t){var e=this._scale.parse(t);return Fe(e)?void 0:this._cells[e]},r.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r}();function Eq(r){var t=r.toUpperCase(),e=new RegExp("^"+t+"([0-9]+)$"),a=0;function n(s){var l;s!=null&&(l=s.match(e))&&(a=xt(a,+l[1]+1))}function i(){return""+t+a++}function o(s,l){for(var u=K(),f=0;f<s.length;f++){var v=s[f];(v==null||u.get(v)!=null)&&(s[f]=v=i(),l[f].option=st({value:v},l[f].option)),u.set(v,!0)}}return{calcDupBase:n,ensureValueUnique:o}}var QA=function(){function r(t,e,a){this._model=e,this._dims=a,this._kind=t,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var t=this,e=t._cellMap;return e||(e=t._cellMap=K(),a()),e;function a(){var i=[],o=t._model.getShallow("data");o&&!H(o)&&(o=null),A(o,function(p,d){if(!(!ut(p)||!H(p.coord))){var g=sO([]),y=null;if(lO(g,y,p.coord,t._dims,p.coordClamp?an[t._kind]:an.none),!(th(g,0)||th(g,1))){var m=p&&p.mergeCells,_={id:new lt,span:new lt,locatorRange:g,option:p,cellMergeOwner:m};KA(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;$A(f,s,i,l);for(var v=0;v<l;v++)s[v]&&(i[v].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var h=G({},u.option);h.coord=null;var c={id:new lt,span:new lt,locatorRange:f,option:h,cellMergeOwner:!0};KA(c,f),i.push(c)}}}A(i,function(p){var d=n(p.id.x,p.id.y);if(p.cellMergeOwner&&(d.cellMergeOwner=!0,d.span=p.span,d.locatorRange=p.locatorRange,d.spanRect=Zc(),t._cellMergeOwnerList.push(d)),!(!p.cellMergeOwner&&!p.option))for(var g=0;g<p.span.y;g++)for(var y=0;y<p.span.x;y++){var m=n(p.id.x+y,p.id.y+g);m.option=p.option,p.cellMergeOwner&&(m.inSpanOf=d)}})}function n(i,o){var s=tM(i,o),l=e.get(s);return l||(l=e.set(s,{id:new lt(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(t){return this._ensureCellMap().get(tM(t[0],t[1]))},r.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},r.prototype.expandRangeByCellMerge=function(t){if(!th(t,0)&&!th(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){by[0]=t[0][0],by[1]=t[1][0];var e=this.getCell(by),a=e&&e.inSpanOf;if(a){Pq(t,a.locatorRange);return}}var n=this._cellMergeOwnerList;$A(t,null,n,n.length)},r}(),by=[];function tM(r,t){return r+"|"+t}var MS={show:!0,color:B.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function DS(r){return{color:"none",borderWidth:1,borderColor:r?"none":B.color.borderTint}}var eM={show:!0,label:MS,itemStyle:DS(!1),silent:void 0,dividerLineStyle:{width:1,color:B.color.border}},kq={label:MS,itemStyle:DS(!1),silent:void 0},Oq={label:MS,itemStyle:DS(!0),silent:void 0},Nq={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:eM,y:eM,body:kq,corner:Oq,backgroundStyle:{color:"none",borderColor:B.color.axisLine,borderWidth:1},triggerEvent:!1},Bq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this._dimModels={x:new rM(this.get("x",!0)||{}),y:new rM(this.get("y",!0)||{})};e.x.option.type=e.y.option.type="category";var a=e.x.dim=new jA("x",e.x),n=e.y.dim=new jA("y",e.y),i={x:a,y:n};this._body=new QA("body",new At(this.getShallow("body")),i),this._corner=new QA("corner",new At(this.getShallow("corner")),i)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type="matrix",t.layoutMode="box",t.defaultOption=Nq,t}(Tt),rM=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(At),eh=Math.round,Vq=0,zq=99,Gq={normal:25,special:100},Fq={normal:50,special:125},Hq=function(r){N(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,a){this.group.removeAll();var n=this.group,i=e.coordinateSystem,o=i.getRect(),s=e.getDimensionModel("x"),l=e.getDimensionModel("y"),u=s.dim,f=l.dim;Wq(n,e,a),Uq(n,e,u,f,a);var v=e.getShallow("borderZ2",!0),h=j(v,zq),c=h-1,p=e.getModel("backgroundStyle").getItemStyle(["borderWidth"]);p.lineWidth=0;var d=e.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);d.fill="none";var g=z0(o.clone(),p,Vq),y=z0(o.clone(),d,h);g.silent=!0,y.silent=!0,n.add(g),n.add(y);var m=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);m&&_&&(u.shouldShow()&&n.add(aM({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),c)),f.shouldShow()&&n.add(aM({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),c)))},t.type="matrix",t}(qt);function Wq(r,t,e){a(0),a(1);function a(n){var i=t.getDimensionModel(ct[n]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=t.getShallow("tooltip",!0),f=[],v=o.resetCellIterator();v.next();){var h=v.item,c={};ot.copy(c,h.rect),Wn(f,h.id.x,h.id.y),uO(f,t,r,e,h.option,s,l,i,c,h.option.value,Fq,u,n===0?"x":"y")}}}function Uq(r,t,e,a,n){i("body",t.getBody(),e,a),e.shouldShow()&&a.shouldShow()&&i("corner",t.getCorner(),a,e);function i(o,s,l,u){var f=new At(t.getShallow(o,!0)),v=f.getModel("itemStyle"),h=f.getModel("label"),c=new Zn,p=new Zn,d=[],g=t.getShallow("tooltip",!0);for(u.resetLayoutIterator(p,1);p.next();)for(l.resetLayoutIterator(c,0);c.next();){var y=c.item,m=p.item;Wn(d,y.id.x,m.id.y);var _=s.getCell(d);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var S={};_&&_.span?ot.copy(S,_.spanRect):(y.dim.getLayout(S,0,d[0]),m.dim.getLayout(S,1,d[1]));var x=_?_.option:null;uO(d,t,r,n,x,v,h,f,S,x?x.value:null,Gq,g,o)}}}}function uO(r,t,e,a,n,i,o,s,l,u,f,v,h){var c;rh.option=n?n.itemStyle:null,rh.parentModel=i,_s.option=n,_s.parentModel=s;var p=j(_s.getShallow("z2"),n&&n.itemStyle?f.special:f.normal),d=v&&v.show,g=z0(l,rh.getItemStyle(),p);e.add(g);var y=_s.get("cursor");y!=null&&g.attr("cursor",y);var m;if(u!=null){var _=u+"";Hi.option=n?n.label:null,Hi.parentModel=o,Hi.ecModel=a;var S=Hi.getShallow("formatter");if(S){var x={componentType:"matrix",componentIndex:t.componentIndex,name:_,value:u,coord:r.slice(),$vars:["name","value","coord"]};if(Z(S))_=ZL(S,x);else if(nt(S)){var b=S(x);b!=null&&(_=b+"")}}if(we(g,{normal:Hi},{defaultText:_,autoOverflowArea:!0,layoutRect:at(g.shape)}),m=g.getTextContent(),m){m.z2=p+1;var w=m.style;if(w&&w.overflow&&w.overflow!=="none"&&w.lineOverflow){var C={};ot.copy(C,l),bo(C,(((c=g.style)===null||c===void 0?void 0:c.lineWidth)||0)/2,!0,!0),g.updateInnerText(),m.getLocalTransform(ah),Vr(ah,ah),ot.applyTransform(C,C,ah),m.setClipPath(new bt({shape:C}))}}mn({el:g,componentModel:t,itemName:_,itemTooltipOption:v,formatterParamsExtra:{xyLocator:r.slice()}})}var T=t.get("triggerEvent",!0);if(m){var M=Hi.get("silent");M==null&&(M=!(T||d)),m.silent=M,m.ignoreHostSilent=!0}var D=_s.get("silent");if(D==null&&(D=!g.style||g.style.fill==="none"||!g.style.fill),g.silent=D,T&&g){var L={componentType:"matrix",componentIndex:t.componentIndex,matrixIndex:t.componentIndex,targetType:h,name:m&&m.style?m.style.text:void 0,value:u,coord:r.slice()};ft(g).eventData=L}Ld(_s),Ld(rh),Ld(Hi)}var _s=new At,rh=new At,Hi=new At,ah=[];function z0(r,t,e){var a=t.lineWidth;if(a){var n=r.x+r.width,i=r.y+r.height;r.x=mr(r.x,a,!0),r.y=mr(r.y,a,!0),r.width=mr(n,a,!0)-r.x,r.height=mr(i,a,!0)-r.y}return new bt({shape:r,style:t,z2:e})}function aM(r,t,e){var a=t.lineWidth;return a&&(eh(r.x1*2)===eh(r.x2*2)&&(r.x1=r.x2=mr(r.x1,a,!0)),eh(r.y1*2)===eh(r.y2*2)&&(r.y1=r.y2=mr(r.y1,a,!0))),new fe({shape:r,style:t,silent:!0,z2:e})}var Yq=function(){function r(t,e,a){this.dimensions=r.dimensions,this.type="matrix",this._model=t;var n=this._dimModels={x:t.getDimensionModel("x"),y:t.getDimensionModel("y")};this._dims={x:n.x.dim,y:n.y.dim},this._resize(t,a)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(t,e){var a=[];return t.eachComponent("matrix",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){kf({targetModel:i,coordSysType:"matrix",coordSysProvider:QL})}),a},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(t,e){var a=this._dims,n=this._dimModels,i=this._rect=Jt(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});nM(n,a,i,0),nM(n,a,i,1),iM(0,a),iM(1,a),oM(this._model.getBody(),a),oM(this._model.getCorner(),a)},r.prototype.dataToPoint=function(t,e,a){return a=a||[],this.dataToLayout(t,e,ou),a[0]=ou.rect.x+ou.rect.width/2,a[1]=ou.rect.y+ou.rect.height/2,a},r.prototype.dataToLayout=function(t,e,a){var n=this._dims;a=a||{};var i=a.rect=a.rect||{};i.x=i.y=i.width=i.height=NaN;var o=a.matrixXYLocatorRange=sO(a.matrixXYLocatorRange);return H(t)&&(lO(o,null,t,n,j(e&&e.clamp,an.none)),(!e||!e.ignoreMergeCells)&&((!e||e.clamp!==an.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!e||e.clamp!==an.body)&&this._model.getCorner().expandRangeByCellMerge(o)),JA(i,o,n,0),JA(i,o,n,1)),a},r.prototype.pointToData=function(t,e,a){var n=this._dims;return sM(fa,0,n,t,e&&e.clamp),sM(fa,1,n,t,e&&e.clamp),a=a||[],a[0]=a[1]=NaN,fa.y===Pe.inCorner&&fa.x===Pe.inBody?lM(fa,a,0,n):fa.x===Pe.inCorner&&fa.y===Pe.inBody?lM(fa,a,1,n):(uM(fa,a,0,n),uM(fa,a,1,n)),a},r.prototype.convertToPixel=function(t,e,a,n){var i=Ty(e);return i===this?i.dataToPoint(a,n):void 0},r.prototype.convertToLayout=function(t,e,a,n){var i=Ty(e);return i===this?i.dataToLayout(a,n):void 0},r.prototype.convertFromPixel=function(t,e,a,n){var i=Ty(e);return i===this?i.pointToData(a,n):void 0},r.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},r.dimensions=["x","y","value"],r}(),ou={rect:Zc()},nh=new Zn,wy=new Zn;function nM(r,t,e,a){for(var n=1-a,i=t[ct[a]],o=t[ct[n]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,a);u.next();)u.item.wh=u.item.xy=NaN;for(var f=e[ne[a]],v=i.getLocatorCount(a)+o.getLocatorCount(a),h=new At,c=o.resetLevelIterator();c.next();)h.option=c.item.option,h.parentModel=r[ct[n]],g(c.item,s?h.get("levelSize"):0);for(var p=new At,d=i.resetCellIterator();d.next();)d.item.type===qa.leaf&&(p.option=d.item.option,p.parentModel=void 0,g(d.item,p.get("size")));function g(w,C){var T=Xq(C,a,e);Fe(T)||(w.wh=G0(T,f),f=G0(f-w.wh),v--)}var y=v?f/v:0,m=!v&&f>=1,_=e[ct[a]],S=i.getLocatorCount(a)-1,x=new Zn;for(o.resetLayoutIterator(x,a);x.next();)b(x.item);for(i.resetLayoutIterator(x,a);x.next();)b(x.item);function b(w){Fe(w.wh)&&(w.wh=y),w.xy=_,w.id[ct[a]]===S&&!m&&(w.wh=e[ct[a]]+e[ne[a]]-w.xy),_+=w.wh}}function iM(r,t){for(var e=t[ct[r]].resetCellIterator();e.next();){var a=e.item;$c(a.rect,r,a.id,a.span,t),$c(a.rect,1-r,a.id,a.span,t),a.type===qa.nonLeaf&&(a.xy=a.rect[ct[r]],a.wh=a.rect[ne[r]])}}function oM(r,t){r.travelExistingCells(function(e){var a=e.span;if(a){var n=e.spanRect,i=e.id;$c(n,0,i,a,t),$c(n,1,i,a,t)}})}function $c(r,t,e,a,n){r[ne[t]]=0;var i=e[ct[t]],o=i<0?n[ct[1-t]]:n[ct[t]],s=o.getUnitLayoutInfo(t,e[ct[t]]);if(r[ct[t]]=s.xy,r[ne[t]]=s.wh,a[ct[t]]>1){var l=o.getUnitLayoutInfo(t,e[ct[t]]+a[ct[t]]-1);r[ne[t]]=l.xy+l.wh-s.xy}}function Xq(r,t,e){var a=Jh(r,e[ne[t]]);return G0(a,e[ne[t]])}function G0(r,t){return Math.max(Math.min(r,j(t,1/0)),0)}function Ty(r){var t=r.matrixModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var Pe={inBody:1,inCorner:2,outside:3},fa={x:null,y:null,point:[]};function sM(r,t,e,a,n){var i=e[ct[t]],o=e[ct[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,v=r.point[t]=a[t];if(!l&&!f){r[ct[t]]=Pe.outside;return}if(n===an.body){l?(r[ct[t]]=Pe.inBody,v=zt(s.xy+s.wh,xt(l.xy,v)),r.point[t]=v):r[ct[t]]=Pe.outside;return}else if(n===an.corner){f?(r[ct[t]]=Pe.inCorner,v=zt(f.xy+f.wh,xt(u.xy,v)),r.point[t]=v):r[ct[t]]=Pe.outside;return}var h=l?l.xy:f?f.xy+f.wh:NaN,c=u?u.xy:h,p=s?s.xy+s.wh:h;if(v<c){if(!n){r[ct[t]]=Pe.outside;return}v=c}else if(v>p){if(!n){r[ct[t]]=Pe.outside;return}v=p}r.point[t]=v,r[ct[t]]=h<=v&&v<=p?Pe.inBody:c<=v&&v<=h?Pe.inCorner:Pe.outside}function lM(r,t,e,a){var n=1-e;if(r[ct[e]]!==Pe.outside)for(a[ct[e]].resetCellIterator(wy);wy.next();){var i=wy.item;if(fM(r.point[e],i.rect,e)&&fM(r.point[n],i.rect,n)){t[e]=i.ordinal,t[n]=i.id[ct[n]];return}}}function uM(r,t,e,a){if(r[ct[e]]!==Pe.outside){var n=r[ct[e]]===Pe.inCorner?a[ct[1-e]]:a[ct[e]];for(n.resetLayoutIterator(nh,e);nh.next();)if(Zq(r.point[e],nh.item)){t[e]=nh.item.id[ct[e]];return}}}function Zq(r,t){return t.xy<=r&&r<=t.xy+t.wh}function fM(r,t,e){return t[ct[e]]<=r&&r<=t[ct[e]]+t[ne[e]]}function $q(r){r.registerComponentModel(Bq),r.registerComponentView(Hq),r.registerCoordinateSystem("matrix",Yq)}function qq(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function vM(r,t){var e;return A(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function Kq(r,t,e){var a=G({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(mt(n,a,!0),Oa(n,a,{ignoreSize:!0}),n2(e,n),ih(e,n),ih(e,n,"shape"),ih(e,n,"style"),ih(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var fO=["transition","enterFrom","leaveTo"],Jq=fO.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ih(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?fO:Jq,n=0;n<a.length;n++){var i=a[n];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function jq(r,t){if(r&&(r.hv=t.hv=[vM(t,["left","right"]),vM(t,["top","bottom"])],r.type==="group")){var e=r,a=t;e.width==null&&(e.width=a.width=0),e.height==null&&(e.height=a.height=0)}}var Qq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,a),this.option.elements=n},t.prototype.optionUpdated=function(e,a){var n=this.option,i=(a?n:e).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=LI(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];A(l,function(f,v){var h=f.newOption;h&&(u.push(h),qq(f,h),Kq(o,v,h),jq(o[v],h))},this),n.elements=Bt(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,a,n){A(e,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Tt),hM={path:null,compoundPath:null,group:it,image:Ie,text:It},Lr=yt(),tK=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=K()},t.prototype.render=function(e,a,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var a=e.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");A(a,function(l){var u=pe(l.id,null),f=u!=null?n.get(u):null,v=pe(l.parentId,null),h=v!=null?n.get(v):i,c=l.type,p=l.style;c==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&PR(p,c,!!g,!!d)){var y=RR(p,c,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=eK(l),_=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var b=!f,w=f;b?w=cM(u,h,l.type,n):(w&&(Lr(w).isNew=!1),Zk(w)),w&&(Nh(w,m,e,{isInit:b}),pM(w,l,o,s))}else if(x){Vh(f,l,n,e);var C=cM(u,h,l.type,n);C&&(Nh(C,m,e,{isInit:!0}),pM(C,l,o,s))}else _==="remove"&&(Yk(f,l),Vh(f,l,n,e));var T=n.get(u);if(T&&d)if(S){var M=T.getTextContent();M?M.attr(d):T.setTextContent(new It(d))}else x&&T.setTextContent(new It(d));if(T){var D=l.clipPath;if(D){var L=D.type,I=void 0,b=!1;if(S){var P=T.getClipPath();b=!P||Lr(P).type!==L,I=b?F0(L):P}else x&&(b=!0,I=F0(L));T.setClipPath(I),Nh(I,D,e,{isInit:b}),Uc(I,D.keyframeAnimation,e)}var R=Lr(T);T.setTextConfig(g),R.option=l,rK(T,e,l),mn({el:T,componentModel:e,itemName:T.name,itemTooltipOption:l.tooltip}),Uc(T,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,a){for(var n=e.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],f=0;f<n.length;f++){var v=n[f],h=pe(v.id,null),c=h!=null?o.get(h):null;if(!(!c||!c.isGroup)){var p=c.parent,d=p===i,g=Lr(c),y=Lr(p);g.width=$(g.option.width,d?s:y.width)||0,g.height=$(g.option.height,d?l:y.height)||0}}for(var f=n.length-1;f>=0;f--){var v=n[f],h=pe(v.id,null),c=h!=null?o.get(h):null;if(c){var p=c.parent,y=Lr(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Pp(c,v,m,null,{hv:v.hv,boundingMode:v.bounding},_);if(!Lr(c).isNew&&S){for(var x=v.transition,b={},w=0;w<u.length;w++){var C=u[w],T=_[C];x&&(po(x)||pt(x,C)>=0)?b[C]=T:c[C]=T}Rt(c,b,e,0)}else c.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Vh(n,Lr(n).option,a,e._lastGraphicModel)}),this._elMap=K()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(qt);function F0(r){var t=J(hM,r)?hM[r]:ac(r),e=new t({});return Lr(e).type=r,e}function cM(r,t,e,a){var n=F0(e);return t.add(n),a.set(r,n),Lr(n).id=r,Lr(n).isNew=!0,n}function Vh(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Vh(i,t,e,a)}),td(r,t,a),e.removeKey(Lr(r).id))}function pM(r,t,e,a){r.isGroup||A([["cursor",Gr.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];J(t,i)?r[i]=j(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(Ct(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=nt(i)?i:null}}),J(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function eK(r){return r=G({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(t2),function(t){delete r[t]}),r}function rK(r,t,e){var a=ft(r).eventData;!r.silent&&!r.ignore&&!a&&(a=ft(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function aK(r){r.registerComponentModel(Qq),r.registerComponentView(tK),r.registerPreprocessor(function(t){var e=t.graphic;H(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var dM=["x","y","radius","angle","single"],nK=yt(),iK=["cartesian2d","polar","singleAxis"];function oK(r){var t=r.get("coordinateSystem");return pt(iK,t)>=0}function Hn(r){return r+"Axis"}function sK(r,t){var e=K(),a=[],n=K();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var v=!1;return f.eachTargetAxis(function(h,c){var p=e.get(h);p&&p[c]&&(v=!0)}),v}function u(f){f.eachTargetAxis(function(v,h){(e.get(v)||e.set(v,[]))[h]=!0})}return a}function vO(r){var t=r.ecModel,e={infoList:[],infoMap:K()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(Hn(a),n);if(i){var o=i.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(i)}}}),e}function hO(r){var t=nK(K2(r));return t.axisProxyMap||(t.axisProxyMap=K())}function qc(r){if(r)return hO(r.ecModel).get(r.uid)}function lK(r,t){hO(r.ecModel).set(r.uid,t)}function cO(r,t){var e=t.getAxisModel().axis.__alignTo;return e&&r.getAxisProxy(e.dim,e.model.componentIndex)?qc(e.model):null}var Cy=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}(),bf=function(r){N(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,a,n){var i=gM(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=gM(e);mt(this.option,e,!0),mt(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=K(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return A(dM,function(n){var i=this.getReferringComponents(Hn(n),lV);if(i.specified){a=!0;var o=new Cy;A(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var v=u[0];if(v){var h=new Cy;if(h.add(v.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var c=v.getReferringComponents("grid",te).models[0];c&&A(u,function(p){v.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",te).models[0]&&h.add(p.componentIndex)})}}}i&&A(dM,function(u){if(i){var f=n.findComponents({mainType:Hn(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var v=new Cy;v.add(f[0].componentIndex),e.set(u,v),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(Hn(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){return qc(this.getAxisModel(e,a))},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(Hn(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,a).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return qc(e);for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],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;a||(a=u)}return a},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return 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}(Tt);function gM(r){var t={};return A(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var uK=function(r){N(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}(bf),IS=function(r){N(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,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t}(qt),fK=function(r){N(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}(IS),vK=function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getWindow=function(){return at(this._window)},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(oK(e)){var a=Hn(this._dimName),n=e.getReferringComponents(a,te).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return at(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._extent,a=this.getAxisModel().axis,n=a.scale,i=this._dataZoomModel,o=i.getRangePropMode(),s=[0,100],l=[],u=[],f,v=[!1,!1];A(["start","end"],function(_,S){var x=t[_],b=t[_+"Value"];o[S]==="percent"?(x==null&&(x=s[S]),b=kt(x,s,e),v[S]=!0):(f=!0,b==null?b=e[S]:(b=n.parse(b),n.sanitize&&(b=n.sanitize(b,e))),x=kt(b,e,s)),u[S]=b==null||isNaN(b)?e[S]:b,l[S]=x==null||isNaN(x)?s[S]:x}),Ee(u),Ee(l);var h=this._minMaxSpan;f?c(u,l,e,s,!1):c(l,u,s,e,!0);function c(_,S,x,b,w){var C=w?"Span":"ValueSpan";ii(0,_,x,"all",h["min"+C],h["max"+C]);for(var T=0;T<2;T++)S[T]=kt(_[T],x,b,!0),w&&(S[T]=S[T],v[T]=!0);bh(S)}var p=Xe(n)||Bf(n),d=a.getExtent(),g=ee(d[1]-d[0]),y=p?0:p_(u,g,.5);A([[0,Go],[1,Qr]],function(_){var S=_[0],x=_[1];!v[S]||!isFinite(y)||(u[S]=Pt(u[S],y),u[S]=zt(e[1],xt(e[0],u[S])),l[S]===s[S]&&(u[S]=e[S],p&&(u[S]=x(u[S]))))}),bh(u);var m=[kt(u[0],e,s,!0),kt(u[1],e,s,!0)];return bh(m),{value:u,percent:l,percentInverted:m,valuePrecision:y}},r.prototype.reset=function(t,e){if(this.hostedBy(t)){var a=this.getAxisModel().axis;Do(a,LH);var n=a.scale.rawExtentInfo;this._extent=n.makeNoZoom(),this._updateMinMaxSpan();var i=t.settledOption;e&&(i=st({start:e[0],end:e[1]},i));var o=this._window=this.calculateDataWindow(i),s=o.percent,l=o.value;s[0]!==0&&n.setZoomMM(0,l[0]),s[1]!==100&&n.setZoomMM(1,l[1])}},r.prototype.filterData=function(t,e){if(!this.hostedBy(t))return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._window.value;if(i==="none")return;A(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if(i==="weakFilter"){var v=u.getStore(),h=W(f,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var p,d,g,y=0;y<f.length;y++){var m=v.get(h[y],c),_=!isNaN(m),S=m<o[0],x=m>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(p=!0),x&&(d=!0)}return g&&p&&d})}else A(f,function(c){if(i==="empty")l.setData(u=u.map(c,function(d){return s(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});A(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._extent;A(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=kt(a[0]+o,a,[0,100],!0):i!=null&&(o=kt(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r}(),hK={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Hn(o),s);n(o,s,l,i)})})}var e=[];t(function(n,i,o,s){if(!qc(o)){var l=new vK(n,i,s,r);e.push(l),lK(o,l)}});var a=K();return A(e,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){var a=[];e.eachTargetAxis(function(n,i){var o=e.getAxisProxy(n,i),s=cO(e,o);s?a.push([o,s]):o.reset(e,null)}),A(a,function(n){n[0].reset(e,n[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getWindow(),i=n.percent,o=n.value;e.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function cK(r){r.registerAction("dataZoom",function(t,e){var a=sK(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var pK=yl();function LS(r){pK(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,hK),cK(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function dK(r){r.registerComponentModel(uK),r.registerComponentView(fK),LS(r)}var Da=function(){function r(){}return r}(),pO={};function Ms(r,t){pO[r]=t}function dO(r){return pO[r]}var gK=function(r){N(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,a,n){var i=n.getTheme().get("toolbox"),o=i?i.feature:null;o&&(this._themeFeatureOption=G({},o),i.feature={}),r.prototype.init.call(this,e,a,n),o&&(i.feature=o)},t.prototype.optionUpdated=function(){A(this.option.feature,function(e,a){var n=this._themeFeatureOption,i=dO(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),n&&n[a]&&(mt(e,n[a]),n[a]=null),mt(e,i.defaultOption))},this)},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:B.color.border,borderRadius:0,borderWidth:0,padding:B.size.m,itemSize:15,itemGap:B.size.s,showTitle:!0,iconStyle:{borderColor:B.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:B.color.accent70}},tooltip:{show:!1,position:"bottom"}},t}(Tt);function gO(r,t){var e=Rf(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new bt({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:a,silent:!0,z2:-1});return n}var yK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){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=K()),v=[];A(u,function(m,_){v.push(_)}),new cn(this._featureNames||[],v).add(h).update(h).remove(St(h,null)).execute(),this._featureNames=Bt(v,function(m){return f.hasKey(m)});function h(m,_){var S=m!=null&&_==null,x=m!=null&&_!=null,b=m==null,w=S||x?v[m]:v[_],C=u[w],T=S||x?new At(C,e,a):null,M=T&&T.get("show"),D;if(S){if(!M)return;if(mK(w))D={onclick:T.option.onclick,featureName:w};else{var L=dO(w);if(!L)return;D=new L}f.set(w,D)}else D=f.get(w);if(b||!M){yM(D)&&D.dispose&&D.dispose(a,n),f.removeKey(w);return}i&&i.newTitle!=null&&i.featureName===w&&(C.title=i.newTitle),S&&(D.uid=Yo("toolbox-feature")),D.model=T,D.ecModel=a,D.api=n,c(T,D,w),T.setIconStatus=function(I,P){var R=this.option,E=this.iconPaths;R.iconStatus=R.iconStatus||{},R.iconStatus[I]=P,E[I]&&(P==="emphasis"?vn:hn)(E[I])},yM(D)&&D.render&&D.render(T,a,n,i)}function c(m,_,S){var x=m.getModel("iconStyle"),b=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Da&&_.getIcons?_.getIcons():m.get("icon"),C=m.get("title")||{},T,M;Z(w)?(T={},T[S]=w):T=w,Z(C)?(M={},M[S]=C):M=C;var D=m.iconPaths={};A(T,function(L,I){var P=Pf(L,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var R=P.ensureState("emphasis");R.style=b.getItemStyle();var E=new It({style:{text:M[I],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:O_({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},a)},ignore:!0});P.setTextContent(E),mn({el:P,componentModel:e,itemName:I,formatterParamsExtra:{title:M[I]}}),P.__title=M[I],P.on("mouseover",function(){var O=b.getItemStyle(),k=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:b.get("textFill")||O.fill||O.stroke||B.color.neutral99,backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||k}),E.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",I])!=="emphasis"&&n.leaveEmphasis(this),E.hide()}),(m.get(["iconStatus",I])==="emphasis"?vn:hn)(P),o.add(P),P.on("click",q(_.onclick,_,a,n,I)),D[I]=P})}var p=_e(e,n).refContainer,d=e.getBoxLayoutParams(),g=e.get("padding"),y=Jt(d,p,g);ho(e.get("orient"),o,e.get("itemGap"),y.width,y.height),Pp(o,d,p,g),o.add(gO(o.getBoundingRect(),e)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),x=S.textConfig||(S.textConfig={}),b=m.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!nt(w)&&_){var C=w.style||(w.style={}),T=vp(_,It.makeFont(C)),M=m.x+o.x,D=m.y+o.y+s,L=!1;D+T.height>n.getHeight()&&(x.position="top",L=!0);var I=L?-5-T.height:s+10;M+T.width/2>n.getWidth()?(x.position=["100%",I],C.align="right"):M-T.width/2<0&&(x.position=[0,I],C.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o&&o instanceof Da&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.dispose=function(e,a){A(this._features,function(n){n&&n instanceof Da&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(qt);function mK(r){return r.indexOf("my")===0}function yM(r){return r instanceof Da}var _K=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||B.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Mt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),c=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];c&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(p),x.close(),S.focus(),x.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',C=window.open();C.document.write(w),C.document.title=i}},t.getDefaultOption=function(e){var a={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:B.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Da),mM="__ec_magicType_stack__",SK=[["line","bar"],["stack"]],xK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return A(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={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 a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(_M[n]){var s={series:[]},l=function(v){var h=v.subType,c=v.id,p=_M[n](h,c,v,i);p&&(st(p,v.option),s.series.push(p));var d=v.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=v.getReferringComponents(m,te).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(SK,function(v){pt(v,n)>=0&&A(v,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=mt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Da),_M={line:function(r,t,e,a){if(r==="bar")return mt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return mt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===mM;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),mt({id:t,stack:n?"":mM},a.get(["option","stack"])||{},!0)}};Ga({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var ed=new Array(60).join("-"),vl=" ";function bK(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=nU(o);t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function wK(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(W(e.series,function(c){return c.name})),l=[n.model.getCategories()];A(e.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(vl)],f=0;f<l[0].length;f++){for(var v=[],h=0;h<l.length;h++)v.push(l[h][f]);u.push(v.join(vl))}t.push(u.join(`
|
|
40
|
+
`))}),t.join(`
|
|
41
|
+
|
|
42
|
+
`+ed+`
|
|
43
|
+
|
|
44
|
+
`)}function TK(r){return W(r,function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+vl:"")+n.join(vl))}),a.join(`
|
|
45
|
+
`)}).join(`
|
|
46
|
+
|
|
47
|
+
`+ed+`
|
|
48
|
+
|
|
49
|
+
`)}function CK(r){var t=bK(r);return{value:Bt([wK(t.seriesGroupByCategoryAxis),TK(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
|
|
50
|
+
|
|
51
|
+
`+ed+`
|
|
52
|
+
|
|
53
|
+
`),meta:t.meta}}function Kc(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function AK(r){var t=r.slice(0,r.indexOf(`
|
|
54
|
+
`));if(t.indexOf(vl)>=0)return!0}var H0=new RegExp("["+vl+"]+","g");function MK(r){for(var t=r.split(/\n+/g),e=Kc(t.shift()).split(H0),a=[],n=W(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Kc(t[i]).split(H0);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function DK(r){for(var t=r.split(/\n+/g),e=Kc(t.shift()),a=[],n=0;n<t.length;n++){var i=Kc(t[n]);if(i){var o=i.split(H0),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function IK(r,t){var e=r.split(new RegExp(`
|
|
55
|
+
*`+ed+`
|
|
56
|
+
*`,"g")),a={series:[]};return A(e,function(n,i){if(AK(n)){var o=MK(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=DK(n);a.series.push(o)}}),a}var LK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||B.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var v=i.get("optionToContent"),h=i.get("contentToOption"),c=CK(e);if(nt(v)){var p=v(a.getOption());Z(p)?u.innerHTML=p:Xs(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function b(){n.removeChild(o),x._dom=null}qy(_,"click",b),qy(S,"click",function(){if(h==null&&v!=null||h!=null&&v==null){b();return}var w;try{nt(h)?w=h(u,a.getOption()):w=IK(f.value,g)}catch(C){throw b(),new Error("Data view format error "+C)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),b()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.dispose=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){var a={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:B.color.background,textColor:B.color.primary,textareaColor:B.color.background,textareaBorderColor:B.color.border,buttonColor:B.color.accent50,buttonTextColor:B.color.neutral00};return a},t}(Da);function PK(r,t){return W(r,function(e,a){var n=t&&t[a];if(ut(n)&&!H(n)){var i=ut(e)&&!H(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=st(e,n),o&&delete e.name,e}else return e})}Ga({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];A(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(G({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:PK(a.data,i)})}}),t.mergeOption(st({series:e},r.newOption))});var yO=A,mO=yt();function RK(r,t){var e=PS(r);yO(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function EK(r){var t=PS(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return yO(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function kK(r){mO(r).snapshots=null}function OK(r){return PS(r).length}function PS(r){var t=mO(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var NK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){kK(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={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 a},t}(Da);Ga({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var BK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],RS=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=SM(e,t);A(VK,function(o,s){(!a||!a.include||pt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Ay[a.brushType](0,i,n);a.__rangeOffset={offset:TM[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){A(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&A(i.coordSyses,function(o){var s=Ay[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Ay[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?TM[a.brushType](i.values,o.offset,zK(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return W(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:Tk(n),isTargetByCursor:Ak(n,t,a.coordSysModel),getLinearBrushOtherExtent:Ck(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&pt(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=SM(e,t),i=0;i<a.length;i++){var o=a[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<xM.length;l++)if(xM[l](n,o))return o}return!0},r}();function W0(r){return r[0]>r[1]&&r.reverse(),r}function SM(r,t){return Bs(r,t,{includeMainTypes:BK})}var VK={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=K(),o={},s={};!e&&!a&&!n||(A(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(v,h){(pt(e,v.getAxis("x").model)>=0||pt(a,v.getAxis("y").model)>=0)&&f.push(v)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:bM.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:bM.geo})})}},xM=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],bM={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,t=wE(null,r);return $D(t,t,Ec(null,r)),t}},Ay={lineX:St(wM,0),lineY:St(wM,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[W0([n[0],i[0]]),W0([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[Re(),Re()],i=W(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function wM(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=W0(W([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var TM={lineX:St(CM,0),lineY:St(CM,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 W(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function CM(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function zK(r,t){var e=AM(r),a=AM(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function AM(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var U0=A,GK=aV("toolbox-dataZoom_"),FK={x:"width",y:"height"},HK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new eS(n.getZr()),this._brushController.on("brush",q(this._onBrush,this)).mount()),YK(e,a,this,i,n),UK(e,a)},t.prototype.onclick=function(e,a,n){WK[n].call(this)},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new RS(ES(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,v){if(v.type==="cartesian2d"){var h=v.master.getRect().clone(),c=u.brushType;c==="rect"?(s("x",v,h,f[0]),s("y",v,h,f[1])):s({lineX:"x",lineY:"y"}[c],v,h,f)}}),RK(i,n),this._dispatchZoomAction(n);function s(u,f,v,h){var c=f.getAxis(u),p=c.model,d=l(u,p,i),g=d.findRepresentativeAxisProxy(p).getMinMaxSpan(),y=c.scale.getExtent();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=ii(0,h.slice(),y,0,g.minValueSpan,g.maxValueSpan));var m=p_(y,v[FK[u]],.5);d&&(n[d.id]={dataZoomId:d.id,startValue:isFinite(m)?Pt(h[0],m):h[0],endValue:isFinite(m)?Pt(h[1],m):h[1]})}function l(u,f,v){var h;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var p=c.getAxisModel(u,f.componentIndex);p&&(h=c)}),h}},t.prototype._dispatchZoomAction=function(e){var a=[];U0(e,function(n,i){a.push(at(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={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:B.color.backgroundTint}};return a},t}(Da),WK={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(EK(this.ecModel))}};function ES(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 UK(r,t){r.setIconStatus("back",OK(t)>1?"emphasis":"normal")}function YK(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new RS(ES(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}Z5("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=ES(a),o=Bs(r,i);U0(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),U0(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var v=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:GK+u+v};h[f]=v,n.push(h)}return n});function XK(r){r.registerComponentModel(gK),r.registerComponentView(yK),Ms("saveAsImage",_K),Ms("magicType",xK),Ms("dataView",LK),Ms("dataZoom",HK),Ms("restore",NK),_t(dK)}var ZK=function(r){N(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|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:B.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:B.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:B.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:B.color.tertiary,fontSize:14}},t}(Tt);function _O(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function SO(r){if(Mt.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var xO=SO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$K=SO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function bO(r,t){if(!r)return t;t=YL(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function qK(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var KK=bO($K,"transition"),kS=bO(xO,"transform"),JK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Mt.transform3dSupported?"will-change:transform;":"");function jK(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function QK(r,t,e){if(!Z(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=To(t);var i=jK(e),o=Math.max(Math.round(n)*1.5,6),s="",l=kS+":",u;pt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,v=o+n,h=v*Math.abs(Math.cos(f))+v*Math.abs(Math.sin(f)),c=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-v)/2)*100)/100;s+=";"+i+":-"+c+"px";var p=t+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"];return'<div style="'+d.join("")+'"></div>'}function tJ(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(Mt.transformSupported?""+kS+n:",left"+n+",top"+n)),KK+":"+i}function MM(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Mt.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Mt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+kS+":"+o+";":[["top",0],["left",0],[xO,o]]}function eJ(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=j(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function rJ(r,t,e,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),v=r.getModel("textStyle"),h=N2(r,"html"),c=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+c),t&&i>0&&n.push(tJ(i,e,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(p){var d="border-"+p,g=YL(d),y=r.get(g);y!=null&&n.push(d+":"+y+(p==="color"?"":"px"))}),n.push(eJ(v)),h!=null&&n.push("padding:"+Rf(h).join("px ")+"px"),n.join(";")+";"}function DM(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&TN(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var aJ=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Mt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(Z(i)?document.querySelector(i):Xs(i)?i:nt(i)&&i(t.getDom()));DM(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Mr(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=qK(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=JK+rJ(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+MM(i[0],i[1],!0)+("border-color:"+To(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Z(i)&&a.get("trigger")==="item"&&!_O(a)&&(s=QK(a,n,i)),Z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",H(t)||(t=[t]);for(var l=0;l<t.length;l++)Xs(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?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var a=this._styleCoord;if(DM(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=MM(a[0],a[1]);A(i,function(o){n[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;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",Mt.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)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(q(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;CN(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var a=e.parentNode;a&&a.removeChild(e)}this.el=this._container=null},r}(),nJ=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),LM(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;ut(t)&&Ot(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new It({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:N2(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.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(),a=IM(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;LM(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=Pn(i.borderWidth||0),s=IM(i);a.x=t+o+s.left,a.y=e+o+s.top,a.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)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(q(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Pn(r){return Math.max(0,r)}function IM(r){var t=Pn(r.shadowBlur||0),e=Pn(r.shadowOffsetX||0),a=Pn(r.shadowOffsetY||0);return{left:Pn(t-e),right:Pn(t+e),top:Pn(t-a),bottom:Pn(t+a)}}function LM(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var iJ=new bt({shape:{x:-1,y:-1,width:2,height:2}}),oJ=function(r){N(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,a){if(!(Mt.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=fV(n.get("renderMode"));this._tooltipContent=i==="richText"?new nJ(a):new aJ(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(Mt.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?wl(this,"_updatePosition",50,"fixRate"):Ju(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");rO("itemTooltip",this._api,q(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(e.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||Mt.node||!n.getDom())){var o=PM(i,n);this._ticket="";var s=i.dataByCoordSys,l=fJ(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=iJ;f.x=i.x,f.y=i.y,f.update(),ft(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var v=aO(i,a),h=v.point[0],c=v.point[1];h!=null&&c!=null&&this._tryShow({offsetX:h,offsetY:c,target:v.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(PM(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),v=su([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=ft(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;no(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ft(f).dataIndex!=null?l=f:ft(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=q(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=su([a.tooltipOption],i),l=this._renderMode,u=[],f=ve("section",{blocks:[],noHeader:!0}),v=[],h=new rg;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value,b=S.axis,w=b.scale.parse(x);if(!(!S||x==null)){var C=Qk(x,b,n,_.seriesDataIndices,_.valueLabelOpt),T=ve("section",{header:C,noHeader:!kr(C),sortBlocks:!0,blocks:[]});f.blocks.push(T),A(_.seriesDataIndices,function(M){var D=n.getSeriesByIndex(M.seriesIndex),L=M.dataIndexInside,I=D.getDataParams(L);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=_c(S.axis,{value:w}),I.axisValueLabel=C,I.marker=h.makeTooltipMarker("item",To(I.color),l);var P=Bb(D.formatTooltip(L,!0,null)),R=P.frag;if(R){var E=su([D],i).get("valueFormatter");T.blocks.push(E?G({valueFormatter:E},R):R)}P.text&&v.push(P.text),u.push(I)}})}})}),f.blocks.reverse(),v.reverse();var c=a.position,p=s.get("order"),d=Wb(f,h,l,p,n.get("useUTC"),s.get("textStyle"));d&&v.unshift(d);var g=l==="richText"?`
|
|
57
|
+
|
|
58
|
+
`:"<br/>",y=v.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,h)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=ft(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,h=u.getData(v),c=this._renderMode,p=e.positionDefault,d=su([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,v),m=new rg;y.marker=m.makeTooltipMarker("item",To(y.color),c);var _=Bb(u.formatTooltip(f,!1,v)),S=d.get("order"),x=d.get("valueFormatter"),b=_.frag,w=b?Wb(x?G({valueFormatter:x},b):b,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,C,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=ft(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=at(l),l.content=Ke(l.content));var v=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&v.push(h),v.push({formatter:l.content});var c=e.positionDefault,p=su(v,this._tooltipModel,c?{position:c}:null),d=p.get("content"),g=Math.random()+"",y=new rg;this._showOrMove(p,function(){var m=at(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,e.offsetX,e.offsetY,e.position,a,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var v=this._tooltipContent;v.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var c=a,p=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),d=p.color;if(h)if(Z(h)){var g=e.ecModel.get("useUTC"),y=H(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=h,m&&(c=Lp(y.axisValue,c,g)),c=XL(c,n,!0)}else if(nt(h)){var _=q(function(S,x){S===this._ticket&&(v.setContent(x,f,e,d,l),this._updatePosition(e,l,o,s,v,n,u))},this);this._ticket=i,c=h(n,i,_)}else c=h;v.setContent(c,f,e,d,l),v.show(e,d),this._updatePosition(e,l,o,s,v,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||H(a))return{color:i||o};if(!H(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var v=o.getSize(),h=e.get("align"),c=e.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),nt(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:v.slice()})),H(a))n=$(a[0],u),i=$(a[1],f);else if(ut(a)){var d=a;d.width=v[0],d.height=v[1];var g=Jt(d,{width:u,height:f});n=g.x,i=g.y,h=null,c=null}else if(Z(a)&&l){var y=uJ(a,p,v,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=sJ(n,i,o,u,f,h?null:20,c?null:20);n=y[0],i=y[1]}if(h&&(n-=RM(h)?v[0]/2:h==="right"?v[0]:0),c&&(i-=RM(c)?v[1]/2:c==="bottom"?v[1]:0),_O(e)){var y=lJ(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&A(u,function(h,c){var p=v[c]||{},d=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&d.length===g.length,o&&A(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){Mt.node||!a.getDom()||(Ju(this,"_updatePosition"),this._tooltipContent.dispose(),N0("itemTooltip",a),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t}(qt);function su(r,t,e){var a=t.ecModel,n;e?(n=new At(e,a,a),n=new At(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof At&&(o=o.get("tooltip",!0)),Z(o)&&(o={formatter:o}),o&&(n=new At(o,n,a)))}return n}function PM(r,t){return r.dispatchAction||q(t.dispatchAction,t)}function sJ(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function lJ(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function uJ(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function RM(r){return r==="center"||r==="middle"}function fJ(r,t,e){var a=__(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=gl(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ft(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function vJ(r){_t(Zf),r.registerComponentModel(ZK),r.registerComponentView(oJ),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},re),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},re)}var hJ=["rect","polygon","keep","clear"];function cJ(r,t){var e=Wt(r?r.brush:[]);if(e.length){var a=[];A(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;H(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),pp(s,function(l){return l+""},null),t&&!s.length&&s.push.apply(s,hJ)}}var EM=A;function kM(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Y0(r,t,e){var a={};return EM(t,function(i){var o=a[i]=n();EM(r[i],function(s,l){if(be.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new be(u),l==="opacity"&&(u=at(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new be(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function wO(r,t,e){var a;A(e,function(n){t.hasOwnProperty(n)&&kM(t[n])&&(a=!0)}),a&&A(e,function(n){t.hasOwnProperty(n)&&kM(t[n])?r[n]=at(t[n]):delete r[n]})}function pJ(r,t,e,a,n,i){var o={};A(r,function(v){var h=be.prepareVisualTypes(t[v]);o[v]=h});var s;function l(v){return r1(e,s,v)}function u(v,h){X2(e,s,v,h)}e.each(f);function f(v,h){s=v;var c=e.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var p=a.call(n,v),d=t[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(v,l,u)}}}function dJ(r,t,e,a){var n={};return A(r,function(i){var o=be.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(x){return r1(s,v,x)}function f(x,b){X2(s,v,x,b)}for(var v,h=s.getStore();(v=o.next())!=null;){var c=s.getRawDataItem(v);if(!(c&&c.visualMap===!1))for(var p=a!=null?h.get(l,v):v,d=e(p),g=t[d],y=n[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}function gJ(r){var t=r.brushType,e={point:function(a){return OM[t].point(a,e,r)},rect:function(a){return OM[t].rect(a,e,r)}};return e}var OM={lineX:NM(0),lineY:NM(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&Ki(e.range,r[0],r[1])},rect:function(r,t,e){var a=e.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(Ki(a,n,i)||Ki(a,n+o,i)||Ki(a,n,i+s)||Ki(a,n+o,i+s)||ot.create(r).contain(l[0],l[1])||gu(n,i,n+o,i,a)||gu(n,i,n,i+s,a)||gu(n+o,i,n+o,i+s,a)||gu(n,i+s,n+o,i+s,a))return!0}}};function NM(r){var t=["x","y"],e=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return lu(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[t[r]],a[t[r]]+a[e[r]]];return s[1]<s[0]&&s.reverse(),lu(s[0],o)||lu(s[1],o)||lu(o[0],s)||lu(o[1],s)}}}}function lu(r,t){return t[0]<=r&&r<=t[1]}var BM=["inBrush","outOfBrush"],My="__ecBrushSelect",X0="__ecInBrushSelectEvent";function TO(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new RS(t.option,r);e.setInputRanges(t.areas,r)})}var yJ=Af(mJ);function mJ(r,t,e){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),TO(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:at(o.areas),selected:[]};a.push(l);var u=o.option,f=u.brushLink,v=[],h=[],c=[],p=!1;s||(n=u.throttleType,i=u.throttleDelay);var d=W(o.areas,function(x){var b=bJ[x.brushType],w=st({boundingRect:b?b(x):void 0},x);return w.selectors=gJ(w),w}),g=Y0(o.option,BM,function(x){x.mappingMethod="fixed"});H(f)&&A(f,function(x){v[x]=1});function y(x){return f==="all"||!!v[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=c[b]=[];x.subType==="parallel"?_(x,b):S(x,b,w)});function _(x,b){var w=x.coordinateSystem;p=p||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(C,T){C==="active"&&(h[T]=1)})}function S(x,b,w){if(!(!x.brushSelector||xJ(o,b))&&(A(d,function(T){o.brushTargetManager.controlSeries(T,x,r)&&w.push(T),p=p||m(w)}),y(b)&&m(w))){var C=x.getData();C.each(function(T){VM(x,w,C,T)&&(h[T]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);var C=c[b],T=x.getData(),M=y(b)?function(D){return h[D]?(w.dataIndex.push(T.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return VM(x,C,T,D)?(w.dataIndex.push(T.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(b)?p:m(C))&&pJ(BM,g,T,M)})}),_J(t,n,i,a,e)}function _J(r,t,e,a,n){if(n){var i=r.getZr();if(!i[X0]){i[My]||(i[My]=SJ);var o=wl(i,My,e,t);o(r,a)}}}function SJ(r,t){if(!r.isDisposed()){var e=r.getZr();e[X0]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[X0]=!1}}function VM(r,t,e,a){for(var n=0,i=t.length;n<i;n++){var o=t[n];if(r.brushSelector(a,e,o.selectors,o))return!0}}function xJ(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(H(e)?pt(e,t)<0:t!==e)}var bJ={rect:function(r){return zM(r.range)},polygon:function(r){for(var t,e=r.range,a=0,n=e.length;a<n;a++){t=t||[Re(),Re()];var i=e[a];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&zM(t)}};function zM(r){return new ot(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var wJ=function(r){N(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,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new eS(a.getZr())).on("brush",q(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){TO(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:at(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:at(n),$from:a})},t.type="brush",t}(qt),TJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&wO(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=W(e,function(a){return GM(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=GM(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:B.color.backgroundTint,borderColor:B.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:B.color.disabled},t}(Tt);function GM(r,t){return mt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new At(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var CJ=["rect","polygon","lineX","lineY","keep","clear"],AJ=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return A(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:CJ.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t}(Da);function MJ(r){r.registerComponentView(wJ),r.registerComponentModel(TJ),r.registerPreprocessor(cJ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,yJ),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},re),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},re),Ms("brush",AJ)}var DJ=function(r){N(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:"center",top:B.size.m,backgroundColor:B.color.transparent,borderColor:B.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:B.color.primary},subtextStyle:{fontSize:12,color:B.color.quaternary}},t}(Tt),IJ=function(r){N(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,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=j(e.get("textBaseline"),e.get("textVerticalAlign")),f=new It({style:Yt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=f.getBoundingRect(),h=e.get("subtext"),c=new It({style:Yt(s,{text:h,fill:s.getTextColor(),y:v.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),d=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){lc(p,"_"+e.get("target"))}),d&&c.on("click",function(){lc(d,"_"+e.get("subtarget"))}),ft(f).eventData=ft(c).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(c);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=_e(e,n),S=Jt(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),c.setStyle(x),y=i.getBoundingRect();var b=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var C=new bt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(qt);function LJ(r){r.registerComponentModel(DJ),r.registerComponentView(IJ)}var FM=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var v=pe(dl(u),""),h;ut(u)?(h=at(u),h.value=f):h=f,o.push(h),i.push(v)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new tr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:B.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:B.color.secondary},data:[]},t}(Tt),CO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=hi(FM.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:B.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:B.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:B.color.tertiary},itemStyle:{color:B.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:B.color.accent50,borderColor:B.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:B.color.accent50,borderColor:B.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:B.color.accent60},itemStyle:{color:B.color.accent60,borderColor:B.color.accent60},controlStyle:{color:B.color.accent70,borderColor:B.color.accent70}},progress:{lineStyle:{color:B.color.accent30},itemStyle:{color:B.color.accent40}},data:[]}),t}(FM);ye(CO,Ep.prototype);var PJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(qt),RJ=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(na),Dy=Math.PI,HM=yt(),EJ=function(r){N(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,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ve("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=kJ(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":Z(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Dy/2},v=i==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),c=h.get("show",!0),p=c?h.get("itemSize"):0,d=c?h.get("itemGap"):0,g=p+d,y=e.get(["label","rotate"])||0;y=y*Dy/180;var m,_,S,x=h.get("position",!0),b=c&&h.get("showPlayBtn",!0),w=c&&h.get("showPrevBtn",!0),C=c&&h.get("showNextBtn",!0),T=0,M=v;x==="left"||x==="bottom"?(b&&(m=[0,0],T+=g),w&&(_=[T,0],T+=g),C&&(S=[M-p,0],M-=g)):(b&&(m=[M-p,0],M-=g),w&&(_=[0,0],T+=g),C&&(S=[M-p,0],M-=g));var D=[T,M];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Qt(),l=o.x,u=o.y+o.height;La(s,s,[-l,-u]),fi(s,s,-Dy/2),La(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),v=m(n.getBoundingRect()),h=m(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=f[0][0];var d=e.labelPosOpt;if(d==null||Z(d)){var g=d==="+"?0:1;_(c,v,f,1,g),_(p,h,f,1,1-g)}else{var g=d>=0?0:1;_(c,v,f,1,g),p[1]=c[1]+d}n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,C){S[w]+=b[w][C]-x[w][C]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType")||a.get("type");i!=="category"&&i!=="time"&&(i="value");var o=Vf(a,i,!1);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),UP(o,{fixMinMax:[!0,!0]});var l=new RJ("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new it;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new fe({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:G({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new fe({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:st({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),v=s.getItemModel(u.value),h=v.getModel("itemStyle"),c=v.getModel(["emphasis","itemStyle"]),p=v.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:q(o._changeTimeline,o,u.value)},g=WM(v,h,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),vo(g);var y=ft(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){if(!f.tick.offInterval){var v=f.tick.value,h=l.getItemModel(v),c=h.getModel("label"),p=h.getModel(["emphasis","label"]),d=h.getModel(["progress","label"]),g=n.dataToCoord(v),y=new It({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:q(o._changeTimeline,o,v),silent:!1,style:Yt(c,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Yt(p),y.ensureState("progress").style=Yt(d),a.add(y),vo(y),HM(y).dataIndex=v,o._tickLabels.push(y)}})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),v=i.get("inverse",!0);h(e.nextBtnPosition,"next",q(this._changeTimeline,this,v?"-":"+")),h(e.prevBtnPosition,"prev",q(this._changeTimeline,this,v?"+":"-")),h(e.playPosition,f?"stop":"play",q(this._handlePlayClick,this,!f),!0);function h(c,p,d,g){if(c){var y=Ra(j(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=OJ(i,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),vo(_)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(v){v.draggable=!0,v.drift=q(u._handlePointerDrag,u),v.ondragend=q(u._handlePointerDragend,u),UM(v,u._progressLine,s,n,i,!0)},onUpdate:function(v){UM(v,u._progressLine,s,n,i)}};this._currentPointer=WM(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=Ee(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=e.model;e._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var a=this._mainGroup.getLocalTransform();return Jr(e,a,!0)},t.prototype._findNearestTick=function(e){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<n&&(n=f,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var a=this.model.getCurrentIndex();e==="+"?e=a+1:e==="-"&&(e=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<e);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",HM(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(PJ);function kJ(r,t){return Jt(r.getBoxLayoutParams(),_e(r,t).refContainer,r.get("padding"))}function OJ(r,t,e,a){var n=a.style,i=Pf(r.get(["controlStyle",t]),a||{},new ot(e[0],e[1],e[2],e[3]));return n&&i.setStyle(n),i}function WM(r,t,e,a,n,i){var o=t.get("color");if(n)n.setColor(o),e.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=he(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),e.add(n),i&&i.onCreate(n)}var l=t.getItemStyle(["color"]);n.setStyle(l),a=mt({rectHover:!0,z2:100},a,!0);var u=Cl(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var f=$o(r.get("symbolOffset"),u);f&&(a.x=(a.x||0)+f[0],a.y=(a.y||0)+f[1]);var v=r.get("symbolRotate");return a.rotation=(v||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function UM(r,t,e,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",e));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function NJ(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,a){var n=e.getComponent("timeline");return n&&t.currentIndex!=null&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),st({currentIndex:n.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var a=e.getComponent("timeline");a&&t.playState!=null&&a.setPlayState(t.playState)})}function BJ(r){var t=r&&r.timeline;H(t)||(t=t?[t]:[]),A(t,function(e){e&&VJ(e)})}function VJ(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),YM(r),Qi(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Qi(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Qi(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}A(r.data||[],function(n){ut(n)&&!H(n)&&(!Qi(n,"value")&&Qi(n,"name")&&(n.value=n.name),YM(n))})}function YM(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};A(a,function(o,s){!i[s]&&!Qi(n,s)&&(n[s]=o)}),e.label&&!Qi(a,"emphasis")&&(a.emphasis=e.label,delete e.label)}function Qi(r,t){return r.hasOwnProperty(t)}function zJ(r){r.registerComponentModel(CO),r.registerComponentView(EJ),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),NJ(r),r.registerPreprocessor(BJ)}function OS(r,t){if(!r)return!1;for(var e=H(r)?r:[r],a=0;a<e.length;a++)if(e[a]&&e[a][t])return!0;return!1}function oh(r){yo(r,"label",["show"])}var sh=yt(),Va=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e.preventAutoZ=!0,e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Mt.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,a){this._mergeOption(e,a,!1,!1)},t.prototype._mergeOption=function(e,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=sh(s)[o];if(!l||!l.data){sh(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&oh(l),A(l.data,function(f){f instanceof Array?(oh(f[0]),oh(f[1])):oh(f)}),u=this.createMarkerModelFromSeries(l,this,a),G(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),sh(s)[o]=u},this)},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return ve("section",{header:this.name,blocks:[ve("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,a){var n=Ep.prototype.getDataParams.call(this,e,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},t.getMarkerModelFromSeries=function(e,a){return sh(e)[a]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Tt);ye(Va,Ep.prototype);var GJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Va);function Z0(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function FJ(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function lh(r,t,e,a,n,i,o){var s=[],l=ai(t,n),u=l?t.getCalculationInfo("stackResultDimension"):n,f=Jc(t,u,r),v=t.hostModel,h=v.indicesOfNearest(e,u,f)[0];s[i]=t.get(a,h),s[o]=t.get(u,h);var c=t.get(n,h),p=Ka(t.get(n,h));return p=Math.min(p,20),p>=0&&(s[o]=+s[o].toFixed(p)),[s,c]}var uh={min:St(lh,"min"),max:St(lh,"max"),average:St(lh,"average"),median:St(lh,"median")};function wf(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!FJ(t)&&!H(t.coord)&&H(n)){var i=AO(t,e,a,r);if(t=at(t),t.type&&uh[t.type]&&i.baseAxis&&i.valueAxis){var o=pt(n,i.baseAxis.dim),s=pt(n,i.valueAxis.dim),l=uh[t.type](e,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!H(n)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&uh[t.type]){var f=a.getOtherAxis(u);f&&(t.value=Jc(e,e.mapDimension(f.dim),t.type))}}else for(var v=t.coord,h=0;h<2;h++)uh[v[h]]&&(v[h]=Jc(e,e.mapDimension(n[h]),v[h]));return t}}function AO(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(HJ(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function HJ(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Tf(r,t){return r&&r.containData&&t.coord&&!Z0(t)?r.containData(t.coord):!0}function WJ(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Z0(t)&&!Z0(e)?r.containZone(t.coord,e.coord):!0}function MO(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return qn(o,t[i])}:function(e,a,n,i){return qn(e.value,t[i])}}function Jc(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Iy=yt(),NS=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=K()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Iy(s).keep=!1}),a.eachSeries(function(s){var l=Va.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Iy(s).keep&&i.group.remove(s.group)}),UJ(a,o,this.type)},t.prototype.markKeep=function(e){Iy(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;A(e,function(i){var o=Va.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?aL(l):D_(l))})}})},t.type="marker",t}(qt);function UJ(r,t,e){r.eachSeries(function(a){var n=Va.getMarkerModelFromSeries(a,e),i=t.get(a.id);if(n&&i&&i.group){var o=wo(n),s=o.z,l=o.zlevel;Mp(i.group,s,l)}})}function XM(r,t,e){var a=t.coordinateSystem,n=e.getWidth(),i=e.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:n,v=u?o?o.height:0:i,h=u&&o?o.x:0,c=u&&o?o.y:0,p,d=$(l.get("x"),f)+h,g=$(l.get("y"),v)+c;if(!isNaN(d)&&!isNaN(g))p=[d,g];else if(t.getMarkerPosition)p=t.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var y=r.get(a.dimensions[0],s),m=r.get(a.dimensions[1],s);p=a.dataToPoint([y,m])}isNaN(d)||(p[0]=d),isNaN(g)||(p[1]=g),r.setItemLayout(s,p)})}var YJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Va.getMarkerModelFromSeries(i,"markPoint");o&&(XM(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Wf),v=XJ(o,e,a);a.setData(v),XM(a.getData(),e,i),v.each(function(h){var c=v.getItemModel(h),p=c.getShallow("symbol"),d=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(nt(p)||nt(d)||nt(g)||nt(y)){var _=a.getRawValue(h),S=a.getDataParams(h);nt(p)&&(p=p(_,S)),nt(d)&&(d=d(_,S)),nt(g)&&(g=g(_,S)),nt(y)&&(y=y(_,S))}var x=c.getModel("itemStyle").getItemStyle(),b=c.get("z2"),w=Of(l,"color");x.fill||(x.fill=w),v.setItemVisual(h,{z2:j(b,0),symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(v),this.group.add(f.group),v.eachItemGraphicEl(function(h){h.traverse(function(c){ft(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(NS);function XJ(r,t,e){var a;r?a=W(r&&r.dimensions,function(s){var l=t.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return G(G({},u),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new tr(a,e),i=W(e.get("data"),St(wf,t));r&&(i=Bt(i,St(Tf,r)));var o=MO(!!r,a);return n.initData(i,null,o),n}function ZJ(r){r.registerComponentModel(GJ),r.registerComponentView(YJ),r.registerPreprocessor(function(t){OS(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var $J=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Va),fh=yt(),qJ=function(r,t,e,a){var n=r.getData(),i;if(H(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=je(a.yAxis,a.xAxis);else{var u=AO(a,n,t,r);s=u.valueAxis;var f=bP(n,u.valueDataDim);l=Jc(n,f,o)}var v=s.dim==="x"?0:1,h=1-v,c=at(a),p={coord:[]};c.type=null,c.coord=[],c.coord[h]=-1/0,p.coord[h]=1/0;var d=e.get("precision");d>=0&&Lt(l)&&(l=+l.toFixed(Math.min(d,20))),c.coord[v]=p.coord[v]=l,i=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[wf(r,i[0]),wf(r,i[1]),G({},i[2])];return g[2].type=g[2].type||null,mt(g[2],g[0]),mt(g[2],g[1]),g};function jc(r){return!isNaN(r)&&!isFinite(r)}function ZM(r,t,e,a){var n=1-r,i=a.dimensions[r];return jc(t[n])&&jc(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function KJ(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(ZM(1,e,a,r)||ZM(0,e,a,r)))return!0}return Tf(r,t[0])&&Tf(r,t[1])}function Ly(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=$(o.get("x"),n.getWidth()),u=$(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,v=r.get(f[0],t),h=r.get(f[1],t);s=i.dataToPoint([v,h])}if(Lo(i,"cartesian2d")){var c=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;jc(r.get(f[0],t))?s[0]=c.toGlobalCoord(c.getExtent()[e?0:1]):jc(r.get(f[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var JJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Va.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=fh(o).from,u=fh(o).to;l.each(function(f){Ly(l,f,!0,i,n),Ly(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new tS);this.group.add(f.group);var v=jJ(o,e,a),h=v.from,c=v.to,p=v.line;fh(a).from=h,fh(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");H(d)||(d=[d,d]),H(g)||(g=[g,g]),H(y)||(y=[y,y]),H(m)||(m=[m,m]),v.from.each(function(S){_(h,S,!0),_(c,S,!1)}),p.each(function(S){var x=p.getItemModel(S),b=x.getModel("lineStyle").getLineStyle();p.setItemLayout(S,[h.getItemLayout(S),c.getItemLayout(S)]);var w=x.get("z2");b.stroke==null&&(b.stroke=h.getItemVisual(S,"style").fill),p.setItemVisual(S,{z2:j(w,0),fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),v.line.eachItemGraphicEl(function(S){ft(S).dataModel=a,S.traverse(function(x){ft(x).dataModel=a})});function _(S,x,b){var w=S.getItemModel(x);Ly(S,x,b,e,i);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Of(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:j(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:j(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:j(w.get("symbolSize"),g[b?0:1]),symbol:j(w.get("symbol",!0),d[b?0:1]),style:C})}this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(NS);function jJ(r,t,e){var a;r?a=W(r&&r.dimensions,function(u){var f=t.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return G(G({},v),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new tr(a,e),i=new tr(a,e),o=new tr([],e),s=W(e.get("data"),St(qJ,t,r,e));r&&(s=Bt(s,St(KJ,r)));var l=MO(!!r,a);return n.initData(W(s,function(u){return u[0]}),null,l),i.initData(W(s,function(u){return u[1]}),null,l),o.initData(W(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function QJ(r){r.registerComponentModel($J),r.registerComponentView(JJ),r.registerPreprocessor(function(t){OS(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var tj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Va),vh=yt(),ej=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=wf(r,n),s=wf(r,i),l=o.coord,u=s.coord;l[0]=je(l[0],-1/0),l[1]=je(l[1],-1/0),u[0]=je(u[0],1/0),u[1]=je(u[1],1/0);var f=s_([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Qc(r){return!isNaN(r)&&!isFinite(r)}function $M(r,t,e,a){var n=1-r;return Qc(t[n])&&Qc(e[n])}function rj(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return Lo(r,"cartesian2d")?e&&a&&($M(1,e,a)||$M(0,e,a))?!0:WJ(r,n,i):Tf(r,n)||Tf(r,i)}function qM(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=$(o.get(e[0]),n.getWidth()),u=$(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],t),v=r.getValues(["x1","y1"],t),h=i.clampData(f),c=i.clampData(v),p=[];e[0]==="x0"?p[0]=h[0]>c[0]?v[0]:f[0]:p[0]=h[0]>c[0]?f[0]:v[0],e[1]==="y0"?p[1]=h[1]>c[1]?v[1]:f[1]:p[1]=h[1]>c[1]?f[1]:v[1],s=a.getMarkerPosition(p,e,!0)}else{var d=r.get(e[0],t),g=r.get(e[1],t),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Lo(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(e[0],t),g=r.get(e[1],t);Qc(d)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Qc(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var KM=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],aj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Va.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=W(KM,function(v){return qM(s,l,v,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new it});this.group.add(f.group),this.markKeep(f);var v=nj(o,e,a);a.setData(v),v.each(function(h){var c=W(KM,function(M){return qM(v,h,M,e,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(v.get("x0",h)),p.parse(v.get("x1",h))],_=[d.parse(v.get("y0",h)),d.parse(v.get("y1",h))];Ee(m),Ee(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;v.setItemLayout(h,{points:c,allClipped:x});var b=v.getItemModel(h),w=b.getModel("itemStyle").getItemStyle(),C=b.get("z2"),T=Of(l,"color");w.fill||(w.fill=T,Z(w.fill)&&(w.fill=Yh(w.fill,.4))),w.stroke||(w.stroke=T),v.setItemVisual(h,"style",w),v.setItemVisual(h,"z2",j(C,0))}),v.diff(vh(f).data).add(function(h){var c=v.getItemLayout(h),p=v.getItemVisual(h,"z2");if(!c.allClipped){var d=new Ye({z2:j(p,0),shape:{points:c.points}});v.setItemGraphicEl(h,d),f.group.add(d)}}).update(function(h,c){var p=vh(f).data.getItemGraphicEl(c),d=v.getItemLayout(h),g=v.getItemVisual(h,"z2");d.allClipped?p&&f.group.remove(p):(p?Rt(p,{z2:j(g,0),shape:{points:d.points}},a,h):p=new Ye({shape:{points:d.points}}),v.setItemGraphicEl(h,p),f.group.add(p))}).remove(function(h){var c=vh(f).data.getItemGraphicEl(h);f.group.remove(c)}).execute(),v.eachItemGraphicEl(function(h,c){var p=v.getItemModel(c),d=v.getItemVisual(c,"style");h.useStyle(v.getItemVisual(c,"style")),we(h,ge(p),{labelFetcher:a,labelDataIndex:c,defaultText:v.getName(c)||"",inheritColor:Z(d.fill)?Yh(d.fill,1):B.color.neutral99}),de(h,p),Kt(h,null,null,p.get(["emphasis","disabled"])),ft(h).dataModel=a}),vh(f).data=v,f.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(NS);function nj(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=W(r&&r.dimensions,function(u){var f=t.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return G(G({},v),{name:u,ordinalMeta:null})});n=W(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new tr(n,e)}else n=[{name:"value",type:"float"}],a=new tr(n,e);var s=W(e.get("data"),St(ej,t,r,e));r&&(s=Bt(s,St(rj,r)));var l=r?function(u,f,v,h){var c=u.coord[Math.floor(h/2)][h%2];return qn(c,n[h])}:function(u,f,v,h){return qn(u.value,n[h])};return a.initData(s,null,l),a.hasItemOption=!0,a}function ij(r){r.registerComponentModel(tj),r.registerComponentView(aj),r.registerPreprocessor(function(t){OS(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var oj=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"])}},$0=function(r){N(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,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),H(a)&&A(a,function(i,o){Z(i)&&(i={type:i}),a[o]=mt(i,oj(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var v=l.legendVisualProvider,h=v.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):f=!0}else f=!0;f&&m_(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=K(),s=W(i,function(l){return(Z(l)||Lt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new At(l,this,this.ecModel))},this);this._data=Bt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;A(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;A(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;A(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&pt(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",bottom:B.size.m,align:"auto",backgroundColor:B.color.transparent,borderColor:B.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:B.color.disabled,inactiveBorderColor:B.color.disabled,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:B.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:B.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:B.color.tertiary,borderWidth:1,borderColor:B.color.border},emphasis:{selectorLabel:{show:!0,color:B.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Tt),Ss=St,q0=A,hh=it,DO=function(r){N(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 hh),this.group.add(this._selectorGroup=new hh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=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,a,n,l,s,u);var f=_e(e,n).refContainer,v=e.getBoxLayoutParams(),h=e.get("padding"),c=Jt(v,f,h),p=this.layoutInner(e,o,c,i,l,u),d=Jt(st({width:p.width,height:p.height},v),f,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=gO(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=K(),v=a.get("selectedMode"),h=a.get("triggerEvent"),c=[];n.eachRawSeries(function(p){!p.get("legendHoverLink")&&c.push(p.id)}),q0(a.getData(),function(p,d){var g=this,y=p.get("name");if(!this.newlineDisabled&&(y===""||y===`
|
|
59
|
+
`)){var m=new hh;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),w=S.getVisual("style"),C=this._createItem(_,y,d,p,a,e,x,w,b,v,i);C.on("click",Ss(JM,y,null,i,c)).on("mouseover",Ss(K0,_.name,null,i,c)).on("mouseout",Ss(J0,_.name,null,i,c)),n.ssr&&C.eachChild(function(T){var M=ft(T);M.seriesIndex=_.seriesIndex,M.dataIndex=d,M.ssrType="legend"}),h&&C.eachChild(function(T){g.packEventData(T,a,_,d,y)}),f.set(y,!0)}else n.eachRawSeries(function(T){var M=this;if(!f.get(y)&&T.legendVisualProvider){var D=T.legendVisualProvider;if(!D.containName(y))return;var L=D.indexOfName(y),I=D.getItemVisual(L,"style"),P=D.getItemVisual(L,"legendIcon"),R=vr(I.fill);R&&R[3]===0&&(R[3]=.2,I=G(G({},I),{fill:xa(R,"rgba")}));var E=this._createItem(T,y,d,p,a,e,{},I,P,v,i);E.on("click",Ss(JM,null,y,i,c)).on("mouseover",Ss(K0,null,y,i,c)).on("mouseout",Ss(J0,null,y,i,c)),n.ssr&&E.eachChild(function(O){var k=ft(O);k.seriesIndex=T.seriesIndex,k.dataIndex=d,k.ssrType="legend"}),h&&E.eachChild(function(O){M.packEventData(O,a,T,d,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};ft(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();q0(e,function(u){var f=u.type,v=new It({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(v);var h=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);we(v,{normal:h,emphasis:c},{defaultText:u.title}),vo(v)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,v,h){var c=e.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=sj(f,i,l,u,c,g,h),x=new hh,b=i.getModel("textStyle");if(nt(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;x.add(lj({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var C=s==="left"?p+5:-5,T=s,M=o.get("formatter"),D=a;Z(M)&&M?D=M.replace("{name}",a??""):nt(M)&&(D=M(a));var L=g?b.getTextColor():i.get("inactiveColor");x.add(new It({style:Yt(b,{text:D,x:C,y:d/2,fill:L,align:T,verticalAlign:"middle"},{inheritColor:L})}));var I=new bt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&mn({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(R){R.silent=!0}),I.silent=!v,this.getContentGroup().add(x),vo(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ho(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ho("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),c=[-h.x,-h.y],p=e.get("selectorButtonGap",!0),d=e.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:v[d]+=h[g]+p,c[1-d]+=f[y]/2-h[y]/2,u.x=c[0],u.y=c[1],l.x=v[0],l.y=v[1];var _={x:0,y:0};return _[g]=f[g]+p+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+c[1-d]),_}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(qt);function sj(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),q0(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?a.decal:tl(v,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var h=t.getModel("lineStyle"),c=h.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var p=t.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=h.get("inactiveColor"),c.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function lj(r){var t=r.icon||"roundRect",e=he(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=B.color.neutral00,e.style.lineWidth=2),e}function JM(r,t,e,a){J0(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),K0(r,t,e,a)}function K0(r,t,e,a){e.usingTHL()||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function J0(r,t,e,a){e.usingTHL()||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}function uu(r,t,e){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),jM(s,n),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){A(n,function(l,u){s[l?"select":"unSelect"](u)}),jM(s,o)}),a?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function jM(r,t){var e=t||{};return A(r.getData(),function(a){var n=a.get("name");if(!(n===`
|
|
60
|
+
`||n==="")){var i=r.isSelected(n);J(e,n)?e[n]=e[n]&&i:e[n]=i}}),e}function uj(r){r.registerAction("legendToggleSelect","legendselectchanged",St(uu,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",St(uu,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",St(uu,"inverseSelect")),r.registerAction("legendSelect","legendselected",St(uu,"select")),r.registerAction("legendUnSelect","legendunselected",St(uu,"unSelect"))}var fj=Af(vj);function vj(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function IO(r){r.registerComponentModel($0),r.registerComponentView(DO),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,fj),r.registerSubTypeDefaulter("legend",function(){return"plain"}),uj(r)}var hj=function(r){N(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,a,n){var i=Xo(e);r.prototype.init.call(this,e,a,n),QM(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),QM(this,this.option,e)},t.type="legend.scroll",t.defaultOption=hi($0.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:B.color.accent50,pageIconInactiveColor:B.color.accent10,pageIconSize:15,pageTextStyle:{color:B.color.tertiary},animationDurationUpdate:800}),t}($0);function QM(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,Oa(t,e,{type:"box",ignoreSize:!!n})}var tD=it,Py=["width","height"],Ry=["x","y"],cj=function(r){N(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 tD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new tD)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var f=this._controllerGroup,v=a.get("pageIconSize",!0),h=H(v)?v:[v,v];p("pagePrev",0);var c=a.getModel("pageTextStyle");f.add(new It({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=Pf(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:q(u._pageGo,u,y,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=d,f.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Py[u],v=Ry[u],h=Py[1-u],c=Ry[1-u];o&&ho("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=at(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(e,i,y,u,f,h,c,v);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[v]-=_}m[f]+=d[f]+p,g[1-u]+=m[c]+m[h]/2-d[h]/2,m[h]=Math.max(m[h],d[h]),m[c]=Math.min(m[c],d[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,h=this._controllerGroup;ho(e.get("orient"),f,e.get("itemGap"),i?n.width:null,i?null:n.height),ho("horizontal",h,e.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=c[o]>n[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=j(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),v.setPosition(y),h.setPosition(m);var x={x:0,y:0};if(x[o]=d?n[o]:c[o],x[s]=Math.max(c[s],p[s]),x[l]=Math.min(0,p[l]+m[1-i]),v.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-p[o]-_,0),b[s]=x[s],v.setClipPath(new bt({shape:b})),v.__rectSize=b[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Rt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var v=f+"DataIndex",h=a[v]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Py[o],l=Ry[o],u=this._findTargetItemIndex(a),f=n.children(),v=f[u],h=f.length,c=h?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return p;var d=S(v);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(b){if(b){var w=b.getBoundingRect(),C=w[l]+b[l];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(DO);function pj(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function dj(r){_t(IO),r.registerComponentModel(hj),r.registerComponentView(cj),pj(r)}function gj(r){_t(IO),_t(dj)}var yj=function(r){N(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=hi(bf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(bf),BS=yt();function mj(r,t,e){BS(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function _j(r,t){for(var e=BS(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||LO(e,o))}}}function LO(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function Sj(r,t){var e={model:t,containsPoint:St(bj,t),dispatchAction:St(xj,r),dataZoomInfoMap:null,controller:null},a=e.controller=new jo(r.getZr());return A(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!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 xj(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function bj(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function wj(r,t,e){var a,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return r.each(function(u){var f=u.model,v=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;i[n+v]>i[n+a]&&(a=v),o=o&&f.get("preventDefaultMouseMove",!0),s=j(f.get("cursorGrab",!0),s),l=j(f.get("cursorGrabbing",!0),l)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function Tj(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(t,e){var a=BS(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=K());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=vO(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,Sj(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){LO(n,i);return}var f=wj(l,i,e);o.enable(f.controlType,f.opt),wl(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Cj=function(r){N(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,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),mj(n,e,{pan:q(Ey.pan,this),zoom:q(Ey.zoom,this),scrollMove:q(Ey.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){_j(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(IS),Ey={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=ky[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ii(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:eD(function(r,t,e,a,n,i){var o=ky[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:eD(function(r,t,e,a,n,i){var o=ky[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function eD(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(ii(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var ky={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.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=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function PO(r){LS(r),r.registerComponentModel(yj),r.registerComponentView(Cj),Tj(r)}var Aj=function(r){N(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=hi(bf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:B.color.accent10,borderRadius:0,backgroundColor:B.color.transparent,dataBackground:{lineStyle:{color:B.color.accent30,width:.5},areaStyle:{color:B.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:B.color.accent40,width:.5},areaStyle:{color:B.color.accent20,opacity:.3}},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:B.color.neutral00,borderColor:B.color.accent20},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:B.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:B.color.tertiary},brushSelect:!0,brushStyle:{color:B.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:B.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(bf),fu=bt,Mj=1,Oy=30,Dj=7,vu="horizontal",rD="vertical",Ij=5,Lj=["line","bar","candlestick","scatter"],Pj={easing:"cubicOut",duration:100,delay:0},Rj=function(r){N(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,a){this.api=a,this._onBrush=q(this._onBrush,this),this._onBrushEnd=q(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),wl(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}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Ju(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 a=this._displayables.sliderGroup=new it;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?Dj:0,o=_e(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===vu?{right:o.width-s.x-s.width,top:o.height-Oy-l-i,width:s.width,height:Oy}:{right:l,top:s.y,width:Oy,height:s.height},f=Xo(e.option);A(["right","top","width","height"],function(h){f[h]==="ph"&&(f[h]=u[h])});var v=Jt(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===rD&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===vu&&!o?{scaleY:l?1:-1,scaleX:1}:n===vu&&o?{scaleY:l?1:-1,scaleX:-1}:n===rD&&!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]),f=isNaN(u.x)?0:u.x,v=isNaN(u.y)?0:u.y;e.x=a.x-f,e.y=a.y-v,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new fu({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new fu({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:q(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var v=o.getDataExtent(e.thisDim),h=o.getDataExtent(l),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var p=[0,a[1]],d=[0,a[0]],g=[[a[0],0],[0,0]],y=[],m=d[1]/Math.max(1,o.count()-1),_=a[0]/(v[1]-v[0]),S=e.thisAxis.type==="time",x=-m,b=Math.round(o.count()/a[0]),w;o.each([e.thisDim,l],function(L,I,P){if(b>0&&P%b){S||(x+=m);return}x=S?(+L-v[0])*_:x+m;var R=I==null||isNaN(I)||I==="",E=R?0:kt(I,h,p,!0);R&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([x,0]),y.push([x,0])),R||(g.push([x,E]),y.push([x,E])),w=R}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var C=this.dataZoomModel;function T(L){var I=C.getModel(L?"selectedDataBackground":"dataBackground"),P=new it,R=new Ye({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new ke({shape:{points:f},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(E),P}for(var M=0;M<3;M++){var D=T(M===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&pt(Lj,u.get("type"))<0)){var f=i.getComponent(Hn(o),s).axis,v=Ej(o),h,c=u.coordinateSystem;v!=null&&c.getOtherAxis&&(h=c.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var p=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:p,otherDim:v,otherAxisInverse:h}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,v=l.get("brushSelect"),h=a.filler=new fu({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new fu({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:Mj,fill:B.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!vc[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=he(S,-1,0,2,2,null,!0);x.attr({cursor:kj(this._orient),draggable:!0,drift:q(this._onDragMove,this,_),ondragend:q(this._onDragEnd,this),onmouseover:q(this._onOverDataInfoTriggerArea,this,!0),onmouseout:q(this._onOverDataInfoTriggerArea,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=$(w,this._size[1]),this._handleWidth=b.width/b.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(),vo(x);var C=l.get("handleColor");C!=null&&(x.style.fill=C),o.add(n[_]=x);var T=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;e.add(i[_]=new It({silent:!0,invisible:!D,style:Yt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var c=h;if(v){var p=$(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new bt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=he(l.get("moveHandleIcon"),-g/2,-g/2,g,g,B.color.neutral00,!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=a.moveZone=new bt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:"grab",drift:q(this._onActualMoveZoneDrift,this),ondragstart:q(this._onActualMoveZoneDragStart,this),ondragend:q(this._onActualMoveZoneDragEnd,this),onmouseover:q(this._onOverDataInfoTriggerArea,this,!0),onmouseout:q(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[kt(e[0],[0,100],a,!0),kt(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ii(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?kt(s.minSpan,l,o,!0):null,s.maxSpan!=null?kt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Ee([kt(i[0],o,l,!0),kt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Ee(n.slice()),o=this._size;A([0,1],function(c){var p=a.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var v=l[f],h=v.getClipPath();h||(h=new bt,v.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,v;if(e){var h={start:f[0],end:f[1]},c=cO(a,l);if(c){var p=c.calculateDataWindow(h).percentInverted;h={start:p[0],end:p[1]}}v=l.calculateDataWindow(h)}else v=l.getWindow();s=[aD(a,0,v,u),aD(a,1,v,u)]}}var d=Ee(this._handleEnds.slice());g.call(this,0),g.call(this,1);function g(y){var m=zs(n.handles[y].parent,this.group),_=Ap(y===0?"right":"left",m),S=this._handleWidth/2+Ij,x=Jr([d[y]+(y===0?-S:S),this._size[1]/2],m);i[y].setStyle({x:x[0],y:x[1],verticalAlign:o===vu?"middle":_,align:o===vu?_:"center",text:s[y]})}},t.prototype._onOverDataInfoTriggerArea=function(e){this._isOverDataInfoTriggerArea=e,this._showDataInfo(e)},t.prototype._showDataInfo=function(e){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onActualMoveZoneDrift=function(e,a,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",e,a,n)},t.prototype._onActualMoveZoneDragStart=function(e){e.target.attr("cursor","grabbing"),this._showDataInfo(!0)},t.prototype._onActualMoveZoneDragEnd=function(e){e.target.attr("cursor","grab"),this._onDragEnd()},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,on(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Jr([a,n],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._isOverDataInfoTriggerArea||this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new lt(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ii(0,l,o,0,u.minSpan!=null?kt(u.minSpan,s,o,!0):null,u.maxSpan!=null?kt(u.maxSpan,s,o,!0):null),this._range=Ee([kt(l[0],o,s,!0),kt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(on(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new fu({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Pj:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=vO(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(IS);function aD(r,t,e,a){var n=r.get("labelFormatter"),i=r.get("labelPrecision");(i==null||i==="auto")&&(i=e.valuePrecision);var o=e.value[t],s=o==null||isNaN(o)?"":Xe(a)||Bf(a)?a.getLabel({value:Math.round(o)}):isFinite(i)?Pt(o,i,!0):o+"";return nt(n)?n(o,s):Z(n)?n.replace("{value}",s):s}function Ej(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function kj(r){return r==="vertical"?"ns-resize":"ew-resize"}function RO(r){r.registerComponentModel(Aj),r.registerComponentView(Rj),LS(r)}function Oj(r){_t(PO),_t(RO)}var EO={get:function(r,t,e){var a=at((Nj[r]||{})[t]);return e&&H(a)?a[a.length-1]:a}},Nj={color:{active:["#006edd","#e0ffff"],inactive:[B.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},nD=be.mapVisual,Bj=be.eachVisual,Vj=H,Ny=A,zj=Ee,Gj=kt,tp=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&wO(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=q(e,this),this.controllerVisuals=Y0(this.option.controller,a,e),this.targetVisuals=Y0(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,a=this.option.seriesTargets;if(a){var n=[];return Ny(a,function(l){if(l.seriesIndex!=null)n.push(l.seriesIndex);else if(l.seriesId!=null){var u;e.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&n.push(u.componentIndex)}}),n}var i=this.option.seriesId,o=this.option.seriesIndex;o==null&&i==null&&(o="all");var s=gl(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return W(s,function(l){return l.componentIndex})},t.prototype.eachTargetSeries=function(e,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],H(e)&&(e=e.slice(),u=!0);var f=a?e:u?[v(e[0]),v(e[1])]:v(e);if(Z(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(nt(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function v(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=zj([e.min,e.max]);this._dataExtent=a},t.prototype.getDimension=function(e){var a=this,n=this.option.seriesTargets;if(n){var i=ui(n,function(o){return o.seriesIndex!=null&&o.seriesIndex===e||o.seriesId!=null&&o.seriesId===a.ecModel.getSeriesByIndex(e).id});if(i)return i.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var a=e.hostModel.seriesIndex,n=this.getDimension(a);if(n!=null)return e.getDimensionIndex(n);for(var i=e.dimensions,o=i.length-1;o>=0;o--){var s=i[o],l=e.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});mt(i,n),mt(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(v){Vj(a.color)&&!v.inRange&&(v.inRange={color:a.color.slice().reverse()}),v.inRange=v.inRange||{color:e.get("gradientColor")}}function u(v,h,c){var p=v[h],d=v[c];p&&!d&&(d=v[c]={},Ny(p,function(g,y){if(be.isValidType(y)){var m=EO.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(v){var h=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,c=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";Ny(this.stateList,function(y){var m=this.itemSize,_=v[y];_||(_=v[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=h&&at(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&at(c)||(s?m[0]:[m[0],m[0]])),_.symbol=nD(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;Bj(S,function(b){b>x&&(x=b)}),_.symbolSize=nD(S,function(b){return Gj(b,[0,x],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:B.color.transparent,borderColor:B.color.borderTint,contentColor:B.color.theme[0],inactiveColor:B.color.disabled,borderWidth:0,padding:B.size.m,textGap:10,precision:0,textStyle:{color:B.color.secondary}},t}(Tt),iD=[20,140],Fj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=iD[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=iD[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):H(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Ee((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,n=this.getExtent(),i=j(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=e)&&(i&&a[1]>=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=oD(this,"outOfRange",this.getExtent()),n=oD(this,"inRange",this.option.range.slice()),i=[];function o(c,p){i.push({value:c,color:e(c,p)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var v=1;s<u;s++,v=0)v&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var v=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=hi(tp.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:B.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:B.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:B.color.shadow}}),t}(tp);function oD(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,n=(e[1]-e[0])/a,i=e[0],o=[],s=0;s<=a&&i<e[1];s++)o.push(i),i+=n;return o.push(e[1]),o}var kO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,n,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,n,i)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,n=Rf(a.get("padding")||0),i=e.getBoundingRect();e.add(new bt({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(c){return s[c]}function f(c,p){s[c]=p}var v=o.controllerVisuals[i||o.getValueState(e)],h=be.prepareVisualTypes(v);return A(h,function(c){var p=v[c];n.convertOpacityToAlpha&&c==="opacity"&&(c="colorAlpha",p=v.__alphaForOpacity),be.dependsOn(c,a)&&p&&p.applyVisual(e,u,f)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api,i=_e(a,n).refContainer;Pp(e,a.getBoxLayoutParams(),i)},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t}(qt),sD=[["left","right","width"],["top","bottom","height"]];function OO(r,t,e){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=sD[o],l=[0,null,10],u={},f=0;f<3;f++)u[sD[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:a[s[f]];var v=[["x","width",3],["y","height",0]][o],h=Jt(u,i,a.padding);return s[(h.margin[v[2]]||0)+h[v[0]]+h[v[1]]*.5<i[v[1]]*.5?0:1]}function zh(r,t){return A(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var ca=kt,Hj=A,lD=Math.min,By=Math.max,Wj=12,Uj=6,Yj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=q(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=q(this._hideIndicator,this)},t.prototype.doRender=function(e,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),v=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new It({style:Yt(c,{x:f[0],y:f[1],verticalAlign:c.get("verticalAlign")||(h==="horizontal"?"middle":v),align:c.get("align")||(h==="horizontal"?v:"center"),text:i})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=OO(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new it;u.add(f),f.add(n.outOfRange=uD()),f.add(n.inRange=uD(null,s?vD(this._orient):null,q(this._dragHandle,this,"all",!1),q(this._dragHandle,this,"all",!0))),f.setClipPath(new bt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=a.textStyleModel.getTextRect("国"),h=By(v.width,v.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),e.add(u)},t.prototype._createHandle=function(e,a,n,i,o,s){var l=q(this._dragHandle,this,n,!1),u=q(this._dragHandle,this,n,!0),f=Ra(e.get("handleSize"),i[0]),v=he(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=vD(this._orient);v.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){on(y.event)}}),v.x=i[0]/2,v.useStyle(e.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),ro(v,!0),a.add(v);var c=this.visualMapModel.textStyleModel,p=new It({cursor:h,draggable:!0,drift:l,onmousemove:function(y){on(y.event)},ondragend:u,style:Yt(c,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[n]=v,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},t.prototype._createIndicator=function(e,a,n,i,o){var s=Ra(e.get("indicatorSize"),n[0]),l=he(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Ie){var f=l.style;l.useStyle(G({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var v=this.visualMapModel.textStyleModel,h=new It({silent:!0,invisible:!0,style:Yt(v,{x:0,y:0,text:""})});this.group.add(h);var c=[(o==="horizontal"?i/2:Uj)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=c,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():fD(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[ca(a[0],n,i,!0),ca(a[1],n,i,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];ii(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[ca(i[0],o,s,!0),ca(i[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new ei(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new it(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);Hj([0,1],function(v){var h=o[v];h.setStyle("fill",a.handlesColor[v]),h.y=e[v];var c=ca(e[v],[0,l[1]],u,!0),p=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=p/l[0],h.x=l[0]-p/2;var d=Jr(n.handleLabelPoints[v],zs(h,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[v].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,v=f.indicator;if(v){v.attr("invisible",!1);var h={convertOpacityToAlpha:!0},c=this.getControllerVisual(e,"color",h),p=this.getControllerVisual(e,"symbolSize"),d=ca(e,s,u,!0),g=l[0]-p/2,y={x:v.x,y:v.y};v.y=d,v.x=g;var m=Jr(f.indicatorLabelPoint,zs(v,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:d,style:{fill:c}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(w,T),_.animateTo(C,T)}else v.attr(w),_.attr(C);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this.api.enterBlur(M[D])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);i[1]=lD(By(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();e=lD(By(o[0],e),o[1]);var l=Xj(n,s,o),u=[e-l,e+l],f=ca(e,o,s,!0),v=[ca(u[0],o,s,!0),ca(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),a&&(v[0]===-1/0?this._showIndicator(f,v[1],"< ",l):v[1]===1/0?this._showIndicator(f,v[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,c=[];(a||fD(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(v));var p=oV(h,c);this._dispatchHighDown("downplay",zh(p[0],n)),this._dispatchHighDown("highlight",zh(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(no(e.target,function(l){var u=ft(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",zh(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=zs(a,i?null:this.group);return H(e)?Jr(e,o,n):Ap(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(kO);function uD(r,t,e,a){return new Ye({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){on(n.event)},ondragend:a})}function Xj(r,t,e){var a=Wj/2,n=r.get("hoverLinkDataSize");return n&&(a=ca(n,t,e,!0)/2),a}function fD(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function vD(r){return r==="vertical"?"ns-resize":"ew-resize"}var Zj={type:"selectDataRange",event:"dataRangeSelected",update:"update"},$j=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},qj=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(dJ(a.stateList,a.targetVisuals,q(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(q(Kj,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function Kj(r,t,e,a){for(var n=t.targetVisuals[a],i=be.prepareVisualTypes(n),o={color:Of(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,v,h)}return o.color;function v(c){return o[c]}function h(c,p){o[c]=p}}var hD=A;function Jj(r){var t=r&&r.visualMap;H(t)||(t=t?[t]:[]),hD(t,function(e){if(e){xs(e,"splitList")&&!xs(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&H(a)&&hD(a,function(n){ut(n)&&(xs(n,"start")&&!xs(n,"min")&&(n.min=n.start),xs(n,"end")&&!xs(n,"max")&&(n.max=n.end))})}})}function xs(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var cD=!1;function NO(r){cD||(cD=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Zj,$j),A(qj,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Jj))}function BO(r){r.registerComponentModel(Fj),r.registerComponentView(Yj),NO(r)}var jj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],Qj[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=at(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=W(this._pieceList,function(l){return l=at(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=be.listVisualTypes(),i=this.isCategory();A(e.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&A(this.stateList,function(f){(e[f]||(e[f]={}))[l]=EO.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=at(e)},t.prototype.getValueState=function(e){var a=be.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=be.findPieceIndex(l,n);f===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,v){var h=i.getRepresentValue({interval:f});v||(v=i.getValueState(h));var c=e(h,v);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(f){var v=f.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=hi(tp.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(tp),Qj={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),Ax(r),A(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;A(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),pD(t,r)},pieces:function(r){var t=this.option;A(t.pieces,function(e,a){ut(e)||(e={value:e});var n={text:"",index:a};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],v=0;v<2;v++){for(var h=[["gte","gt","min"],["lte","lt","max"]][v],c=0;c<3&&o[v]==null;c++)o[v]=e[h[c]],s[v]=l[c],f[v]=c===2;o[v]==null&&(o[v]=u[v])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=be.retrieveVisuals(e),r.push(n)},this),pD(t,r),Ax(r),A(r,function(e){var a=e.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function pD(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var tQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=je(a.get("showLabel",!0),!u),v=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),A(l.viewPieceList,function(h){var c=h.piece,p=new it;p.onclick=q(this._onItemClick,this,c),this._enableHoverLink(p,h.indexInModelPieceList);var d=a.getRepresentValue(c);if(this._createItemSymbol(p,d,[0,0,s[0],s[1]],v),f){var g=this.visualMapModel.getValueState(d),y=i.get("align")||o;p.add(new It({style:Yt(i,{x:y==="right"?-n:s[0]+n,y:s[1]/2,text:c.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:j(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:v}))}e.add(p)},this),u&&this._renderEndsText(e,u[1],s,f,o),ho(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:zh(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return OO(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new it,l=this.visualMapModel.textStyleModel;s.add(new It({style:Yt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=W(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=he(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=at(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(kO);function VO(r){r.registerComponentModel(jj),r.registerComponentView(tQ),NO(r)}function eQ(r){_t(BO),_t(VO)}var rQ=function(){function r(t){this._thumbnailModel=t}return r.prototype.reset=function(t){this._renderVersion=t.getECUpdateCycleVersion()},r.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:ML(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(t,e){var a=e.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},r}(),aQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.optionUpdated=function(e,a){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new rQ(this);if(this._target=null,this.ecModel.eachSeries(function(n){XC(n,null)}),this.shouldShow()){var a=this.getTarget();XC(a.baseMapProvider,e)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:B.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:B.color.neutral30,borderColor:B.color.neutral40,opacity:.3},z:10},t}(Tt),nQ=function(r){N(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,a,n){if(this._api=n,this._model=e,this._coordSys||(this._coordSys=new $p),!this._isEnabled()){this._clear();return}this._renderVersion=n.getECUpdateCycleVersion();var i=this.group;i.removeAll();var o=e.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||B.color.neutral00);var l=_e(e,n).refContainer,u=Jt(e2(e,!0),l),f=s.lineWidth||0,v=this._contentRect=bo(u.clone(),f/2,!0,!0),h=new it;i.add(h),h.setClipPath(new bt({shape:v.plain()}));var c=this._targetGroup=new it;h.add(c);var p=u.plain();p.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new bt({style:s,shape:p,silent:!1,cursor:"grab"}));var d=e.getModel("windowStyle"),g=d.getShallow("borderRadius",!0);h.add(this._windowRect=new bt({shape:{x:0,y:0,width:0,height:0,r:g},style:d.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),gD(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),gD(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!e){var o=e.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=e.z2Range.min-10,qp(n,s.x,s.y,s.width,s.height);var l=Jt({left:"center",top:"center",aspect:s.width/s.height},i);kc(n,l.x,l.y,l.width,l.height),pf(o,n,Ro),o.dirty(),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var a=this._bridgeRendered;a&&a.renderVersion===e.renderVersion&&(a.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=Vr([],e.targetTrans),n=Or([],Ec(null,this._coordSys),a);this._transThisToTarget=Vr([],n);var i=e.viewportRect;i?i=i.clone():i=new ot(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(st({r:s},i))}},t.prototype._resetRoamController=function(e){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new jo(n.getZr())),!e||!this._isEnabled()){i.disable();return}i.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",q(this._onPan,this)).on("zoom",q(this._onZoom,this))},t.prototype._onPan=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ae([],[e.oldX,e.oldY],a),i=ae([],[e.oldX-e.dx,e.oldY-e.dy],a);this._api.dispatchAction(dD(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},t.prototype._onZoom=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ae([],[e.originX,e.originY],a);this._api.dispatchAction(dD(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;if(!e||!e.shouldShow())return!1;var a=e.getTarget().baseMapProvider;return!!a},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(qt);function dD(r,t){var e=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:e};return a[r.mainType+"Id"]=r.id,G(a,t),a}function gD(r,t){var e=wo(r);Mp(t.group,e.z,e.zlevel)}function iQ(r){r.registerComponentModel(aQ),r.registerComponentView(nQ)}var oQ={label:{enabled:!0},decal:{show:!1}},yD=yt(),mD=yt(),sQ=Af(lQ);function lQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=mD(r).scope||(mD(r).scope={}),n=at(oQ);mt(n.label,r.getLocaleModel().get("aria"),!1),mt(e.option,n,!1),i(),o();function i(){var f=e.getModel("decal"),v=f.get("show");if(v){var h=K();r.eachSeries(function(c){c.isColorBySeries()||(yD(c).scope=h.get(c.type)||h.set(c.type,{}))}),r.eachSeries(function(c){if(nt(c.enableAriaDecal)){c.enableAriaDecal();return}var p=c.getData();if(c.isColorBySeries()){var _=Nm(c.ecModel,c.name,a,r.getSeriesCount()),S=p.getVisual("decal");p.setVisual("decal",x(S,_))}else{var d=c.getRawData(),g={},y=yD(c).scope;p.each(function(b){var w=p.getRawIndex(b);g[w]=b});var m=d.count();d.each(function(b){var w=g[b],C=d.getName(b)||b+"",T=Nm(c.ecModel,C,y,m),M=p.getItemVisual(w,"decal");p.setItemVisual(w,"decal",x(M,T))})}function x(b,w){var C=b?G(G({},w),b):w;return C.dirty=!0,C}})}}function o(){var f=t.getZr().dom;if(f){var v=r.getLocaleModel().get("aria"),h=e.getModel("label");if(h.option=st(h.option,v),!!h.get("enabled")){if(f.setAttribute("role","img"),h.get("description")){f.setAttribute("aria-label",h.get("description"));return}var c=r.getSeriesCount(),p=h.get(["data","maxCount"])||10,d=h.get(["series","maxCount"])||10,g=Math.min(c,d),y;if(!(c<1)){var m=l();if(m){var _=h.get(["general","withTitle"]);y=s(_,{title:m})}else y=h.get(["general","withoutTitle"]);var S=[],x=c>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);y+=s(x,{seriesCount:c}),r.eachSeries(function(T,M){if(M<g){var D=void 0,L=T.get("name"),I=L?"withName":"withoutName";D=c>1?h.get(["series","multiple",I]):h.get(["series","single",I]),D=s(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var P=T.getData();if(P.count()>p){var R=h.get(["data","partialData"]);D+=s(R,{displayCnt:p})}else D+=h.get(["data","allData"]);for(var E=h.get(["data","separator","middle"]),O=h.get(["data","separator","end"]),k=h.get(["data","excludeDimensionId"]),V=[],z=0;z<P.count();z++)if(z<p){var F=P.getName(z),U=k?Bt(P.getValues(z),function(Y,Q){return pt(k,Q)===-1}):P.getValues(z),X=h.get(["data",F?"withName":"withoutName"]);V.push(s(X,{name:F,value:U.join(E)}))}D+=V.join(E)+O,S.push(D)}});var b=h.getModel(["series","multiple","separator"]),w=b.get("middle"),C=b.get("end");y+=S.join(w)+C,f.setAttribute("aria-label",y)}}}}function s(f,v){if(!Z(f))return f;var h=f;return A(v,function(c,p){h=h.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),c)}),h}function l(){var f=r.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var v=r.getLocaleModel().get(["series","typeNames"]);return v[f]||v.chart}}function uQ(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},A(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function fQ(r){r.registerPreprocessor(uQ),r.registerVisual(r.PRIORITY.VISUAL.ARIA,sQ)}var _D={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},vQ=function(){function r(t){var e=this._condVal=Z(t)?new RegExp(t):gN(t)?t:null;if(e==null){var a="";Ot(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return Z(e)?this._condVal.test(t):Lt(e)?this._condVal.test(t+""):!1},r}(),hQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),cQ=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}(),pQ=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}(),dQ=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),gQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,a=e(this.valueGetterParam),n=t?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:a))return!1;return!0},r}();function VS(r,t){if(r===!0||r===!1){var e=new hQ;return e.value=r,e}var a="";return zO(r)||Ot(a),r.and?SD("and",r,t):r.or?SD("or",r,t):r.not?yQ(r,t):mQ(r,t)}function SD(r,t,e){var a=t[r],n="";H(a)||Ot(n),a.length||Ot(n);var i=r==="and"?new cQ:new pQ;return i.children=W(a,function(o){return VS(o,e)}),i.children.length||Ot(n),i}function yQ(r,t){var e=r.not,a="";zO(e)||Ot(a);var n=new dQ;return n.child=VS(e,t),n.child||Ot(a),n}function mQ(r,t){for(var e="",a=t.prepareGetValue(r),n=[],i=Ct(r),o=r.parser,s=o?x2(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=J(_D,u)?_D[u]:u,v=r[u],h=s?s(v):v,c=DG(f,h)||f==="reg"&&new vQ(h);c||Ot(e),n.push(c)}}n.length||Ot(e);var p=new gQ;return p.valueGetterParam=a,p.valueParser=s,p.getValue=t.getValue,p.subCondList=n,p}function zO(r){return ut(r)&&!He(r)}var _Q=function(){function r(t,e){this._cond=VS(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function SQ(r,t){return new _Q(r,t)}var xQ={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,a=SQ(r.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;J(s,"dimension")||Ot(l);var f=t.getDimensionInfo(u);return f||Ot(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),n=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),a.evaluate()&&n.push(e);return{data:n}}},bQ={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,a="",n=Wt(e);n.length||Ot(a);var i=[];A(n,function(f){var v=f.dimension,h=f.order,c=f.parser,p=f.incomparable;if(v==null&&Ot(a),h!=="asc"&&h!=="desc"&&Ot(a),p&&p!=="min"&&p!=="max"){var d="";Ot(d)}if(h!=="asc"&&h!=="desc"){var g="";Ot(g)}var y=t.getDimensionInfo(v);y||Ot(a);var m=c?x2(c):null;c&&!m&&Ot(a),i.push({dimIdx:y.index,parser:m,comparator:new w2(h,p)})});var o=t.sourceFormat;o!==De&&o!==xr&&Ot(a);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,v){for(var h=0;h<i.length;h++){var c=i[h],p=t.retrieveValueFromItem(f,c.dimIdx),d=t.retrieveValueFromItem(v,c.dimIdx);c.parser&&(p=c.parser(p),d=c.parser(d));var g=c.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function wQ(r){r.registerTransform(xQ),r.registerTransform(bQ)}var TQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,n){r.prototype.init.call(this,e,a,n),this._sourceManager=new I2(this),Fb(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),Fb(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Kr},t}(Tt),CQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(qt);function AQ(r){r.registerComponentModel(TQ),r.registerComponentView(CQ)}var va=Ea.CMD;function ks(r,t){return Math.abs(r-t)<1e-5}function j0(r){var t=r.data,e=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(I,P){n&&n.length>2&&a.push(n),n=[I,P]}function f(I,P,R,E){ks(I,R)&&ks(P,E)||n.push(I,P,R,E,R,E)}function v(I,P,R,E,O,k){var V=Math.abs(P-I),z=Math.tan(V/4)*4/3,F=P<I?-1:1,U=Math.cos(I),X=Math.sin(I),Y=Math.cos(P),Q=Math.sin(P),gt=U*O+R,Et=X*k+E,vt=Y*O+R,tt=Q*k+E,dt=O*z*F,et=k*z*F;n.push(gt-dt*X,Et+et*U,vt+dt*Q,tt-et*Y,vt,tt)}for(var h,c,p,d,g=0;g<e;){var y=t[g++],m=g===1;switch(m&&(i=t[g],o=t[g+1],s=i,l=o,(y===va.L||y===va.C||y===va.Q)&&(n=[s,l])),y){case va.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case va.L:h=t[g++],c=t[g++],f(i,o,h,c),i=h,o=c;break;case va.C:n.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case va.Q:h=t[g++],c=t[g++],p=t[g++],d=t[g++],n.push(i+2/3*(h-i),o+2/3*(c-o),p+2/3*(h-p),d+2/3*(c-d),p,d),i=p,o=d;break;case va.A:var _=t[g++],S=t[g++],x=t[g++],b=t[g++],w=t[g++],C=t[g++]+w;g+=1;var T=!t[g++];h=Math.cos(w)*x+_,c=Math.sin(w)*b+S,m?(s=h,l=c,u(s,l)):f(i,o,h,c),i=Math.cos(C)*x+_,o=Math.sin(C)*b+S;for(var M=(T?-1:1)*Math.PI/2,D=w;T?D>C:D<C;D+=M){var L=T?Math.max(D+M,C):Math.min(D+M,C);v(D,L,_,S,x,b)}break;case va.R:s=i=t[g++],l=o=t[g++],h=s+t[g++],c=l+t[g++],u(h,l),f(h,l,h,c),f(h,c,s,c),f(s,c,s,l),f(s,l,h,l);break;case va.Z:n&&f(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function Q0(r,t,e,a,n,i,o,s,l,u){if(ks(r,e)&&ks(t,a)&&ks(n,o)&&ks(i,s)){l.push(o,s);return}var f=2/u,v=f*f,h=o-r,c=s-t,p=Math.sqrt(h*h+c*c);h/=p,c/=p;var d=e-r,g=a-t,y=n-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_<v&&S<v){l.push(o,s);return}var x=h*d+c*g,b=-h*y-c*m,w=_-x*x,C=S-b*b;if(w<v&&x>=0&&C<v&&b>=0){l.push(o,s);return}var T=[],M=[];Qn(r,e,n,o,.5,T),Qn(t,a,i,s,.5,M),Q0(T[0],M[0],T[1],M[1],T[2],M[2],T[3],M[3],l,u),Q0(T[4],M[4],T[5],M[5],T[6],M[6],T[7],M[7],l,u)}function MQ(r,t){var e=j0(r),a=[];t=t||1;for(var n=0;n<e.length;n++){var i=e[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],v=i[u++],h=i[u++],c=i[u++],p=i[u++],d=i[u++];Q0(s,l,f,v,h,c,p,d,o,t),s=p,l=d}a.push(o)}return a}function GO(r,t,e){var a=r[t],n=r[1-t],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*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,v=e-f;if(v>0)for(var u=0;u<v;u++)l[u%o]+=1;return l}function xD(r,t,e){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,f=l>Math.abs(u),v=GO([l,u],f?0:1,t),h=(f?s:u)/v.length,c=0;c<v.length;c++)for(var p=(f?u:s)/v[c],d=0;d<v[c];d++){var g={};f?(g.startAngle=i+h*c,g.endAngle=i+h*(c+1),g.r0=a+p*d,g.r=a+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=a+h*c,g.r=a+h*(c+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function DQ(r,t,e){for(var a=r.width,n=r.height,i=a>n,o=GO([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",v=r[s]/o.length,h=0;h<o.length;h++)for(var c=r[l]/o[h],p=0;p<o[h];p++){var d={};d[u]=h*v,d[f]=p*c,d[s]=v,d[l]=c,d.x+=r.x,d.y+=r.y,e.push(d)}}function bD(r,t,e,a){return r*a-e*t}function IQ(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,v=s-i,h=bD(f,v,l,u);if(Math.abs(h)<1e-6)return null;var c=r-n,p=t-i,d=bD(c,p,f,v)/h;return d<0||d>1?null:new lt(d*l+r,d*u+t)}function LQ(r,t,e){var a=new lt;lt.sub(a,e,t),a.normalize();var n=new lt;lt.sub(n,r,t);var i=n.dot(a);return i}function bs(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function PQ(r,t,e){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=IQ(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&n.push({projPt:LQ(l,t,e),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,y){return g.projPt-y.projPt});var u=n[0],f=n[n.length-1];if(f.idx<u.idx){var v=u;u=f,f=v}for(var h=[u.pt.x,u.pt.y],c=[f.pt.x,f.pt.y],p=[h],d=[c],i=u.idx+1;i<=f.idx;i++)bs(p,r[i].slice());bs(p,c),bs(p,h);for(var i=f.idx+1;i<=u.idx+a;i++)bs(d,r[i%a].slice());return bs(d,h),bs(d,c),[{points:p},{points:d}]}function wD(r){var t=r.points,e=[],a=[];mp(t,e,a);var n=new ot(e[0],e[1],a[0]-e[0],a[1]-e[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new lt,f=new lt;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),PQ(t,u,f)}function ep(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);ep(r,i[0],n,a),ep(r,i[1],e-n,a)}return a}function RQ(r,t){for(var e=[],a=0;a<t;a++)e.push(L_(r));return e}function EQ(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function kQ(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function OQ(r,t){var e=[],a=r.shape,n;switch(r.type){case"rect":DQ(a,t,e),n=bt;break;case"sector":xD(a,t,e),n=Ue;break;case"circle":xD({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},t,e),n=Ue;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=W(MQ(r.getUpdatedPathProxy(),o),function(y){return kQ(y)}),l=s.length;if(l===0)ep(wD,{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,v=W(s,function(y){var m=[],_=[];mp(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});v.sort(function(y,m){return m.area-y.area});for(var h=t,u=0;u<l;u++){var c=v[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(c.area/f*t);p<0||(ep(wD,{points:c.poly},p,e),h-=p)}}n=Ye;break}if(!n)return RQ(r,t);for(var d=[],u=0;u<e.length;u++){var g=new n;g.setShape(e[u]),EQ(r,g),d.push(g)}return d}function NQ(r,t){var e=r.length,a=t.length;if(e===a)return[r,t];for(var n=[],i=[],o=e<a?r:t,s=Math.min(e,a),l=Math.abs(a-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,v=[o[0],o[1]],h=l,c=2;c<s;){var p=o[c-2],d=o[c-1],g=o[c++],y=o[c++],m=o[c++],_=o[c++],S=o[c++],x=o[c++];if(h<=0){v.push(g,y,m,_,S,x);continue}for(var b=Math.min(h,f-1)+1,w=1;w<=b;w++){var C=w/b;Qn(p,g,m,S,C,n),Qn(d,y,_,x,C,i),p=n[3],d=i[3],v.push(n[1],i[1],n[2],i[2],p,d),g=n[5],y=i[5],m=n[6],_=i[6]}h-=b-1}return o===r?[v,t]:[r,v]}function TD(r,t){for(var e=r.length,a=r[e-2],n=r[e-1],i=[],o=0;o<t.length;)i[o++]=a,i[o++]=n;return i}function BQ(r,t){for(var e,a,n,i=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,v=void 0;l?u?(e=NQ(l,u),f=e[0],v=e[1],a=f,n=v):(v=TD(n||l,l),f=l):(f=TD(a||u,u),v=u),i.push(f),o.push(v)}return[i,o]}function CD(r){for(var t=0,e=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],v=s*f-u*l;t+=v,e+=(s+u)*v,a+=(l+f)*v}return t===0?[r[0]||0,r[1]||0]:[e/t/3,a/t/3,t]}function VQ(r,t,e,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var f=u*6,v=0,h=0;h<s;h+=2){var c=h===0?f:(f+h-2)%l+2,p=r[c]-e[0],d=r[c+1]-e[1],g=t[h]-a[0],y=t[h+1]-a[1],m=g-p,_=y-d;v+=m*m+_*_}v<i&&(i=v,o=u)}return o}function zQ(r){for(var t=[],e=r.length,a=0;a<e;a+=2)t[a]=r[e-a-2],t[a+1]=r[e-a-1];return t}function GQ(r,t,e,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=CD(s),f=CD(l);i==null&&(i=u[2]<0!=f[2]<0);var v=[],h=[],c=0,p=1/0,d=[],g=s.length;i&&(s=zQ(s));for(var y=VQ(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;v[_+2]=s[S]-u[0],v[_+3]=s[S+1]-u[1]}v[0]=s[y]-u[0],v[1]=s[y+1]-u[1];for(var x=a/e,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),C=Math.cos(b),T=0,_=0;_<s.length;_+=2){var M=v[_],D=v[_+1],L=l[_]-f[0],I=l[_+1]-f[1],P=L*C-I*w,R=L*w+I*C;d[_]=P,d[_+1]=R;var E=P-M,O=R-D;T+=E*E+O*O}if(T<p){p=T,c=b;for(var k=0;k<d.length;k++)h[k]=d[k]}}n.push({from:v,to:h,fromCp:u,toCp:f,rotation:-c})}return n}function rp(r){return r.__isCombineMorphing}var FO="__mOriginal_";function ap(r,t,e){var a=FO+t,n=r[a]||r[t];r[a]||(r[a]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function Vu(r,t){var e=FO+t;r[e]&&(r[t]=r[e],r[e]=null)}function AD(r,t){for(var e=0;e<r.length;e++)for(var a=r[e],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=t[0]*i+t[2]*o+t[4],a[n++]=t[1]*i+t[3]*o+t[5]}}function HO(r,t){var e=r.getUpdatedPathProxy(),a=t.getUpdatedPathProxy(),n=BQ(j0(e),j0(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&AD(i,s),l&&AD(o,l),ap(t,"updateTransform",{replace:u}),t.transform=null;var f=GQ(i,o,10,Math.PI),v=[];ap(t,"buildPath",{replace:function(h){for(var c=t.__morphT,p=1-c,d=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*c,x=y.fromCp,b=y.toCp,w=Math.sin(S),C=Math.cos(S);dh(d,x,b,c);for(var T=0;T<m.length;T+=2){var M=m[T],D=m[T+1],L=_[T],I=_[T+1],P=M*p+L*c,R=D*p+I*c;v[T]=P*C-R*w+d[0],v[T+1]=P*w+R*C+d[1]}var E=v[0],O=v[1];h.moveTo(E,O);for(var T=2;T<m.length;){var L=v[T++],I=v[T++],k=v[T++],V=v[T++],z=v[T++],F=v[T++];E===L&&O===I&&k===z&&V===F?h.lineTo(z,F):h.bezierCurveTo(L,I,k,V,z,F),E=z,O=F}}}})}function zS(r,t,e){if(!r||!t)return t;var a=e.done,n=e.during;HO(r,t),t.__morphT=0;function i(){Vu(t,"buildPath"),Vu(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},st({during:function(o){t.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},e)),t}function FQ(r,t,e,a,n,i){var o=16;r=n===e?0:Math.round(32767*(r-e)/(n-e)),t=i===a?0:Math.round(32767*(t-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(t&u)>0&&(v=1),s+=u*u*(3*f^v),v===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function np(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=W(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),v=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(v,e),a=Math.max(f,a),n=Math.max(v,n),[f,v]}),o=W(i,function(s,l){return{cp:s,z:FQ(s[0],s[1],t,e,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function WO(r){return OQ(r.path,r.count)}function t_(){return{fromIndividuals:[],toIndividuals:[],count:0}}function HQ(r,t,e){var a=[];function n(x){for(var b=0;b<x.length;b++){var w=x[b];rp(w)?n(w.childrenRef()):w instanceof wt&&a.push(w)}}n(r);var i=a.length;if(!i)return t_();var o=e.dividePath||WO,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),t_();a=np(a),s=np(s);for(var l=e.done,u=e.during,f=e.individualDelay,v=new za,h=0;h<i;h++){var c=a[h],p=s[h];p.parent=t,p.copyTransform(v),f||HO(c,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function d(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}ap(t,"addSelfToZr",{after:function(x){d(x)}}),ap(t,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Vu(t,"addSelfToZr"),Vu(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var S=f?st({delay:(e.delay||0)+f(h,y,a[h],s[h]),done:_},e):e;zS(a[h],s[h],S)}else t.__morphT=0,t.animateTo({__morphT:1},st({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)Vu(r[x],"updateTransform");l&&l()}},e));return t.__zr&&d(t.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}function WQ(r,t,e){var a=t.length,n=[],i=e.dividePath||WO;function o(c){for(var p=0;p<c.length;p++){var d=c[p];rp(d)?o(d.childrenRef()):d instanceof wt&&n.push(d)}}if(rp(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(L_(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var f=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),t_()}n=np(n),t=np(t);for(var v=e.individualDelay,u=0;u<a;u++){var h=v?st({delay:(e.delay||0)+v(u,a,n[u],t[u])},e):e;zS(n[u],t[u],h)}return{fromIndividuals:n,toIndividuals:t,count:t.length}}function MD(r){return H(r[0])}function DD(r,t){for(var e=[],a=r.length,n=0;n<a;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var i=t[n].length,o=void 0;for(o=0;o<i;o++)e[o%a].many.push(t[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var UQ={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=L_(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function Vy(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=Sl("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=G({setToFinal:!0},o),u,f;MD(r)&&(u=r,f=t),MD(t)&&(u=t,f=r);function v(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var C=m?b[0]:w,T=m?w:b[0];if(rp(C))v({many:[C],one:T},!0,_,S,!0);else{var M=s?st({delay:s(_,S)},l):l;zS(C,T,M),i(C,T,C,T,M)}}else for(var D=st({dividePath:UQ[e],individualDelay:s&&function(O,k,V,z){return s(O+_,S)}},l),L=m?HQ(b,w,D):WQ(w,b,D),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;E<R;E++){var M=s?st({delay:s(E,R)},l):l;i(I[E],P[E],m?b[E]:y.one,m?y.one:b[E],M)}}for(var h=u?u===r:r.length>t.length,c=u?DD(f,u):DD(h?t:r,[h?r:t]),p=0,d=0;d<c.length;d++)p+=c[d].many.length;for(var g=0,d=0;d<c.length;d++)v(c[d],h,g,p),g+=c[d].many.length}function qi(r){if(!r)return[];if(H(r)){for(var t=[],e=0;e<r.length;e++)t.push(qi(r[e]));return t}var a=[];return r.traverse(function(n){n instanceof wt&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var UO=1e4,YQ=0,ID=1,LD=2,XQ=yt();function ZQ(r,t){for(var e=r.dimensions,a=0;a<e.length;a++){var n=r.getDimensionInfo(e[a]);if(n&&n.otherDims[t]===0)return e[a]}}function $Q(r,t,e){var a=r.getDimensionInfo(e),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,t);return n&&n.categories[i]||i+""}}function PD(r,t,e,a){var n=a?"itemChildGroupId":"itemGroupId",i=ZQ(r,n);if(i){var o=$Q(r,t,i);return o}var s=r.getRawDataItem(t),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return e||r.getId(t)}function RD(r){var t=[];return A(r,function(e){var a=e.data,n=e.dataGroupId;if(!(a.count()>UO))for(var i=a.getIndices(),o=0;o<i.length;o++)t.push({data:a,groupId:PD(a,o,n,!1),childGroupId:PD(a,o,n,!0),divide:e.divide,dataIndex:o})}),t}function zy(r,t,e){r.traverse(function(a){a instanceof wt&&$t(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function Gy(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function ws(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function qQ(r,t,e){var a=Sl("update",e,t);a&&r.traverse(function(n){if(n instanceof Gr){var i=a5(n);i&&n.animateFrom({style:i},a)}})}function KQ(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++){var n=r[a],i=t[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function YO(r,t,e){var a=RD(r),n=RD(t);function i(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?G(G({},x.style),_.style):_.style},w)}var o=!1,s=YQ,l=K(),u=K();A(a,function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<n.length;f++){var v=n[f].groupId;if(u.get(v)){s=ID;break}var h=n[f].childGroupId;if(h&&l.get(h)){s=LD;break}}function c(_,S){return function(x){var b=x.data,w=x.dataIndex;return S?b.getId(w):_?s===ID?x.childGroupId:x.groupId:s===LD?x.childGroupId:x.groupId}}var p=KQ(a,n),d={};if(!p)for(var f=0;f<n.length;f++){var g=n[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(_,S){var x=a[S],b=n[_],w=b.data.hostModel,C=x.data.getItemGraphicEl(x.dataIndex),T=b.data.getItemGraphicEl(b.dataIndex);if(C===T){T&&qQ(T,b.dataIndex,w);return}C&&d[C.id]||T&&(ws(T),C?(ws(C),Gy(C),o=!0,Vy(qi(C),qi(T),b.divide,w,_,i)):zy(T,w,_))}new cn(a,n,c(!0,p),c(!1,p),null,"multiple").update(m).updateManyToOne(function(_,S){var x=n[_],b=x.data,w=b.hostModel,C=b.getItemGraphicEl(x.dataIndex),T=Bt(W(S,function(M){return a[M].data.getItemGraphicEl(a[M].dataIndex)}),function(M){return M&&M!==C&&!d[M.id]});C&&(ws(C),T.length?(A(T,function(M){ws(M),Gy(M)}),o=!0,Vy(qi(T),qi(C),x.divide,w,_,i)):zy(C,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=a[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&d[b.id])){var w=Bt(W(_,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==b}),C=n[_[0]].data.hostModel;w.length&&(A(w,function(T){return ws(T)}),b?(ws(b),Gy(b),o=!0,Vy(qi(b),qi(w),x.divide,C,_[0],i)):A(w,function(T){return zy(T,C,_[0])}))}}).updateManyToMany(function(_,S){new cn(S,_,function(x){return a[x].data.getId(a[x].dataIndex)},function(x){return n[x].data.getId(n[x].dataIndex)}).update(function(x,b){m(_[x],S[b])}).execute()}).execute(),o&&A(t,function(_){var S=_.data,x=S.hostModel,b=x&&e.getViewOfSeriesModel(x),w=Sl("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(C){C instanceof wt&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function ED(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function kD(r){return H(r)?r.sort().join(","):r}function En(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function JQ(r,t){var e=K(),a=K(),n=K();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=ED(i),f=kD(u);a.set(f,{dataGroupId:s,data:l}),H(u)&&A(u,function(v){n.set(v,{key:f,dataGroupId:s,data:l})})}),A(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=ED(i),u=kD(l),f=a.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:En(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:En(s),data:s}]});else if(H(l)){var v=[];A(l,function(p){var d=a.get(p);d.data&&v.push({dataGroupId:d.dataGroupId,divide:En(d.data),data:d.data})}),v.length&&e.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:En(s)}]})}else{var h=n.get(l);if(h){var c=e.get(h.key);c||(c={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:En(h.data)}],newSeries:[]},e.set(h.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:En(s)})}}}}),e}function OD(r,t){for(var e=0;e<r.length;e++){var a=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(a)return e}}function jQ(r,t,e,a){var n=[],i=[];A(Wt(r.from),function(o){var s=OD(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:En(t.oldData[s]),groupIdDim:o.dimension})}),A(Wt(r.to),function(o){var s=OD(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:En(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&YO(n,i,a)}function QQ(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(Wt(a.seriesTransition),function(n){A(Wt(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Ph]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=XQ(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)A(Wt(i),function(c){jQ(c,n,a,e)});else{var o=JQ(n,a);A(o.keys(),function(c){var p=o.get(c);YO(p.oldSeries,p.newSeries,e)})}A(a.updatedSeries,function(c){c[Ph]&&(c[Ph]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],v=0;v<s.length;v++){var h=s[v].getData();h.count()<UO&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),f.push(h))}})}var ttt=function(){function r(t,e){h1(this,r.decoratedMethods),this._outOfBrk=Km(null,e),this._linear=Km(null,e),c1(this),this.breaks=t&&t.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(t,e){for(var a=0;a<this.breaks.length;a++){var n=this.breaks[a];if(n.vmin<t&&t<n.vmax){var i=e(t,n.vmax);return i}}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(t,e){return e==null||e===tn?this._outOfBrk.getExtentUnsafe(t,null):this._linear.getExtentUnsafe(t,null)},setExtent:function(t,e){this.setExtent2(fr,t,e)},setExtent2:function(t,e,a){_o(e,a)&&(t===fr&&rtt(this,[e,a]),this._outOfBrk.setExtent2(t,e,a),this._linear.setExtent2(t,this.transformIn(e,null),this.transformIn(a,null)))},normalize:function(t){return this._linear.normalize(this.transformIn(t,null))},scale:function(t){return this.transformOut(this._linear.scale(t),null)},contain:function(t){return this._outOfBrk.contain(t)},transformIn:function(t,e){if(e&&e.depth===tn)return t;for(var a=ND,n=BD,i=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(t<=s.vmax){t>s.vmin?a+=s.vmin-n+(t-s.vmin)/(s.vmax-s.vmin)*s.gapReal:a+=t-n,n=s.vmax,i=!1;break}a+=s.vmin-n+s.gapReal,n=s.vmax}return i&&(a+=t-n),a},transformOut:function(t,e){if(e&&e.depth===tn)return t;for(var a=ND,n=BD,i=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=a+l.vmin-n,f=u+l.gapReal;if(t<=f){t>u?o=l.vmin+(t-u)/(f-u)*(l.vmax-l.vmin):o=n+t-a,n=l.vmax,i=!1;break}a=f,n=l.vmax}return i&&(o=n+t-a),o}},r}();function ett(r,t){return new ttt(r,t)}var ND=0,BD=0;function rtt(r,t){var e=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(e+=l.val);var u=GS(s,t);if(u){var f=u.vmin!==s.vmin,v=u.vmax!==s.vmax,h=u.vmax-u.vmin;if(!(f&&v))if(f||v){var c=f?"S":"E";i[c][l.type].has=!0,i[c][l.type].span=h,i[c][l.type].inExtFrac=h/(s.vmax-s.vmin),i[c][l.type].val=l.val}else a[l.type].span+=h,a[l.type].val+=l.val}});var o=e*(0+(t[1]-t[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=e!==0?xt(o,0)*l.val/e:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function att(r,t,e,a,n,i){r!=="no"&&A(e,function(o){var s=GS(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=a(u),v=n*3/4;f>s.vmin-v&&f<s.vmax+v&&(r!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&t.splice(l,1)}})}function ntt(r,t,e,a){A(t,function(n){var i=GS(n,e);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:a?a(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:a?a(i):void 0}))}),t.length&&r.sort(function(n,i){return n.value-i.value})}function GS(r,t){var e=xt(r.vmin,t[0]),a=zt(r.vmax,t[1]);return e<a||e===a&&e>t[0]&&e<t[1]?{vmin:e,vmax:a,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function e_(r,t,e){var a=[];if(!r)return{breaks:a};function n(o,s){return o>=0&&o<1-1e-5}A(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:at(o),vmin:t.parse(o.start),vmax:t.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(Z(o.gap)){var u=kr(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;n(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var v=t.parse(o.gap);(!isFinite(v)||v<0)&&(v=0),s.gapParsed.type="tpAbs",s.gapParsed.val=v}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),e&&e.noNegative&&A(["vmin","vmax"],function(c){s[c]<0&&(s[c]=0)}),s.vmin>s.vmax){var h=s.vmax;s.vmax=s.vmin,s.vmin=h}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return A(a,function(o,s){i>o.vmin&&(a[s]=null),i=o.vmax}),{breaks:Bt(a,function(o){return!!o})}}function FS(r,t){return r_(t)===r_(r)}function r_(r){return r.start+"_\0_"+r.end}function itt(r,t,e){var a=[];A(r,function(i,o){var s=t(i);s&&s.type==="vmin"&&a.push([o])}),A(r,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=ui(a,function(u){return FS(t(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return A(a,function(i){i.length===2&&n.push(e?i:[r[i[0]],r[i[1]]])}),n}function ott(r,t,e,a){if(t.break){var n=t.break.parsedBreak,i=ui(e,function(f){return FS(f.breakOption,t.break.parsedBreak.breakOption)}),o={lookup:a,depth:tn},s=r.transformOut(n.vmin,o),l=r.transformOut(n.vmax,o),u={vmin:s,vmax:l,breakOption:n.breakOption,gapParsed:at(i.gapParsed),gapReal:n.gapReal};return{tickVal:u[t.break.type],vBreak:{type:t.break.type,parsedBreak:u}}}}function stt(r,t,e,a,n){n.original=e_(r,t,e);var i=n.transformed=e_(r,t,e),o=n.lookup;i.breaks=W(i.breaks,function(s,l){var u={depth:tn},f=t.transformIn(s.vmin,u),v=t.transformIn(s.vmax,u),h={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?t.transformIn(s.vmin+s.gapParsed.val,u)-f:s.gapParsed.val};return o.from[a+l]=f,o.to[a+l]=s.vmin,o.from[a+l+1]=v,o.to[a+l+1]=s.vmax,{vmin:f,vmax:v,gapParsed:h,gapReal:s.gapReal,breakOption:s.breakOption}})}var ltt={vmin:"start",vmax:"end"};function utt(r,t){return t&&(r=r||{},r.break={type:ltt[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function ftt(){A5({createBreakScaleMapper:ett,pruneTicksByBreak:att,addBreaksToTicks:ntt,parseAxisBreakOption:e_,identifyAxisBreak:FS,serializeAxisBreakIdentifier:r_,retrieveAxisBreakPairs:itt,getTicksBreakOutwardTransform:ott,parseAxisBreakOptionInwardTransform:stt,makeAxisLabelFormatterParamBreak:utt})}var VD=yt();function vtt(r,t){var e=ui(r,function(a){return se().identifyAxisBreak(a.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function htt(r){A(r,function(t){return t.shouldRemove=!0})}function ctt(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function ptt(r,t,e,a,n){var i=e.axis;if(i.scale.isBlank()||!se())return;var o=se().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(T){return T.break},!1);if(!o.length)return;var s=e.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var v=s.get("expandOnClick"),h=s.get("zigzagZ"),c=s.getModel("itemStyle"),p=c.getItemStyle(),d=p.stroke,g=p.lineWidth,y=p.lineDash,m=p.fill,_=new it({ignoreModelZ:!0}),S=i.isHorizontal(),x=VD(t).visualList||(VD(t).visualList=[]);htt(x);for(var b=function(T){var M=o[T][0].break.parsedBreak,D=[];D[0]=i.toGlobalCoord(i.dataToCoord(M.vmin,!0)),D[1]=i.toGlobalCoord(i.dataToCoord(M.vmax,!0)),D[1]<D[0]&&D.reverse();var L=vtt(x,M);L.shouldRemove=!1;var I=new it;C(L.zigzagRandomList,I,D[0],D[1],S,M),v&&I.on("click",function(){var P={type:Wp,breaks:[{start:M.breakOption.start,end:M.breakOption.end}]};P[i.dim+"AxisIndex"]=e.componentIndex,n.dispatchAction(P)}),I.silent=!v,_.add(I)},w=0;w<o.length;w++)b(w);r.add(_),ctt(x);function C(T,M,D,L,I,P){var R={stroke:d,lineWidth:g,lineDash:y,fill:"none"},E=I?0:1,O=1-E,k=a[ct[O]]+a[ne[O]];function V(Ft){var Dt=[],Vt=[];Dt[E]=Vt[E]=Ft,Dt[O]=a[ct[O]],Vt[O]=k;var Ht={x1:Dt[0],y1:Dt[1],x2:Vt[0],y2:Vt[1]};return Sp(Ht,Ht,{lineWidth:1}),Dt[0]=Ht.x1,Dt[1]=Ht.y1,Dt[E]}D=V(D),L=V(L);for(var z=[],F=[],U=!0,X=a[ct[O]],Y=0;;Y++){var Q=X===a[ct[O]],gt=X>=k;gt&&(X=k);var Et=[],vt=[];Et[E]=D,vt[E]=L,!Q&&!gt&&(Et[E]+=U?-l:l,vt[E]-=U?l:-l),Et[O]=X,vt[O]=X,z.push(Et),F.push(vt);var tt=void 0;if(Y<T.length?tt=T[Y]:(tt=Math.random(),T.push(tt)),X+=tt*(f-u)+u,U=!U,gt)break}var dt=se().serializeAxisBreakIdentifier(P.breakOption);if(M.add(new ke({anid:"break_a_"+dt,shape:{points:z},style:R,z:h})),P.gapReal!==0){M.add(new ke({anid:"break_b_"+dt,shape:{points:F},style:R,z:h}));var et=F.slice();et.reverse();var ht=z.concat(et);M.add(new Ye({anid:"break_c_"+dt,shape:{points:ht},style:{fill:m,opacity:p.opacity},z:h}))}}}function dtt(r,t,e,a){var n=r.axis,i=e.transform;We(a.style);var o=n.getExtent();n.inverse&&(o=o.slice(),o.reverse());var s=se().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=W(s,function(g){var y=g[0].break.parsedBreak,m=[n.dataToCoord(y.vmin,!0),n.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:se().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,v=0;v<l.length;v++){var h=l[v],c=Math.max(h.coordPair[0],o[0]),p=Math.min(h.coordPair[1],o[1]);u<=c&&d(u,c,f,h),u=p,f=h}u<=o[1]&&d(u,o[1],f,null);function d(g,y,m,_){function S(D,L){i&&(ae(D,D,i),ae(L,L,i))}function x(D,L){var I={x1:D[0],y1:D[1],x2:L[0],y2:L[1]};Sp(I,I,a.style),D[0]=I.x1,D[1]=I.y1,L[0]=I.x2,L[1]=I.y2}var b=[g,0],w=[y,0],C=[g,5],T=[y,5];S(b,C),x(b,C),S(w,T),x(w,T),x(b,w);var M=new fe(G({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},a));t.add(M),M.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function gtt(r,t,e){if(ui(e,function(m){return!m}))return;var a=new lt;if(!Fp(e[0],e[1],a,{direction:-(r?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var n=Qt();fi(n,n,-t);var i=W(e,function(m){return m.transform?Or(Qt(),n,m.transform):n});function o(m){var _=e[0].localRect,S=new lt(_[ne[m]]*i[0][0],_[ne[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=W(e,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new lt;u.copy(e[0].label).add(e[1].label).scale(.5),u.transform(n);var f=a.clone().transform(n),v=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),h=(v+f.x)/2-u.x,c=Math.min(h,h-f.x),p=Math.max(h,h-f.x),d=p<0?p:c>0?c:0;s=(h-d)/f.x}var g=new lt,y=new lt;lt.scale(g,a,-s),lt.scale(y,a,1-s),e0(e[0],g),e0(e[1],y)}function ytt(r,t){var e={breaks:[]};return A(t.breaks,function(a){if(a){var n=ui(r.get("breaks",!0),function(s){return se().identifyAxisBreak(s,a)});if(n){var i=t.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===Wp?!0:i===NR?!1:i===BR?!n.isExpanded:n.isExpanded,e.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),e}function mtt(){kW({adjustBreakLabelPair:gtt,buildAxisBreakLine:dtt,rectCoordBuildBreakAxis:ptt,updateModelAxisBreak:ytt})}function _tt(r){VW(r),ftt(),mtt()}function Stt(){t8(xtt)}function xtt(r,t){A(r,function(e){if(!e.model.get(["axisLabel","inside"])){var a=btt(e);if(a){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);t[n]-=a[n]+i,e.position==="top"?t.y+=a.height+i:e.position==="left"&&(t.x+=a.width+i)}}})}function btt(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var a,n,i=e.getExtent();e instanceof rf?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=zf(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var v=a?a[f]:{value:i[0]+f},h=s(v,f),c=o.getTextRect(h),p=d(c,o.get("rotate")||0);l?l.union(p):l=p}return l;function d(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,x=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),b=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),w=new ot(g.x,g.y,x,b);return w}}_t([hW]);_t([iW]);_t([EW,DU,zU,S8,E8,N6,fY,ZY,S7,D7,k7,W7,k9,oX,_X,BX,FX,JX,nZ,dZ,bZ,kZ,m$]);_t(B$);_t(hq);_t(GE);_t(Tq);_t(Mk);_t(Dq);_t($q);_t(aK);_t(XK);_t(vJ);_t(Zf);_t(MJ);_t(LJ);_t(zJ);_t(ZJ);_t(QJ);_t(ij);_t(gj);_t(Oj);_t(PO);_t(RO);_t(eQ);_t(BO);_t(VO);_t(iQ);_t(fQ);_t(wQ);_t(AQ);_t(QQ);_t(T4);_t(_tt);_t(Stt);_t(x8);const wtt={class:"page"},Ttt={key:0,class:"error-bar"},Ctt={class:"hero card"},Att={class:"hero-left"},Mtt={class:"hero-avatar"},Dtt={class:"hero-title"},Itt={class:"hero-sub"},Ltt={key:0,class:"hero-queue"},Ptt={key:0,class:"hq-run"},Rtt={key:1,class:"hq-wait"},Ett={class:"hero-ring"},ktt={viewBox:"0 0 120 120",width:"118",height:"118"},Ott=["stroke-dasharray"],Ntt={x:"60",y:"58","text-anchor":"middle",fill:"#e6ecf8","font-size":"22","font-weight":"700"},Btt={class:"kpi card"},Vtt={viewBox:"0 0 24 24",width:"17",height:"17",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ztt=["d"],Gtt={class:"kpi-label"},Ftt={class:"kpi-value"},Htt={key:0,class:"kpi-sub"},Wtt={class:"card chart-card"},Utt={class:"card fail-card"},Ytt={class:"fail-top"},Xtt={class:"fail-name"},Ztt={class:"fail-count"},$tt={class:"fail-bar"},qtt={class:"fail-err"},Ktt={class:"card recent",style:{"margin-top":"16px"}},Jtt=XO({__name:"DashboardView",setup(r){const t=ad(null),e=ad(""),a=ad();let n=null;async function i(){try{t.value=await KO.dashboard(),o(),e.value=""}catch(d){e.value=String(d)}}function o(){if(!a.value||!t.value)return;n||(n=S3(a.value));const d=t.value.stats.dailyTrend;n.setOption({tooltip:{trigger:"axis",backgroundColor:"#182238",borderColor:"rgba(148,170,212,0.25)",textStyle:{color:"#e6ecf8",fontSize:12}},legend:{data:["执行次数","成功"],textStyle:{color:"#9aa8c7",fontSize:12},top:0,right:8},grid:{left:42,right:18,top:38,bottom:28},xAxis:{type:"category",data:d.map(g=>g.date.slice(5)),axisLine:{lineStyle:{color:"rgba(148,170,212,0.25)"}},axisLabel:{color:"#5f6f93",fontSize:11}},yAxis:{type:"value",minInterval:1,splitLine:{lineStyle:{color:"rgba(148,170,212,0.1)"}},axisLabel:{color:"#5f6f93",fontSize:11}},series:[{name:"执行次数",type:"line",smooth:!0,symbol:"circle",symbolSize:6,data:d.map(g=>g.total),lineStyle:{width:3,color:"#6c8cff"},itemStyle:{color:"#6c8cff"},areaStyle:{color:new ei(0,0,0,1,[{offset:0,color:"rgba(108,140,255,0.35)"},{offset:1,color:"rgba(108,140,255,0.02)"}])}},{name:"成功",type:"line",smooth:!0,symbol:"circle",symbolSize:6,data:d.map(g=>g.success),lineStyle:{width:3,color:"#34d399"},itemStyle:{color:"#34d399"},areaStyle:{color:new ei(0,0,0,1,[{offset:0,color:"rgba(52,211,153,0.28)"},{offset:1,color:"rgba(52,211,153,0.02)"}])}}]})}let s=null,l=null;ZO(()=>{i(),s=$O(d=>{(d==="task-status"||d==="execution"||d==="tasks-changed")&&i()}),l=setInterval(()=>void i(),3e4)}),qO(()=>{s==null||s(),l&&clearInterval(l),n==null||n.dispose(),n=null});function u(){const d=new Date().getHours();return d<5?"夜深了":d<11?"早上好":d<14?"中午好":d<18?"下午好":"晚上好"}function f(){var g;const d=(g=t.value)==null?void 0:g.stats.successRate7d;return d!=null?`${d}%`:"—"}function v(){const d=t.value;return d?[{label:"任务总数 / 启用",value:String(d.tasksTotal),sub:`启用 ${d.tasksEnabled}`,icon:"M4 6h16M4 12h10M4 18h7",tone:"blue"},{label:"今日执行 / 成功",value:String(d.stats.today.total),sub:`成功 ${d.stats.today.success}`,icon:"M13 3 4 14h6l-1 7 9-11h-6l1-7Z",tone:"cyan"},{label:"7 天成功率",value:f(),icon:"M20 6 9 17l-5-5",tone:"green"},{label:"平均耗时 (7 天)",value:h(d.stats.avgDurationMs7d),icon:"M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z",tone:"violet"}]:[]}function h(d){return d==null?"-":d<1e3?`${d}ms`:`${(d/1e3).toFixed(1)}s`}const c={completed:"成功",failed:"失败",timeout:"超时",running:"运行中",cancelled:"已取消"};function p(d){return new Date(d).toLocaleString("zh-CN",{hour12:!1})}return(d,g)=>{const y=Pl("el-col"),m=Pl("el-row"),_=Pl("el-empty"),S=Pl("el-table-column"),x=Pl("el-table");return Ne(),ir("div",wtt,[e.value?(Ne(),ir("div",Ttt,"加载失败: "+Te(e.value),1)):pi("",!0),t.value?(Ne(),ir(Ll,{key:1},[Nt("section",Ctt,[Nt("div",Att,[Nt("div",Mtt,[Wr(JO,{size:76,mood:"happy"})]),Nt("div",null,[Nt("div",Dtt,Te(u())+",我是团子 🐾",1),Nt("div",Itt,[g[0]||(g[0]=Sn(" 今天已完成 ",-1)),Nt("b",null,Te(t.value.stats.today.success),1),Sn(" / "+Te(t.value.stats.today.total)+" 次任务 ",1),t.value.stats.topFailures.length?(Ne(),ir(Ll,{key:0},[Sn(" ,有 "+Te(t.value.stats.topFailures.length)+" 个任务需要关照 ",1)],64)):(Ne(),ir(Ll,{key:1},[Sn(",一切运转正常 ✨")],64))]),t.value.runningTaskName||t.value.queuedCount?(Ne(),ir("div",Ltt,[t.value.runningTaskName?(Ne(),ir("span",Ptt," 执行中:"+Te(t.value.runningTaskName),1)):pi("",!0),t.value.queuedCount?(Ne(),ir("span",Rtt,"排队 "+Te(t.value.queuedCount)+" 个",1)):pi("",!0)])):pi("",!0)])]),Nt("div",Ett,[(Ne(),ir("svg",ktt,[g[1]||(g[1]=Nt("circle",{cx:"60",cy:"60",r:"50",stroke:"rgba(148,170,212,0.15)","stroke-width":"10",fill:"none"},null,-1)),Nt("circle",{cx:"60",cy:"60",r:"50","stroke-dasharray":`${(t.value.stats.successRate7d??0)*3.14} 999`,transform:"rotate(-90 60 60)","stroke-linecap":"round",stroke:"url(#ring-grad)","stroke-width":"10",fill:"none"},null,8,Ott),g[2]||(g[2]=Nt("defs",null,[Nt("linearGradient",{id:"ring-grad",x1:"0",y1:"0",x2:"1",y2:"1"},[Nt("stop",{offset:"0%","stop-color":"#6c8cff"}),Nt("stop",{offset:"100%","stop-color":"#3ed6ff"})])],-1)),Nt("text",Ntt,Te(t.value.stats.successRate7d??"—")+Te(t.value.stats.successRate7d!=null?"%":""),1),g[3]||(g[3]=Nt("text",{x:"60",y:"78","text-anchor":"middle",fill:"#5f6f93","font-size":"11"},"7天成功率",-1))]))])]),Wr(m,{gutter:16,style:{"margin-top":"16px"}},{default:Fa(()=>[(Ne(!0),ir(Ll,null,HS(v(),b=>(Ne(),WS(y,{key:b.label,span:6},{default:Fa(()=>[Nt("div",Btt,[Nt("span",{class:US(["kpi-icon",`tone-${b.tone}`])},[(Ne(),ir("svg",Vtt,[Nt("path",{d:b.icon},null,8,ztt)]))],2),Nt("div",null,[Nt("div",Gtt,Te(b.label),1),Nt("div",Ftt,[Sn(Te(b.value)+" ",1),b.sub?(Ne(),ir("span",Htt,Te(b.sub),1)):pi("",!0)])])])]),_:2},1024))),128))]),_:1}),Wr(m,{gutter:16,style:{"margin-top":"16px"}},{default:Fa(()=>[Wr(y,{span:14},{default:Fa(()=>[Nt("div",Wtt,[g[4]||(g[4]=Nt("div",{class:"card-head pad"},"近 14 天执行趋势",-1)),Nt("div",{ref_key:"chartEl",ref:a,class:"chart"},null,512)])]),_:1}),Wr(y,{span:10},{default:Fa(()=>[Nt("div",Utt,[g[5]||(g[5]=Nt("div",{class:"card-head pad"},"失败排行 Top 5",-1)),t.value.stats.topFailures.length?pi("",!0):(Ne(),WS(_,{key:0,description:"零失败,团子很省心 🎉","image-size":70})),(Ne(!0),ir(Ll,null,HS(t.value.stats.topFailures,b=>(Ne(),ir("div",{key:b.taskId,class:"fail-item"},[Nt("div",Ytt,[Nt("span",Xtt,Te(b.name),1),Nt("span",Ztt,Te(b.fails)+" 次",1)]),Nt("div",$tt,[Nt("div",{class:"fail-bar-inner",style:jO({width:Math.min(100,b.fails*12)+"%"})},null,4)]),Nt("div",qtt,Te(b.lastError||"—"),1)]))),128))])]),_:1})]),_:1}),Nt("div",Ktt,[g[7]||(g[7]=Nt("div",{class:"card-head pad"},"最近执行",-1)),Wr(x,{data:t.value.recentExecutions,size:"small"},{default:Fa(()=>[Wr(S,{prop:"taskName",label:"任务","min-width":"150"}),Wr(S,{label:"状态",width:"100"},{default:Fa(({row:b})=>[Nt("span",{class:US(["status-pill",`st-${b.status}`])},[g[6]||(g[6]=Nt("span",{class:"status-dot"},null,-1)),Sn(Te(c[b.status]??b.status),1)],2)]),_:1}),Wr(S,{label:"开始时间",width:"170"},{default:Fa(({row:b})=>[Sn(Te(p(b.startedAt)),1)]),_:1}),Wr(S,{label:"耗时",width:"90"},{default:Fa(({row:b})=>[Sn(Te(h(b.durationMs)),1)]),_:1}),Wr(S,{prop:"error",label:"错误信息","min-width":"200","show-overflow-tooltip":""})]),_:1},8,["data"])])],64)):pi("",!0)])}}}),Qtt=QO(Jtt,[["__scopeId","data-v-3056d734"]]);export{Qtt as default};
|