You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.1 MiB
84 lines
1.1 MiB
var qO=Object.defineProperty,KO=Object.defineProperties;var jO=Object.getOwnPropertyDescriptors;var cS=Object.getOwnPropertySymbols;var JO=Object.prototype.hasOwnProperty,QO=Object.prototype.propertyIsEnumerable;var hS=(r,t,e)=>t in r?qO(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,vS=(r,t)=>{for(var e in t||(t={}))JO.call(t,e)&&hS(r,e,t[e]);if(cS)for(var e of cS(t))QO.call(t,e)&&hS(r,e,t[e]);return r},dS=(r,t)=>KO(r,jO(t));var pl=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(u){i(u)}},o=l=>{try{s(e.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function e(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=e(i);fetch(i.href,a)}})();/** |
|
* @vue/shared v3.5.39 |
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors |
|
* @license MIT |
|
**/function w0(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const ae={},Ts=[],sn=()=>{},wD=()=>!1,Iv=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Lv=r=>r.startsWith("onUpdate:"),Me=Object.assign,T0=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},tN=Object.prototype.hasOwnProperty,jt=(r,t)=>tN.call(r,t),It=Array.isArray,As=r=>gf(r)==="[object Map]",Pv=r=>gf(r)==="[object Set]",pS=r=>gf(r)==="[object Date]",Ot=r=>typeof r=="function",he=r=>typeof r=="string",Ir=r=>typeof r=="symbol",re=r=>r!==null&&typeof r=="object",TD=r=>(re(r)||Ot(r))&&Ot(r.then)&&Ot(r.catch),AD=Object.prototype.toString,gf=r=>AD.call(r),eN=r=>gf(r).slice(8,-1),CD=r=>gf(r)==="[object Object]",Rv=r=>he(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,fu=w0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ev=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},rN=/-\w/g,or=Ev(r=>r.replace(rN,t=>t.slice(1).toUpperCase())),nN=/\B([A-Z])/g,da=Ev(r=>r.replace(nN,"-$1").toLowerCase()),kv=Ev(r=>r.charAt(0).toUpperCase()+r.slice(1)),Rd=Ev(r=>r?`on${kv(r)}`:""),Rn=(r,t)=>!Object.is(r,t),Xc=(r,...t)=>{for(let e=0;e<r.length;e++)r[e](...t)},MD=(r,t,e,n=!1)=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},Ov=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let gS;const Nv=()=>gS||(gS=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function A0(r){if(It(r)){const t={};for(let e=0;e<r.length;e++){const n=r[e],i=he(n)?sN(n):A0(n);if(i)for(const a in i)t[a]=i[a]}return t}else if(he(r)||re(r))return r}const iN=/;(?![^(]*\))/g,aN=/:([^]+)/,oN=/\/\*[^]*?\*\//g;function sN(r){const t={};return r.replace(oN,"").split(iN).forEach(e=>{if(e){const n=e.split(aN);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function C0(r){let t="";if(he(r))t=r;else if(It(r))for(let e=0;e<r.length;e++){const n=C0(r[e]);n&&(t+=n+" ")}else if(re(r))for(const e in r)r[e]&&(t+=e+" ");return t.trim()}const lN="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",uN=w0(lN);function DD(r){return!!r||r===""}function fN(r,t){if(r.length!==t.length)return!1;let e=!0;for(let n=0;e&&n<r.length;n++)e=yf(r[n],t[n]);return e}function yf(r,t){if(r===t)return!0;let e=pS(r),n=pS(t);if(e||n)return e&&n?r.getTime()===t.getTime():!1;if(e=Ir(r),n=Ir(t),e||n)return r===t;if(e=It(r),n=It(t),e||n)return e&&n?fN(r,t):!1;if(e=re(r),n=re(t),e||n){if(!e||!n)return!1;const i=Object.keys(r).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in r){const s=r.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!yf(r[o],t[o]))return!1}}return String(r)===String(t)}function cN(r,t){return r.findIndex(e=>yf(e,t))}const ID=r=>!!(r&&r.__v_isRef===!0),hN=r=>he(r)?r:r==null?"":It(r)||re(r)&&(r.toString===AD||!Ot(r.toString))?ID(r)?hN(r.value):JSON.stringify(r,LD,2):String(r),LD=(r,t)=>ID(t)?LD(r,t.value):As(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],a)=>(e[Ed(n,a)+" =>"]=i,e),{})}:Pv(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ed(e))}:Ir(t)?Ed(t):re(t)&&!It(t)&&!CD(t)?String(t):t,Ed=(r,t="")=>{var e;return Ir(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/** |
|
* @vue/reactivity v3.5.39 |
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors |
|
* @license MIT |
|
**/let Oe;class vN{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Oe&&(Oe.active?(this.parent=Oe,this.index=(Oe.scopes||(Oe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){const e=Oe;try{return Oe=this,t()}finally{Oe=e}}}on(){++this._on===1&&(this.prevScope=Oe,Oe=this)}off(){if(this._on>0&&--this._on===0){if(Oe===this)Oe=this.prevScope;else{let t=Oe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(this.effects.length=0,e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function dN(){return Oe}let se;const kd=new WeakSet;class PD{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Oe&&(Oe.active?Oe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,kd.has(this)&&(kd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ED(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,yS(this),kD(this);const t=se,e=ln;se=this,ln=!0;try{return this.fn()}finally{OD(this),se=t,ln=e,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)I0(t);this.deps=this.depsTail=void 0,yS(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?kd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){yy(this)&&this.run()}get dirty(){return yy(this)}}let RD=0,cu,hu;function ED(r,t=!1){if(r.flags|=8,t){r.next=hu,hu=r;return}r.next=cu,cu=r}function M0(){RD++}function D0(){if(--RD>0)return;if(hu){let t=hu;for(hu=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let r;for(;cu;){let t=cu;for(cu=void 0;t;){const e=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){r||(r=n)}t=e}}if(r)throw r}function kD(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function OD(r){let t,e=r.depsTail,n=e;for(;n;){const i=n.prevDep;n.version===-1?(n===e&&(e=i),I0(n),pN(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}r.deps=t,r.depsTail=e}function yy(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ND(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function ND(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===ku)||(r.globalVersion=ku,!r.isSSR&&r.flags&128&&(!r.deps&&!r._dirty||!yy(r))))return;r.flags|=2;const t=r.dep,e=se,n=ln;se=r,ln=!0;try{kD(r);const i=r.fn(r._value);(t.version===0||Rn(i,r._value))&&(r.flags|=128,r._value=i,t.version++)}catch(i){throw t.version++,i}finally{se=e,ln=n,OD(r),r.flags&=-3}}function I0(r,t=!1){const{dep:e,prevSub:n,nextSub:i}=r;if(n&&(n.nextSub=i,r.prevSub=void 0),i&&(i.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n,!n&&e.computed)){e.computed.flags&=-5;for(let a=e.computed.deps;a;a=a.nextDep)I0(a,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function pN(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let ln=!0;const VD=[];function Fn(){VD.push(ln),ln=!1}function Hn(){const r=VD.pop();ln=r===void 0?!0:r}function yS(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let ku=0;class gN{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class L0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!se||!ln||se===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==se)e=this.activeLink=new gN(se,this),se.deps?(e.prevDep=se.depsTail,se.depsTail.nextDep=e,se.depsTail=e):se.deps=se.depsTail=e,BD(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=se.depsTail,e.nextDep=void 0,se.depsTail.nextDep=e,se.depsTail=e,se.deps===e&&(se.deps=n)}return e}trigger(t){this.version++,ku++,this.notify(t)}notify(t){M0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{D0()}}}function BD(r){if(r.dep.sc++,r.sub.flags&4){const t=r.dep.computed;if(t&&!r.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)BD(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const xh=new WeakMap,vo=Symbol(""),my=Symbol(""),Ou=Symbol("");function Xe(r,t,e){if(ln&&se){let n=xh.get(r);n||xh.set(r,n=new Map);let i=n.get(e);i||(n.set(e,i=new L0),i.map=n,i.key=e),i.track()}}function ai(r,t,e,n,i,a){const o=xh.get(r);if(!o){ku++;return}const s=l=>{l&&l.trigger()};if(M0(),t==="clear")o.forEach(s);else{const l=It(r),u=l&&Rv(e);if(l&&e==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===Ou||!Ir(h)&&h>=f)&&s(c)})}else switch((e!==void 0||o.has(void 0))&&s(o.get(e)),u&&s(o.get(Ou)),t){case"add":l?u&&s(o.get("length")):(s(o.get(vo)),As(r)&&s(o.get(my)));break;case"delete":l||(s(o.get(vo)),As(r)&&s(o.get(my)));break;case"set":As(r)&&s(o.get(vo));break}}D0()}function yN(r,t){const e=xh.get(r);return e&&e.get(t)}function $o(r){const t=Xt(r);return t===r?t:(Xe(t,"iterate",Ou),Ar(r)?t:t.map(hn))}function Vv(r){return Xe(r=Xt(r),"iterate",Ou),r}function Ln(r,t){return di(r)?Ns(po(r)?hn(t):t):hn(t)}const mN={__proto__:null,[Symbol.iterator](){return Od(this,Symbol.iterator,r=>Ln(this,r))},concat(...r){return $o(this).concat(...r.map(t=>It(t)?$o(t):t))},entries(){return Od(this,"entries",r=>(r[1]=Ln(this,r[1]),r))},every(r,t){return Kn(this,"every",r,t,void 0,arguments)},filter(r,t){return Kn(this,"filter",r,t,e=>e.map(n=>Ln(this,n)),arguments)},find(r,t){return Kn(this,"find",r,t,e=>Ln(this,e),arguments)},findIndex(r,t){return Kn(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return Kn(this,"findLast",r,t,e=>Ln(this,e),arguments)},findLastIndex(r,t){return Kn(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return Kn(this,"forEach",r,t,void 0,arguments)},includes(...r){return Nd(this,"includes",r)},indexOf(...r){return Nd(this,"indexOf",r)},join(r){return $o(this).join(r)},lastIndexOf(...r){return Nd(this,"lastIndexOf",r)},map(r,t){return Kn(this,"map",r,t,void 0,arguments)},pop(){return gl(this,"pop")},push(...r){return gl(this,"push",r)},reduce(r,...t){return mS(this,"reduce",r,t)},reduceRight(r,...t){return mS(this,"reduceRight",r,t)},shift(){return gl(this,"shift")},some(r,t){return Kn(this,"some",r,t,void 0,arguments)},splice(...r){return gl(this,"splice",r)},toReversed(){return $o(this).toReversed()},toSorted(r){return $o(this).toSorted(r)},toSpliced(...r){return $o(this).toSpliced(...r)},unshift(...r){return gl(this,"unshift",r)},values(){return Od(this,"values",r=>Ln(this,r))}};function Od(r,t,e){const n=Vv(r),i=n[t]();return n!==r&&!Ar(r)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=e(a.value)),a}),i}const _N=Array.prototype;function Kn(r,t,e,n,i,a){const o=Vv(r),s=o!==r&&!Ar(r),l=o[t];if(l!==_N[t]){const c=l.apply(r,a);return s?hn(c):c}let u=e;o!==r&&(s?u=function(c,h){return e.call(this,Ln(r,c),h,r)}:e.length>2&&(u=function(c,h){return e.call(this,c,h,r)}));const f=l.call(o,u,n);return s&&i?i(f):f}function mS(r,t,e,n){const i=Vv(r),a=i!==r&&!Ar(r);let o=e,s=!1;i!==r&&(a?(s=n.length===0,o=function(u,f,c){return s&&(s=!1,u=Ln(r,u)),e.call(this,u,Ln(r,f),c,r)}):e.length>3&&(o=function(u,f,c){return e.call(this,u,f,c,r)}));const l=i[t](o,...n);return s?Ln(r,l):l}function Nd(r,t,e){const n=Xt(r);Xe(n,"iterate",Ou);const i=n[t](...e);return(i===-1||i===!1)&&zv(e[0])?(e[0]=Xt(e[0]),n[t](...e)):i}function gl(r,t,e=[]){Fn(),M0();const n=Xt(r)[t].apply(r,e);return D0(),Hn(),n}const SN=w0("__proto__,__v_isRef,__isVue"),zD=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Ir));function xN(r){Ir(r)||(r=String(r));const t=Xt(this);return Xe(t,"has",r),t.hasOwnProperty(r)}class GD{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if(e==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return a;if(e==="__v_raw")return n===(i?a?PN:$D:a?WD:HD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=It(t);if(!i){let l;if(o&&(l=mN[e]))return l;if(e==="hasOwnProperty")return xN}const s=Reflect.get(t,e,ke(t)?t:n);if((Ir(e)?zD.has(e):SN(e))||(i||Xe(t,"get",e),a))return s;if(ke(s)){const l=o&&Rv(e)?s:s.value;return i&&re(l)?Sy(l):l}return re(s)?i?Sy(s):Bv(s):s}}class FD extends GD{constructor(t=!1){super(!1,t)}set(t,e,n,i){let a=t[e];const o=It(t)&&Rv(e);if(!this._isShallow){const u=di(a);if(!Ar(n)&&!di(n)&&(a=Xt(a),n=Xt(n)),!o&&ke(a)&&!ke(n))return u||(a.value=n),!0}const s=o?Number(e)<t.length:jt(t,e),l=Reflect.set(t,e,n,ke(t)?t:i);return t===Xt(i)&&l&&(s?Rn(n,a)&&ai(t,"set",e,n):ai(t,"add",e,n)),l}deleteProperty(t,e){const n=jt(t,e);t[e];const i=Reflect.deleteProperty(t,e);return i&&n&&ai(t,"delete",e,void 0),i}has(t,e){const n=Reflect.has(t,e);return(!Ir(e)||!zD.has(e))&&Xe(t,"has",e),n}ownKeys(t){return Xe(t,"iterate",It(t)?"length":vo),Reflect.ownKeys(t)}}class bN extends GD{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const wN=new FD,TN=new bN,AN=new FD(!0);const _y=r=>r,Ff=r=>Reflect.getPrototypeOf(r);function CN(r,t,e){return function(...n){const i=this.__v_raw,a=Xt(i),o=As(a),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=i[r](...n),f=e?_y:t?Ns:hn;return!t&&Xe(a,"iterate",l?my:vo),Me(Object.create(u),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}}})}}function Hf(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function MN(r,t){const e={get(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);r||(Rn(i,s)&&Xe(o,"get",i),Xe(o,"get",s));const{has:l}=Ff(o),u=t?_y:r?Ns:hn;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!r&&Xe(Xt(i),"iterate",vo),i.size},has(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);return r||(Rn(i,s)&&Xe(o,"has",i),Xe(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Xt(s),u=t?_y:r?Ns:hn;return!r&&Xe(l,"iterate",vo),s.forEach((f,c)=>i.call(a,u(f),u(c),o))}};return Me(e,r?{add:Hf("add"),set:Hf("set"),delete:Hf("delete"),clear:Hf("clear")}:{add(i){const a=Xt(this),o=Ff(a),s=Xt(i),l=!t&&!Ar(i)&&!di(i)?s:i;return o.has.call(a,l)||Rn(i,l)&&o.has.call(a,i)||Rn(s,l)&&o.has.call(a,s)||(a.add(l),ai(a,"add",l,l)),this},set(i,a){!t&&!Ar(a)&&!di(a)&&(a=Xt(a));const o=Xt(this),{has:s,get:l}=Ff(o);let u=s.call(o,i);u||(i=Xt(i),u=s.call(o,i));const f=l.call(o,i);return o.set(i,a),u?Rn(a,f)&&ai(o,"set",i,a):ai(o,"add",i,a),this},delete(i){const a=Xt(this),{has:o,get:s}=Ff(a);let l=o.call(a,i);l||(i=Xt(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ai(a,"delete",i,void 0),u},clear(){const i=Xt(this),a=i.size!==0,o=i.clear();return a&&ai(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=CN(i,r,t)}),e}function P0(r,t){const e=MN(r,t);return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(jt(e,i)&&i in n?e:n,i,a)}const DN={get:P0(!1,!1)},IN={get:P0(!1,!0)},LN={get:P0(!0,!1)};const HD=new WeakMap,WD=new WeakMap,$D=new WeakMap,PN=new WeakMap;function RN(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bv(r){return di(r)?r:R0(r,!1,wN,DN,HD)}function UD(r){return R0(r,!1,AN,IN,WD)}function Sy(r){return R0(r,!0,TN,LN,$D)}function R0(r,t,e,n,i){if(!re(r)||r.__v_raw&&!(t&&r.__v_isReactive)||r.__v_skip||!Object.isExtensible(r))return r;const a=i.get(r);if(a)return a;const o=RN(eN(r));if(o===0)return r;const s=new Proxy(r,o===2?n:e);return i.set(r,s),s}function po(r){return di(r)?po(r.__v_raw):!!(r&&r.__v_isReactive)}function di(r){return!!(r&&r.__v_isReadonly)}function Ar(r){return!!(r&&r.__v_isShallow)}function zv(r){return r?!!r.__v_raw:!1}function Xt(r){const t=r&&r.__v_raw;return t?Xt(t):r}function EN(r){return!jt(r,"__v_skip")&&Object.isExtensible(r)&&MD(r,"__v_skip",!0),r}const hn=r=>re(r)?Bv(r):r,Ns=r=>re(r)?Sy(r):r;function ke(r){return r?r.__v_isRef===!0:!1}function qc(r){return YD(r,!1)}function kN(r){return YD(r,!0)}function YD(r,t){return ke(r)?r:new ON(r,t)}class ON{constructor(t,e){this.dep=new L0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Xt(t),this._value=e?t:hn(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Ar(t)||di(t);t=n?t:Xt(t),Rn(t,e)&&(this._rawValue=t,this._value=n?t:hn(t),this.dep.trigger())}}function go(r){return ke(r)?r.value:r}const NN={get:(r,t,e)=>t==="__v_raw"?r:go(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const i=r[t];return ke(i)&&!ke(e)?(i.value=e,!0):Reflect.set(r,t,e,n)}};function ZD(r){return po(r)?r:new Proxy(r,NN)}function Eit(r){const t=It(r)?new Array(r.length):{};for(const e in r)t[e]=BN(r,e);return t}class VN{constructor(t,e,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Ir(e)?e:String(e),this._raw=Xt(t);let i=!0,a=t;if(!It(t)||Ir(this._key)||!Rv(this._key))do i=!zv(a)||Ar(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=go(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ke(this._raw[this._key])){const e=this._object[this._key];if(ke(e)){e.value=t;return}}this._object[this._key]=t}get dep(){return yN(this._raw,this._key)}}function BN(r,t,e){return new VN(r,t,e)}class zN{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new L0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ku-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&se!==this)return ED(this,!0),!0}get value(){const t=this.dep.track();return ND(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function GN(r,t,e=!1){let n,i;return Ot(r)?n=r:(n=r.get,i=r.set),new zN(n,i,e)}const Wf={},bh=new WeakMap;let $a;function FN(r,t=!1,e=$a){if(e){let n=bh.get(e);n||bh.set(e,n=[]),n.push(r)}}function HN(r,t,e=ae){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=e,u=S=>i?S:Ar(S)||i===!1||i===0?oi(S,1):oi(S);let f,c,h,v,d=!1,p=!1;if(ke(r)?(c=()=>r.value,d=Ar(r)):po(r)?(c=()=>u(r),d=!0):It(r)?(p=!0,d=r.some(S=>po(S)||Ar(S)),c=()=>r.map(S=>{if(ke(S))return S.value;if(po(S))return u(S);if(Ot(S))return l?l(S,2):S()})):Ot(r)?t?c=l?()=>l(r,2):r:c=()=>{if(h){Fn();try{h()}finally{Hn()}}const S=$a;$a=f;try{return l?l(r,3,[v]):r(v)}finally{$a=S}}:c=sn,t&&i){const S=c,x=i===!0?1/0:i;c=()=>oi(S(),x)}const g=dN(),y=()=>{f.stop(),g&&g.active&&T0(g.effects,f)};if(a&&t){const S=t;t=(...x)=>{const b=S(...x);return y(),b}}let m=p?new Array(r.length).fill(Wf):Wf;const _=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(t){const x=f.run();if(S||i||d||(p?x.some((b,w)=>Rn(b,m[w])):Rn(x,m))){h&&h();const b=$a;$a=f;try{const w=[x,m===Wf?void 0:p&&m[0]===Wf?[]:m,v];m=x,l?l(t,3,w):t(...w)}finally{$a=b}}}else f.run()};return s&&s(_),f=new PD(c),f.scheduler=o?()=>o(_,!1):_,v=S=>FN(S,!1,f),h=f.onStop=()=>{const S=bh.get(f);if(S){if(l)l(S,4);else for(const x of S)x();bh.delete(f)}},t?n?_(!0):m=f.run():o?o(_.bind(null,!0),!0):f.run(),y.pause=f.pause.bind(f),y.resume=f.resume.bind(f),y.stop=y,y}function oi(r,t=1/0,e){if(t<=0||!re(r)||r.__v_skip||(e=e||new Map,(e.get(r)||0)>=t))return r;if(e.set(r,t),t--,ke(r))oi(r.value,t,e);else if(It(r))for(let n=0;n<r.length;n++)oi(r[n],t,e);else if(Pv(r)||As(r))r.forEach(n=>{oi(n,t,e)});else if(CD(r)){for(const n in r)oi(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&oi(r[n],t,e)}return r}/** |
|
* @vue/runtime-core v3.5.39 |
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors |
|
* @license MIT |
|
**/function mf(r,t,e,n){try{return n?r(...n):r()}catch(i){_f(i,t,e)}}function vn(r,t,e,n){if(Ot(r)){const i=mf(r,t,e,n);return i&&TD(i)&&i.catch(a=>{_f(a,t,e)}),i}if(It(r)){const i=[];for(let a=0;a<r.length;a++)i.push(vn(r[a],t,e,n));return i}}function _f(r,t,e,n=!0){const i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||ae;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${e}`;for(;s;){const f=s.ec;if(f){for(let c=0;c<f.length;c++)if(f[c](r,l,u)===!1)return}s=s.parent}if(a){Fn(),mf(a,null,10,[r,l,u]),Hn();return}}WN(r,e,i,n,o)}function WN(r,t,e,n=!0,i=!1){if(i)throw r;console.error(r)}const ar=[];let Dn=-1;const Cs=[];let Fi=null,vs=0;const XD=Promise.resolve();let wh=null;function E0(r){const t=wh||XD;return r?t.then(this?r.bind(this):r):t}function $N(r){let t=Dn+1,e=ar.length;for(;t<e;){const n=t+e>>>1,i=ar[n],a=Nu(i);a<r||a===r&&i.flags&2?t=n+1:e=n}return t}function k0(r){if(!(r.flags&1)){const t=Nu(r),e=ar[ar.length-1];!e||!(r.flags&2)&&t>=Nu(e)?ar.push(r):ar.splice($N(t),0,r),r.flags|=1,qD()}}function qD(){wh||(wh=XD.then(jD))}function UN(r){It(r)?Cs.push(...r):Fi&&r.id===-1?Fi.splice(vs+1,0,r):r.flags&1||(Cs.push(r),r.flags|=1),qD()}function _S(r,t,e=Dn+1){for(;e<ar.length;e++){const n=ar[e];if(n&&n.flags&2){if(r&&n.id!==r.uid)continue;ar.splice(e,1),e--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function KD(r){if(Cs.length){const t=[...new Set(Cs)].sort((e,n)=>Nu(e)-Nu(n));if(Cs.length=0,Fi){Fi.push(...t);return}for(Fi=t,vs=0;vs<Fi.length;vs++){const e=Fi[vs];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Fi=null,vs=0}}const Nu=r=>r.id==null?r.flags&2?-1:1/0:r.id;function jD(r){const t=sn;try{for(Dn=0;Dn<ar.length;Dn++){const e=ar[Dn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),mf(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Dn<ar.length;Dn++){const e=ar[Dn];e&&(e.flags&=-2)}Dn=-1,ar.length=0,KD(),wh=null,(ar.length||Cs.length)&&jD()}}let Be=null,JD=null;function Th(r){const t=Be;return Be=r,JD=r&&r.type.__scopeId||null,t}function YN(r,t=Be,e){if(!t||r._n)return r;const n=(...i)=>{n._d&&Dh(-1);const a=Th(t);let o;try{o=r(...i)}finally{Th(a),n._d&&Dh(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function kit(r,t){if(Be===null)return r;const e=Wv(Be),n=r.dirs||(r.dirs=[]);for(let i=0;i<t.length;i++){let[a,o,s,l=ae]=t[i];a&&(Ot(a)&&(a={mounted:a,updated:a}),a.deep&&oi(o),n.push({dir:a,instance:e,value:o,oldValue:void 0,arg:s,modifiers:l}))}return r}function ma(r,t,e,n){const i=r.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(Fn(),vn(l,e,8,[r.el,s,r,t]),Hn())}}function Kc(r,t){if(Ve){let e=Ve.provides;const n=Ve.parent&&Ve.parent.provides;n===e&&(e=Ve.provides=Object.create(n)),e[r]=t}}function un(r,t,e=!1){const n=KV();if(n||Ds){let i=Ds?Ds._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&r in i)return i[r];if(arguments.length>1)return e&&Ot(t)?t.call(n&&n.proxy):t}}const ZN=Symbol.for("v-scx"),XN=()=>un(ZN);function Oit(r,t){return O0(r,null,t)}function jc(r,t,e){return O0(r,t,e)}function O0(r,t,e=ae){const{immediate:n,deep:i,flush:a,once:o}=e,s=Me({},e),l=t&&n||!t&&a!=="post";let u;if(Bs){if(a==="sync"){const v=XN();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=sn,v.resume=sn,v.pause=sn,v}}const f=Ve;s.call=(v,d,p)=>vn(v,f,d,p);let c=!1;a==="post"?s.scheduler=v=>{tr(v,f&&f.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(v,d)=>{d?v():k0(v)}),s.augmentJob=v=>{t&&(v.flags|=4),c&&(v.flags|=2,f&&(v.id=f.uid,v.i=f))};const h=HN(r,t,s);return Bs&&(u?u.push(h):l&&h()),h}function qN(r,t,e){const n=this.proxy,i=he(r)?r.includes(".")?QD(n,r):()=>n[r]:r.bind(n,n);let a;Ot(t)?a=t:(a=t.handler,e=t);const o=Sf(this),s=O0(i,a.bind(n),e);return o(),s}function QD(r,t){const e=t.split(".");return()=>{let n=r;for(let i=0;i<e.length&&n;i++)n=n[e[i]];return n}}const Vi=new WeakMap,tI=Symbol("_vte"),KN=r=>r.__isTeleport,ja=r=>r&&(r.disabled||r.disabled===""),jN=r=>r&&(r.defer||r.defer===""),SS=r=>typeof SVGElement!="undefined"&&r instanceof SVGElement,xS=r=>typeof MathMLElement=="function"&&r instanceof MathMLElement,xy=(r,t)=>{const e=r&&r.to;return he(e)?t?t(e):null:e},JN={name:"Teleport",__isTeleport:!0,process(r,t,e,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:h,o:{insert:v,querySelector:d,createText:p,createComment:g,parentNode:y}}=u,m=ja(t.props);let{dynamicChildren:_}=t;const S=(w,T,A)=>{w.shapeFlag&16&&f(w.children,T,A,i,a,o,s,l)},x=(w=t)=>{const T=ja(w.props),A=w.target=xy(w.props,d),C=by(A,w,p,v);A&&(o!=="svg"&&SS(A)?o="svg":o!=="mathml"&&xS(A)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(A),T||(S(w,A,C),ql(w,!1)))},b=w=>{const T=()=>{if(Vi.get(w)===T){if(Vi.delete(w),ja(w.props)){const A=y(w.el)||e;S(w,A,w.anchor),ql(w,!0)}x(w)}};Vi.set(w,T),tr(T,a)};if(r==null){const w=t.el=p(""),T=t.anchor=p("");if(v(w,e,n),v(T,e,n),jN(t.props)||a&&a.pendingBranch){b(t);return}m&&(S(t,e,T),ql(t,!0)),x()}else{t.el=r.el;const w=t.anchor=r.anchor,T=Vi.get(r);if(T){T.flags|=8,Vi.delete(r),b(t);return}t.targetStart=r.targetStart;const A=t.target=r.target,C=t.targetAnchor=r.targetAnchor,D=ja(r.props),I=D?e:A,L=D?w:C;if(o==="svg"||SS(A)?o="svg":(o==="mathml"||xS(A))&&(o="mathml"),_?(h(r.dynamicChildren,_,I,i,a,o,s),$0(r,t,!0)):l||c(r,t,I,L,i,a,o,s,!1),m)D?t.props&&r.props&&t.props.to!==r.props.to&&(t.props.to=r.props.to):$f(t,e,w,u,1);else if((t.props&&t.props.to)!==(r.props&&r.props.to)){const P=xy(t.props,d);P&&(t.target=P,$f(t,P,null,u,0))}else D&&$f(t,A,C,u,1);ql(t,m)}},remove(r,t,e,{um:n,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:f,target:c,props:h}=r,v=ja(h),d=a||!v,p=Vi.get(r);if(p&&(p.flags|=8,Vi.delete(r)),c&&(i(u),i(f)),a&&i(l),!p&&(v||c)&&o&16)for(let g=0;g<s.length;g++){const y=s[g];n(y,t,e,d,!!y.dynamicChildren)}},move:$f,hydrate:QN};function $f(r,t,e,{o:{insert:n},m:i},a=2){a===0&&n(r.targetAnchor,t,e);const{el:o,anchor:s,shapeFlag:l,children:u,props:f}=r,c=a===2;if(c&&n(o,t,e),!Vi.has(r)&&(!c||ja(f))&&l&16)for(let h=0;h<u.length;h++)i(u[h],t,e,2);c&&n(s,t,e)}function QN(r,t,e,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:f}},c){function h(g,y){let m=y;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,g._lpa=t.targetAnchor&&o(t.targetAnchor);break}}m=o(m)}}function v(g,y){y.anchor=c(o(g),y,s(g),e,n,i,a)}const d=t.target=xy(t.props,l),p=ja(t.props);if(d){const g=d._lpa||d.firstChild;t.shapeFlag&16&&(p?(v(r,t),h(d,g),t.targetAnchor||by(d,t,f,u,s(r)===d?r:null)):(t.anchor=o(r),h(d,g),t.targetAnchor||by(d,t,f,u),c(g&&o(g),t,d,e,n,i,a))),ql(t,p)}else p&&t.shapeFlag&16&&(v(r,t),t.targetStart=r,t.targetAnchor=o(r));return t.anchor&&o(t.anchor)}const Nit=JN;function ql(r,t){const e=r.ctx;if(e&&e.ut){let n,i;for(t?(n=r.el,i=r.anchor):(n=r.targetStart,i=r.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}function by(r,t,e,n,i=null){const a=t.targetStart=e(""),o=t.targetAnchor=e("");return a[tI]=o,r&&(n(a,r,i),n(o,r,i)),o}const Vd=Symbol("_leaveCb");function N0(r,t){r.shapeFlag&6&&r.component?(r.transition=t,N0(r.component.subTree,t)):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}function V0(r,t){return Ot(r)?(()=>Me({name:r.name},t,{setup:r}))():r}function B0(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function bS(r,t){let e;return!!((e=Object.getOwnPropertyDescriptor(r,t))&&!e.configurable)}const Ah=new WeakMap;function vu(r,t,e,n,i=!1){if(It(r)){r.forEach((p,g)=>vu(p,t&&(It(t)?t[g]:t),e,n,i));return}if(Ms(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&vu(r,t,e,n.component.subTree);return}const a=n.shapeFlag&4?Wv(n.component):n.el,o=i?null:a,{i:s,r:l}=r,u=t&&t.r,f=s.refs===ae?s.refs={}:s.refs,c=s.setupState,h=Xt(c),v=c===ae?wD:p=>bS(f,p)?!1:jt(h,p),d=(p,g)=>!(g&&bS(f,g));if(u!=null&&u!==l){if(wS(t),he(u))f[u]=null,v(u)&&(c[u]=null);else if(ke(u)){const p=t;d(u,p.k)&&(u.value=null),p.k&&(f[p.k]=null)}}if(Ot(l)){Fn();try{mf(l,s,12,[o,f])}finally{Hn()}}else{const p=he(l),g=ke(l);if(p||g){const y=()=>{if(r.f){const m=p?v(l)?c[l]:f[l]:d()||!r.k?l.value:f[r.k];if(i)It(m)&&T0(m,a);else if(It(m))m.includes(a)||m.push(a);else if(p)f[l]=[a],v(l)&&(c[l]=f[l]);else{const _=[a];d(l,r.k)&&(l.value=_),r.k&&(f[r.k]=_)}}else p?(f[l]=o,v(l)&&(c[l]=o)):g&&(d(l,r.k)&&(l.value=o),r.k&&(f[r.k]=o))};if(o){const m=()=>{y(),Ah.delete(r)};m.id=-1,Ah.set(r,m),tr(m,e)}else wS(r),y()}}}function wS(r){const t=Ah.get(r);t&&(t.flags|=8,Ah.delete(r))}const TS=r=>r.nodeType===8;Nv().requestIdleCallback;Nv().cancelIdleCallback;function tV(r,t){if(TS(r)&&r.data==="["){let e=1,n=r.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(TS(n))if(n.data==="]"){if(--e===0)break}else n.data==="["&&e++;n=n.nextSibling}}else t(r)}const Ms=r=>!!r.type.__asyncLoader;function Vit(r){Ot(r)&&(r={loader:r});const{loader:t,loadingComponent:e,errorComponent:n,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=r;let u=null,f,c=0;const h=()=>(c++,u=null,v()),v=()=>{let d;return u||(d=u=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((g,y)=>{l(p,()=>g(h()),()=>y(p),c+1)});throw p}).then(p=>d!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),f=p,p)))};return V0({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(d,p,g){let y=!1;(p.bu||(p.bu=[])).push(()=>y=!0);const m=()=>{y||g()},_=a?()=>{const S=a(m,x=>tV(d,x));S&&(p.bum||(p.bum=[])).push(S)}:m;f?_():v().then(()=>!p.isUnmounted&&_())},get __asyncResolved(){return f},setup(){const d=Ve;if(B0(d),f)return()=>Uf(f,d);const p=x=>{u=null,_f(x,d,13,!n)};if(s&&d.suspense||Bs)return v().then(x=>()=>Uf(x,d)).catch(x=>(p(x),()=>n?Pe(n,{error:x}):null));const g=qc(!1),y=qc(),m=qc(!!i);let _,S;return G0(()=>{_!=null&&clearTimeout(_),S!=null&&clearTimeout(S)}),i&&(S=setTimeout(()=>{d.isUnmounted||(m.value=!1)},i)),o!=null&&(_=setTimeout(()=>{if(!d.isUnmounted&&!g.value&&!y.value){const x=new Error(`Async component timed out after ${o}ms.`);p(x),y.value=x}},o)),v().then(()=>{d.isUnmounted||(g.value=!0,d.parent&&z0(d.parent.vnode)&&d.parent.update())}).catch(x=>{if(d.isUnmounted){u=null;return}p(x),y.value=x}),()=>{if(g.value&&f)return Uf(f,d);if(y.value&&n)return Pe(n,{error:y.value});if(e&&!m.value)return Uf(e,d)}}})}function Uf(r,t){const{ref:e,props:n,children:i,ce:a}=t.vnode,o=Pe(r,n,i);return o.ref=e,o.ce=a,delete t.vnode.ce,o}const z0=r=>r.type.__isKeepAlive;function eV(r,t){eI(r,"a",t)}function rV(r,t){eI(r,"da",t)}function eI(r,t,e=Ve){const n=r.__wdc||(r.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(Gv(t,n,e),e){let i=e.parent;for(;i&&i.parent;)z0(i.parent.vnode)&&nV(n,t,e,i),i=i.parent}}function nV(r,t,e,n){const i=Gv(t,r,n,!0);G0(()=>{T0(n[t],i)},e)}function Gv(r,t,e=Ve,n=!1){if(e){const i=e[r]||(e[r]=[]),a=t.__weh||(t.__weh=(...o)=>{Fn();const s=Sf(e),l=vn(t,e,r,o);return s(),Hn(),l});return n?i.unshift(a):i.push(a),a}}const wi=r=>(t,e=Ve)=>{(!Bs||r==="sp")&&Gv(r,(...n)=>t(...n),e)},iV=wi("bm"),aV=wi("m"),oV=wi("bu"),sV=wi("u"),lV=wi("bum"),G0=wi("um"),uV=wi("sp"),fV=wi("rtg"),cV=wi("rtc");function hV(r,t=Ve){Gv("ec",r,t)}const rI="components";function vV(r,t){return pV(rI,r,!0,t)||r}const dV=Symbol.for("v-ndc");function pV(r,t,e=!0,n=!1){const i=Be||Ve;if(i){const a=i.type;if(r===rI){const s=eB(a,!1);if(s&&(s===t||s===or(t)||s===kv(or(t))))return a}const o=AS(i[r]||a[r],t)||AS(i.appContext[r],t);return!o&&n?a:o}}function AS(r,t){return r&&(r[t]||r[or(t)]||r[kv(or(t))])}function Bit(r,t,e,n){let i;const a=e&&e[n],o=It(r);if(o||he(r)){const s=o&&po(r);let l=!1,u=!1;s&&(l=!Ar(r),u=di(r),r=Vv(r)),i=new Array(r.length);for(let f=0,c=r.length;f<c;f++)i[f]=t(l?u?Ns(hn(r[f])):hn(r[f]):r[f],f,void 0,a&&a[f])}else if(typeof r=="number"){i=new Array(r);for(let s=0;s<r;s++)i[s]=t(s+1,s,void 0,a&&a[s])}else if(re(r))if(r[Symbol.iterator])i=Array.from(r,(s,l)=>t(s,l,void 0,a&&a[l]));else{const s=Object.keys(r);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const f=s[l];i[l]=t(r[f],f,l,a&&a[l])}}else i=[];return e&&(e[n]=i),i}function zit(r,t,e={},n,i){if(Be.ce||Be.parent&&Ms(Be.parent)&&Be.parent.ce){const u=Object.keys(e).length>0;return t!=="default"&&(e.name=t),Mh(),Ih(zr,null,[Pe("slot",e,n&&n())],u?-2:64)}let a=r[t];a&&a._c&&(a._d=!1),Mh();const o=a&&nI(a(e)),s=e.key||o&&o.key,l=Ih(zr,{key:(s&&!Ir(s)?s:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&r._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function nI(r){return r.some(t=>Bu(t)?!(t.type===pi||t.type===zr&&!nI(t.children)):!0)?r:null}const wy=r=>r?bI(r)?Wv(r):wy(r.parent):null,du=Me(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>wy(r.parent),$root:r=>wy(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>F0(r),$forceUpdate:r=>r.f||(r.f=()=>{k0(r.update)}),$nextTick:r=>r.n||(r.n=E0.bind(r.proxy)),$watch:r=>qN.bind(r)}),Bd=(r,t)=>r!==ae&&!r.__isScriptSetup&&jt(r,t),gV={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=r;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return a[t]}else{if(Bd(n,t))return o[t]=1,n[t];if(i!==ae&&jt(i,t))return o[t]=2,i[t];if(jt(a,t))return o[t]=3,a[t];if(e!==ae&&jt(e,t))return o[t]=4,e[t];Ty&&(o[t]=0)}}const u=du[t];let f,c;if(u)return t==="$attrs"&&Xe(r.attrs,"get",""),u(r);if((f=s.__cssModules)&&(f=f[t]))return f;if(e!==ae&&jt(e,t))return o[t]=4,e[t];if(c=l.config.globalProperties,jt(c,t))return c[t]},set({_:r},t,e){const{data:n,setupState:i,ctx:a}=r;return Bd(i,t)?(i[t]=e,!0):n!==ae&&jt(n,t)?(n[t]=e,!0):jt(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(a[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:i,props:a,type:o}},s){let l;return!!(e[s]||r!==ae&&s[0]!=="$"&&jt(r,s)||Bd(t,s)||jt(a,s)||jt(n,s)||jt(du,s)||jt(i.config.globalProperties,s)||(l=o.__cssModules)&&l[s])},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:jt(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function CS(r){return It(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let Ty=!0;function yV(r){const t=F0(r),e=r.proxy,n=r.ctx;Ty=!1,t.beforeCreate&&MS(t.beforeCreate,r,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:d,activated:p,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:_,unmounted:S,render:x,renderTracked:b,renderTriggered:w,errorCaptured:T,serverPrefetch:A,expose:C,inheritAttrs:D,components:I,directives:L,filters:P}=t;if(u&&mV(u,n,null),o)for(const V in o){const N=o[V];Ot(N)&&(n[V]=N.bind(e))}if(i){const V=i.call(e,e);re(V)&&(r.data=Bv(V))}if(Ty=!0,a)for(const V in a){const N=a[V],G=Ot(N)?N.bind(e,e):Ot(N.get)?N.get.bind(e,e):sn,$=!Ot(N)&&Ot(N.set)?N.set.bind(e):sn,q=nn({get:G,set:$});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>q.value,set:Q=>q.value=Q})}if(s)for(const V in s)iI(s[V],n,e,V);if(l){const V=Ot(l)?l.call(e):l;Reflect.ownKeys(V).forEach(N=>{Kc(N,V[N])})}f&&MS(f,r,"c");function O(V,N){It(N)?N.forEach(G=>V(G.bind(e))):N&&V(N.bind(e))}if(O(iV,c),O(aV,h),O(oV,v),O(sV,d),O(eV,p),O(rV,g),O(hV,T),O(cV,b),O(fV,w),O(lV,m),O(G0,S),O(uV,A),It(C))if(C.length){const V=r.exposed||(r.exposed={});C.forEach(N=>{Object.defineProperty(V,N,{get:()=>e[N],set:G=>e[N]=G,enumerable:!0})})}else r.exposed||(r.exposed={});x&&r.render===sn&&(r.render=x),D!=null&&(r.inheritAttrs=D),I&&(r.components=I),L&&(r.directives=L),A&&B0(r)}function mV(r,t,e=sn){It(r)&&(r=Ay(r));for(const n in r){const i=r[n];let a;re(i)?"default"in i?a=un(i.from||n,i.default,!0):a=un(i.from||n):a=un(i),ke(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function MS(r,t,e){vn(It(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function iI(r,t,e,n){let i=n.includes(".")?QD(e,n):()=>e[n];if(he(r)){const a=t[r];Ot(a)&&jc(i,a)}else if(Ot(r))jc(i,r.bind(e));else if(re(r))if(It(r))r.forEach(a=>iI(a,t,e,n));else{const a=Ot(r.handler)?r.handler.bind(e):t[r.handler];Ot(a)&&jc(i,a,r)}}function F0(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=r.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(u=>Ch(l,u,o,!0)),Ch(l,t,o)),re(t)&&a.set(t,l),l}function Ch(r,t,e,n=!1){const{mixins:i,extends:a}=t;a&&Ch(r,a,e,!0),i&&i.forEach(o=>Ch(r,o,e,!0));for(const o in t)if(!(n&&o==="expose")){const s=_V[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const _V={data:DS,props:IS,emits:IS,methods:Kl,computed:Kl,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:Kl,directives:Kl,watch:xV,provide:DS,inject:SV};function DS(r,t){return t?r?function(){return Me(Ot(r)?r.call(this,this):r,Ot(t)?t.call(this,this):t)}:t:r}function SV(r,t){return Kl(Ay(r),Ay(t))}function Ay(r){if(It(r)){const t={};for(let e=0;e<r.length;e++)t[r[e]]=r[e];return t}return r}function Qe(r,t){return r?[...new Set([].concat(r,t))]:t}function Kl(r,t){return r?Me(Object.create(null),r,t):t}function IS(r,t){return r?It(r)&&It(t)?[...new Set([...r,...t])]:Me(Object.create(null),CS(r),CS(t!=null?t:{})):t}function xV(r,t){if(!r)return t;if(!t)return r;const e=Me(Object.create(null),r);for(const n in t)e[n]=Qe(r[n],t[n]);return e}function aI(){return{app:null,config:{isNativeTag:wD,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let bV=0;function wV(r,t){return function(n,i=null){Ot(n)||(n=Me({},n)),i!=null&&!re(i)&&(i=null);const a=aI(),o=new WeakSet,s=[];let l=!1;const u=a.app={_uid:bV++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:nB,get config(){return a.config},set config(f){},use(f,...c){return o.has(f)||(f&&Ot(f.install)?(o.add(f),f.install(u,...c)):Ot(f)&&(o.add(f),f(u,...c))),u},mixin(f){return a.mixins.includes(f)||a.mixins.push(f),u},component(f,c){return c?(a.components[f]=c,u):a.components[f]},directive(f,c){return c?(a.directives[f]=c,u):a.directives[f]},mount(f,c,h){if(!l){const v=u._ceVNode||Pe(n,i);return v.appContext=a,h===!0?h="svg":h===!1&&(h=void 0),c&&t?t(v,f):r(v,f,h),l=!0,u._container=f,f.__vue_app__=u,Wv(v.component)}},onUnmount(f){s.push(f)},unmount(){l&&(vn(s,u._instance,16),r(null,u._container),delete u._container.__vue_app__)},provide(f,c){return a.provides[f]=c,u},runWithContext(f){const c=Ds;Ds=u;try{return f()}finally{Ds=c}}};return u}}let Ds=null;const TV=(r,t)=>t==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${or(t)}Modifiers`]||r[`${da(t)}Modifiers`];function AV(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||ae;let i=e;const a=t.startsWith("update:"),o=a&&TV(n,t.slice(7));o&&(o.trim&&(i=e.map(f=>he(f)?f.trim():f)),o.number&&(i=e.map(Ov)));let s,l=n[s=Rd(t)]||n[s=Rd(or(t))];!l&&a&&(l=n[s=Rd(da(t))]),l&&vn(l,r,6,i);const u=n[s+"Once"];if(u){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,vn(u,r,6,i)}}const CV=new WeakMap;function oI(r,t,e=!1){const n=e?CV:t.emitsCache,i=n.get(r);if(i!==void 0)return i;const a=r.emits;let o={},s=!1;if(!Ot(r)){const l=u=>{const f=oI(u,t,!0);f&&(s=!0,Me(o,f))};!e&&t.mixins.length&&t.mixins.forEach(l),r.extends&&l(r.extends),r.mixins&&r.mixins.forEach(l)}return!a&&!s?(re(r)&&n.set(r,null),null):(It(a)?a.forEach(l=>o[l]=null):Me(o,a),re(r)&&n.set(r,o),o)}function Fv(r,t){return!r||!Iv(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),jt(r,t[0].toLowerCase()+t.slice(1))||jt(r,da(t))||jt(r,t))}function zd(r){const{type:t,vnode:e,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:v,ctx:d,inheritAttrs:p}=r,g=Th(r);let y,m;try{if(e.shapeFlag&4){const S=i||n,x=S;y=Pn(u.call(x,S,f,c,v,h,d)),m=s}else{const S=t;y=Pn(S.length>1?S(c,{attrs:s,slots:o,emit:l}):S(c,null)),m=t.props?s:MV(s)}}catch(S){pu.length=0,_f(S,r,1),y=Pe(pi)}let _=y;if(m&&p!==!1){const S=Object.keys(m),{shapeFlag:x}=_;S.length&&x&7&&(a&&S.some(Lv)&&(m=DV(m,a)),_=Vs(_,m,!1,!0))}return e.dirs&&(_=Vs(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&N0(_,e.transition),y=_,Th(g),y}const MV=r=>{let t;for(const e in r)(e==="class"||e==="style"||Iv(e))&&((t||(t={}))[e]=r[e]);return t},DV=(r,t)=>{const e={};for(const n in r)(!Lv(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function IV(r,t,e){const{props:n,children:i,component:a}=r,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?LS(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;c<f.length;c++){const h=f[c];if(sI(o,n,h)&&!Fv(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?LS(n,o,u):!0:!!o;return!1}function LS(r,t,e){const n=Object.keys(t);if(n.length!==Object.keys(r).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(sI(t,r,a)&&!Fv(e,a))return!0}return!1}function sI(r,t,e){const n=r[e],i=t[e];return e==="style"&&re(n)&&re(i)?!yf(n,i):n!==i}function LV({vnode:r,parent:t,suspense:e},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===r&&(i.suspense.vnode.el=i.el=n,r=i),i===r)(r=t.vnode).el=n,t=t.parent;else break}e&&e.activeBranch===r&&(e.vnode.el=n)}const lI={},uI=()=>Object.create(lI),fI=r=>Object.getPrototypeOf(r)===lI;function PV(r,t,e,n=!1){const i={},a=uI();r.propsDefaults=Object.create(null),cI(r,t,i,a);for(const o in r.propsOptions[0])o in i||(i[o]=void 0);e?r.props=n?i:UD(i):r.type.props?r.props=i:r.props=a,r.attrs=a}function RV(r,t,e,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=r,s=Xt(i),[l]=r.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=r.vnode.dynamicProps;for(let c=0;c<f.length;c++){let h=f[c];if(Fv(r.emitsOptions,h))continue;const v=t[h];if(l)if(jt(a,h))v!==a[h]&&(a[h]=v,u=!0);else{const d=or(h);i[d]=Cy(l,s,d,v,r,!1)}else v!==a[h]&&(a[h]=v,u=!0)}}}else{cI(r,t,i,a)&&(u=!0);let f;for(const c in s)(!t||!jt(t,c)&&((f=da(c))===c||!jt(t,f)))&&(l?e&&(e[c]!==void 0||e[f]!==void 0)&&(i[c]=Cy(l,s,c,void 0,r,!0)):delete i[c]);if(a!==s)for(const c in a)(!t||!jt(t,c))&&(delete a[c],u=!0)}u&&ai(r.attrs,"set","")}function cI(r,t,e,n){const[i,a]=r.propsOptions;let o=!1,s;if(t)for(let l in t){if(fu(l))continue;const u=t[l];let f;i&&jt(i,f=or(l))?!a||!a.includes(f)?e[f]=u:(s||(s={}))[f]=u:Fv(r.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Xt(e),u=s||ae;for(let f=0;f<a.length;f++){const c=a[f];e[c]=Cy(i,l,c,u[c],r,!jt(u,c))}}return o}function Cy(r,t,e,n,i,a){const o=r[e];if(o!=null){const s=jt(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Ot(l)){const{propsDefaults:u}=i;if(e in u)n=u[e];else{const f=Sf(i);n=u[e]=l.call(null,t),f()}}else n=l;i.ce&&i.ce._setProp(e,n)}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===da(e))&&(n=!0))}return n}const EV=new WeakMap;function hI(r,t,e=!1){const n=e?EV:t.propsCache,i=n.get(r);if(i)return i;const a=r.props,o={},s=[];let l=!1;if(!Ot(r)){const f=c=>{l=!0;const[h,v]=hI(c,t,!0);Me(o,h),v&&s.push(...v)};!e&&t.mixins.length&&t.mixins.forEach(f),r.extends&&f(r.extends),r.mixins&&r.mixins.forEach(f)}if(!a&&!l)return re(r)&&n.set(r,Ts),Ts;if(It(a))for(let f=0;f<a.length;f++){const c=or(a[f]);PS(c)&&(o[c]=ae)}else if(a)for(const f in a){const c=or(f);if(PS(c)){const h=a[f],v=o[c]=It(h)||Ot(h)?{type:h}:Me({},h),d=v.type;let p=!1,g=!0;if(It(d))for(let y=0;y<d.length;++y){const m=d[y],_=Ot(m)&&m.name;if(_==="Boolean"){p=!0;break}else _==="String"&&(g=!1)}else p=Ot(d)&&d.name==="Boolean";v[0]=p,v[1]=g,(p||jt(v,"default"))&&s.push(c)}}const u=[o,s];return re(r)&&n.set(r,u),u}function PS(r){return r[0]!=="$"&&!fu(r)}const H0=r=>r==="_"||r==="_ctx"||r==="$stable",W0=r=>It(r)?r.map(Pn):[Pn(r)],kV=(r,t,e)=>{if(t._n)return t;const n=YN((...i)=>W0(t(...i)),e);return n._c=!1,n},vI=(r,t,e)=>{const n=r._ctx;for(const i in r){if(H0(i))continue;const a=r[i];if(Ot(a))t[i]=kV(i,a,n);else if(a!=null){const o=W0(a);t[i]=()=>o}}},dI=(r,t)=>{const e=W0(t);r.slots.default=()=>e},pI=(r,t,e)=>{for(const n in t)(e||!H0(n))&&(r[n]=t[n])},OV=(r,t,e)=>{const n=r.slots=uI();if(r.vnode.shapeFlag&32){const i=t._;i?(pI(n,t,e),e&&MD(n,"_",i,!0)):vI(t,n)}else t&&dI(r,t)},NV=(r,t,e)=>{const{vnode:n,slots:i}=r;let a=!0,o=ae;if(n.shapeFlag&32){const s=t._;s?e&&s===1?a=!1:pI(i,t,e):(a=!t.$stable,vI(t,i)),o=t}else t&&(dI(r,t),o={default:1});if(a)for(const s in i)!H0(s)&&o[s]==null&&delete i[s]},tr=FV;function VV(r){return BV(r)}function BV(r,t){const e=Nv();e.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=sn,insertStaticContent:d}=r,p=(R,k,z,X=null,W=null,J=null,ot=void 0,st=null,it=!!k.dynamicChildren)=>{if(R===k)return;R&&!yl(R,k)&&(X=U(R),Q(R,W,J,!0),R=null),k.patchFlag===-2&&(it=!1,k.dynamicChildren=null);const{type:et,ref:At,shapeFlag:dt}=k;switch(et){case Hv:g(R,k,z,X);break;case pi:y(R,k,z,X);break;case Jc:R==null&&m(k,z,X,ot);break;case zr:I(R,k,z,X,W,J,ot,st,it);break;default:dt&1?x(R,k,z,X,W,J,ot,st,it):dt&6?L(R,k,z,X,W,J,ot,st,it):(dt&64||dt&128)&&et.process(R,k,z,X,W,J,ot,st,it,tt)}At!=null&&W?vu(At,R&&R.ref,J,k||R,!k):At==null&&R&&R.ref!=null&&vu(R.ref,null,J,R,!0)},g=(R,k,z,X)=>{if(R==null)n(k.el=s(k.children),z,X);else{const W=k.el=R.el;k.children!==R.children&&u(W,k.children)}},y=(R,k,z,X)=>{R==null?n(k.el=l(k.children||""),z,X):k.el=R.el},m=(R,k,z,X)=>{[R.el,R.anchor]=d(R.children,k,z,X,R.el,R.anchor)},_=({el:R,anchor:k},z,X)=>{let W;for(;R&&R!==k;)W=h(R),n(R,z,X),R=W;n(k,z,X)},S=({el:R,anchor:k})=>{let z;for(;R&&R!==k;)z=h(R),i(R),R=z;i(k)},x=(R,k,z,X,W,J,ot,st,it)=>{if(k.type==="svg"?ot="svg":k.type==="math"&&(ot="mathml"),R==null)b(k,z,X,W,J,ot,st,it);else{const et=R.el&&R.el._isVueCE?R.el:null;try{et&&et._beginPatch(),A(R,k,W,J,ot,st,it)}finally{et&&et._endPatch()}}},b=(R,k,z,X,W,J,ot,st)=>{let it,et;const{props:At,shapeFlag:dt,transition:wt,dirs:Rt}=R;if(it=R.el=o(R.type,J,At&&At.is,At),dt&8?f(it,R.children):dt&16&&T(R.children,it,null,X,W,Gd(R,J),ot,st),Rt&&ma(R,null,X,"created"),w(it,R,R.scopeId,ot,X),At){for(const ie in At)ie!=="value"&&!fu(ie)&&a(it,ie,null,At[ie],J,X);"value"in At&&a(it,"value",null,At.value,J),(et=At.onVnodeBeforeMount)&&Sn(et,X,R)}Rt&&ma(R,null,X,"beforeMount");const Yt=zV(W,wt);Yt&&wt.beforeEnter(it),n(it,k,z),((et=At&&At.onVnodeMounted)||Yt||Rt)&&tr(()=>{try{et&&Sn(et,X,R),Yt&&wt.enter(it),Rt&&ma(R,null,X,"mounted")}finally{}},W)},w=(R,k,z,X,W)=>{if(z&&v(R,z),X)for(let J=0;J<X.length;J++)v(R,X[J]);if(W){let J=W.subTree;if(k===J||mI(J.type)&&(J.ssContent===k||J.ssFallback===k)){const ot=W.vnode;w(R,ot,ot.scopeId,ot.slotScopeIds,W.parent)}}},T=(R,k,z,X,W,J,ot,st,it=0)=>{for(let et=it;et<R.length;et++){const At=R[et]=st?ii(R[et]):Pn(R[et]);p(null,At,k,z,X,W,J,ot,st)}},A=(R,k,z,X,W,J,ot)=>{const st=k.el=R.el;let{patchFlag:it,dynamicChildren:et,dirs:At}=k;it|=R.patchFlag&16;const dt=R.props||ae,wt=k.props||ae;let Rt;if(z&&_a(z,!1),(Rt=wt.onVnodeBeforeUpdate)&&Sn(Rt,z,k,R),At&&ma(k,R,z,"beforeUpdate"),z&&_a(z,!0),et&&(!R.dynamicChildren||R.dynamicChildren.length!==et.length)&&(it=0,ot=!1,et=null),(dt.innerHTML&&wt.innerHTML==null||dt.textContent&&wt.textContent==null)&&f(st,""),et?C(R.dynamicChildren,et,st,z,X,Gd(k,W),J):ot||N(R,k,st,null,z,X,Gd(k,W),J,!1),it>0){if(it&16)D(st,dt,wt,z,W);else if(it&2&&dt.class!==wt.class&&a(st,"class",null,wt.class,W),it&4&&a(st,"style",dt.style,wt.style,W),it&8){const Yt=k.dynamicProps;for(let ie=0;ie<Yt.length;ie++){const ne=Yt[ie],Se=dt[ne],we=wt[ne];(we!==Se||ne==="value")&&a(st,ne,Se,we,W,z)}}it&1&&R.children!==k.children&&f(st,k.children)}else!ot&&et==null&&D(st,dt,wt,z,W);((Rt=wt.onVnodeUpdated)||At)&&tr(()=>{Rt&&Sn(Rt,z,k,R),At&&ma(k,R,z,"updated")},X)},C=(R,k,z,X,W,J,ot)=>{for(let st=0;st<k.length;st++){const it=R[st],et=k[st],At=it.el&&(it.type===zr||!yl(it,et)||it.shapeFlag&198)?c(it.el):z;p(it,et,At,null,X,W,J,ot,!0)}},D=(R,k,z,X,W)=>{if(k!==z){if(k!==ae)for(const J in k)!fu(J)&&!(J in z)&&a(R,J,k[J],null,W,X);for(const J in z){if(fu(J))continue;const ot=z[J],st=k[J];ot!==st&&J!=="value"&&a(R,J,st,ot,W,X)}"value"in z&&a(R,"value",k.value,z.value,W)}},I=(R,k,z,X,W,J,ot,st,it)=>{const et=k.el=R?R.el:s(""),At=k.anchor=R?R.anchor:s("");let{patchFlag:dt,dynamicChildren:wt,slotScopeIds:Rt}=k;Rt&&(st=st?st.concat(Rt):Rt),R==null?(n(et,z,X),n(At,z,X),T(k.children||[],z,At,W,J,ot,st,it)):dt>0&&dt&64&&wt&&R.dynamicChildren&&R.dynamicChildren.length===wt.length?(C(R.dynamicChildren,wt,z,W,J,ot,st),(k.key!=null||W&&k===W.subTree)&&$0(R,k,!0)):N(R,k,z,At,W,J,ot,st,it)},L=(R,k,z,X,W,J,ot,st,it)=>{k.slotScopeIds=st,R==null?k.shapeFlag&512?W.ctx.activate(k,z,X,ot,it):P(k,z,X,W,J,ot,it):E(R,k,it)},P=(R,k,z,X,W,J,ot)=>{const st=R.component=qV(R,X,W);if(z0(R)&&(st.ctx.renderer=tt),jV(st,!1,ot),st.asyncDep){if(W&&W.registerDep(st,O,ot),!R.el){const it=st.subTree=Pe(pi);y(null,it,k,z),R.placeholder=it.el}}else O(st,R,k,z,W,J,ot)},E=(R,k,z)=>{const X=k.component=R.component;if(IV(R,k,z))if(X.asyncDep&&!X.asyncResolved){V(X,k,z);return}else X.next=k,X.update();else k.el=R.el,X.vnode=k},O=(R,k,z,X,W,J,ot)=>{const st=()=>{if(R.isMounted){let{next:dt,bu:wt,u:Rt,parent:Yt,vnode:ie}=R;{const _r=gI(R);if(_r){dt&&(dt.el=ie.el,V(R,dt,ot)),_r.asyncDep.then(()=>{tr(()=>{R.isUnmounted||et()},W)});return}}let ne=dt,Se;_a(R,!1),dt?(dt.el=ie.el,V(R,dt,ot)):dt=ie,wt&&Xc(wt),(Se=dt.props&&dt.props.onVnodeBeforeUpdate)&&Sn(Se,Yt,dt,ie),_a(R,!0);const we=zd(R),Kr=R.subTree;R.subTree=we,p(Kr,we,c(Kr.el),U(Kr),R,W,J),dt.el=we.el,ne===null&&LV(R,we.el),Rt&&tr(Rt,W),(Se=dt.props&&dt.props.onVnodeUpdated)&&tr(()=>Sn(Se,Yt,dt,ie),W)}else{let dt;const{el:wt,props:Rt}=k,{bm:Yt,m:ie,parent:ne,root:Se,type:we}=R,Kr=Ms(k);if(_a(R,!1),Yt&&Xc(Yt),!Kr&&(dt=Rt&&Rt.onVnodeBeforeMount)&&Sn(dt,ne,k),_a(R,!0),wt&&ut){const _r=()=>{R.subTree=zd(R),ut(wt,R.subTree,R,W,null)};Kr&&we.__asyncHydrate?we.__asyncHydrate(wt,R,_r):_r()}else{Se.ce&&Se.ce._hasShadowRoot()&&Se.ce._injectChildStyle(we,R.parent?R.parent.type:void 0);const _r=R.subTree=zd(R);p(null,_r,z,X,R,W,J),k.el=_r.el}if(ie&&tr(ie,W),!Kr&&(dt=Rt&&Rt.onVnodeMounted)){const _r=k;tr(()=>Sn(dt,ne,_r),W)}(k.shapeFlag&256||ne&&Ms(ne.vnode)&&ne.vnode.shapeFlag&256)&&R.a&&tr(R.a,W),R.isMounted=!0,k=z=X=null}};R.scope.on();const it=R.effect=new PD(st);R.scope.off();const et=R.update=it.run.bind(it),At=R.job=it.runIfDirty.bind(it);At.i=R,At.id=R.uid,it.scheduler=()=>k0(At),_a(R,!0),et()},V=(R,k,z)=>{k.component=R;const X=R.vnode.props;R.vnode=k,R.next=null,RV(R,k.props,X,z),NV(R,k.children,z),Fn(),_S(R),Hn()},N=(R,k,z,X,W,J,ot,st,it=!1)=>{const et=R&&R.children,At=R?R.shapeFlag:0,dt=k.children,{patchFlag:wt,shapeFlag:Rt}=k;if(wt>0){if(wt&128){$(et,dt,z,X,W,J,ot,st,it);return}else if(wt&256){G(et,dt,z,X,W,J,ot,st,it);return}}Rt&8?(At&16&&Et(et,W,J),dt!==et&&f(z,dt)):At&16?Rt&16?$(et,dt,z,X,W,J,ot,st,it):Et(et,W,J,!0):(At&8&&f(z,""),Rt&16&&T(dt,z,X,W,J,ot,st,it))},G=(R,k,z,X,W,J,ot,st,it)=>{R=R||Ts,k=k||Ts;const et=R.length,At=k.length,dt=Math.min(et,At);let wt;for(wt=0;wt<dt;wt++){const Rt=k[wt]=it?ii(k[wt]):Pn(k[wt]);p(R[wt],Rt,z,null,W,J,ot,st,it)}et>At?Et(R,W,J,!0,!1,dt):T(k,z,X,W,J,ot,st,it,dt)},$=(R,k,z,X,W,J,ot,st,it)=>{let et=0;const At=k.length;let dt=R.length-1,wt=At-1;for(;et<=dt&&et<=wt;){const Rt=R[et],Yt=k[et]=it?ii(k[et]):Pn(k[et]);if(yl(Rt,Yt))p(Rt,Yt,z,null,W,J,ot,st,it);else break;et++}for(;et<=dt&&et<=wt;){const Rt=R[dt],Yt=k[wt]=it?ii(k[wt]):Pn(k[wt]);if(yl(Rt,Yt))p(Rt,Yt,z,null,W,J,ot,st,it);else break;dt--,wt--}if(et>dt){if(et<=wt){const Rt=wt+1,Yt=Rt<At?k[Rt].el:X;for(;et<=wt;)p(null,k[et]=it?ii(k[et]):Pn(k[et]),z,Yt,W,J,ot,st,it),et++}}else if(et>wt)for(;et<=dt;)Q(R[et],W,J,!0),et++;else{const Rt=et,Yt=et,ie=new Map;for(et=Yt;et<=wt;et++){const Sr=k[et]=it?ii(k[et]):Pn(k[et]);Sr.key!=null&&ie.set(Sr.key,et)}let ne,Se=0;const we=wt-Yt+1;let Kr=!1,_r=0;const dl=new Array(we);for(et=0;et<we;et++)dl[et]=0;for(et=Rt;et<=dt;et++){const Sr=R[et];if(Se>=we){Q(Sr,W,J,!0);continue}let _n;if(Sr.key!=null)_n=ie.get(Sr.key);else for(ne=Yt;ne<=wt;ne++)if(dl[ne-Yt]===0&&yl(Sr,k[ne])){_n=ne;break}_n===void 0?Q(Sr,W,J,!0):(dl[_n-Yt]=et+1,_n>=_r?_r=_n:Kr=!0,p(Sr,k[_n],z,null,W,J,ot,st,it),Se++)}const lS=Kr?GV(dl):Ts;for(ne=lS.length-1,et=we-1;et>=0;et--){const Sr=Yt+et,_n=k[Sr],uS=k[Sr+1],fS=Sr+1<At?uS.el||yI(uS):X;dl[et]===0?p(null,_n,z,fS,W,J,ot,st,it):Kr&&(ne<0||et!==lS[ne]?q(_n,z,fS,2):ne--)}}},q=(R,k,z,X,W=null)=>{const{el:J,type:ot,transition:st,children:it,shapeFlag:et}=R;if(et&6){q(R.component.subTree,k,z,X);return}if(et&128){R.suspense.move(k,z,X);return}if(et&64){ot.move(R,k,z,tt);return}if(ot===zr){n(J,k,z);for(let dt=0;dt<it.length;dt++)q(it[dt],k,z,X);n(R.anchor,k,z);return}if(ot===Jc){_(R,k,z);return}if(X!==2&&et&1&&st)if(X===0)st.persisted&&!J[Vd]?n(J,k,z):(st.beforeEnter(J),n(J,k,z),tr(()=>st.enter(J),W));else{const{leave:dt,delayLeave:wt,afterLeave:Rt}=st,Yt=()=>{R.ctx.isUnmounted?i(J):n(J,k,z)},ie=()=>{const ne=J._isLeaving||!!J[Vd];J._isLeaving&&J[Vd](!0),st.persisted&&!ne?Yt():dt(J,()=>{Yt(),Rt&&Rt()})};wt?wt(J,Yt,ie):ie()}else n(J,k,z)},Q=(R,k,z,X=!1,W=!1)=>{const{type:J,props:ot,ref:st,children:it,dynamicChildren:et,shapeFlag:At,patchFlag:dt,dirs:wt,cacheIndex:Rt,memo:Yt}=R;if(dt===-2&&(W=!1),st!=null&&(Fn(),vu(st,null,z,R,!0),Hn()),Rt!=null&&(k.renderCache[Rt]=void 0),At&256){k.ctx.deactivate(R);return}const ie=At&1&&wt,ne=!Ms(R);let Se;if(ne&&(Se=ot&&ot.onVnodeBeforeUnmount)&&Sn(Se,k,R),At&6)gt(R.component,z,X);else{if(At&128){R.suspense.unmount(z,X);return}ie&&ma(R,null,k,"beforeUnmount"),At&64?R.type.remove(R,k,z,tt,X):et&&!et.hasOnce&&(J!==zr||dt>0&&dt&64)?Et(et,k,z,!1,!0):(J===zr&&dt&384||!W&&At&16)&&Et(it,k,z),X&&ct(R)}const we=Yt!=null&&Rt==null;(ne&&(Se=ot&&ot.onVnodeUnmounted)||ie||we)&&tr(()=>{Se&&Sn(Se,k,R),ie&&ma(R,null,k,"unmounted"),we&&(R.el=null)},z)},ct=R=>{const{type:k,el:z,anchor:X,transition:W}=R;if(k===zr){ht(z,X);return}if(k===Jc){S(R);return}const J=()=>{i(z),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(R.shapeFlag&1&&W&&!W.persisted){const{leave:ot,delayLeave:st}=W,it=()=>ot(z,J);st?st(R.el,J,it):it()}else J()},ht=(R,k)=>{let z;for(;R!==k;)z=h(R),i(R),R=z;i(k)},gt=(R,k,z)=>{const{bum:X,scope:W,job:J,subTree:ot,um:st,m:it,a:et}=R;RS(it),RS(et),X&&Xc(X),W.stop(),J&&(J.flags|=8,Q(ot,R,k,z)),st&&tr(st,k),tr(()=>{R.isUnmounted=!0},k)},Et=(R,k,z,X=!1,W=!1,J=0)=>{for(let ot=J;ot<R.length;ot++)Q(R[ot],k,z,X,W)},U=R=>{if(R.shapeFlag&6)return U(R.component.subTree);if(R.shapeFlag&128)return R.suspense.next();const k=h(R.anchor||R.el),z=k&&k[tI];return z?h(z):k};let K=!1;const H=(R,k,z)=>{let X;R==null?k._vnode&&(Q(k._vnode,null,null,!0),X=k._vnode.component):p(k._vnode||null,R,k,null,null,null,z),k._vnode=R,K||(K=!0,_S(X),KD(),K=!1)},tt={p,um:Q,m:q,r:ct,mt:P,mc:T,pc:N,pbc:C,n:U,o:r};let j,ut;return t&&([j,ut]=t(tt)),{render:H,hydrate:j,createApp:wV(H,j)}}function Gd({type:r,props:t},e){return e==="svg"&&r==="foreignObject"||e==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function _a({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function zV(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function $0(r,t,e=!1){const n=r.children,i=t.children;if(It(n)&&It(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=ii(i[a]),s.el=o.el),!e&&s.patchFlag!==-2&&$0(o,s)),s.type===Hv&&(s.patchFlag===-1&&(s=i[a]=ii(s)),s.el=o.el),s.type===pi&&!s.el&&(s.el=o.el)}}function GV(r){const t=r.slice(),e=[0];let n,i,a,o,s;const l=r.length;for(n=0;n<l;n++){const u=r[n];if(u!==0){if(i=e[e.length-1],r[i]<u){t[n]=i,e.push(n);continue}for(a=0,o=e.length-1;a<o;)s=a+o>>1,r[e[s]]<u?a=s+1:o=s;u<r[e[a]]&&(a>0&&(t[n]=e[a-1]),e[a]=n)}}for(a=e.length,o=e[a-1];a-- >0;)e[a]=o,o=t[o];return e}function gI(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gI(t)}function RS(r){if(r)for(let t=0;t<r.length;t++)r[t].flags|=8}function yI(r){if(r.placeholder)return r.placeholder;const t=r.component;return t?yI(t.subTree):null}const mI=r=>r.__isSuspense;function FV(r,t){t&&t.pendingBranch?It(r)?t.effects.push(...r):t.effects.push(r):UN(r)}const zr=Symbol.for("v-fgt"),Hv=Symbol.for("v-txt"),pi=Symbol.for("v-cmt"),Jc=Symbol.for("v-stc"),pu=[];let wr=null;function Mh(r=!1){pu.push(wr=r?null:[])}function HV(){pu.pop(),wr=pu[pu.length-1]||null}let Vu=1;function Dh(r,t=!1){Vu+=r,r<0&&wr&&t&&(wr.hasOnce=!0)}function _I(r){return r.dynamicChildren=Vu>0?wr||Ts:null,HV(),Vu>0&&wr&&wr.push(r),r}function Git(r,t,e,n,i,a){return _I(xI(r,t,e,n,i,a,!0))}function Ih(r,t,e,n,i){return _I(Pe(r,t,e,n,i,!0))}function Bu(r){return r?r.__v_isVNode===!0:!1}function yl(r,t){return r.type===t.type&&r.key===t.key}const SI=({key:r})=>r!=null?r:null,Qc=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?he(r)||ke(r)||Ot(r)?{i:Be,r,k:t,f:!!e}:r:null);function xI(r,t=null,e=null,n=0,i=null,a=r===zr?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&SI(t),ref:t&&Qc(t),scopeId:JD,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Be};return s?(Lh(l,e),a&128&&r.normalize(l)):e&&(l.shapeFlag|=he(e)?8:16),Vu>0&&!o&&wr&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&wr.push(l),l}const Pe=WV;function WV(r,t=null,e=null,n=0,i=null,a=!1){if((!r||r===dV)&&(r=pi),Bu(r)){const s=Vs(r,t,!0);return e&&Lh(s,e),Vu>0&&!a&&wr&&(s.shapeFlag&6?wr[wr.indexOf(r)]=s:wr.push(s)),s.patchFlag=-2,s}if(rB(r)&&(r=r.__vccOpts),t){t=$V(t);let{class:s,style:l}=t;s&&!he(s)&&(t.class=C0(s)),re(l)&&(zv(l)&&!It(l)&&(l=Me({},l)),t.style=A0(l))}const o=he(r)?1:mI(r)?128:KN(r)?64:re(r)?4:Ot(r)?2:0;return xI(r,t,e,n,i,o,a,!0)}function $V(r){return r?zv(r)||fI(r)?Me({},r):r:null}function Vs(r,t,e=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=r,u=t?YV(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&SI(u),ref:t&&t.ref?e&&a?It(a)?a.concat(Qc(t)):[a,Qc(t)]:Qc(t):a,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:s,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==zr?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:l,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Vs(r.ssContent),ssFallback:r.ssFallback&&Vs(r.ssFallback),placeholder:r.placeholder,el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&n&&N0(f,l.clone(f)),f}function UV(r=" ",t=0){return Pe(Hv,null,r,t)}function Fit(r,t){const e=Pe(Jc,null,r);return e.staticCount=t,e}function Hit(r="",t=!1){return t?(Mh(),Ih(pi,null,r)):Pe(pi,null,r)}function Pn(r){return r==null||typeof r=="boolean"?Pe(pi):It(r)?Pe(zr,null,r.slice()):Bu(r)?ii(r):Pe(Hv,null,String(r))}function ii(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Vs(r)}function Lh(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(It(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Lh(r,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!fI(t)?t._ctx=Be:i===3&&Be&&(Be.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else if(Ot(t)){if(n&65){Lh(r,{default:t});return}t={default:t,_ctx:Be},e=32}else t=String(t),n&64?(e=16,t=[UV(t)]):e=8;r.children=t,r.shapeFlag|=e}function YV(...r){const t={};for(let e=0;e<r.length;e++){const n=r[e];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=C0([t.class,n.class]));else if(i==="style")t.style=A0([t.style,n.style]);else if(Iv(i)){const a=t[i],o=n[i];o&&a!==o&&!(It(a)&&a.includes(o))?t[i]=a?[].concat(a,o):o:o==null&&a==null&&!Lv(i)&&(t[i]=o)}else i!==""&&(t[i]=n[i])}return t}function Sn(r,t,e,n=null){vn(r,t,7,[e,n])}const ZV=aI();let XV=0;function qV(r,t,e){const n=r.type,i=(t?t.appContext:r.appContext)||ZV,a={uid:XV++,vnode:r,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new vN(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hI(n,i),emitsOptions:oI(n,i),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:n.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,setupContext:null,suspense:e,suspenseId:e?e.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=AV.bind(null,a),r.ce&&r.ce(a),a}let Ve=null;const KV=()=>Ve||Be;let Ph,My;{const r=Nv(),t=(e,n)=>{let i;return(i=r[e])||(i=r[e]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Ph=t("__VUE_INSTANCE_SETTERS__",e=>Ve=e),My=t("__VUE_SSR_SETTERS__",e=>Bs=e)}const Sf=r=>{const t=Ve;return Ph(r),r.scope.on(),()=>{r.scope.off(),Ph(t)}},ES=()=>{Ve&&Ve.scope.off(),Ph(null)};function bI(r){return r.vnode.shapeFlag&4}let Bs=!1;function jV(r,t=!1,e=!1){t&&My(t);const{props:n,children:i}=r.vnode,a=bI(r);PV(r,n,a,t),OV(r,i,e||t);const o=a?JV(r,t):void 0;return t&&My(!1),o}function JV(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,gV);const{setup:n}=e;if(n){Fn();const i=r.setupContext=n.length>1?tB(r):null,a=Sf(r),o=mf(n,r,0,[r.props,i]),s=TD(o);if(Hn(),a(),(s||r.sp)&&!Ms(r)&&B0(r),s){if(o.then(ES,ES),t)return o.then(l=>{kS(r,l,t)}).catch(l=>{_f(l,r,0)});r.asyncDep=o}else kS(r,o,t)}else wI(r,t)}function kS(r,t,e){Ot(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:re(t)&&(r.setupState=ZD(t)),wI(r,e)}let OS;function wI(r,t,e){const n=r.type;if(!r.render){if(!t&&OS&&!n.render){const i=n.template||F0(r).template;if(i){const{isCustomElement:a,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Me(Me({isCustomElement:a,delimiters:s},o),l);n.render=OS(i,u)}}r.render=n.render||sn}{const i=Sf(r);Fn();try{yV(r)}finally{Hn(),i()}}}const QV={get(r,t){return Xe(r,"get",""),r[t]}};function tB(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,QV),slots:r.slots,emit:r.emit,expose:t}}function Wv(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(ZD(EN(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in du)return du[e](r)},has(t,e){return e in t||e in du}})):r.proxy}function eB(r,t=!0){return Ot(r)?r.displayName||r.name:r.name||t&&r.__name}function rB(r){return Ot(r)&&"__vccOpts"in r}const nn=(r,t)=>GN(r,t,Bs);function TI(r,t,e){try{Dh(-1);const n=arguments.length;return n===2?re(t)&&!It(t)?Bu(t)?Pe(r,null,[t]):Pe(r,t):Pe(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&Bu(e)&&(e=[e]),Pe(r,t,e))}finally{Dh(1)}}const nB="3.5.39";/** |
|
* @vue/runtime-dom v3.5.39 |
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors |
|
* @license MIT |
|
**/let Dy;const NS=typeof window!="undefined"&&window.trustedTypes;if(NS)try{Dy=NS.createPolicy("vue",{createHTML:r=>r})}catch(r){}const AI=Dy?r=>Dy.createHTML(r):r=>r,iB="http://www.w3.org/2000/svg",aB="http://www.w3.org/1998/Math/MathML",ei=typeof document!="undefined"?document:null,VS=ei&&ei.createElement("template"),oB={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const i=t==="svg"?ei.createElementNS(iB,r):t==="mathml"?ei.createElementNS(aB,r):e?ei.createElement(r,{is:e}):ei.createElement(r);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>ei.createTextNode(r),createComment:r=>ei.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>ei.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,i,a){const o=e?e.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===a||!(i=i.nextSibling)););else{VS.innerHTML=AI(n==="svg"?`<svg>${r}</svg>`:n==="mathml"?`<math>${r}</math>`:r);const s=VS.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},sB=Symbol("_vtc");function lB(r,t,e){const n=r[sB];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const Rh=Symbol("_vod"),CI=Symbol("_vsh"),Wit={name:"show",beforeMount(r,{value:t},{transition:e}){r[Rh]=r.style.display==="none"?"":r.style.display,e&&t?e.beforeEnter(r):ml(r,t)},mounted(r,{value:t},{transition:e}){e&&t&&e.enter(r)},updated(r,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(r),ml(r,!0),n.enter(r)):n.leave(r,()=>{ml(r,!1)}):ml(r,t))},beforeUnmount(r,{value:t}){ml(r,t)}};function ml(r,t){r.style.display=t?r[Rh]:"none",r[CI]=!t}const uB=Symbol(""),fB=/(?:^|;)\s*display\s*:/;function cB(r,t,e){const n=r.style,i=he(e);let a=!1;if(e&&!i){if(t)if(he(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();e[s]==null&&jl(n,s,"")}else for(const o in t)e[o]==null&&jl(n,o,"");for(const o in e){o==="display"&&(a=!0);const s=e[o];s!=null?vB(r,o,!he(t)&&t?t[o]:void 0,s)||jl(n,o,s):jl(n,o,"")}}else if(i){if(t!==e){const o=n[uB];o&&(e+=";"+o),n.cssText=e,a=fB.test(e)}}else t&&r.removeAttribute("style");Rh in r&&(r[Rh]=a?n.display:"",r[CI]&&(n.display="none"))}const BS=/\s*!important$/;function jl(r,t,e){if(It(e))e.forEach(n=>jl(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=hB(r,t);BS.test(e)?r.setProperty(da(n),e.replace(BS,""),"important"):r[n]=e}}const zS=["Webkit","Moz","ms"],Fd={};function hB(r,t){const e=Fd[t];if(e)return e;let n=or(t);if(n!=="filter"&&n in r)return Fd[t]=n;n=kv(n);for(let i=0;i<zS.length;i++){const a=zS[i]+n;if(a in r)return Fd[t]=a}return t}function vB(r,t,e,n){return r.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&he(n)&&e===n}const GS="http://www.w3.org/1999/xlink";function FS(r,t,e,n,i,a=uN(t)){n&&t.startsWith("xlink:")?e==null?r.removeAttributeNS(GS,t.slice(6,t.length)):r.setAttributeNS(GS,t,e):e==null||a&&!DD(e)?r.removeAttribute(t):r.setAttribute(t,a?"":Ir(e)?String(e):e)}function HS(r,t,e,n,i){if(t==="innerHTML"||t==="textContent"){e!=null&&(r[t]=t==="innerHTML"?AI(e):e);return}const a=r.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?r.getAttribute("value")||"":r.value,l=e==null?r.type==="checkbox"?"on":"":String(e);(s!==l||!("_value"in r))&&(r.value=l),e==null&&r.removeAttribute(t),r._value=e;return}let o=!1;if(e===""||e==null){const s=typeof r[t];s==="boolean"?e=DD(e):e==null&&s==="string"?(e="",o=!0):s==="number"&&(e=0,o=!0)}try{r[t]=e}catch(s){}o&&r.removeAttribute(i||t)}function Ja(r,t,e,n){r.addEventListener(t,e,n)}function dB(r,t,e,n){r.removeEventListener(t,e,n)}const WS=Symbol("_vei");function pB(r,t,e,n,i=null){const a=r[WS]||(r[WS]={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=mB(t);if(n){const u=a[t]=xB(n,i);Ja(r,s,u,l)}else o&&(dB(r,s,o,l),a[t]=void 0)}}const gB=/(Once|Passive|Capture)$/,yB=/^on:?(?:Once|Passive|Capture)$/;function mB(r){let t,e;for(;(e=r.match(gB))&&!yB.test(r);)t||(t={}),r=r.slice(0,r.length-e[1].length),t[e[1].toLowerCase()]=!0;return[r[2]===":"?r.slice(3):da(r.slice(2)),t]}let Hd=0;const _B=Promise.resolve(),SB=()=>Hd||(_B.then(()=>Hd=0),Hd=Date.now());function xB(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;const i=e.value;if(It(i)){const a=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{a.call(n),n._stopped=!0};const o=i.slice(),s=[n];for(let l=0;l<o.length&&!n._stopped;l++){const u=o[l];u&&vn(u,t,5,s)}}else vn(i,t,5,[n])};return e.value=r,e.attached=SB(),e}const $S=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,bB=(r,t,e,n,i,a)=>{const o=i==="svg";t==="class"?lB(r,n,o):t==="style"?cB(r,e,n):Iv(t)?Lv(t)||pB(r,t,e,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wB(r,t,n,o))?(HS(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&FS(r,t,n,o,a,t!=="value")):r._isVueCE&&(TB(r,t)||r._def.__asyncLoader&&(/[A-Z]/.test(t)||!he(n)))?HS(r,or(t),n,a,t):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),FS(r,t,n,o))};function wB(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&$S(t)&&Ot(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&r.tagName==="IFRAME"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=r.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return $S(t)&&he(e)?!1:t in r}function TB(r,t){const e=r._def.props;if(!e)return!1;const n=or(t);return Array.isArray(e)?e.some(i=>or(i)===n):Object.keys(e).some(i=>or(i)===n)}const Eh=r=>{const t=r.props["onUpdate:modelValue"]||!1;return It(t)?e=>Xc(t,e):t};function AB(r){r.target.composing=!0}function US(r){const t=r.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Is=Symbol("_assign");function YS(r,t,e){return t&&(r=r.trim()),e&&(r=Ov(r)),r}const $it={created(r,{modifiers:{lazy:t,trim:e,number:n}},i){r[Is]=Eh(i);const a=n||i.props&&i.props.type==="number";Ja(r,t?"change":"input",o=>{o.target.composing||r[Is](YS(r.value,e,a))}),(e||a)&&Ja(r,"change",()=>{r.value=YS(r.value,e,a)}),t||(Ja(r,"compositionstart",AB),Ja(r,"compositionend",US),Ja(r,"change",US))},mounted(r,{value:t}){r.value=t==null?"":t},beforeUpdate(r,{value:t,oldValue:e,modifiers:{lazy:n,trim:i,number:a}},o){if(r[Is]=Eh(o),r.composing)return;const s=(a||r.type==="number")&&!/^0\d/.test(r.value)?Ov(r.value):r.value,l=t==null?"":t;if(s===l)return;const u=r.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===r&&r.type!=="range"&&(n&&t===e||i&&r.value.trim()===l)||(r.value=l)}},Uit={deep:!0,created(r,{value:t,modifiers:{number:e}},n){const i=Pv(t);Ja(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>e?Ov(kh(o)):kh(o));r[Is](r.multiple?i?new Set(a):a:a[0]),r._assigning=!0,E0(()=>{r._assigning=!1})}),r[Is]=Eh(n)},mounted(r,{value:t}){ZS(r,t)},beforeUpdate(r,t,e){r[Is]=Eh(e)},updated(r,{value:t}){r._assigning||ZS(r,t)}};function ZS(r,t){const e=r.multiple,n=It(t);if(!(e&&!n&&!Pv(t))){for(let i=0,a=r.options.length;i<a;i++){const o=r.options[i],s=kh(o);if(e)if(n){const l=typeof s;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(s)):o.selected=cN(t,s)>-1}else o.selected=t.has(s);else if(yf(kh(o),t)){r.selectedIndex!==i&&(r.selectedIndex=i);return}}!e&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function kh(r){return"_value"in r?r._value:r.value}const CB=["ctrl","shift","alt","meta"],MB={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,t)=>CB.some(e=>r[`${e}Key`]&&!t.includes(e))},Yit=(r,t)=>{if(!r)return r;const e=r._withMods||(r._withMods={}),n=t.join(".");return e[n]||(e[n]=(i,...a)=>{for(let o=0;o<t.length;o++){const s=MB[t[o]];if(s&&s(i,t))return}return r(i,...a)})},DB={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zit=(r,t)=>{const e=r._withKeys||(r._withKeys={}),n=t.join(".");return e[n]||(e[n]=i=>{if(!("key"in i))return;const a=da(i.key);if(t.some(o=>o===a||DB[o]===a))return r(i)})},IB=Me({patchProp:bB},oB);let XS;function LB(){return XS||(XS=VV(IB))}const PB=(...r)=>{const t=LB().createApp(...r),{mount:e}=t;return t.mount=n=>{const i=EB(n);if(!i)return;const a=t._component;!Ot(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=e(i,!1,RB(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function RB(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function EB(r){return he(r)?document.querySelector(r):r}const kB="modulepreload",OB=function(r,t){return new URL(r,t).href},qS={},U0=function(t,e,n){if(!e||e.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(e.map(a=>{if(a=OB(a,n),a in qS)return;qS[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!n)for(let f=i.length-1;f>=0;f--){const c=i[f];if(c.href===a&&(!o||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":kB,o||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),o)return new Promise((f,c)=>{u.addEventListener("load",f),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})};/*! |
|
* vue-router v4.6.4 |
|
* (c) 2025 Eduardo San Martin Morote |
|
* @license MIT |
|
*/const ds=typeof document!="undefined";function MI(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function NB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&MI(r.default)}const Kt=Object.assign;function Wd(r,t){const e={};for(const n in t){const i=t[n];e[n]=dn(i)?i.map(r):r(i)}return e}const gu=()=>{},dn=Array.isArray;function KS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}const DI=/#/g,VB=/&/g,BB=/\//g,zB=/=/g,GB=/\?/g,II=/\+/g,FB=/%5B/g,HB=/%5D/g,LI=/%5E/g,WB=/%60/g,PI=/%7B/g,$B=/%7C/g,RI=/%7D/g,UB=/%20/g;function Y0(r){return r==null?"":encodeURI(""+r).replace($B,"|").replace(FB,"[").replace(HB,"]")}function YB(r){return Y0(r).replace(PI,"{").replace(RI,"}").replace(LI,"^")}function Iy(r){return Y0(r).replace(II,"%2B").replace(UB,"+").replace(DI,"%23").replace(VB,"%26").replace(WB,"`").replace(PI,"{").replace(RI,"}").replace(LI,"^")}function ZB(r){return Iy(r).replace(zB,"%3D")}function XB(r){return Y0(r).replace(DI,"%23").replace(GB,"%3F")}function qB(r){return XB(r).replace(BB,"%2F")}function zu(r){if(r==null)return null;try{return decodeURIComponent(""+r)}catch(t){}return""+r}const KB=/\/$/,jB=r=>r.replace(KB,"");function $d(r,t,e="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(n=t.slice(0,l),a=t.slice(l,s>0?s:t.length),i=r(a.slice(1))),s>=0&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=ez(n!=null?n:t,e),{fullPath:n+a+o,path:n,query:i,hash:zu(o)}}function JB(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function jS(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function QB(r,t,e){const n=t.matched.length-1,i=e.matched.length-1;return n>-1&&n===i&&zs(t.matched[n],e.matched[i])&&EI(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function zs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function EI(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(var e in r)if(!tz(r[e],t[e]))return!1;return!0}function tz(r,t){return dn(r)?JS(r,t):dn(t)?JS(t,r):(r==null?void 0:r.valueOf())===(t==null?void 0:t.valueOf())}function JS(r,t){return dn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function ez(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=e.length-1,o,s;for(o=0;o<n.length;o++)if(s=n[o],s!==".")if(s==="..")a>1&&a--;else break;return e.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const Mi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ly=function(r){return r.pop="pop",r.push="push",r}({}),Ud=function(r){return r.back="back",r.forward="forward",r.unknown="",r}({});function rz(r){if(!r)if(ds){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),jB(r)}const nz=/^[^#]+#/;function iz(r,t){return r.replace(nz,"#")+t}function az(r,t){const e=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:t.behavior,left:n.left-e.left-(t.left||0),top:n.top-e.top-(t.top||0)}}const $v=()=>({left:window.scrollX,top:window.scrollY});function oz(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),i=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!i)return;t=az(i,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function QS(r,t){return(history.state?history.state.position-t:-1)+r}const Py=new Map;function sz(r,t){Py.set(r,t)}function lz(r){const t=Py.get(r);return Py.delete(r),t}function uz(r){return typeof r=="string"||r&&typeof r=="object"}function kI(r){return typeof r=="string"||typeof r=="symbol"}let ve=function(r){return r[r.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",r[r.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",r[r.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",r[r.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",r[r.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",r}({});const OI=Symbol("");ve.MATCHER_NOT_FOUND+"",ve.NAVIGATION_GUARD_REDIRECT+"",ve.NAVIGATION_ABORTED+"",ve.NAVIGATION_CANCELLED+"",ve.NAVIGATION_DUPLICATED+"";function Gs(r,t){return Kt(new Error,{type:r,[OI]:!0},t)}function jn(r,t){return r instanceof Error&&OI in r&&(t==null||!!(r.type&t))}const fz=["params","query","hash"];function cz(r){if(typeof r=="string")return r;if(r.path!=null)return r.path;const t={};for(const e of fz)e in r&&(t[e]=r[e]);return JSON.stringify(t,null,2)}function hz(r){const t={};if(r===""||r==="?")return t;const e=(r[0]==="?"?r.slice(1):r).split("&");for(let n=0;n<e.length;++n){const i=e[n].replace(II," "),a=i.indexOf("="),o=zu(a<0?i:i.slice(0,a)),s=a<0?null:zu(i.slice(a+1));if(o in t){let l=t[o];dn(l)||(l=t[o]=[l]),l.push(s)}else t[o]=s}return t}function tx(r){let t="";for(let e in r){const n=r[e];if(e=ZB(e),n==null){n!==void 0&&(t+=(t.length?"&":"")+e);continue}(dn(n)?n.map(i=>i&&Iy(i)):[n&&Iy(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function vz(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=dn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const dz=Symbol(""),ex=Symbol(""),Uv=Symbol(""),Z0=Symbol(""),Ry=Symbol("");function _l(){let r=[];function t(n){return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function Hi(r,t,e,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(Gs(ve.NAVIGATION_ABORTED,{from:e,to:t})):h instanceof Error?l(h):uz(h)?l(Gs(ve.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),s())},f=a(()=>r.call(n&&n.instances[i],t,e,u));let c=Promise.resolve(f);r.length<3&&(c=c.then(u)),c.catch(h=>l(h))})}function Yd(r,t,e,n,i=a=>a()){const a=[];for(const o of r)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(MI(l)){const u=(l.__vccOpts||l)[t];u&&a.push(Hi(u,e,n,o,s,i))}else{let u=l();a.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=NB(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const h=(c.__vccOpts||c)[t];return h&&Hi(h,e,n,o,s,i)()}))}}return a}function pz(r,t){const e=[],n=[],i=[],a=Math.max(t.matched.length,r.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(r.matched.find(u=>zs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>zs(u,l))||i.push(l))}return[e,n,i]}/*! |
|
* vue-router v4.6.4 |
|
* (c) 2025 Eduardo San Martin Morote |
|
* @license MIT |
|
*/let gz=()=>location.protocol+"//"+location.host;function NI(r,t){const{pathname:e,search:n,hash:i}=t,a=r.indexOf("#");if(a>-1){let o=i.includes(r.slice(a))?r.slice(a).length:1,s=i.slice(o);return s[0]!=="/"&&(s="/"+s),jS(s,"")}return jS(e,r)+n+i}function yz(r,t,e,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=NI(r,location),d=e.value,p=t.value;let g=0;if(h){if(e.value=v,t.value=h,o&&o===d){o=null;return}g=p?h.position-p.position:0}else n(v);i.forEach(y=>{y(e.value,d,{delta:g,type:Ly.pop,direction:g?g>0?Ud.forward:Ud.back:Ud.unknown})})};function l(){o=e.value}function u(h){i.push(h);const v=()=>{const d=i.indexOf(h);d>-1&&i.splice(d,1)};return a.push(v),v}function f(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Kt({},h.state,{scroll:$v()}),"")}}function c(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:l,listen:u,destroy:c}}function rx(r,t,e,n=!1,i=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:i?$v():null}}function mz(r){const{history:t,location:e}=window,n={value:NI(r,e)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=r.indexOf("#"),h=c>-1?(e.host&&document.querySelector("base")?r:r.slice(c))+l:gz()+r+l;try{t[f?"replaceState":"pushState"](u,"",h),i.value=u}catch(v){console.error(v),e[f?"replace":"assign"](h)}}function o(l,u){a(l,Kt({},t.state,rx(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),n.value=l}function s(l,u){const f=Kt({},i.value,t.state,{forward:l,scroll:$v()});a(f.current,f,!0),a(l,Kt({},rx(n.value,l,null),{position:f.position+1},u),!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function _z(r){r=rz(r);const t=mz(r),e=yz(r,t.state,t.location,t.replace);function n(a,o=!0){o||e.pauseListeners(),history.go(a)}const i=Kt({location:"",base:r,go:n,createHref:iz.bind(null,r)},t,e);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Sz(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),_z(r)}let no=function(r){return r[r.Static=0]="Static",r[r.Param=1]="Param",r[r.Group=2]="Group",r}({});var Te=function(r){return r[r.Static=0]="Static",r[r.Param=1]="Param",r[r.ParamRegExp=2]="ParamRegExp",r[r.ParamRegExpEnd=3]="ParamRegExpEnd",r[r.EscapeNext=4]="EscapeNext",r}(Te||{});const xz={type:no.Static,value:""},bz=/[a-zA-Z0-9_]/;function wz(r){if(!r)return[[]];if(r==="/")return[[xz]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(v){throw new Error(`ERR (${e})/"${u}": ${v}`)}let e=Te.Static,n=e;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(e===Te.Static?a.push({type:no.Static,value:u}):e===Te.Param||e===Te.ParamRegExp||e===Te.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:no.Param,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s<r.length;){if(l=r[s++],l==="\\"&&e!==Te.ParamRegExp){n=e,e=Te.EscapeNext;continue}switch(e){case Te.Static:l==="/"?(u&&c(),o()):l===":"?(c(),e=Te.Param):h();break;case Te.EscapeNext:h(),e=n;break;case Te.Param:l==="("?e=Te.ParamRegExp:bz.test(l)?h():(c(),e=Te.Static,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case Te.ParamRegExp:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:e=Te.ParamRegExpEnd:f+=l;break;case Te.ParamRegExpEnd:c(),e=Te.Static,l!=="*"&&l!=="?"&&l!=="+"&&s--,f="";break;default:t("Unknown state");break}}return e===Te.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),c(),o(),i}const nx="[^/]+?",Tz={sensitive:!1,strict:!1,start:!0,end:!0};var er=function(r){return r[r._multiplier=10]="_multiplier",r[r.Root=90]="Root",r[r.Segment=40]="Segment",r[r.SubSegment=30]="SubSegment",r[r.Static=40]="Static",r[r.Dynamic=20]="Dynamic",r[r.BonusCustomRegExp=10]="BonusCustomRegExp",r[r.BonusWildcard=-50]="BonusWildcard",r[r.BonusRepeatable=-20]="BonusRepeatable",r[r.BonusOptional=-8]="BonusOptional",r[r.BonusStrict=.7000000000000001]="BonusStrict",r[r.BonusCaseSensitive=.25]="BonusCaseSensitive",r}(er||{});const Az=/[.+*?^${}()[\]/\\]/g;function Cz(r,t){const e=Kt({},Tz,t),n=[];let i=e.start?"^":"";const a=[];for(const u of r){const f=u.length?[]:[er.Root];e.strict&&!u.length&&(i+="/");for(let c=0;c<u.length;c++){const h=u[c];let v=er.Segment+(e.sensitive?er.BonusCaseSensitive:0);if(h.type===no.Static)c||(i+="/"),i+=h.value.replace(Az,"\\$&"),v+=er.Static;else if(h.type===no.Param){const{value:d,repeatable:p,optional:g,regexp:y}=h;a.push({name:d,repeatable:p,optional:g});const m=y||nx;if(m!==nx){v+=er.BonusCustomRegExp;try{`${m}`}catch(S){throw new Error(`Invalid custom RegExp for param "${d}" (${m}): `+S.message)}}let _=p?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;c||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),i+=_,v+=er.Dynamic,g&&(v+=er.BonusOptional),p&&(v+=er.BonusRepeatable),m===".*"&&(v+=er.BonusWildcard)}f.push(v)}n.push(f)}if(e.strict&&e.end){const u=n.length-1;n[u][n[u].length-1]+=er.BonusStrict}e.strict||(i+="/?"),e.end?i+="$":e.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,e.sensitive?"":"i");function s(u){const f=u.match(o),c={};if(!f)return null;for(let h=1;h<f.length;h++){const v=f[h]||"",d=a[h-1];c[d.name]=v&&d.repeatable?v.split("/"):v}return c}function l(u){let f="",c=!1;for(const h of r){(!c||!f.endsWith("/"))&&(f+="/"),c=!1;for(const v of h)if(v.type===no.Static)f+=v.value;else if(v.type===no.Param){const{value:d,repeatable:p,optional:g}=v,y=d in u?u[d]:"";if(dn(y)&&!p)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const m=dn(y)?y.join("/"):y;if(!m)if(g)h.length<2&&(f.endsWith("/")?f=f.slice(0,-1):c=!0);else throw new Error(`Missing required param "${d}"`);f+=m}}return f||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function Mz(r,t){let e=0;for(;e<r.length&&e<t.length;){const n=t[e]-r[e];if(n)return n;e++}return r.length<t.length?r.length===1&&r[0]===er.Static+er.Segment?-1:1:r.length>t.length?t.length===1&&t[0]===er.Static+er.Segment?1:-1:0}function VI(r,t){let e=0;const n=r.score,i=t.score;for(;e<n.length&&e<i.length;){const a=Mz(n[e],i[e]);if(a)return a;e++}if(Math.abs(i.length-n.length)===1){if(ix(n))return 1;if(ix(i))return-1}return i.length-n.length}function ix(r){const t=r[r.length-1];return r.length>0&&t[t.length-1]<0}const Dz={strict:!1,end:!0,sensitive:!1};function Iz(r,t,e){const n=Cz(wz(r.path),e),i=Kt(n,{record:r,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Lz(r,t){const e=[],n=new Map;t=KS(Dz,t);function i(c){return n.get(c)}function a(c,h,v){const d=!v,p=ox(c);p.aliasOf=v&&v.record;const g=KS(t,c),y=[p];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const x of S)y.push(ox(Kt({},p,{components:v?v.record.components:p.components,path:x,aliasOf:v?v.record:p})))}let m,_;for(const S of y){const{path:x}=S;if(h&&x[0]!=="/"){const b=h.record.path,w=b[b.length-1]==="/"?"":"/";S.path=h.record.path+(x&&w+x)}if(m=Iz(S,h,g),v?v.alias.push(m):(_=_||m,_!==m&&_.alias.push(m),d&&c.name&&!sx(m)&&o(c.name)),BI(m)&&l(m),p.children){const b=p.children;for(let w=0;w<b.length;w++)a(b[w],m,v&&v.children[w])}v=v||m}return _?()=>{o(_)}:gu}function o(c){if(kI(c)){const h=n.get(c);h&&(n.delete(c),e.splice(e.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=e.indexOf(c);h>-1&&(e.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return e}function l(c){const h=Ez(c,e);e.splice(h,0,c),c.record.name&&!sx(c)&&n.set(c.record.name,c)}function u(c,h){let v,d={},p,g;if("name"in c&&c.name){if(v=n.get(c.name),!v)throw Gs(ve.MATCHER_NOT_FOUND,{location:c});g=v.record.name,d=Kt(ax(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&ax(c.params,v.keys.map(_=>_.name))),p=v.stringify(d)}else if(c.path!=null)p=c.path,v=e.find(_=>_.re.test(p)),v&&(d=v.parse(p),g=v.record.name);else{if(v=h.name?n.get(h.name):e.find(_=>_.re.test(h.path)),!v)throw Gs(ve.MATCHER_NOT_FOUND,{location:c,currentLocation:h});g=v.record.name,d=Kt({},h.params,c.params),p=v.stringify(d)}const y=[];let m=v;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:p,params:d,matched:y,meta:Rz(y)}}r.forEach(c=>a(c));function f(){e.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:i}}function ax(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function ox(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:Pz(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Pz(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const n in r.components)t[n]=typeof e=="object"?e[n]:e;return t}function sx(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function Rz(r){return r.reduce((t,e)=>Kt(t,e.meta),{})}function Ez(r,t){let e=0,n=t.length;for(;e!==n;){const a=e+n>>1;VI(r,t[a])<0?n=a:e=a+1}const i=kz(r);return i&&(n=t.lastIndexOf(i,n-1)),n}function kz(r){let t=r;for(;t=t.parent;)if(BI(t)&&VI(r,t)===0)return t}function BI({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function lx(r){const t=un(Uv),e=un(Z0),n=nn(()=>{const l=go(r.to);return t.resolve(l)}),i=nn(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=e.matched;if(!f||!c.length)return-1;const h=c.findIndex(zs.bind(null,f));if(h>-1)return h;const v=ux(l[u-2]);return u>1&&ux(f)===v&&c[c.length-1].path!==v?c.findIndex(zs.bind(null,l[u-2])):h}),a=nn(()=>i.value>-1&&zz(e.params,n.value.params)),o=nn(()=>i.value>-1&&i.value===e.matched.length-1&&EI(e.params,n.value.params));function s(l={}){if(Bz(l)){const u=t[go(r.replace)?"replace":"push"](go(r.to)).catch(gu);return r.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:nn(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function Oz(r){return r.length===1?r[0]:r}const Nz=V0({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:lx,setup(r,{slots:t}){const e=Bv(lx(r)),{options:n}=un(Uv),i=nn(()=>({[fx(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[fx(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const a=t.default&&Oz(t.default(e));return r.custom?a:TI("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:i.value},a)}}}),Vz=Nz;function Bz(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function zz(r,t){for(const e in t){const n=t[e],i=r[e];if(typeof n=="string"){if(n!==i)return!1}else if(!dn(i)||i.length!==n.length||n.some((a,o)=>a.valueOf()!==i[o].valueOf()))return!1}return!0}function ux(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const fx=(r,t,e)=>r!=null?r:t!=null?t:e,Gz=V0({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=un(Ry),i=nn(()=>r.route||n.value),a=un(ex,0),o=nn(()=>{let u=go(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=nn(()=>i.value.matched[o.value]);Kc(ex,nn(()=>o.value+1)),Kc(dz,s),Kc(Ry,i);const l=qc();return jc(()=>[l.value,s.value,r.name],([u,f,c],[h,v,d])=>{f&&(f.instances[c]=u,v&&v!==f&&u&&u===h&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),u&&f&&(!v||!zs(f,v)||!h)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=r.name,c=s.value,h=c&&c.components[f];if(!h)return cx(e.default,{Component:h,route:u});const v=c.props[f],d=v?v===!0?u.params:typeof v=="function"?v(u):v:null,g=TI(h,Kt({},d,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return cx(e.default,{Component:g,route:u})||g}}});function cx(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const Fz=Gz;function Hz(r){const t=Lz(r.routes,r),e=r.parseQuery||hz,n=r.stringifyQuery||tx,i=r.history,a=_l(),o=_l(),s=_l(),l=kN(Mi);let u=Mi;ds&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Wd.bind(null,U=>""+U),c=Wd.bind(null,qB),h=Wd.bind(null,zu);function v(U,K){let H,tt;return kI(U)?(H=t.getRecordMatcher(U),tt=K):tt=U,t.addRoute(tt,H)}function d(U){const K=t.getRecordMatcher(U);K&&t.removeRoute(K)}function p(){return t.getRoutes().map(U=>U.record)}function g(U){return!!t.getRecordMatcher(U)}function y(U,K){if(K=Kt({},K||l.value),typeof U=="string"){const k=$d(e,U,K.path),z=t.resolve({path:k.path},K),X=i.createHref(k.fullPath);return Kt(k,z,{params:h(z.params),hash:zu(k.hash),redirectedFrom:void 0,href:X})}let H;if(U.path!=null)H=Kt({},U,{path:$d(e,U.path,K.path).path});else{const k=Kt({},U.params);for(const z in k)k[z]==null&&delete k[z];H=Kt({},U,{params:c(k)}),K.params=c(K.params)}const tt=t.resolve(H,K),j=U.hash||"";tt.params=f(h(tt.params));const ut=JB(n,Kt({},U,{hash:YB(j),path:tt.path})),R=i.createHref(ut);return Kt({fullPath:ut,hash:j,query:n===tx?vz(U.query):U.query||{}},tt,{redirectedFrom:void 0,href:R})}function m(U){return typeof U=="string"?$d(e,U,l.value.path):Kt({},U)}function _(U,K){if(u!==U)return Gs(ve.NAVIGATION_CANCELLED,{from:K,to:U})}function S(U){return w(U)}function x(U){return S(Kt(m(U),{replace:!0}))}function b(U,K){const H=U.matched[U.matched.length-1];if(H&&H.redirect){const{redirect:tt}=H;let j=typeof tt=="function"?tt(U,K):tt;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=m(j):{path:j},j.params={}),Kt({query:U.query,hash:U.hash,params:j.path!=null?{}:U.params},j)}}function w(U,K){const H=u=y(U),tt=l.value,j=U.state,ut=U.force,R=U.replace===!0,k=b(H,tt);if(k)return w(Kt(m(k),{state:typeof k=="object"?Kt({},j,k.state):j,force:ut,replace:R}),K||H);const z=H;z.redirectedFrom=K;let X;return!ut&&QB(n,tt,H)&&(X=Gs(ve.NAVIGATION_DUPLICATED,{to:z,from:tt}),q(tt,tt,!0,!1)),(X?Promise.resolve(X):C(z,tt)).catch(W=>jn(W)?jn(W,ve.NAVIGATION_GUARD_REDIRECT)?W:$(W):N(W,z,tt)).then(W=>{if(W){if(jn(W,ve.NAVIGATION_GUARD_REDIRECT))return w(Kt({replace:R},m(W.to),{state:typeof W.to=="object"?Kt({},j,W.to.state):j,force:ut}),K||z)}else W=I(z,tt,!0,R,j);return D(z,tt,W),W})}function T(U,K){const H=_(U,K);return H?Promise.reject(H):Promise.resolve()}function A(U){const K=ht.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(U):U()}function C(U,K){let H;const[tt,j,ut]=pz(U,K);H=Yd(tt.reverse(),"beforeRouteLeave",U,K);for(const k of tt)k.leaveGuards.forEach(z=>{H.push(Hi(z,U,K))});const R=T.bind(null,U,K);return H.push(R),Et(H).then(()=>{H=[];for(const k of a.list())H.push(Hi(k,U,K));return H.push(R),Et(H)}).then(()=>{H=Yd(j,"beforeRouteUpdate",U,K);for(const k of j)k.updateGuards.forEach(z=>{H.push(Hi(z,U,K))});return H.push(R),Et(H)}).then(()=>{H=[];for(const k of ut)if(k.beforeEnter)if(dn(k.beforeEnter))for(const z of k.beforeEnter)H.push(Hi(z,U,K));else H.push(Hi(k.beforeEnter,U,K));return H.push(R),Et(H)}).then(()=>(U.matched.forEach(k=>k.enterCallbacks={}),H=Yd(ut,"beforeRouteEnter",U,K,A),H.push(R),Et(H))).then(()=>{H=[];for(const k of o.list())H.push(Hi(k,U,K));return H.push(R),Et(H)}).catch(k=>jn(k,ve.NAVIGATION_CANCELLED)?k:Promise.reject(k))}function D(U,K,H){s.list().forEach(tt=>A(()=>tt(U,K,H)))}function I(U,K,H,tt,j){const ut=_(U,K);if(ut)return ut;const R=K===Mi,k=ds?history.state:{};H&&(tt||R?i.replace(U.fullPath,Kt({scroll:R&&k&&k.scroll},j)):i.push(U.fullPath,j)),l.value=U,q(U,K,H,R),$()}let L;function P(){L||(L=i.listen((U,K,H)=>{if(!gt.listening)return;const tt=y(U),j=b(tt,gt.currentRoute.value);if(j){w(Kt(j,{replace:!0,force:!0}),tt).catch(gu);return}u=tt;const ut=l.value;ds&&sz(QS(ut.fullPath,H.delta),$v()),C(tt,ut).catch(R=>jn(R,ve.NAVIGATION_ABORTED|ve.NAVIGATION_CANCELLED)?R:jn(R,ve.NAVIGATION_GUARD_REDIRECT)?(w(Kt(m(R.to),{force:!0}),tt).then(k=>{jn(k,ve.NAVIGATION_ABORTED|ve.NAVIGATION_DUPLICATED)&&!H.delta&&H.type===Ly.pop&&i.go(-1,!1)}).catch(gu),Promise.reject()):(H.delta&&i.go(-H.delta,!1),N(R,tt,ut))).then(R=>{R=R||I(tt,ut,!1),R&&(H.delta&&!jn(R,ve.NAVIGATION_CANCELLED)?i.go(-H.delta,!1):H.type===Ly.pop&&jn(R,ve.NAVIGATION_ABORTED|ve.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(tt,ut,R)}).catch(gu)}))}let E=_l(),O=_l(),V;function N(U,K,H){$(U);const tt=O.list();return tt.length?tt.forEach(j=>j(U,K,H)):console.error(U),Promise.reject(U)}function G(){return V&&l.value!==Mi?Promise.resolve():new Promise((U,K)=>{E.add([U,K])})}function $(U){return V||(V=!U,P(),E.list().forEach(([K,H])=>U?H(U):K()),E.reset()),U}function q(U,K,H,tt){const{scrollBehavior:j}=r;if(!ds||!j)return Promise.resolve();const ut=!H&&lz(QS(U.fullPath,0))||(tt||!H)&&history.state&&history.state.scroll||null;return E0().then(()=>j(U,K,ut)).then(R=>R&&oz(R)).catch(R=>N(R,U,K))}const Q=U=>i.go(U);let ct;const ht=new Set,gt={currentRoute:l,listening:!0,addRoute:v,removeRoute:d,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:p,resolve:y,options:r,push:S,replace:x,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:G,install(U){U.component("RouterLink",Vz),U.component("RouterView",Fz),U.config.globalProperties.$router=gt,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>go(l)}),ds&&!ct&&l.value===Mi&&(ct=!0,S(i.location).catch(tt=>{}));const K={};for(const tt in Mi)Object.defineProperty(K,tt,{get:()=>l.value[tt],enumerable:!0});U.provide(Uv,gt),U.provide(Z0,UD(K)),U.provide(Ry,l);const H=U.unmount;ht.add(U),U.unmount=function(){ht.delete(U),ht.size<1&&(u=Mi,L&&L(),L=null,l.value=Mi,ct=!1,V=!1),H()}}};function Et(U){return U.reduce((K,H)=>K.then(()=>A(H)),Promise.resolve())}return gt}function Xit(){return un(Uv)}function qit(r){return un(Z0)}const io="Authorization",Wz=["/","/screen2","/screen2/"];function $z(){const r=window.location.hostname;if(!r||/^\d{1,3}(\.\d{1,3}){3}$/.test(r))return r?[r]:[];const t=r.split(".").filter(Boolean),e=new Set([r,`.${r}`]);if(t.length>2){const n=t.slice(-2).join(".");e.add(n),e.add(`.${n}`)}return Array.from(e)}function Uz(r){return encodeURIComponent(r||"/platform")}function hx(){const r=document.cookie.split(";").map(t=>t.trim()).find(t=>t.startsWith(`${io}=`));return r?decodeURIComponent(r.slice(io.length+1)):""}function zI(){const r=$z();Wz.forEach(t=>{document.cookie=`${io}=; Max-Age=0; path=${t}`,document.cookie=`${io}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}`,r.forEach(e=>{document.cookie=`${io}=; Max-Age=0; path=${t}; domain=${e}`,document.cookie=`${io}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}; domain=${e}`})})}function Ey(r=window.location.hash.replace(/^#/,"")||"/platform"){return`/login?redirect=${Uz(r)}`}function Yz(r){zI();const t=Ey(r);window.location.hash.replace(/^#/,"")!==t&&(window.location.hash=t)}function Kit(r,t){return pl(this,null,function*(){var i;zI();const e=yield fetch("/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json","Content-Language":"zh_CN"},body:JSON.stringify({username:r,password:t})}),n=yield e.json().catch(()=>({}));if(!e.ok||(n==null?void 0:n.code)!==200){const a=new Error((n==null?void 0:n.msg)||"登录失败,请检查用户名或密码。");throw a.status=e.status,a.code=n==null?void 0:n.code,a}return(i=n==null?void 0:n.data)!=null&&i.token&&(document.cookie=`${io}=${encodeURIComponent(n.data.token)}; path=/`),n})}function jit(){return pl(this,null,function*(){yield fetch("/logout",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json","Content-Language":"zh_CN"},body:"{}"}).catch(()=>null),Yz("/platform")})}function Zz(){return pl(this,null,function*(){const r=yield fetch("/getInfo",{credentials:"include",headers:{Accept:"application/json","Content-Language":"zh_CN"}}),t=yield r.json().catch(()=>({}));if(!r.ok||(t==null?void 0:t.code)!==200){const e=new Error((t==null?void 0:t.msg)||"用户未登录或授权已过期。");throw e.status=r.status||401,e.code=(t==null?void 0:t.code)||401,e}return t.data})}const vx=()=>U0(()=>import("./index-ed255eef-1784132466083.js").then(r=>r.i),["./index-ed255eef-1784132466083.js","./index-e9f36657-1784132466083.js","./index-1e17e433-balabala-1784132466083.css"],import.meta.url),Xz=()=>U0(()=>import("./index-ddc73668-1784132466083.js"),["./index-ddc73668-1784132466083.js","./index-08599012-balabala-1784132466083.css"],import.meta.url),qz=()=>U0(()=>import("./index-b1fbd7ae-1784132466083.js"),["./index-b1fbd7ae-1784132466083.js","./index.esm.min-e7a22049-1784132466083.js","./index-fe70e5de-1784132466083.js","./index-148a2898-balabala-1784132466083.css","./screen2Standard-483e466b-1784132466083.js","./index-e9f36657-1784132466083.js","./screen2Standard-cdb21878-balabala-1784132466083.css","./chartTheme-e9ae7be8-1784132466083.js","./index-8d752fbe-balabala-1784132466083.css"],import.meta.url),GI=Hz({history:Sz(),routes:[{path:"/",redirect:"/platform"},{path:"/login",component:Xz,meta:{public:!0}},{path:"/platform",component:vx},{path:"/forest-grass-wet",component:vx},{path:"/chart-style-guide",component:qz},{path:"/:pathMatch(.*)",redirect:"/"}]});let yu=null;GI.beforeEach(r=>pl(void 0,null,function*(){if(r.meta.public){if(hx())try{return yield dx(),r.query.redirect?decodeURIComponent(r.query.redirect):"/platform"}catch(t){yu=null}return!0}if(!hx())return Ey(r.fullPath);try{return yield dx(),!0}catch(t){return yu=null,Ey(r.fullPath)}}));function dx(){return yu||(yu=Zz()),yu}const Kz=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},jz={};function Jz(r,t){const e=vV("router-view");return Mh(),Ih(e)}const Qz=Kz(jz,[["render",Jz]]);/*! ***************************************************************************** |
|
Copyright (c) Microsoft Corporation. |
|
|
|
Permission to use, copy, modify, and/or distribute this software for any |
|
purpose with or without fee is hereby granted. |
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
|
PERFORMANCE OF THIS SOFTWARE. |
|
***************************************************************************** */var ky=function(r,t){return ky=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},ky(r,t)};function B(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ky(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var t5=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),e5=function(){function r(){this.browser=new t5,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return r}(),Bi=new e5;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Bi.wxa=!0,Bi.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Bi.worker=!0:!Bi.hasGlobalWindow||"Deno"in window?(Bi.node=!0,Bi.svgSupported=!0):r5(navigator.userAgent,Bi);function r5(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const zt=Bi;var X0=12,FI="sans-serif",ia=X0+"px "+FI,n5=20,i5=100,a5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function o5(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-n5)/i5;t[n]=i}return t}var s5=o5(a5),aa={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var i=aa.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||ia),r.measureText(e);e=e||"",n=n||ia;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||X0,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=s5[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}},HI=Wn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),WI=Wn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),js=Object.prototype.toString,Yv=Array.prototype,l5=Yv.forEach,u5=Yv.filter,q0=Yv.slice,f5=Yv.map,px=function(){}.constructor,Yf=px?px.prototype:null,K0="__proto__",c5=2311;function $I(){return c5++}function j0(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,r)}function mt(r){if(r==null||typeof r!="object")return r;var t=r,e=js.call(r);if(e==="[object Array]"){if(!mu(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=mt(r[n])}}else if(WI[e]){if(!mu(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!HI[e]&&!mu(r)&&!Fs(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==K0&&(t[o]=mt(r[o]))}return t}function Tt(r,t,e){if(!yt(t)||!yt(r))return e?mt(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==K0){var i=r[n],a=t[n];yt(a)&&yt(i)&&!Y(a)&&!Y(i)&&!Fs(a)&&!Fs(i)&&!gx(a)&&!gx(i)&&!mu(a)&&!mu(i)?Tt(i,a,e):(e||!(n in r))&&(r[n]=mt(t[n]))}return r}function J0(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=Tt(e,r[n],t);return e}function F(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==K0&&(r[e]=t[e]);return r}function pt(r,t,e){for(var n=kt(t),i=0,a=n.length;i<a;i++){var o=n[i];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}function Dt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function h5(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function _e(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else pt(r,t,e)}function Ke(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function M(r,t,e){if(r&&t)if(r.forEach&&r.forEach===l5)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function Z(r,t,e){if(!r)return[];if(!t)return Q0(r);if(r.map&&r.map===f5)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function Wn(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function $t(r,t,e){if(!r)return[];if(!t)return Q0(r);if(r.filter&&r.filter===u5)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function v5(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function kt(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 d5(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(q0.call(arguments)))}}var at=Yf&&vt(Yf.bind)?Yf.call.bind(Yf.bind):d5;function bt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(q0.call(arguments)))}}function Y(r){return Array.isArray?Array.isArray(r):js.call(r)==="[object Array]"}function vt(r){return typeof r=="function"}function nt(r){return typeof r=="string"}function Oy(r){return js.call(r)==="[object String]"}function Ft(r){return typeof r=="number"}function yt(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function gx(r){return!!HI[js.call(r)]}function pr(r){return!!WI[js.call(r)]}function Fs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Zv(r){return r.colorStops!=null}function p5(r){return r.image!=null}function g5(r){return js.call(r)==="[object RegExp]"}function Gu(r){return r!==r}function Re(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function xt(r,t){return r!=null?r:t}function zn(r,t,e){return r!=null?r:t!=null?t:e}function Q0(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return q0.apply(r,t)}function t_(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 lr(r,t){if(!r)throw new Error(t)}function an(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var UI="__ec_primitive__";function Oh(r){r[UI]=!0}function mu(r){return r[UI]}var y5=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 kt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),YI=typeof Map=="function";function m5(){return YI?new Map:new y5}var _5=function(){function r(t){var e=Y(t);this.data=m5();var n=this;t instanceof r?t.each(i):t&&M(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}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(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return YI?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function ft(r){return new _5(r)}function Fu(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function Xv(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&F(e,t),e}function ZI(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function lt(r,t){return r.hasOwnProperty(t)}function pe(){}var th=180/Math.PI;function ko(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function rr(r,t){return r[0]=t[0],r[1]=t[1],r}function ui(r){return[r[0],r[1]]}function S5(r,t,e){return r[0]=t,r[1]=e,r}function yx(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Ny(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function ao(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Vy(r){return Math.sqrt(x5(r))}function x5(r){return r[0]*r[0]+r[1]*r[1]}function eh(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Js(r,t){var e=Vy(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function By(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Ui=By;function b5(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var yo=b5;function rh(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function ze(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function Yi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Zi(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Uo=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),w5=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 Uo(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new Uo(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Uo(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Uo(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Uo(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Uo(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const T5=w5;var A5=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}();const Zr=A5;var C5=Math.log(2);function zy(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/C5);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&i||(c+=(v%2?-1:1)*r[e][h]*zy(r,t-1,f,u,i|d,a),v++)}return a[o]=c,c}function mx(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=zy(e,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*zy(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var _x="___zrEVENTSAVED",Zd=[];function M5(r,t,e,n,i){return Gy(Zd,t,n,i,!0)&&Gy(r,e,Zd[0],Zd[1])}function Gy(r,t,e,n,i){if(t.getBoundingClientRect&&zt.domSupported&&!XI(t)){var a=t[_x]||(t[_x]={}),o=D5(t,a),s=I5(o,a,i);if(s)return s(r,e,n),!0}return!1}function D5(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function I5(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?mx(s,o):mx(o,s))}function XI(r){return r.nodeName.toUpperCase()==="CANVAS"}var L5=/([&<>"'])/g,P5={"&":"&","<":"<",">":">",'"':""","'":"'"};function qe(r){return r==null?"":(r+"").replace(L5,function(t,e){return P5[e]})}var R5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xd=[],E5=zt.browser.firefox&&+zt.browser.version.split(".")[0]<39;function Fy(r,t,e,n){return e=e||{},n?Sx(r,t,e):E5&&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):Sx(r,t,e),e}function Sx(r,t,e){if(zt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(XI(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Gy(Xd,r,n,i)){e.zrX=Xd[0],e.zrY=Xd[1];return}}e.zrX=e.zrY=0}function e_(r){return r||window.event}function Or(r,t,e){if(t=e_(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Fy(r,o,t,e)}else{Fy(r,t,t,e);var a=k5(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&R5.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function k5(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function Hy(r,t,e,n){r.addEventListener(t,e,n)}function O5(r,t,e,n){r.removeEventListener(t,e,n)}var gi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function xx(r){return r.which===2||r.which===3}var N5=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Fy(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in qd)if(qd.hasOwnProperty(e)){var n=qd[e](this._track,t);if(n)return n}},r}();function bx(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function V5(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var qd={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=bx(n)/bx(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=V5(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Cr(){return[1,0,0,1,0,0]}function qv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function r_(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 fi(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function $n(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 Oo(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=i*c+s*f,r[1]=-i*f+s*c,r[2]=a*c+l*f,r[3]=-a*f+c*l,r[4]=c*(o-n[0])+f*(u-n[1])+n[0],r[5]=c*(u-n[1])-f*(o-n[0])+n[1],r}function n_(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Qs(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function B5(r){var t=Cr();return r_(t,r),t}var z5=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const Ct=z5;var Zf=Math.min,Xf=Math.max,Sa=new Ct,xa=new Ct,ba=new Ct,wa=new Ct,Sl=new Ct,xl=new Ct,G5=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Zf(t.x,this.x),n=Zf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Xf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Xf(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Cr();return $n(a,a,[-e.x,-e.y]),n_(a,a,[n,i]),$n(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,h=!(a<l||u<i||s<f||c<o);if(e){var v=1/0,d=0,p=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(c-o),_=Math.min(p,g),S=Math.min(y,m);a<l||u<i?_>d&&(d=_,p<g?Ct.set(xl,-p,0):Ct.set(xl,g,0)):_<v&&(v=_,p<g?Ct.set(Sl,p,0):Ct.set(Sl,-g,0)),s<f||c<o?S>d&&(d=S,y<m?Ct.set(xl,0,-y):Ct.set(xl,0,m)):_<v&&(v=_,y<m?Ct.set(Sl,0,y):Ct.set(Sl,0,-m))}return e&&Ct.copy(e,h?Sl:xl),h},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Sa.x=ba.x=e.x,Sa.y=wa.y=e.y,xa.x=wa.x=e.x+e.width,xa.y=ba.y=e.y+e.height,Sa.transform(n),wa.transform(n),xa.transform(n),ba.transform(n),t.x=Zf(Sa.x,xa.x,ba.x,wa.x),t.y=Zf(Sa.y,xa.y,ba.y,wa.y);var l=Xf(Sa.x,xa.x,ba.x,wa.x),u=Xf(Sa.y,xa.y,ba.y,wa.y);t.width=l-t.x,t.height=u-t.y},r}();const Mt=G5;var qI="silent";function F5(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:H5}}function H5(){gi(this.event)}var W5=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Zr),bl=function(){function r(t,e){this.x=t,this.y=e}return r}(),$5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Kd=new Mt(0,0,0,0),KI=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new bl(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new W5,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new T5(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M($5,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=jI(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new bl(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new bl(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=F5(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new bl(e,n);if(Tx(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Mt(e-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Kd.copy(h.getBoundingRect()),h.transform&&Kd.applyTransform(h.transform),Kd.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=n+g*Math.sin(y);if(Tx(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new N5);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new bl;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Zr);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){KI.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=jI(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ui(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function U5(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?qI:!0}return!1}function Tx(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=U5(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==qI)){t.target=o;break}}}function jI(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const Y5=KI;var JI=32,wl=7;function Z5(r){for(var t=0;r>=JI;)t|=r&1,r>>=1;return r+t}function Ax(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;X5(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function X5(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function Cx(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function jd(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l<s&&a(r,t[e+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,t[e+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Jd(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l<s&&a(r,t[e+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,t[e+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function q5(r,t){var e=wl,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],p=i[v],g=n[v+1],y=i[v+1];i[v]=p+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=Jd(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=jd(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?c(d,p,g,y):h(d,p,g,y)))}function c(v,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=p,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=e,b,w,T;;){b=0,w=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){T=!0;break}while((b|w)<x);if(T)break;do{if(b=Jd(r[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=jd(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){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}x--}while(b>=wl||w>=wl);if(T)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function h(v,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=v+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=e;;){var T=0,A=0,C=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,A=0,--d===0){C=!0;break}}else if(r[S--]=o[_--],A++,T=0,--g===1){C=!0;break}while((T|A)<w);if(C)break;do{if(T=d-Jd(o[_],r,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,b=S+1,x=m+1,y=T-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){C=!0;break}}if(r[S--]=o[_--],--g===1){C=!0;break}if(A=g-jd(r[m],o,0,g,g-1,t),A!==0){for(S-=A,_-=A,g-=A,b=S+1,x=_+1,y=0;y<A;y++)r[b+y]=o[x+y];if(g<=1){C=!0;break}}if(r[S--]=r[m--],--d===0){C=!0;break}w--}while(T>=wl||A>=wl);if(C)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-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 nh(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<JI){a=Ax(r,e,n,t),Cx(r,e,n,e+a,t);return}var o=q5(r,t),s=Z5(i);do{if(a=Ax(r,e,n,t),a<s){var l=i;l>s&&(l=s),Cx(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var br=1,Jl=2,ps=4,Mx=!1;function Qd(){Mx||(Mx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Dx(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var K5=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Dx}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,nh(n,Dx)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=br),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Qd(),f.z=0),isNaN(f.z2)&&(Qd(),f.z2=0),isNaN(f.zlevel)&&(Qd(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=Dt(this._roots,t);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const j5=K5;var QI;QI=zt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Wy=QI;var ih={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-ih.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?ih.bounceIn(r*2)*.5:ih.bounceOut(r*2-1)*.5+.5}};const tL=ih;var qf=Math.pow,ta=Math.sqrt,Nh=1e-8,eL=1e-4,Ix=ta(3),Kf=1/3,En=ko(),Gr=ko(),Ls=ko();function Xi(r){return r>-Nh&&r<Nh}function rL(r){return r>Nh||r<-Nh}function Ae(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Lx(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Vh(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Xi(f)&&Xi(c))if(Xi(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=c*c-4*f*h;if(Xi(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(p>0){var m=ta(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-qf(-_,Kf):_=qf(_,Kf),S<0?S=-qf(-S,Kf):S=qf(S,Kf);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var x=(2*f*s-3*o*c)/(2*ta(f*f*f)),b=Math.acos(x)/3,w=ta(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+Ix*Math.sin(b)))/(3*o),A=(-s+w*(T-Ix*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),A>=0&&A<=1&&(a[v++]=A)}}return v}function nL(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Xi(o)){if(rL(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Xi(f))i[0]=-a/(2*o);else if(f>0){var c=ta(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function oa(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function iL(r,t,e,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,y;En[0]=l,En[1]=u;for(var m=0;m<1;m+=.05)Gr[0]=Ae(r,e,i,o,m),Gr[1]=Ae(t,n,a,s,m),g=yo(En,Gr),g<v&&(c=m,v=g);v=1/0;for(var _=0;_<32&&!(h<eL);_++)d=c-h,p=c+h,Gr[0]=Ae(r,e,i,o,d),Gr[1]=Ae(t,n,a,s,d),g=yo(Gr,En),d>=0&&g<v?(c=d,v=g):(Ls[0]=Ae(r,e,i,o,p),Ls[1]=Ae(t,n,a,s,p),y=yo(Ls,En),p<=1&&y<v?(c=p,v=y):h*=.5);return f&&(f[0]=Ae(r,e,i,o,c),f[1]=Ae(t,n,a,s,c)),ta(v)}function J5(r,t,e,n,i,a,o,s,l){for(var u=r,f=t,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=Ae(r,e,i,o,d),g=Ae(t,n,a,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function Le(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function $y(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function Q5(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Xi(a)){if(rL(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Xi(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=ta(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function aL(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Hu(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function oL(r,t,e,n,i,a,o,s,l){var u,f=.005,c=1/0;En[0]=o,En[1]=s;for(var h=0;h<1;h+=.05){Gr[0]=Le(r,e,i,h),Gr[1]=Le(t,n,a,h);var v=yo(En,Gr);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<eL);d++){var p=u-f,g=u+f;Gr[0]=Le(r,e,i,p),Gr[1]=Le(t,n,a,p);var v=yo(Gr,En);if(p>=0&&v<c)u=p,c=v;else{Ls[0]=Le(r,e,i,g),Ls[1]=Le(t,n,a,g);var y=yo(Ls,En);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=Le(r,e,i,u),l[1]=Le(t,n,a,u)),ta(c)}function tG(r,t,e,n,i,a,o){for(var s=r,l=t,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=Le(r,e,i,h),d=Le(t,n,a,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var eG=/cubic-bezier\(([0-9,\.e ]+)\)/;function i_(r){var t=r&&eG.exec(r);if(t){var e=t[1].split(","),n=+an(e[0]),i=+an(e[1]),a=+an(e[2]),o=+an(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Vh(0,n,a,1,l,s)&&Ae(0,i,o,1,s[0])}}}var rG=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||pe,this.ondestroy=t.ondestroy||pe,this.onrestart=t.onrestart||pe,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=vt(t)?t:tL[t]||i_(t)},r}();const nG=rG;var sL=function(){function r(t){this.value=t}return r}(),iG=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new sL(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),aG=function(){function r(t){this._list=new iG,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new sL(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const xf=aG;var Px={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 fn(r){return r=Math.round(r),r<0?0:r>255?255:r}function oG(r){return r=Math.round(r),r<0?0:r>360?360:r}function Wu(r){return r<0?0:r>1?1:r}function tp(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?fn(parseFloat(t)/100*255):fn(parseInt(t,10))}function mo(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Wu(parseFloat(t)/100):Wu(parseFloat(t))}function ep(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 qi(r,t,e){return r+(t-r)*e}function kr(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Uy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var lL=new xf(20),jf=null;function Yo(r,t){jf&&Uy(jf,t),jf=lL.put(r,jf||t.slice())}function Mr(r,t){if(r){t=t||[];var e=lL.get(r);if(e)return Uy(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Px)return Uy(t,Px[n]),Yo(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){kr(t,0,0,0,1);return}return kr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Yo(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){kr(t,0,0,0,1);return}return kr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Yo(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?kr(t,+u[0],+u[1],+u[2],1):kr(t,0,0,0,1);f=mo(u.pop());case"rgb":if(u.length>=3)return kr(t,tp(u[0]),tp(u[1]),tp(u[2]),u.length===3?f:mo(u[3])),Yo(r,t),t;kr(t,0,0,0,1);return;case"hsla":if(u.length!==4){kr(t,0,0,0,1);return}return u[3]=mo(u[3]),Yy(u,t),Yo(r,t),t;case"hsl":if(u.length!==3){kr(t,0,0,0,1);return}return Yy(u,t),Yo(r,t),t;default:return}}kr(t,0,0,0,1)}}function Yy(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=mo(r[1]),i=mo(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],kr(t,fn(ep(o,a,e+1/3)*255),fn(ep(o,a,e)*255),fn(ep(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function sG(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,c=((a-e)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-c:e===a?l=1/3+f-h:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function Zy(r,t){var e=Mr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return ci(e,e.length===4?"rgba":"rgb")}}function rp(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=fn(qi(o[0],s[0],l)),e[1]=fn(qi(o[1],s[1],l)),e[2]=fn(qi(o[2],s[2],l)),e[3]=Wu(qi(o[3],s[3],l)),e}}function lG(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Mr(t[i]),s=Mr(t[a]),l=n-i,u=ci([fn(qi(o[0],s[0],l)),fn(qi(o[1],s[1],l)),fn(qi(o[2],s[2],l)),Wu(qi(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function _u(r,t,e,n){var i=Mr(r);if(r)return i=sG(i),t!=null&&(i[0]=oG(t)),e!=null&&(i[1]=mo(e)),n!=null&&(i[2]=mo(n)),ci(Yy(i),"rgba")}function Bh(r,t){var e=Mr(r);if(e&&t!=null)return e[3]=Wu(t),ci(e,"rgba")}function ci(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 zh(r,t){var e=Mr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Rx=new xf(100);function Xy(r){if(nt(r)){var t=Rx.get(r);return t||(t=Zy(r,-.1),Rx.put(r,t)),t}else if(Zv(r)){var e=F({},r);return e.colorStops=Z(r.colorStops,function(n){return{offset:n.offset,color:Zy(n.color,-.1)}}),e}return r}var Gh=Math.round;function $u(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Mr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var Ex=1e-4;function Ki(r){return r<Ex&&r>-Ex}function Jf(r){return Gh(r*1e3)/1e3}function qy(r){return Gh(r*1e4)/1e4}function uG(r){return"matrix("+Jf(r[0])+","+Jf(r[1])+","+Jf(r[2])+","+Jf(r[3])+","+qy(r[4])+","+qy(r[5])+")"}var fG={left:"start",right:"end",center:"middle",middle:"middle"};function cG(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function hG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function vG(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 uL(r){return r&&!!r.image}function dG(r){return r&&!!r.svgElement}function a_(r){return uL(r)||dG(r)}function fL(r){return r.type==="linear"}function cL(r){return r.type==="radial"}function hL(r){return r&&(r.type==="linear"||r.type==="radial")}function Kv(r){return"url(#"+r+")"}function vL(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 dL(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*th,i=xt(r.scaleX,1),a=xt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Gh(o*th)+"deg, "+Gh(s*th)+"deg)"),l.join(" ")}var pG=function(){return zt.hasGlobalWindow&&vt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Ky=Array.prototype.slice;function ri(r,t,e){return(t-r)*e+r}function np(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=ri(t[a],e[a],n);return r}function gG(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=ri(t[o][s],e[o][s],n)}return r}function Qf(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function kx(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function yG(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function mG(r,t,e){var n=r,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(e===1?i[l]:Ky.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Su(r){if(Ke(r)){var t=r.length;if(Ke(r[0])){for(var e=[],n=0;n<t;n++)e.push(Ky.call(r[n]));return e}return Ky.call(r)}return r}function ah(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 _G(r){return Ke(r&&r[0])?2:1}var tc=0,oh=1,pL=2,Ql=3,jy=4,Jy=5,Ox=6;function Nx(r){return r===jy||r===Jy}function ec(r){return r===oh||r===pL}var Tl=[0,0,0,0],SG=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Ox,l=e;if(Ke(e)){var u=_G(e);s=u,(u===1&&!Ft(e[0])||u===2&&!Ft(e[0][0]))&&(o=!0)}else if(Ft(e)&&!Gu(e))s=tc;else if(nt(e))if(!isNaN(+e))s=tc;else{var f=Mr(e);f&&(l=f,s=Ql)}else if(Zv(e)){var c=F({},l);c.colorStops=Z(e.colorStops,function(v){return{offset:v.offset,color:Mr(v.color)}}),fL(e)?s=jy:cL(e)&&(s=Jy),l=c}a===0?this.valType=s:(s!==this.valType||s===Ox)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=vt(n)?n:tL[n]||i_(n)),i.push(h),h},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=ec(i),u=Nx(i),f=0;f<a;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/t,s||(l&&f!==a-1?mG(h,v,i):u&&yG(h.colorStops,v.colorStops))}if(!s&&i!==Jy&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===tc?n[f].additiveValue=n[f].value-d:i===Ql?n[f].additiveValue=Qf([],n[f].value,d,-1):ec(i)&&(n[f].additiveValue=i===oh?Qf([],n[f].value,d,-1):kx([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Ql,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>e);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,y=g===0?1:h((e-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Tl:t[l];if((ec(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(ec(a))a===oh?np(m,v[i],d[i],y):gG(m,v[i],d[i],y);else if(Nx(a)){var _=v[i],S=d[i],x=a===jy;t[l]={type:x?"linear":"radial",x:ri(_.x,S.x,y),y:ri(_.y,S.y,y),colorStops:Z(_.colorStops,function(w,T){var A=S.colorStops[T];return{offset:ri(w.offset,A.offset,y),color:ah(np([],w.color,A.color,y))}}),global:S.global},x?(t[l].x2=ri(_.x2,S.x2,y),t[l].y2=ri(_.y2,S.y2,y)):t[l].r=ri(_.r,S.r,y)}else if(u)np(m,v[i],d[i],y),n||(t[l]=ah(m));else{var b=ri(v[i],d[i],y);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===tc?t[n]=t[n]+i:e===Ql?(Mr(t[n],Tl),Qf(Tl,Tl,i,1),t[n]=ah(Tl)):e===oh?Qf(t[n],t[n],i,1):e===pL&&kx(t[n],t[n],i,1)},r}(),o_=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){j0("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,kt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new SG(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===Ql&&u&&(u=ah(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Su(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Su(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(e._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new nG({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,v);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,v)},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 Z(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=Su(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||kt(t);for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function Ss(){return new Date().getTime()}var xG=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=Ss()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Wy(n),!e._paused&&e.update())}Wy(n)},t.prototype.start=function(){this._running||(this._time=Ss(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ss(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ss()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new o_(e,n.loop);return this.addAnimator(i),i},t}(Zr);const bG=xG;var wG=300,ip=zt.domSupported,ap=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Vx={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Bx=!1;function Qy(r){var t=r.pointerType;return t==="pen"||t==="touch"}function TG(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 op(r){r&&(r.zrByTouch=!0)}function AG(r,t){return Or(r.dom,new CG(r,t),!0)}function gL(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var CG=function(){function r(t,e){this.stopPropagation=pe,this.stopImmediatePropagation=pe,this.preventDefault=pe,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),tn={mousedown:function(r){r=Or(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Or(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=Or(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Or(this.dom,r);var t=r.toElement||r.relatedTarget;gL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Bx=!0,r=Or(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Bx||(r=Or(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Or(this.dom,r),op(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),tn.mousemove.call(this,r),tn.mousedown.call(this,r)},touchmove:function(r){r=Or(this.dom,r),op(r),this.handler.processGesture(r,"change"),tn.mousemove.call(this,r)},touchend:function(r){r=Or(this.dom,r),op(r),this.handler.processGesture(r,"end"),tn.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<wG&&tn.click.call(this,r)},pointerdown:function(r){tn.mousedown.call(this,r)},pointermove:function(r){Qy(r)||tn.mousemove.call(this,r)},pointerup:function(r){tn.mouseup.call(this,r)},pointerout:function(r){Qy(r)||tn.mouseout.call(this,r)}};M(["click","dblclick","contextmenu"],function(r){tn[r]=function(t){t=Or(this.dom,t),this.trigger(r,t)}});var tm={pointermove:function(r){Qy(r)||tm.mousemove.call(this,r)},pointerup:function(r){tm.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 MG(r,t){var e=t.domHandlers;zt.pointerEventsSupported?M(ap.pointer,function(n){sh(t,n,function(i){e[n].call(r,i)})}):(zt.touchEventsSupported&&M(ap.touch,function(n){sh(t,n,function(i){e[n].call(r,i),TG(t)})}),M(ap.mouse,function(n){sh(t,n,function(i){i=e_(i),t.touching||e[n].call(r,i)})}))}function DG(r,t){zt.pointerEventsSupported?M(Vx.pointer,e):zt.touchEventsSupported||M(Vx.mouse,e);function e(n){function i(a){a=e_(a),gL(r,a.target)||(a=AG(r,a),t.domHandlers[n].call(r,a))}sh(t,n,i,{capture:!0})}}function sh(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,Hy(r.domTarget,t,e,n)}function sp(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&O5(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var zx=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),IG=function(r){B(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new zx(e,tn),ip&&(i._globalHandlerScope=new zx(document,tm)),MG(i,i._localHandlerScope),i}return t.prototype.dispose=function(){sp(this._localHandlerScope),ip&&sp(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,ip&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?DG(this,n):sp(n)}},t}(Zr);const LG=IG;var yL=1;zt.hasGlobalWindow&&(yL=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Fh=yL,em=.4,rm="#333",nm="#ccc",PG="#eee",Gx=qv,Fx=5e-5;function Ta(r){return r>Fx||r<-Fx}var Aa=[],Zo=[],lp=Cr(),up=Math.abs,RG=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Ta(this.rotation)||Ta(this.x)||Ta(this.y)||Ta(this.scaleX-1)||Ta(this.scaleY-1)||Ta(this.skewX)||Ta(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Gx(n),this.invTransform=null);return}n=n||Cr(),e?this.getLocalTransform(n):Gx(n),t&&(e?fi(n,t,n):r_(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Aa);var n=Aa[0]<0?-1:1,i=Aa[1]<0?-1:1,a=((Aa[0]-n)*e+n)/Aa[0]||0,o=((Aa[1]-i)*e+i)/Aa[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Cr(),Qs(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Cr(),fi(Zo,t.invTransform,e),e=Zo);var n=this.originX,i=this.originY;(n||i)&&(lp[4]=n,lp[5]=i,fi(Zo,e,lp),Zo[4]-=n,Zo[5]-=i,e=Zo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ze(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ze(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&up(t[0]-1)>1e-10&&up(t[3]-1)>1e-10?Math.sqrt(up(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){mL(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;e[4]=-d*a-h*p*o,e[5]=-p*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=h*o,u&&Oo(e,e,u),e[4]+=n+f,e[5]+=i+c,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}(),Un=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mL(r,t){for(var e=0;e<Un.length;e++){var n=Un[e];r[n]=t[n]}}const si=RG;var Hx={};function Dr(r,t){t=t||ia;var e=Hx[t];e||(e=Hx[t]=new xf(500));var n=e.get(r);return n==null&&(n=aa.measureText(r,t).width,e.put(r,n)),n}function Wx(r,t,e,n){var i=Dr(r,t),a=jv(t),o=tu(0,i,e),s=gs(0,a,n),l=new Mt(o,s,i,a);return l}function bf(r,t,e,n){var i=((r||"")+"").split(` |
|
`),a=i.length;if(a===1)return Wx(i[0],t,e,n);for(var o=new Mt(0,0,0,0),s=0;s<i.length;s++){var l=Wx(i[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function tu(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function gs(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function jv(r){return Dr("国",r)}function pn(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Hh(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",c="top";if(n instanceof Array)l+=pn(n[0],e.width),u+=pn(n[1],e.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var fp="__zr_normal__",cp=Un.concat(["ignore"]),EG=Wn(Un,function(r,t){return r[t]=!0,r},{ignore:!1}),Xo={},kG=new Mt(0,0,0,0),s_=function(){function r(t){this.id=$I(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=kG;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Xo,n,f):Hh(Xo,n,f),a.x=Xo.x,a.y=Xo.y,o=Xo.align,s=Xo.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=pn(c[0],f.width),v=pn(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=br,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()?nm:rm},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Mr(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ci(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},F(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(yt(t))for(var n=t,i=kt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==fp)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,cp)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(fp,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===fp,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Dt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){j0("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,f),h&&h.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},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=Dt(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=Dt(i,t),o=Dt(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];F(e,a),a.textConfig&&(n=n||{},F(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=F({},i?this.textConfig:n.textConfig),F(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<cp.length;f++){var c=cp[f],h=a&&EG[c];e&&e[c]!=null?h?(u=!0,l[c]=e[c]):this[c]=e[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&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 si,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),F(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|=br;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this,a=new o_(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=Dt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){hp(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){hp(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=hp(this,e,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=br;function e(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();_e(s_,Zr);_e(s_,si);function hp(r,t,e,n,i){e=e||{};var a=[];_L(r,"",r,t,e,n,a,i);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var h=0;h<a.length;h++){var v=a[h];f&&v.done(f),c&&v.aborted(c),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function vp(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function OG(r){return Ke(r[0])}function NG(r,t,e){if(Ke(t[e]))if(Ke(r[e])||(r[e]=[]),pr(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),vp(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(OG(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?vp(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else vp(a,i,o);a.length=i.length}else r[e]=t[e]}function VG(r,t){return r===t||Ke(r)&&Ke(t)&&BG(r,t)}function BG(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function _L(r,t,e,n,i,a,o,s){for(var l=kt(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,v=!yt(a),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&e[y]!=null&&(v||a[y]))if(yt(m)&&!Ke(m)&&!Zv(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}_L(r,y,e[y],m,i,a&&a[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===t){var b=x.stopTracks(p);if(b){var w=Dt(d,x);d.splice(w,1)}}}if(i.force||(p=$t(p,function(D){return!VG(n[D],e[D])}),_=p.length),_>0||i.force&&!o.length){var T=void 0,A=void 0,C=void 0;if(s){A={},h&&(T={});for(var S=0;S<_;S++){var y=p[S];A[y]=e[y],h?T[y]=n[y]:e[y]=n[y]}}else if(h){C={};for(var S=0;S<_;S++){var y=p[S];C[y]=Su(e[y]),NG(e,n,y)}}var x=new o_(e,!1,!1,c?$t(d,function(I){return I.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),h&&T&&x.whenWithKeys(0,T,p),C&&x.whenWithKeys(0,C,p),x.whenWithKeys(u==null?500:u,s?A:n,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}const SL=s_;var xL=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=Dt(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=Dt(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new Mt(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(Mt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(SL);xL.prototype.type="group";const _t=xL;/*! |
|
* ZRender, a high performance 2d drawing library. |
|
* |
|
* Copyright (c) 2013, Baidu Inc. |
|
* All rights reserved. |
|
* |
|
* LICENSE |
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt |
|
*/var lh={},bL={};function zG(r){delete bL[r]}function GG(r){if(!r)return!1;if(typeof r=="string")return zh(r,1)<em;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=zh(t[i].color,1);return e/=n,e<em}return!1}var FG=function(){function r(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new j5,o=n.renderer||"canvas";lh[o]||(o=kt(lh)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new lh[o](e,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!zt.node&&!zt.worker&&!l?new LG(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?zt.touchEventsSupported:!!f,h=44,v;c&&(v=xt(n.pointerSize,h)),this.handler=new Y5(a,s,u,s.root,v),this.animation=new bG({stage:{update:l?null:function(){return i._flush(!0)}}}),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=GG(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||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,n=Ss();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Ss();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(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,n){return this._disposed||this.handler.on(t,e,n),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 _t&&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,zG(this.id))},r}();function $x(r,t){var e=new FG($I(),r,t);return bL[e.id]=e,e}function HG(r,t){lh[r]=t}var im;function WG(r){if(typeof im=="function")return im(r)}function $G(r){im=r}var Ux=1e-4,wL=20;function UG(r){return r.replace(/^\s+|\s+$/g,"")}function Ut(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function rt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return nt(r)?UG(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ce(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),wL),r=(+r).toFixed(t),e?r:+r}function $r(r){return r.sort(function(t,e){return t-e}),r}function On(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return YG(r)}function YG(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function TL(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function ZG(r,t){var e=Wn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=Z(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=Z(i,function(v){return Math.floor(v)}),s=Wn(o,function(v,d){return v+d},0),l=Z(i,function(v,d){return v-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Z(o,function(v){return v/n})}function XG(r,t){var e=Math.max(On(r),On(t)),n=r+t;return e>wL?n:ce(n,e)}var Yx=9007199254740991;function AL(r){var t=Math.PI*2;return(r%t+t)%t}function Uu(r){return r>-Ux&&r<Ux}var qG=/^(?:(\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 Yn(r){if(r instanceof Date)return r;if(nt(r)){var t=qG.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function KG(r){return Math.pow(10,l_(r))}function l_(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function CL(r,t){var e=l_(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function dp(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function Zx(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-e),t=i[o],e=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}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 yi(r){var t=parseFloat(r);return t==r&&(t!==0||!nt(r)||r.indexOf("x")<=0)?t:NaN}function ML(r){return!isNaN(yi(r))}function DL(){return Math.round(Math.random()*9)}function IL(r,t){return t===0?r:IL(t,r%t)}function Xx(r,t){return r==null?t:t==null?r:r*t/IL(r,t)}function Wt(r){throw new Error(r)}function qx(r,t,e){return(t-r)*e+r}var LL="series\0",PL="\0_ec_\0";function Zt(r){return r instanceof Array?r:r==null?[]:[r]}function Mo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Kx=["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 tl(r){return yt(r)&&!Y(r)&&!(r instanceof Date)?r.value:r}function jG(r){return yt(r)&&!(r instanceof Array)}function RL(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=ft();M(t,function(l,u){if(!yt(l)){t[u]=null;return}});var s=JG(r,o,e);return(n||i)&&QG(s,r,o,t),n&&tF(s,t),n||i?eF(s,t,i):a&&rF(s,t),nF(s),s}function JG(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||Yu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function QG(r,t,e,n){M(n,function(i,a){if(!(!i||i.id==null)){var o=xu(i.id),s=e.get(o);if(s!=null){var l=r[s];lr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function tF(r,t){M(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!Yu(e)&&!Yu(a)&&EL("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function eF(r,t,e){M(t,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||Yu(i.existing)||i.existing&&n.id!=null&&!EL("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function rF(r,t){M(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function nF(r){var t=ft();M(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),M(r,function(e){var n=e.newOption;lr(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),M(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(yt(a)){if(o.name=a.name!=null?xu(a.name):i?i.name:LL+n,i)o.id=xu(i.id);else if(a.id!=null)o.id=xu(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function EL(r,t,e){var n=xe(t[r],null),i=xe(e[r],null);return n!=null&&i!=null&&n===i}function xu(r){return xe(r,"")}function xe(r,t){return r==null?t:nt(r)?r:Ft(r)||Oy(r)?r+"":t}function u_(r){var t=r.name;return!!(t&&t.indexOf(LL))}function Yu(r){return r&&r.id!=null&&xu(r.id).indexOf(PL)===0}function iF(r){return PL+r}function aF(r,t,e){M(r,function(n){var i=n.newOption;yt(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=oF(t,i,n.existing,e))})}function oF(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function sF(r,t){var e={},n={};return i(r||[],e),i(t||[],n,e),[a(e),a(n)];function i(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=xe(o[u].seriesId,null);if(c==null)return;for(var h=Zt(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[g]=null:(s[c]||(s[c]={}))[g]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=a(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Do(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Y(t.dataIndex)?Z(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Y(t.name)?Z(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function Nt(){var r="__ec_inner_"+lF++;return function(t){return t[r]||(t[r]={})}}var lF=DL();function bu(r,t,e){var n=f_(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=wf(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"]=c.models,s[f+"Model"]=c.models[0]}),s}function f_(r,t){var e;if(nt(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=ft(),a={},o=!1;return M(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&Dt(t.includeMainTypes,f)<0)){o=o||!!f;var h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ye={useDefault:!0,enableAll:!1,enableNone:!1},uF={useDefault:!1,enableAll:!0,enableNone:!0};function wf(r,t,e,n){n=n||ye;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(lr(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(lr(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function kL(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function fF(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function cF(r){return r==="auto"?zt.domSupported?"html":"richText":r||"html"}function am(r,t){var e=ft(),n=[];return M(r,function(i){var a=t(i);(e.get(a)||(n.push(a),e.set(a,[]))).push(i)}),{keys:n,buckets:e}}function OL(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(Ft(n)){var o=qx(e||0,n,i);return ce(o,a?Math.max(On(e||0),On(n)):t)}else{if(nt(n))return i<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=qx(v,d,i);s[c]=ce(o,a?Math.max(On(v),On(d)):t)}}return s}}var hF=".",Ca="___EC__COMPONENT__CONTAINER___",NL="___EC__EXTENDED_CLASS___";function Nn(r){var t={main:"",sub:""};if(r){var e=r.split(hF);t.main=e[0]||"",t.sub=e[1]||""}return t}function vF(r){lr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function dF(r){return!!(r&&r[NL])}function c_(r,t){r.$constructor=r,r.extend=function(e){var n=this,i;return pF(n)?i=function(a){B(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(e.$constructor||n).apply(this,arguments)},h5(i,this)),F(i.prototype,e),i[NL]=!0,i.extend=this.extend,i.superCall=mF,i.superApply=_F,i.superClass=n,i}}function pF(r){return vt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function VL(r,t){r.extend=t.extend}var gF=Math.round(Math.random()*10);function yF(r){var t=["__\0is_clz",gF++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function mF(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function _F(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Jv(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){vF(i),n.prototype.type=i;var a=Nn(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Ca){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[Ca]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=Nn(n),a=[],o=t[i.main];return o&&o[Ca]?M(o,function(s,l){l!==Ca&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=Nn(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return M(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=Nn(n),a=t[i.main];return a&&a[Ca]};function e(n){var i=t[n.main];return(!i||!i[Ca])&&(i=t[n.main]={},i[Ca]=!0),i}}function Io(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&Dt(i,l)>=0||a&&Dt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var SF=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],xF=Io(SF),bF=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return xF(this,t,e)},r}(),om=new xf(50);function wF(r){if(typeof r=="string"){var t=om.get(r);return t&&t.image}else return r}function h_(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=om.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Qv(t)&&a.pending.push(o)):(t=aa.loadImage(r,jx,jx),t.__zrImageSrc=r,om.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function jx(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Qv(r){return r&&r.width&&r.height}var pp=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function TF(r,t,e,n,i,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(` |
|
`);a=BL(e,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)zL(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(` |
|
`),r.isTruncated=s}function BL(r,t,e,n){n=n||{};var i=F({},n);i.font=t,e=xt(e,"..."),i.maxIterations=xt(n.maxIterations,2);var a=i.minChar=xt(n.minChar,0);i.cnCharWidth=Dr("国",t);var o=i.ascCharWidth=Dr("a",t);i.placeholder=xt(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=Dr(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function zL(r,t,e){var n=e.containerWidth,i=e.font,a=e.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Dr(t,i);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?AF(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=Dr(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function AF(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function CF(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=jv(i),s=xt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=!1,c=t.width,h;c!=null&&(e==="break"||e==="breakAll")?h=r?GL(r,t.font,c,e==="breakAll",0).lines:[]:h=r?r.split(` |
|
`):[];var v=h.length*s,d=xt(t.height,v);if(v>d&&u){var p=Math.floor(d/s);f=f||h.length>p,h=h.slice(0,p)}if(r&&a&&c!=null)for(var g=BL(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;m<h.length;m++)zL(y,h[m],g),h[m]=y.textLine,f=f||y.isTruncated;for(var _=d,S=0,m=0;m<h.length;m++)S=Math.max(Dr(h[m],i),S);c==null&&(c=S);var x=S;return n&&(_+=n[0]+n[2],x+=n[1]+n[3],c+=n[1]+n[3]),l&&(x=c),{lines:h,height:d,outerWidth:x,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:v,width:c,isTruncated:f}}var MF=function(){function r(){}return r}(),Jx=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),DF=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 IF(r,t){var e=new DF;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=pp.lastIndex=0,l;(l=pp.exec(r))!=null;){var u=l.index;u>s&&gp(e,r.substring(s,u),t,o),gp(e,l[2],t,o,l[1]),s=pp.lastIndex}s<r.length&&gp(e,r.substring(s,r.length),t,o);var f=[],c=0,h=0,v=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate",g={};function y($,q,Q){$.width=q,$.lineHeight=Q,c+=Q,h=Math.max(h,q)}t:for(var m=0;m<e.lines.length;m++){for(var _=e.lines[m],S=0,x=0,b=0;b<_.tokens.length;b++){var w=_.tokens[b],T=w.styleName&&t.rich[w.styleName]||{},A=w.textPadding=T.padding,C=A?A[1]+A[3]:0,D=w.font=T.font||t.font;w.contentHeight=jv(D);var I=xt(T.height,w.contentHeight);if(w.innerHeight=I,A&&(I+=A[0]+A[2]),w.height=I,w.lineHeight=zn(T.lineHeight,t.lineHeight,I),w.align=T&&T.align||t.align,w.verticalAlign=T&&T.verticalAlign||"middle",p&&i!=null&&c+w.lineHeight>i){var L=e.lines.length;b>0?(_.tokens=_.tokens.slice(0,b),y(_,x,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length<L;break t}var P=T.width,E=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")w.percentWidth=P,f.push(w),w.contentWidth=Dr(w.text,D);else{if(E){var O=T.backgroundColor,V=O&&O.image;V&&(V=wF(V),Qv(V)&&(w.width=Math.max(w.width,V.width*I/V.height)))}var N=d&&n!=null?n-x:null;N!=null&&N<w.width?!E||N<C?(w.text="",w.width=w.contentWidth=0):(TF(g,w.text,N-C,D,t.ellipsis,{minChar:t.truncateMinChar}),w.text=g.text,e.isTruncated=e.isTruncated||g.isTruncated,w.width=w.contentWidth=Dr(w.text,D)):w.contentWidth=Dr(w.text,D)}w.width+=C,x+=w.width,T&&(S=Math.max(S,w.lineHeight))}y(_,x,S)}e.outerWidth=e.width=xt(n,h),e.outerHeight=e.height=xt(i,c),e.contentHeight=c,e.contentWidth=h,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var m=0;m<f.length;m++){var w=f[m],G=w.percentWidth;w.width=parseInt(G,10)/100*e.width}return e}function gp(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},s=r.lines,l=o.font||e.font,u=!1,f,c;if(n){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=pn(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(` |
|
`),u=!0),n.accumWidth=d}else{var p=GL(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,c=p.linesWidths,f=p.lines}}else f=t.split(` |
|
`);for(var g=0;g<f.length;g++){var y=f[g],m=new MF;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=c?c[g]:Dr(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Jx)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new Jx([m]))}}function LF(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var PF=Wn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function RF(r){return LF(r)?!!PF[r]:!0}function GL(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<r.length;c++){var h=r.charAt(c);if(h===` |
|
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Dr(h,t),d=n?!1:!RF(h);if(a.length?f+v>e:i+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var sm="__zr_style_"+Math.round(Math.random()*10),_o={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},td={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_o[sm]=!0;var Qx=["z","z2","invisible"],EF=["invisible"],kF=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=kt(e),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&OF(this,e,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Mt(0,0,0,0)),n?Mt.applyTransform(e,i,n):e.copy(i),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Mt(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:F(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Jl,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Jl)},t.prototype.styleUpdated=function(){this.__dirty&=~Jl},t.prototype.createStyle=function(e){return Xv(_o,e)},t.prototype.useStyle=function(e){e[sm]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[sm]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Qx)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=kt(f),h=0;h<c.length;h++){var v=c[h];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=kt(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?EF:Qx,h=0;h<p.length;h++){var v=p[h];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return F(e,n),e},t.prototype.getAnimationStyleProps=function(){return td},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=br|Jl}(),t}(SL),yp=new Mt(0,0,0,0),mp=new Mt(0,0,0,0);function OF(r,t,e){return yp.copy(r.getBoundingRect()),r.transform&&yp.applyTransform(r.transform),mp.width=t,mp.height=e,!yp.intersect(mp)}const Yr=kF;var hr=Math.min,vr=Math.max,_p=Math.sin,Sp=Math.cos,Ma=Math.PI*2,rc=ko(),nc=ko(),ic=ko();function ed(r,t,e){if(r.length!==0){for(var n=r[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],i=hr(i,n[0]),a=vr(a,n[0]),o=hr(o,n[1]),s=vr(s,n[1]);t[0]=i,t[1]=o,e[0]=a,e[1]=s}}function tb(r,t,e,n,i,a){i[0]=hr(r,e),i[1]=hr(t,n),a[0]=vr(r,e),a[1]=vr(t,n)}var eb=[],rb=[];function NF(r,t,e,n,i,a,o,s,l,u){var f=nL,c=Ae,h=f(r,e,i,o,eb);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=c(r,e,i,o,eb[v]);l[0]=hr(d,l[0]),u[0]=vr(d,u[0])}h=f(t,n,a,s,rb);for(var v=0;v<h;v++){var p=c(t,n,a,s,rb[v]);l[1]=hr(p,l[1]),u[1]=vr(p,u[1])}l[0]=hr(r,l[0]),u[0]=vr(r,u[0]),l[0]=hr(o,l[0]),u[0]=vr(o,u[0]),l[1]=hr(t,l[1]),u[1]=vr(t,u[1]),l[1]=hr(s,l[1]),u[1]=vr(s,u[1])}function VF(r,t,e,n,i,a,o,s){var l=aL,u=Le,f=vr(hr(l(r,e,i),1),0),c=vr(hr(l(t,n,a),1),0),h=u(r,e,i,f),v=u(t,n,a,c);o[0]=hr(r,i,h),o[1]=hr(t,a,v),s[0]=vr(r,i,h),s[1]=vr(t,a,v)}function BF(r,t,e,n,i,a,o,s,l){var u=Yi,f=Zi,c=Math.abs(i-a);if(c%Ma<1e-4&&c>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(rc[0]=Sp(i)*e+r,rc[1]=_p(i)*n+t,nc[0]=Sp(a)*e+r,nc[1]=_p(a)*n+t,u(s,rc,nc),f(l,rc,nc),i=i%Ma,i<0&&(i=i+Ma),a=a%Ma,a<0&&(a=a+Ma),i>a&&!o?a+=Ma:i<a&&o&&(i+=Ma),o){var h=a;a=i,i=h}for(var v=0;v<a;v+=Math.PI/2)v>i&&(ic[0]=Sp(v)*e+r,ic[1]=_p(v)*n+t,u(s,ic,s),f(l,ic,l))}var qt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Da=[],Ia=[],xn=[],Di=[],bn=[],wn=[],xp=Math.min,bp=Math.max,La=Math.cos,Pa=Math.sin,Jn=Math.abs,lm=Math.PI,zi=lm*2,wp=typeof Float32Array!="undefined",Al=[];function Tp(r){var t=Math.round(r/lm*1e8)/1e8;return t%2*lm}function v_(r,t){var e=Tp(r[0]);e<0&&(e+=zi);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=zi?i=e+zi:t&&e-i>=zi?i=e-zi:!t&&e>i?i=e+(zi-Tp(e-i)):t&&e<i&&(i=e-(zi-Tp(i-e))),r[0]=e,r[1]=i}var Zn=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=Jn(n/Fh/t)||0,this._uy=Jn(n/Fh/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(qt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=Jn(t-this._xi),i=Jn(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(qt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(qt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(qt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Al[0]=i,Al[1]=a,v_(Al,o),i=Al[0],a=Al[1];var s=a-i;return this.addData(qt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=La(a)*n+t,this._yi=Pa(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(qt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(qt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&wp&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,a=0;a<e;a++)n+=t[a].len();wp&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},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,wp&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){xn[0]=xn[1]=bn[0]=bn[1]=Number.MAX_VALUE,Di[0]=Di[1]=wn[0]=wn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],i=e,a=n),s){case qt.M:e=i=t[o++],n=a=t[o++],bn[0]=i,bn[1]=a,wn[0]=i,wn[1]=a;break;case qt.L:tb(e,n,t[o],t[o+1],bn,wn),e=t[o++],n=t[o++];break;case qt.C:NF(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],bn,wn),e=t[o++],n=t[o++];break;case qt.Q:VF(e,n,t[o++],t[o++],t[o],t[o+1],bn,wn),e=t[o++],n=t[o++];break;case qt.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],v=t[o++],d=t[o++]+v;o+=1;var p=!t[o++];l&&(i=La(v)*c+u,a=Pa(v)*h+f),BF(u,f,c,h,v,d,p,bn,wn),e=La(d)*c+u,n=Pa(d)*h+f;break;case qt.R:i=e=t[o++],a=n=t[o++];var g=t[o++],y=t[o++];tb(i,a,i+g,a+y,bn,wn);break;case qt.Z:e=i,n=a;break}Yi(xn,xn,bn),Zi(Di,Di,wn)}return o===0&&(xn[0]=xn[1]=Di[0]=Di[1]=0),new Mt(xn[0],xn[1],Di[0]-xn[0],Di[1]-xn[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<e;){var v=t[h++],d=h===1;d&&(a=t[h],o=t[h+1],s=a,l=o);var p=-1;switch(v){case qt.M:a=s=t[h++],o=l=t[h++];break;case qt.L:{var g=t[h++],y=t[h++],m=g-a,_=y-o;(Jn(m)>n||Jn(_)>i||h===e-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case qt.C:{var S=t[h++],x=t[h++],g=t[h++],y=t[h++],b=t[h++],w=t[h++];p=J5(a,o,S,x,g,y,b,w,10),a=b,o=w;break}case qt.Q:{var S=t[h++],x=t[h++],g=t[h++],y=t[h++];p=tG(a,o,S,x,g,y,10),a=g,o=y;break}case qt.A:var T=t[h++],A=t[h++],C=t[h++],D=t[h++],I=t[h++],L=t[h++],P=L+I;h+=1,d&&(s=La(I)*C+T,l=Pa(I)*D+A),p=bp(C,D)*xp(zi,Math.abs(L)),a=La(P)*C+T,o=Pa(P)*D+A;break;case qt.R:{s=a=t[h++],l=o=t[h++];var E=t[h++],O=t[h++];p=E*2+O*2;break}case qt.Z:{var m=s-a,_=l-o;p=Math.sqrt(m*m+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,v=e<1,d,p,g=0,y=0,m,_=0,S,x;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b<o;){var w=n[b++],T=b===1;switch(T&&(u=n[b],f=n[b+1],s=u,l=f),w!==qt.L&&_>0&&(t.lineTo(S,x),_=0),w){case qt.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case qt.L:{c=n[b++],h=n[b++];var A=Jn(c-u),C=Jn(h-f);if(A>i||C>a){if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+c*I,f*(1-I)+h*I);break t}g+=D}t.lineTo(c,h),u=c,f=h,_=0}else{var L=A*A+C*C;L>_&&(S=c,x=h,_=L)}break}case qt.C:{var P=n[b++],E=n[b++],O=n[b++],V=n[b++],N=n[b++],G=n[b++];if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;oa(u,P,O,N,I,Da),oa(f,E,V,G,I,Ia),t.bezierCurveTo(Da[1],Ia[1],Da[2],Ia[2],Da[3],Ia[3]);break t}g+=D}t.bezierCurveTo(P,E,O,V,N,G),u=N,f=G;break}case qt.Q:{var P=n[b++],E=n[b++],O=n[b++],V=n[b++];if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;Hu(u,P,O,I,Da),Hu(f,E,V,I,Ia),t.quadraticCurveTo(Da[1],Ia[1],Da[2],Ia[2]);break t}g+=D}t.quadraticCurveTo(P,E,O,V),u=O,f=V;break}case qt.A:var $=n[b++],q=n[b++],Q=n[b++],ct=n[b++],ht=n[b++],gt=n[b++],Et=n[b++],U=!n[b++],K=Q>ct?Q:ct,H=Jn(Q-ct)>.001,tt=ht+gt,j=!1;if(v){var D=d[y++];g+D>m&&(tt=ht+gt*(m-g)/D,j=!0),g+=D}if(H&&t.ellipse?t.ellipse($,q,Q,ct,Et,ht,tt,U):t.arc($,q,K,ht,tt,U),j)break t;T&&(s=La(ht)*Q+$,l=Pa(ht)*ct+q),u=La(tt)*Q+$,f=Pa(tt)*ct+q;break;case qt.R:s=u=n[b],l=f=n[b+1],c=n[b++],h=n[b++];var ut=n[b++],R=n[b++];if(v){var D=d[y++];if(g+D>m){var k=m-g;t.moveTo(c,h),t.lineTo(c+xp(k,ut),h),k-=ut,k>0&&t.lineTo(c+ut,h+xp(k,R)),k-=R,k>0&&t.lineTo(c+bp(ut-k,0),h+R),k-=ut,k>0&&t.lineTo(c,h+bp(R-k,0));break t}g+=D}t.rect(c,h,ut,R);break;case qt.Z:if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);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.CMD=qt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Wi(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function zF(r,t,e,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>a+c&&f>s+c||f<t-c&&f<n-c&&f<a-c&&f<s-c||u>r+c&&u>e+c&&u>i+c&&u>o+c||u<r-c&&u<e-c&&u<i-c&&u<o-c)return!1;var h=iL(r,t,e,n,i,a,o,s,u,f,null);return h<=c/2}function FL(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>r+u&&s>e+u&&s>i+u||s<r-u&&s<e-u&&s<i-u)return!1;var f=oL(r,t,e,n,i,a,s,l,null);return f<=u/2}var nb=Math.PI*2;function Tr(r){return r%=nb,r<0&&(r+=nb),r}var Cl=Math.PI*2;function GF(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-i)%Cl<1e-4)return!0;if(a){var c=n;n=Tr(i),i=Tr(c)}else n=Tr(n),i=Tr(i);n>i&&(i+=Cl);var h=Math.atan2(l,s);return h<0&&(h+=Cl),h>=n&&h<=i||h+Cl>=n&&h+Cl<=i}function ni(r,t,e,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(e-r)+r;return l===i?1/0:l>i?s:0}var Ii=Zn.CMD,Ra=Math.PI*2,FF=1e-4;function HF(r,t){return Math.abs(r-t)<FF}var nr=[-1,-1,-1],Vr=[-1,-1];function WF(){var r=Vr[0];Vr[0]=Vr[1],Vr[1]=r}function $F(r,t,e,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=Vh(t,n,a,s,u,nr);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=nr[p],y=g===0||g===1?.5:1,m=Ae(r,e,i,o,g);m<l||(h<0&&(h=nL(t,n,a,s,Vr),Vr[1]<Vr[0]&&h>1&&WF(),v=Ae(t,n,a,s,Vr[0]),h>1&&(d=Ae(t,n,a,s,Vr[1]))),h===2?g<Vr[0]?c+=v<t?y:-y:g<Vr[1]?c+=d<v?y:-y:c+=s<d?y:-y:g<Vr[0]?c+=v<t?y:-y:c+=s<v?y:-y)}return c}function UF(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=Q5(t,n,a,s,nr);if(l===0)return 0;var u=aL(t,n,a);if(u>=0&&u<=1){for(var f=0,c=Le(t,n,a,u),h=0;h<l;h++){var v=nr[h]===0||nr[h]===1?.5:1,d=Le(r,e,i,nr[h]);d<o||(nr[h]<u?f+=c<t?v:-v:f+=a<c?v:-v)}return f}else{var v=nr[0]===0||nr[0]===1?.5:1,d=Le(r,e,i,nr[0]);return d<o?0:a<t?v:-v}}function YF(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);nr[0]=-l,nr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ra-1e-4){n=0,i=Ra;var f=a?1:-1;return o>=nr[0]+r&&o<=nr[1]+r?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Ra,i+=Ra);for(var h=0,v=0;v<2;v++){var d=nr[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Ra+p),(p>=n&&p<=i||p+Ra>=n&&p+Ra<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function HL(r,t,e,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var p=a[d++],g=d===1;switch(p===Ii.M&&d>1&&(e||(s+=ni(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case Ii.M:f=a[d++],c=a[d++],l=f,u=c;break;case Ii.L:if(e){if(Wi(l,u,a[d],a[d+1],t,n,i))return!0}else s+=ni(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Ii.C:if(e){if(zF(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=$F(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Ii.Q:if(e){if(FL(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=UF(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Ii.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],x=a[d++],b=a[d++];d+=1;var w=!!(1-a[d++]);h=Math.cos(x)*_+y,v=Math.sin(x)*S+m,g?(f=h,c=v):s+=ni(l,u,h,v,n,i);var T=(n-y)*S/_+y;if(e){if(GF(y,m,S,x,x+b,w,t,T,i))return!0}else s+=YF(y,m,S,x,x+b,w,T,i);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case Ii.R:f=l=a[d++],c=u=a[d++];var A=a[d++],C=a[d++];if(h=f+A,v=c+C,e){if(Wi(f,c,h,c,t,n,i)||Wi(h,c,h,v,t,n,i)||Wi(h,v,f,v,t,n,i)||Wi(f,v,f,c,t,n,i))return!0}else s+=ni(h,c,h,v,n,i),s+=ni(f,v,f,c,n,i);break;case Ii.Z:if(e){if(Wi(l,u,f,c,t,n,i))return!0}else s+=ni(l,u,f,c,n,i);l=f,u=c;break}}return!e&&!HF(u,c)&&(s+=ni(l,u,f,c,n,i)||0),s!==0}function ZF(r,t,e){return HL(r,0,!1,t,e)}function XF(r,t,e,n){return HL(r,t,!0,e,n)}var Wh=pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_o),qF={style:pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},td.style)},Ap=Un.concat(["invisible","culling","z","z2","zlevel","parent"]),KF=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Ap.length;++s)i[Ap[s]]=this[Ap[s]];i.__dirty|=br}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=kt(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=e[o];o==="style"?this.style?F(this.style,s):this.useStyle(s):o==="shape"?F(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(nt(e)){var n=zh(e,0);return n>.5?rm:n>.2?PG:nm}else if(e)return nm}return rm},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=zh(e,0)<em;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~ps},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 Zn(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ps)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),XF(s,l/u,e,n)))return!0}if(this.hasFill())return ZF(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ps,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:F(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ps)},t.prototype.createStyle=function(e){return Xv(Wh,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=F({},i.shape),F(u,n.shape)):(u=F({},a?this.shape:i.shape),F(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=F({},this.shape);for(var f={},c=kt(u),h=0;h<c.length;h++){var v=c[h];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return qF},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(a){B(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return mt(e.style)},o.prototype.getDefaultShape=function(){return mt(e.shape)},o}(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=br|Jl|ps}(),t}(Yr);const Pt=KF;var jF=pt({strokeFirst:!0,font:ia,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Wh),WL=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Xv(jF,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=bf(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Yr);WL.prototype.type="tspan";const Zu=WL;var JF=pt({x:0,y:0},_o),QF={style:pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},td.style)};function t3(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var $L=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Xv(JF,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=t3(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return QF},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Mt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Yr);$L.prototype.type="image";const We=$L;function e3(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var xs=Math.round;function UL(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(xs(n*2)===xs(i*2)&&(r.x1=r.x2=oo(n,s,!0)),xs(a*2)===xs(o*2)&&(r.y1=r.y2=oo(a,s,!0))),r}}function YL(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=oo(n,s,!0),r.y=oo(i,s,!0),r.width=Math.max(oo(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(oo(i+o,s,!1)-r.y,o===0?0:1)),r}}function oo(r,t,e){if(!t)return r;var n=xs(r*2);return(n+xs(t))%2===0?n/2:(n+(e?1:-1))/2}var r3=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),n3={},ZL=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new r3},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=YL(n3,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?e3(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Pt);ZL.prototype.type="rect";const Vt=ZL;var ib={fill:"#000"},ab=2,i3={style:pt({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},td.style)},XL=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ib,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,s3(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Mt(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||ib},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return F(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=kt(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},F(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return i3},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||ia,i=e.padding,a=hb(e),o=CF(a,e),s=Cp(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=e.x||0,g=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=p,S=gs(g,o.contentHeight,m);if(s||i){var x=tu(p,f,y),b=gs(g,u,m);s&&this._renderBackground(e,e,x,b,f,u)}S+=v/2,i&&(_=cb(p,y,i),m==="top"?S+=i[0]:m==="bottom"&&(S-=i[2]));for(var w=0,T=!1,A=fb("fill"in e?e.fill:(T=!0,d.fill)),C=ub("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(w=ab,d.stroke):null),D=e.textShadowBlur>0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<h.length;P++){var E=this._getOrCreateChild(Zu),O=E.createStyle();E.useStyle(O),O.text=h[P],O.x=_,O.y=S,y&&(O.textAlign=y),O.textBaseline="middle",O.opacity=e.opacity,O.strokeFirst=!0,D&&(O.shadowBlur=e.textShadowBlur||0,O.shadowColor=e.textShadowColor||"transparent",O.shadowOffsetX=e.textShadowOffsetX||0,O.shadowOffsetY=e.textShadowOffsetY||0),O.stroke=C,O.fill=A,C&&(O.lineWidth=e.lineWidth||w,O.lineDash=e.lineDash,O.lineDashOffset=e.lineDashOffset||0),O.font=n,sb(O,e),S+=v,I&&E.setBoundingRect(new Mt(tu(O.x,c,O.textAlign),gs(O.y,L,O.textBaseline),c,L))}},t.prototype._updateRichTexts=function(){var e=this.style,n=hb(e),i=IF(n,e),a=i.width,o=i.outerWidth,s=i.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,c=this._defaultStyle,h=e.align||c.align,v=e.verticalAlign||c.verticalAlign;this.isTruncated=!!i.isTruncated;var d=tu(u,o,h),p=gs(f,s,v),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+a;Cp(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<i.lines.length;S++){for(var x=i.lines[S],b=x.tokens,w=b.length,T=x.lineHeight,A=x.width,C=0,D=g,I=m,L=w-1,P=void 0;C<w&&(P=b[C],!P.align||P.align==="left");)this._placeToken(P,e,T,y,D,"left",_),A-=P.width,D+=P.width,C++;for(;L>=0&&(P=b[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),A-=P.width,I-=P.width,L--;for(D+=(a-(D-g)-(m-I)-A)/2;C<=L;)P=b[C],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,C++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=a+i/2;f==="top"?c=a+e.height/2:f==="bottom"&&(c=a+i-e.height/2);var h=!e.isLineHolder&&Cp(u);h&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,c-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=cb(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Zu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=fb("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),x=ub("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=ab,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||ia,g.opacity=zn(u.opacity,n.opacity,1),sb(g,u),x&&(g.lineWidth=zn(u.lineWidth,n.lineWidth,_),g.lineDash=xt(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var w=e.contentWidth,T=e.contentHeight;p.setBoundingRect(new Mt(tu(g.x,w,g.textAlign),gs(g.y,T,g.textBaseline),w,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,h=l&&!c,v=e.borderRadius,d=this,p,g;if(h||e.lineHeight||u&&f){p=this._getOrCreateChild(Vt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(h){var m=p.style;m.fill=l||null,m.fillOpacity=xt(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(We),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=xt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=zn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return KL(e)&&(n=[e.fontStyle,e.fontWeight,qL(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&an(n)||e.textFont||e.font},t}(Yr),a3={left:!0,right:1,center:1},o3={top:1,bottom:1,middle:1},ob=["fontStyle","fontWeight","fontSize","fontFamily"];function qL(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?X0+"px":r+"px"}function sb(r,t){for(var e=0;e<ob.length;e++){var n=ob[e],i=t[n];i!=null&&(r[n]=i)}}function KL(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function s3(r){return lb(r),M(r.rich,lb),r}function lb(r){if(r){r.font=XL.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||a3[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||o3[e]?e:"top";var n=r.padding;n&&(r.padding=t_(r.padding))}}function ub(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function fb(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function cb(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function hb(r){var t=r.text;return t!=null&&(t+=""),t}function Cp(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const Gt=XL;var St=Nt(),um=function(r,t,e,n){if(n){var i=St(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=St(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},vb=1,db={},jL=Nt(),d_=Nt(),p_=0,Tf=1,rd=2,ur=["emphasis","blur","select"],Xu=["normal","emphasis","blur","select"],el=10,l3=9,So="highlight",uh="downplay",wu="select",fh="unselect",Tu="toggleSelect";function qo(r){return r!=null&&r!=="none"}function nd(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function JL(r){nd(r,"emphasis",rd)}function QL(r){r.hoverState===rd&&nd(r,"normal",p_)}function g_(r){nd(r,"blur",Tf)}function tP(r){r.hoverState===Tf&&nd(r,"normal",p_)}function u3(r){r.selected=!0}function f3(r){r.selected=!1}function pb(r,t,e){t(r,e)}function Ti(r,t,e){pb(r,t,e),r.isGroup&&r.traverse(function(n){pb(n,t,e)})}function $h(r,t){switch(t){case"emphasis":r.hoverState=rd;break;case"normal":r.hoverState=p_;break;case"blur":r.hoverState=Tf;break;case"select":r.selected=!0}}function c3(r,t,e,n){for(var i=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function h3(r,t,e,n){var i=e&&Dt(e,"select")>=0,a=!1;if(r instanceof Pt){var o=jL(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(qo(s)||qo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=F({},n),u=F({},u),u.fill=s):!qo(u.fill)&&qo(s)?(a=!0,n=F({},n),u=F({},u),u.fill=Xy(s)):!qo(u.stroke)&&qo(l)&&(a||(n=F({},n),u=F({},u)),u.stroke=Xy(l)),n.style=u}}if(n&&n.z2==null){a||(n=F({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:el)}return n}function v3(r,t,e){if(e&&e.z2==null){e=F({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:l3)}return e}function d3(r,t,e){var n=Dt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:c3(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=F({},e),o=F({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Mp(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return h3(this,r,t,e);if(r==="blur")return d3(this,r,e);if(r==="select")return v3(this,r,e)}return e}function Lo(r){r.stateProxy=Mp;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Mp),e&&(e.stateProxy=Mp)}function gb(r,t){!iP(r,t)&&!r.__highByOuter&&Ti(r,JL)}function yb(r,t){!iP(r,t)&&!r.__highByOuter&&Ti(r,QL)}function mi(r,t){r.__highByOuter|=1<<(t||0),Ti(r,JL)}function _i(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ti(r,QL)}function eP(r){Ti(r,g_)}function y_(r){Ti(r,tP)}function rP(r){Ti(r,u3)}function nP(r){Ti(r,f3)}function iP(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function aP(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=d_(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){tP(u)}),s&&e.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function fm(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&y_(h)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!h||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||g_(g)}),Ke(t))a(u.getData(),t);else if(yt(t))for(var d=kt(t),p=0;p<d.length;p++)a(u.getData(d[p]),t[d[p]]);l.push(u),d_(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function cm(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){d_(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){g_(a)})}}}function p3(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(i){var a=Do(i,t);a=(Y(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=St(o);fm(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&fm(n,f,c,e)}}}function m_(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(St(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function g3(r,t,e){var n=St(r),i=m_(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&cm(n.componentMainType,n.componentIndex,e),M(a,function(s){return gb(s,t)})):(fm(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&cm(n.componentMainType,n.componentIndex,e),gb(r,t))}function y3(r,t,e){aP(e);var n=St(r),i=m_(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?M(i,function(a){return yb(a,t)}):yb(r,t)}function m3(r,t,e){if(vm(t)){var n=t.dataType,i=r.getData(n),a=Do(i,t);Y(a)||(a=[a]),r[t.type===Tu?"toggleSelect":t.type===wu?"select":"unselect"](a,n)}}function mb(r){var t=r.getAllData();M(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?rP(a):nP(a)})})}function _3(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();M(n,function(i){i.data;var a=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function xo(r,t,e){so(r,!0),Ti(r,Lo),hm(r,t,e)}function S3(r){so(r,!1)}function ue(r,t,e,n){n?S3(r):xo(r,t,e)}function hm(r,t,e){var n=St(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var _b=["emphasis","blur","select"],x3={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Fe(r,t,e,n){e=e||"itemStyle";for(var i=0;i<_b.length;i++){var a=_b[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=n?n(o):o[x3[e]]()}}function so(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function qu(r){return!!(r&&r.__highDownDispatcher)}function b3(r,t,e){var n=St(r);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=e}function w3(r){var t=db[r];return t==null&&vb<=32&&(t=db[r]=vb++),t}function vm(r){var t=r.type;return t===wu||t===fh||t===Tu}function Sb(r){var t=r.type;return t===So||t===uh}function T3(r){var t=jL(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 Ko=Zn.CMD,A3=[[],[],[]],xb=Math.sqrt,C3=Math.atan2;function oP(r,t){if(t){var e=r.data,n=r.len(),i,a,o,s,l,u,f=Ko.M,c=Ko.C,h=Ko.L,v=Ko.R,d=Ko.A,p=Ko.Q;for(o=0,s=0;o<n;){switch(i=e[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case p:a=2;break;case d:var g=t[4],y=t[5],m=xb(t[0]*t[0]+t[1]*t[1]),_=xb(t[2]*t[2]+t[3]*t[3]),S=C3(-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 v:u[0]=e[o++],u[1]=e[o++],ze(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],ze(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var x=A3[l];x[0]=e[o++],x[1]=e[o++],ze(x,x,t),e[s++]=x[0],e[s++]=x[1]}}r.increaseVersion()}}var Dp=Math.sqrt,ac=Math.sin,oc=Math.cos,Ml=Math.PI;function bb(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function dm(r,t){return(r[0]*t[0]+r[1]*t[1])/(bb(r)*bb(t))}function wb(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(dm(r,t))}function Tb(r,t,e,n,i,a,o,s,l,u,f){var c=l*(Ml/180),h=oc(c)*(r-e)/2+ac(c)*(t-n)/2,v=-1*ac(c)*(r-e)/2+oc(c)*(t-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=Dp(d),s*=Dp(d));var p=(i===a?-1:1)*Dp((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,y=p*-s*h/o,m=(r+e)/2+oc(c)*g-ac(c)*y,_=(t+n)/2+ac(c)*g+oc(c)*y,S=wb([1,0],[(h-g)/o,(v-y)/s]),x=[(h-g)/o,(v-y)/s],b=[(-1*h-g)/o,(-1*v-y)/s],w=wb(x,b);if(dm(x,b)<=-1&&(w=Ml),dm(x,b)>=1&&(w=0),w<0){var T=Math.round(w/Ml*1e6)/1e6;w=Ml*2+T%2*Ml}f.addData(u,m,_,o,s,S,w,c,a)}var M3=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,D3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function I3(r){var t=new Zn;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Zn.CMD,l=r.match(M3);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,v=f.match(D3)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,T=e,A=n,C=void 0,D=void 0;switch(c){case"l":e+=v[g++],n+=v[g++],h=s.L,t.addData(h,e,n);break;case"L":e=v[g++],n=v[g++],h=s.L,t.addData(h,e,n);break;case"m":e+=v[g++],n+=v[g++],h=s.M,t.addData(h,e,n),i=e,a=n,c="l";break;case"M":e=v[g++],n=v[g++],h=s.M,t.addData(h,e,n),i=e,a=n,c="L";break;case"h":e+=v[g++],h=s.L,t.addData(h,e,n);break;case"H":e=v[g++],h=s.L,t.addData(h,e,n);break;case"v":n+=v[g++],h=s.L,t.addData(h,e,n);break;case"V":n=v[g++],h=s.L,t.addData(h,e,n);break;case"C":h=s.C,t.addData(h,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),e=v[g-2],n=v[g-1];break;case"c":h=s.C,t.addData(h,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n),e+=v[g-2],n+=v[g-1];break;case"S":y=e,m=n,C=t.len(),D=t.data,o===s.C&&(y+=e-D[C-4],m+=n-D[C-3]),h=s.C,T=v[g++],A=v[g++],e=v[g++],n=v[g++],t.addData(h,y,m,T,A,e,n);break;case"s":y=e,m=n,C=t.len(),D=t.data,o===s.C&&(y+=e-D[C-4],m+=n-D[C-3]),h=s.C,T=e+v[g++],A=n+v[g++],e+=v[g++],n+=v[g++],t.addData(h,y,m,T,A,e,n);break;case"Q":T=v[g++],A=v[g++],e=v[g++],n=v[g++],h=s.Q,t.addData(h,T,A,e,n);break;case"q":T=v[g++]+e,A=v[g++]+n,e+=v[g++],n+=v[g++],h=s.Q,t.addData(h,T,A,e,n);break;case"T":y=e,m=n,C=t.len(),D=t.data,o===s.Q&&(y+=e-D[C-4],m+=n-D[C-3]),e=v[g++],n=v[g++],h=s.Q,t.addData(h,y,m,e,n);break;case"t":y=e,m=n,C=t.len(),D=t.data,o===s.Q&&(y+=e-D[C-4],m+=n-D[C-3]),e+=v[g++],n+=v[g++],h=s.Q,t.addData(h,y,m,e,n);break;case"A":_=v[g++],S=v[g++],x=v[g++],b=v[g++],w=v[g++],T=e,A=n,e=v[g++],n=v[g++],h=s.A,Tb(T,A,e,n,b,w,_,S,x,h,t);break;case"a":_=v[g++],S=v[g++],x=v[g++],b=v[g++],w=v[g++],T=e,A=n,e+=v[g++],n+=v[g++],h=s.A,Tb(T,A,e,n,b,w,_,S,x,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),e=i,n=a),o=h}return t.toStatic(),t}var sP=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Pt);function lP(r){return r.setData!=null}function uP(r,t){var e=I3(r),n=F({},t);return n.buildPath=function(i){if(lP(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},n.applyTransform=function(i){oP(e,i),this.dirtyShape()},n}function fP(r,t){return new sP(uP(r,t))}function L3(r,t){var e=uP(r,t),n=function(i){B(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(sP);return n}function P3(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new Pt(t);return o.createPathProxy(),o.buildPath=function(s){if(lP(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function __(r,t){t=t||{};var e=new Pt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?oP(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 R3=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),cP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new R3},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Pt);cP.prototype.type="circle";const pa=cP;var E3=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),hP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new E3},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t}(Pt);hP.prototype.type="ellipse";const S_=hP;var vP=Math.PI,Ip=vP*2,Ea=Math.sin,jo=Math.cos,k3=Math.acos,$e=Math.atan2,Ab=Math.abs,Au=Math.sqrt,eu=Math.max,Tn=Math.min,Qr=1e-4;function O3(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<Qr))return h=(f*(t-a)-c*(r-i))/h,[r+h*l,t+h*u]}function sc(r,t,e,n,i,a,o){var s=r-e,l=t-n,u=(o?a:-a)/Au(s*s+l*l),f=u*l,c=-u*s,h=r+f,v=t+c,d=e+f,p=n+c,g=(h+d)/2,y=(v+p)/2,m=d-h,_=p-v,S=m*m+_*_,x=i-a,b=h*p-d*v,w=(_<0?-1:1)*Au(eu(0,x*x*S-b*b)),T=(b*_-m*w)/S,A=(-b*m-_*w)/S,C=(b*_+m*w)/S,D=(-b*m+_*w)/S,I=T-g,L=A-y,P=C-g,E=D-y;return I*I+L*L>P*P+E*E&&(T=C,A=D),{cx:T,cy:A,x0:-f,y0:-c,x1:T*(i/x-1),y1:A*(i/x-1)}}function N3(r){var t;if(Y(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 V3(r,t){var e,n=eu(t.r,0),i=eu(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,v=Ab(u-l),d=v>Ip&&v%Ip;if(d>Qr&&(v=d),!(n>Qr))r.moveTo(f,c);else if(v>Ip-Qr)r.moveTo(f+n*jo(l),c+n*Ea(l)),r.arc(f,c,n,l,u,!h),i>Qr&&(r.moveTo(f+i*jo(u),c+i*Ea(u)),r.arc(f,c,i,u,l,h));else{var p=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,T=void 0,A=void 0,C=void 0,D=void 0,I=void 0,L=void 0,P=void 0,E=n*jo(l),O=n*Ea(l),V=i*jo(u),N=i*Ea(u),G=v>Qr;if(G){var $=t.cornerRadius;$&&(e=N3($),p=e[0],g=e[1],y=e[2],m=e[3]);var q=Ab(n-i)/2;if(_=Tn(q,y),S=Tn(q,m),x=Tn(q,p),b=Tn(q,g),A=w=eu(_,S),C=T=eu(x,b),(w>Qr||T>Qr)&&(D=n*jo(u),I=n*Ea(u),L=i*jo(l),P=i*Ea(l),v<vP)){var Q=O3(E,O,L,P,D,I,V,N);if(Q){var ct=E-Q[0],ht=O-Q[1],gt=D-Q[0],Et=I-Q[1],U=1/Ea(k3((ct*gt+ht*Et)/(Au(ct*ct+ht*ht)*Au(gt*gt+Et*Et)))/2),K=Au(Q[0]*Q[0]+Q[1]*Q[1]);A=Tn(w,(n-K)/(U+1)),C=Tn(T,(i-K)/(U-1))}}}if(!G)r.moveTo(f+E,c+O);else if(A>Qr){var H=Tn(y,A),tt=Tn(m,A),j=sc(L,P,E,O,n,H,h),ut=sc(D,I,V,N,n,tt,h);r.moveTo(f+j.cx+j.x0,c+j.cy+j.y0),A<w&&H===tt?r.arc(f+j.cx,c+j.cy,A,$e(j.y0,j.x0),$e(ut.y0,ut.x0),!h):(H>0&&r.arc(f+j.cx,c+j.cy,H,$e(j.y0,j.x0),$e(j.y1,j.x1),!h),r.arc(f,c,n,$e(j.cy+j.y1,j.cx+j.x1),$e(ut.cy+ut.y1,ut.cx+ut.x1),!h),tt>0&&r.arc(f+ut.cx,c+ut.cy,tt,$e(ut.y1,ut.x1),$e(ut.y0,ut.x0),!h))}else r.moveTo(f+E,c+O),r.arc(f,c,n,l,u,!h);if(!(i>Qr)||!G)r.lineTo(f+V,c+N);else if(C>Qr){var H=Tn(p,C),tt=Tn(g,C),j=sc(V,N,D,I,i,-tt,h),ut=sc(E,O,L,P,i,-H,h);r.lineTo(f+j.cx+j.x0,c+j.cy+j.y0),C<T&&H===tt?r.arc(f+j.cx,c+j.cy,C,$e(j.y0,j.x0),$e(ut.y0,ut.x0),!h):(tt>0&&r.arc(f+j.cx,c+j.cy,tt,$e(j.y0,j.x0),$e(j.y1,j.x1),!h),r.arc(f,c,i,$e(j.cy+j.y1,j.cx+j.x1),$e(ut.cy+ut.y1,ut.cx+ut.x1),h),H>0&&r.arc(f+ut.cx,c+ut.cy,H,$e(ut.y1,ut.x1),$e(ut.y0,ut.x0),!h))}else r.lineTo(f+V,c+N),r.arc(f,c,i,u,l,h)}r.closePath()}}}var B3=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}(),dP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new B3},t.prototype.buildPath=function(e,n){V3(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pt);dP.prototype.type="sector";const gr=dP;var z3=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),pP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new z3},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(Pt);pP.prototype.type="ring";const id=pP;function G3(r,t,e,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=r.length;h<v;h++)Yi(f,f,r[h]),Zi(c,c,r[h]);Yi(f,f,n[0]),Zi(c,c,n[1])}for(var h=0,v=r.length;h<v;h++){var d=r[h];if(e)l=r[h?h-1:v-1],u=r[(h+1)%v];else if(h===0||h===v-1){i.push(ui(r[h]));continue}else l=r[h-1],u=r[h+1];ao(a,u,l),eh(a,a,t);var p=By(d,l),g=By(d,u),y=p+g;y!==0&&(p/=y,g/=y),eh(o,a,-p),eh(s,a,g);var m=yx([],d,o),_=yx([],d,s);n&&(Zi(m,m,f),Yi(m,m,c),Zi(_,_,f),Yi(_,_,c)),i.push(m),i.push(_)}return e&&i.push(i.shift()),i}function gP(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=G3(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)r.lineTo(i[s][0],i[s][1])}e&&r.closePath()}}var F3=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),yP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new F3},t.prototype.buildPath=function(e,n){gP(e,n,!0)},t}(Pt);yP.prototype.type="polygon";const yr=yP;var H3=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),mP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new H3},t.prototype.buildPath=function(e,n){gP(e,n,!1)},t}(Pt);mP.prototype.type="polyline";const mr=mP;var W3={},$3=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),_P=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $3},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=UL(W3,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(Pt);_P.prototype.type="line";const Ee=_P;var fr=[],U3=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 Cb(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?Lx:Ae)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Lx:Ae)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?$y:Le)(r.x1,r.cpx1,r.x2,t),(e?$y:Le)(r.y1,r.cpy1,r.y2,t)]}var SP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new U3},t.prototype.buildPath=function(e,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(e.moveTo(i,a),f==null||c==null?(h<1&&(Hu(i,l,o,h,fr),l=fr[1],o=fr[2],Hu(a,u,s,h,fr),u=fr[1],s=fr[2]),e.quadraticCurveTo(l,u,o,s)):(h<1&&(oa(i,l,f,o,h,fr),l=fr[1],f=fr[2],o=fr[3],oa(a,u,c,s,h,fr),u=fr[1],c=fr[2],s=fr[3]),e.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(e){return Cb(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=Cb(this.shape,e,!0);return Js(n,n)},t}(Pt);SP.prototype.type="bezier-curve";const ad=SP;var Y3=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}(),xP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Y3},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);e.moveTo(f*o+i,c*o+a),e.arc(i,a,o,s,l,!u)},t}(Pt);xP.prototype.type="arc";const x_=xP;var Z3=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Pt.prototype.getBoundingRect.call(this)},t}(Pt);const b_=Z3;var X3=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}();const bP=X3;var q3=function(r){B(t,r);function t(e,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=e==null?0:e,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(bP);const Af=q3;var K3=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e==null?.5:e,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t}(bP);const wP=K3;var ka=[0,0],Oa=[0,0],lc=new Ct,uc=new Ct,j3=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ct;for(var n=0;n<2;n++)this._axes[n]=new Ct;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),e)for(var u=0;u<4;u++)n[u].transform(e);Ct.sub(i[0],n[1],n[0]),Ct.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,i=!e;return lc.set(1/0,1/0),uc.set(0,0),!this._intersectCheckOneSide(this,t,lc,uc,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,lc,uc,i,-1)&&(n=!1,i)||i||Ct.copy(e,n?lc:uc),n},r.prototype._intersectCheckOneSide=function(t,e,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,ka),this._getProjMinMaxOnAxis(l,e._corners,Oa),ka[1]<Oa[0]||ka[0]>Oa[1]){if(s=!1,a)return s;var f=Math.abs(Oa[0]-ka[1]),c=Math.abs(ka[0]-Oa[1]);Math.min(f,c)>i.len()&&(f<c?Ct.scale(i,u,-f*o):Ct.scale(i,u,c*o))}else if(n){var f=Math.abs(Oa[0]-ka[1]),c=Math.abs(ka[0]-Oa[1]);Math.min(f,c)<n.len()&&(f<c?Ct.scale(n,u,f*o):Ct.scale(n,u,-c*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}();const Uh=j3;var J3=[],Q3=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Mt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(J3)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,n))return!0}return!1},t}(Yr);const tH=Q3;var TP=Nt();function rl(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=xt(n.duration,200),f=xt(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),vt(c)&&(c=c(e,i)),vt(u)&&(u=u(e));var h={duration:u||0,delay:c,easing:f};return h}else return null}function w_(r,t,e,n,i,a,o){var s=!1,l;vt(i)?(o=a,a=i,i=null):yt(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=rl(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Ht(r,t,e,n,i,a){w_("update",r,t,e,n,i,a)}function oe(r,t,e,n,i,a){w_("enter",r,t,e,n,i,a)}function Ps(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 sa(r,t,e,n,i,a){Ps(r)||w_("leave",r,t,e,n,i,a)}function Mb(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),sa(r,{style:{opacity:0}},t,e,n)}function Ku(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||Mb(i,t,e,n)}):Mb(r,t,e,n)}function gn(r){TP(r).oldStyle=r.style}function eH(r){return TP(r).oldStyle}var Yh=Math.max,Zh=Math.min,pm={};function rH(r){return Pt.extend(r)}var nH=L3;function iH(r,t){return nH(r,t)}function yn(r,t){pm[r]=t}function T_(r){if(pm.hasOwnProperty(r))return pm[r]}function od(r,t,e,n){var i=fP(r,t);return e&&(n==="center"&&(e=CP(e,i.getBoundingRect())),MP(i,e)),i}function AP(r,t,e){var n=new We({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle(CP(t,a))}}});return n}function CP(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Hr=P3;function MP(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Hs(r,t){return UL(r,r,{lineWidth:t}),r}function aH(r){return YL(r.shape,r.shape,r.style),r}var ch=oo;function bo(r,t){for(var e=qv([]);r&&r!==t;)fi(e,r.getLocalTransform(),e),r=r.parent;return e}function cn(r,t,e){return t&&!Ke(t)&&(t=si.getLocalTransform(t)),e&&(t=Qs([],t)),ze([],r,t)}function sd(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=cn(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Db(r){return!r.isGroup}function oH(r){return r.shape!=null}function Cf(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Db(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return oH(o)&&(s.shape=F({},o.shape)),s}var a=n(r);t.traverse(function(o){if(Db(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ht(o,l,e,St(o).dataIndex)}}})}function DP(r,t){return Z(r,function(e){var n=e[0];n=Yh(n,t.x),n=Zh(n,t.x+t.width);var i=e[1];return i=Yh(i,t.y),i=Zh(i,t.y+t.height),[n,i]})}function sH(r,t){var e=Yh(r.x,t.x),n=Zh(r.x+r.width,t.x+t.width),i=Yh(r.y,t.y),a=Zh(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function Mf(r,t,e){var n=F({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),pt(i,e),new We(n)):od(r.replace("path://",""),n,e,"center")}function ru(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(IP(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function IP(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,c=s-a,h=Lp(f,c,l,u);if(lH(h))return!1;var v=r-i,d=t-a,p=Lp(v,d,l,u)/h;if(p<0||p>1)return!1;var g=Lp(v,d,f,c)/h;return!(g<0||g>1)}function Lp(r,t,e,n){return r*n-e*t}function lH(r){return r<=1e-6&&r>=-1e-6}function No(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=nt(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&M(kt(l),function(f){lt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=St(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:pt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Ib(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ga(r,t){if(r)if(Y(r))for(var e=0;e<r.length;e++)Ib(r[e],t);else Ib(r,t)}yn("circle",pa);yn("ellipse",S_);yn("sector",gr);yn("ring",id);yn("polygon",yr);yn("polyline",mr);yn("rect",Vt);yn("line",Ee);yn("bezierCurve",ad);yn("arc",x_);const Vo=Object.freeze(Object.defineProperty({__proto__:null,Arc:x_,BezierCurve:ad,BoundingRect:Mt,Circle:pa,CompoundPath:b_,Ellipse:S_,Group:_t,Image:We,IncrementalDisplayable:tH,Line:Ee,LinearGradient:Af,OrientedBoundingRect:Uh,Path:Pt,Point:Ct,Polygon:yr,Polyline:mr,RadialGradient:wP,Rect:Vt,Ring:id,Sector:gr,Text:Gt,applyTransform:cn,clipPointsByRect:DP,clipRectByRect:sH,createIcon:Mf,extendPath:iH,extendShape:rH,getShapeClass:T_,getTransform:bo,groupTransition:Cf,initProps:oe,isElementRemoved:Ps,lineLineIntersect:IP,linePolygonIntersect:ru,makeImage:AP,makePath:od,mergePath:Hr,registerShape:yn,removeElement:sa,removeElementWithFadeOut:Ku,resizePath:MP,setTooltipConfig:No,subPixelOptimize:ch,subPixelOptimizeLine:Hs,subPixelOptimizeRect:aH,transformDirection:sd,traverseElements:ga,updateProps:Ht},Symbol.toStringTag,{value:"Module"}));var ld={};function LP(r,t){for(var e=0;e<ur.length;e++){var n=ur[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function gm(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=vt(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var l={normal:s},u=0;u<ur.length;u++){var f=ur[u],c=t[f];l[f]=xt(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function He(r,t,e,n){e=e||ld;for(var i=r instanceof Gt,a=!1,o=0;o<Xu.length;o++){var s=t[Xu[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new Gt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=gm(e,t),f=t.normal,c=!!f.getShallow("show"),h=Qt(f,n&&n.normal,e,!1,!i);h.text=u.normal,i||r.setTextConfig(Xh(f,e,!1));for(var o=0;o<ur.length;o++){var v=ur[o],s=t[v];if(s){var d=l.ensureState(v),p=!!xt(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Qt(s,n&&n[v],e,!0,!i),d.style.text=u[v],!i){var g=r.ensureState(v);g.textConfig=Xh(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=!c,l.useStyle(h),l.dirty(),e.enableTextSetter&&(nl(l).setLabelText=function(y){var m=gm(e,t,y);LP(l,m)})}else l&&(l.ignore=!0);r.dirty()}function De(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<ur.length;n++){var i=ur[n];e[i]=r.getModel([i,t])}return e}function Qt(r,t,e,n,i){var a={};return uH(a,r,e,n,i),t&&F(a,t),a}function Xh(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=xt(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function uH(r,t,e,n,i){e=e||ld;var a=t.ecModel,o=a&&a.option.textStyle,s=fH(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Eb(l[u]={},f,o,e,n,i,!1,!0)}}l&&(r.rich=l);var c=t.get("overflow");c&&(r.overflow=c);var h=t.get("minMargin");h!=null&&(r.margin=h),Eb(r,t,o,e,n,i,!0,!1)}function fH(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||ld).rich;if(e){t=t||{};for(var n=kt(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var Lb=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Pb=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Rb=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Eb(r,t,e,n,i,a,o,s){e=!i&&e||ld;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=xt(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var h=xt(t.getShallow("textBorderWidth"),e.textBorderWidth);h!=null&&(r.lineWidth=h);var v=xt(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=xt(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(r.opacity=c),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var p=0;p<Lb.length;p++){var g=Lb[p],y=xt(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<Pb.length;p++){var g=Pb[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var p=0;p<Rb.length;p++){var g=Rb[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function A_(r,t){var e=t&&t.getModel("textStyle");return an([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 nl=Nt();function PP(r,t,e,n){if(r){var i=nl(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function RP(r,t,e,n,i){var a=nl(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=xt(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=OL(e,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var h=gm({labelDataIndex:t,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);LP(r,h)}r.percent=0,(a.prevValue==null?oe:Ht)(r,{percent:1},n,t,null,u)}var cH=["textStyle","color"],Pp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Rp=new Gt,hH=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(cH):null)},r.prototype.getFont=function(){return A_({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Pp.length;n++)e[Pp[n]]=this.getShallow(Pp[n]);return Rp.useStyle(e),Rp.update(),Rp.getBoundingRect()},r}();const vH=hH;var EP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],dH=Io(EP),pH=function(){function r(){}return r.prototype.getLineStyle=function(t){return dH(this,t)},r}(),kP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],gH=Io(kP),yH=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return gH(this,t,e)},r}(),Bo=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){Tt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(mt(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(!zt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();c_(Bo);yF(Bo);_e(Bo,pH);_e(Bo,yH);_e(Bo,bF);_e(Bo,vH);const te=Bo;var mH=Math.round(Math.random()*10);function il(r){return[r||"",mH++].join("_")}function _H(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=Nn(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=Nn(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function SH(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,c=u.noEntryList,h={};for(M(a,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),M(d.successor,p?y:g)}M(h,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){h[m]=!0,g(m)}};function e(a){var o={},s=[];return M(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),M(c,function(h){Dt(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);Dt(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return M(a,function(l){Dt(o,l)>=0&&s.push(l)}),s}}function ya(r,t){return Tt(Tt({},r,!0),t,!0)}const xH={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:". "}}}},bH={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 qh="ZH",C_="EN",Rs=C_,hh={},M_={},OP=zt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Rs).toUpperCase();return r.indexOf(qh)>-1?qh:Rs}():Rs;function NP(r,t){r=r.toUpperCase(),M_[r]=new te(t),hh[r]=t}function wH(r){if(nt(r)){var t=hh[r.toUpperCase()]||{};return r===qh||r===C_?mt(t):Tt(mt(t),mt(hh[Rs]),!1)}else return Tt(mt(r),mt(hh[Rs]),!1)}function ym(r){return M_[r]}function TH(){return M_[Rs]}NP(C_,xH);NP(qh,bH);var D_=1e3,I_=D_*60,Cu=I_*60,Wr=Cu*24,kb=Wr*365,nu={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fc="{yyyy}-{MM}-{dd}",Ob={year:"{yyyy}",month:"{yyyy}-{MM}",day:fc,hour:fc+" "+nu.hour,minute:fc+" "+nu.minute,second:fc+" "+nu.second,millisecond:nu.none},Ep=["year","month","day","hour","minute","second","millisecond"],VP=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Li(r,t){return r+="","0000".substr(0,t-r.length)+r}function Es(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 AH(r){return r===Es(r)}function CH(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ud(r,t,e,n){var i=Yn(r),a=i[L_(e)](),o=i[ks(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[fd(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[ju(e)](),c=(f-1)%12+1,h=i[cd(e)](),v=i[hd(e)](),d=i[vd(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof te?n:ym(n||OP)||TH(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Li(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Li(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Li(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Li(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Li(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Li(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Li(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Li(d,3)).replace(/{S}/g,d+"")}function MH(r,t,e,n,i){var a=null;if(nt(e))a=e;else if(vt(e))a=e(r.value,t,{level:r.level});else{var o=F({},nu);if(r.level>0)for(var s=0;s<Ep.length;++s)o[Ep[s]]="{primary|"+o[Ep[s]]+"}";var l=e?e.inherit===!1?e:pt(e,o):o,u=BP(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=VP.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Y(a)){var c=r.level==null?0:r.level>=0?r.level:a.length+r.level;c=Math.min(c,a.length-1),a=a[c]}}return ud(new Date(r.value),a,i,n)}function BP(r,t){var e=Yn(r),n=e[ks(t)]()+1,i=e[fd(t)](),a=e[ju(t)](),o=e[cd(t)](),s=e[hd(t)](),l=e[vd(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Nb(r,t,e){var n=Ft(r)?Yn(r):r;switch(t=t||BP(r,e),t){case"year":return n[L_(e)]();case"half-year":return n[ks(e)]()>=6?1:0;case"quarter":return Math.floor((n[ks(e)]()+1)/4);case"month":return n[ks(e)]();case"day":return n[fd(e)]();case"half-day":return n[ju(e)]()/24;case"hour":return n[ju(e)]();case"minute":return n[cd(e)]();case"second":return n[hd(e)]();case"millisecond":return n[vd(e)]()}}function L_(r){return r?"getUTCFullYear":"getFullYear"}function ks(r){return r?"getUTCMonth":"getMonth"}function fd(r){return r?"getUTCDate":"getDate"}function ju(r){return r?"getUTCHours":"getHours"}function cd(r){return r?"getUTCMinutes":"getMinutes"}function hd(r){return r?"getUTCSeconds":"getSeconds"}function vd(r){return r?"getUTCMilliseconds":"getMilliseconds"}function DH(r){return r?"setUTCFullYear":"setFullYear"}function zP(r){return r?"setUTCMonth":"setMonth"}function GP(r){return r?"setUTCDate":"setDate"}function FP(r){return r?"setUTCHours":"setHours"}function HP(r){return r?"setUTCMinutes":"setMinutes"}function WP(r){return r?"setUTCSeconds":"setSeconds"}function $P(r){return r?"setUTCMilliseconds":"setMilliseconds"}function UP(r){if(!ML(r))return nt(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function YP(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var al=t_;function mm(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&an(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Yn(r):r;if(isNaN(+l)){if(s)return"-"}else return ud(l,n,e)}if(t==="ordinal")return Oy(r)?i(r):Ft(r)&&a(r)?r+"":"-";var u=yi(r);return a(u)?UP(u):Oy(r)?i(r):typeof r=="boolean"?r+"":"-"}var Vb=["a","b","c","d","e","f","g"],kp=function(r,t){return"{"+r+(t==null?"":t)+"}"};function ZP(r,t,e){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Vb[a];r=r.replace(kp(o),kp(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];r=r.replace(kp(Vb[l],s),e?qe(u):u)}return r}function IH(r,t,e){return M(t,function(n,i){r=r.replace("{"+i+"}",e?qe(n):n)}),r}function LH(r,t){var e=nt(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+qe(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+qe(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Po(r,t){return t=t||"transparent",nt(r)?r:yt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Kh(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var vh=M,XP=["left","right","top","bottom","width","height"],lo=[["width","left","right"],["height","top","bottom"]];function P_(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=a+p,v>n||l.newline?(a=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var wo=P_;bt(P_,"vertical");bt(P_,"horizontal");function PH(r,t,e){var n=t.width,i=t.height,a=rt(r.left,n),o=rt(r.top,i),s=rt(r.right,n),l=rt(r.bottom,i);return(isNaN(a)||isNaN(parseFloat(r.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),e=al(e||0),{width:Math.max(s-a-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function be(r,t,e){e=al(e||0);var n=t.width,i=t.height,a=rt(r.left,n),o=rt(r.top,i),s=rt(r.right,n),l=rt(r.bottom,i),u=rt(r.width,n),f=rt(r.height,i),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new Mt(a+e[3],o+e[0],u,f);return d.margin=e,d}function dd(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Mt(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 c=be(pt({width:u.width,height:u.height},t),e,n),h=o?c.x-u.x:0,v=s?c.y-u.y:0;return l==="raw"?(a.x=h,a.y=v):(a.x+=h,a.y+=v),a===r&&r.markRedraw(),!0}function RH(r,t){return r[lo[t][0]]!=null||r[lo[t][1]]!=null&&r[lo[t][2]]!=null}function Ju(r){var t=r.layoutMode||r.constructor.layoutMode;return yt(t)?t:t?{type:t}:null}function la(r,t,e){var n=e&&e.ignoreSize;!Y(n)&&(n=[n,n]);var i=o(lo[0],0),a=o(lo[1],1);u(lo[0],r,i),u(lo[1],r,a);function o(f,c){var h={},v=0,d={},p=0,g=2;if(vh(f,function(_){d[_]=r[_]}),vh(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var y=0;y<f.length;y++){var m=f[y];if(!s(h,m)&&s(r,m)){h[m]=r[m];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){vh(f,function(v){c[v]=h[v]})}}function ol(r){return qP({},r)}function qP(r,t){return t&&r&&vh(XP,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var EH=Nt(),sl=function(r){B(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=il("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Ju(this),a=i?ol(e):{},o=n.getTheme();Tt(e,o.get(this.mainType)),Tt(e,this.getDefaultOption()),i&&la(e,a,i)},t.prototype.mergeOption=function(e,n){Tt(this.option,e,!0);var i=Ju(this);i&&la(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!dF(e))return e.defaultOption;var n=EH(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Tt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return wf(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(te);VL(sl,te);Jv(sl);_H(sl);SH(sl,kH);function kH(r){var t=[];return M(sl.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Z(t,function(e){return Nn(e).main}),r!=="dataset"&&Dt(t,"dataset")<=0&&t.unshift("dataset"),t}const Bt=sl;var KP="";typeof navigator!="undefined"&&(KP=navigator.platform||"");var Jo="rgba(0, 0, 0, 0.2)";const OH={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Jo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Jo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Jo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Jo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Jo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Jo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:KP.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 jP=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xr="original",je="arrayRows",qr="objectRows",Xn="keyedColumns",ea="typedArray",JP="unknown",Gn="column",ll="row",Ne={Must:1,Might:2,Not:3},QP=Nt();function NH(r){QP(r).datasetMap=ft()}function t2(r,t,e){var n={},i=E_(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=QP(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),M(r,function(p,g){var y=yt(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});M(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=h.valueWayDim;v(n[y],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(a,0,m);else{var _=h.categoryWayDim;v(n[y],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function R_(r,t,e){var n={},i=E_(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===qr||a===Xn)&&M(o,function(f,c){(yt(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},h=[],v=0,d=Math.min(5,e);v<d;v++){var p=r2(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);h.push(p);var g=p===Ne.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&h[f.n]===Ne.Not)&&(f.n=v),y(f)&&h[f.n]!==Ne.Not)return f;g||(p===Ne.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function E_(r){var t=r.get("data",!0);if(!t)return wf(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ye).models[0]}function VH(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:wf(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ye).models}function e2(r,t){return r2(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function r2(r,t,e,n,i,a){var o,s=5;if(pr(r))return Ne.Not;var l,u;if(n){var f=n[a];yt(f)?(l=f.name,u=f.type):nt(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ne.Must:Ne.Not;if(t===je){var c=r;if(e===ll){for(var h=c[a],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[i+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===qr){var p=r;if(!l)return Ne.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Xn){var y=r;if(!l)return Ne.Not;var h=y[l];if(!h||pr(h))return Ne.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(t===Xr)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=tl(g);if(!Y(_))return Ne.Not;if((o=S(_[a]))!=null)return o}function S(x){var b=nt(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return b?Ne.Might:Ne.Not;if(b&&x!=="-")return Ne.Must}return Ne.Not}var _m=ft();function BH(r,t){lr(_m.get(r)==null&&t),_m.set(r,t)}function zH(r,t,e){var n=_m.get(t);if(!n)return e;var i=n(r);return i?e.concat(i):e}var Bb=Nt(),GH=Nt(),k_=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=Zt(this.get("color",!0)),a=this.get("colorLayer",!0);return n2(this,Bb,i,a,t,e,n)},r.prototype.clearColorPalette=function(){HH(this,Bb)},r}();function Sm(r,t,e,n){var i=Zt(r.get(["aria","decal","decals"]));return n2(r,GH,i,null,t,e,n)}function FH(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function n2(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:FH(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function HH(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var cc,Dl,zb,Gb="\0_ec_inner",WH=1,i2=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new te(a),this._locale=new te(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=Wb(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Wb(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?zb(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&M(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ft(),u=n&&n.replaceMergeMainTypeMap;NH(this),M(e,function(c,h){c!=null&&(Bt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?mt(c):Tt(i[h],c,!0))}),u&&u.each(function(c,h){Bt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Bt.topologicalTravel(s,Bt.getAllClassMainTypes(),f,this);function f(c){var h=zH(this,c,Zt(e[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=RL(v,h,d);aF(p,c,Bt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;M(p,function(S,x){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=c==="series",A=Bt.getClass(c,S.keyInfo.subType,!T);if(!A)return;if(c==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===A)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var C=F({componentIndex:x},S.keyInfo);b=new A(w,this,this,C),F(b,C),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),i[c]=g,a.set(c,y),o.set(c,m),c==="series"&&cc(this)}this._seriesIndices||cc(this)},t.prototype.getOption=function(){var e=mt(this.option);return M(e,function(n,i){if(Bt.hasClass(i)){for(var a=Zt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Yu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Gb],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],M(Zt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Fb("id",a,s):o!=null?l=Fb("name",o,s):l=$t(s,function(u){return!!u}),Hb(l,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):$t(this._componentsMap.get(i),function(u){return!!u});return l(Hb(o,e));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return e.filter?$t(u,e.filter):u}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if(vt(e)){var o=n,s=e;a.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=nt(e)?a.get(e):yt(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=xe(e,null);return $t(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return $t(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return $t(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Dl(this),M(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){M(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){Dl(this),M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return M(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return Dl(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Dl(this);var i=[];M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ft(i)},t.prototype.restoreData=function(e){cc(this);var n=this._componentsMap,i=[];n.each(function(a,o){Bt.hasClass(o)&&i.push(o)}),Bt.topologicalTravel(i,Bt.getAllClassMainTypes(),function(a){M(n.get(a),function(o){o&&(a!=="series"||!$H(o,e))&&o.restoreData()})})},t.internalField=function(){cc=function(e){var n=e._seriesIndices=[];M(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=ft(n)},Dl=function(e){},zb=function(e,n){e.option={},e.option[Gb]=WH,e._componentsMap=ft({series:[]}),e._componentsCount=ft();var i=n.aria;yt(i)&&i.enabled==null&&(i.enabled=!0),UH(n,e._theme.option),Tt(n,OH,!1),e._mergeOption(n,null)}}(),t}(te);function $H(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function UH(r,t){var e=r.color&&!r.colorLayer;M(t,function(n,i){i==="colorLayer"&&e||Bt.hasClass(i)||(typeof n=="object"?r[i]=r[i]?Tt(r[i],n,!1):mt(n):r[i]==null&&(r[i]=n))})}function Fb(r,t,e){if(Y(t)){var n=ft();return M(t,function(a){if(a!=null){var o=xe(a,null);o!=null&&n.set(a,!0)}}),$t(e,function(a){return a&&n.get(a[r])})}else{var i=xe(t,null);return $t(e,function(a){return a&&i!=null&&a[r]===i})}}function Hb(r,t){return t.hasOwnProperty("subType")?$t(r,function(e){return e&&e.subType===t.subType}):r}function Wb(r){var t=ft();return r&&M(Zt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}_e(i2,k_);const a2=i2;var YH=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ZH=function(){function r(t){M(YH,function(e){this[e]=at(t[e],t)},this)}return r}();const o2=ZH;var Op={},XH=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];M(Op,function(i,a){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){M(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Op[t]=e},r.get=function(t){return Op[t]},r}();const Df=XH;var qH=/^(min|max)?(.+)$/,KH=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(M(Zt(t.series),function(o){o&&o.data&&pr(o.data)&&Oh(o.data)}),M(Zt(t.dataset),function(o){o&&o.source&&pr(o.source)&&Oh(o.source)})),t=mt(t);var i=this._optionBackup,a=jH(t,e,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],mt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=mt(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)JH(i[l].query,e,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!t4(o,this._currentMediaIndices)&&(s=Z(o,function(f){return mt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function jH(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(r.options=r.media=null),a=r),f&&Y(u)&&M(u,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),h(a),M(l,function(v){return h(v)}),M(n,function(v){return h(v.option)});function h(v){M(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function JH(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return M(r,function(a,o){var s=o.match(qH);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();QH(n[u],a,l)||(i=!1)}}),i}function QH(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function t4(r,t){return r.join(",")===t.join(",")}const e4=KH;var jr=M,Qu=yt,$b=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Np(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=$b.length;e<n;e++){var i=$b[e],a=t.normal,o=t.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?Tt(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?Tt(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Ze(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,pt(r[t],n)):r[t]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function iu(r){Ze(r,"itemStyle"),Ze(r,"lineStyle"),Ze(r,"areaStyle"),Ze(r,"label"),Ze(r,"labelLine"),Ze(r,"upperLabel"),Ze(r,"edgeLabel")}function ge(r,t){var e=Qu(r)&&r[t],n=Qu(e)&&e.textStyle;if(n)for(var i=0,a=Kx.length;i<a;i++){var o=Kx[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}function Nr(r){r&&(iu(r),ge(r,"label"),r.emphasis&&ge(r.emphasis,"label"))}function r4(r){if(Qu(r)){Np(r),iu(r),ge(r,"label"),ge(r,"upperLabel"),ge(r,"edgeLabel"),r.emphasis&&(ge(r.emphasis,"label"),ge(r.emphasis,"upperLabel"),ge(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Np(t),Nr(t));var e=r.markLine;e&&(Np(e),Nr(e));var n=r.markArea;n&&Nr(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!pr(a))for(var o=0;o<a.length;o++)Nr(a[o]);M(r.categories,function(u){iu(u)})}if(i&&!pr(i))for(var o=0;o<i.length;o++)Nr(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Nr(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)Y(l[o])?(Nr(l[o][0]),Nr(l[o][1])):Nr(l[o]);r.type==="gauge"?(ge(r,"axisLabel"),ge(r,"title"),ge(r,"detail")):r.type==="treemap"?(Ze(r.breadcrumb,"itemStyle"),M(r.levels,function(u){iu(u)})):r.type==="tree"&&iu(r.leaves)}}function Qn(r){return Y(r)?r:r?[r]:[]}function Ub(r){return(Y(r)?r[0]:r)||{}}function n4(r,t){jr(Qn(r.series),function(n){Qu(n)&&r4(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),jr(e,function(n){jr(Qn(r[n]),function(i){i&&(ge(i,"axisLabel"),ge(i.axisPointer,"label"))})}),jr(Qn(r.parallel),function(n){var i=n&&n.parallelAxisDefault;ge(i,"axisLabel"),ge(i&&i.axisPointer,"label")}),jr(Qn(r.calendar),function(n){Ze(n,"itemStyle"),ge(n,"dayLabel"),ge(n,"monthLabel"),ge(n,"yearLabel")}),jr(Qn(r.radar),function(n){ge(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),jr(Qn(r.geo),function(n){Qu(n)&&(Nr(n),jr(Qn(n.regions),function(i){Nr(i)}))}),jr(Qn(r.timeline),function(n){Nr(n),Ze(n,"label"),Ze(n,"itemStyle"),Ze(n,"controlStyle",!0);var i=n.data;Y(i)&&M(i,function(a){yt(a)&&(Ze(a,"label"),Ze(a,"itemStyle"))})}),jr(Qn(r.toolbox),function(n){Ze(n,"iconStyle"),jr(n.feature,function(i){Ze(i,"iconStyle")})}),ge(Ub(r.axisPointer),"label"),ge(Ub(r.tooltip).axisPointer,"label")}function i4(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function a4(r,t,e,n){for(var i=t.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=e)}function Yb(r){r&&M(o4,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var o4=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],s4=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Vp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Il(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Vp.length;e++){var n=Vp[e][1],i=Vp[e][0];t[n]!=null&&(t[i]=t[n])}}function Zb(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Xb(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function l4(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function s2(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&s2(r[e].children,t)}function l2(r,t){n4(r,t),r.series=Zt(r.series),M(r.series,function(e){if(yt(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Zb(e.label);var i=e.data;if(i&&!pr(i))for(var a=0;a<i.length;a++)Zb(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=i4(e,"pointer.color");o!=null&&a4(e,"itemStyle.color",o)}else if(n==="bar"){Il(e),Il(e.backgroundStyle),Il(e.emphasis);var i=e.data;if(i&&!pr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Il(i[a]),Il(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Xb(e),s2(e.data,Xb)}else n==="graph"||n==="sankey"?l4(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&pt(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Yb(e)}}),r.dataRange&&(r.visualMap=r.dataRange),M(s4,function(e){var n=r[e];n&&(Y(n)||(n=[n]),M(n,function(i){Yb(i)}))})}function u4(r){var t=ft();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(f4)}function f4(r){M(r,function(t,e){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return i;var v,d;s?d=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=XG(h,m),p=m;break}}}return n[0]=h,n[1]=p,n})})}var pd=function(){function r(t){this.data=t.data||(t.sourceFormat===Xn?{}:[]),this.sourceFormat=t.sourceFormat||JP,this.seriesLayoutBy=t.seriesLayoutBy||Gn,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];i.type==null&&e2(this,n)===Ne.Must&&(i.type="ordinal")}}return r}();function O_(r){return r instanceof pd}function xm(r,t,e){e=e||u2(r);var n=t.seriesLayoutBy,i=h4(r,e,n,t.sourceHeader,t.dimensions),a=new pd({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:mt(t)});return a}function N_(r){return new pd({data:r,sourceFormat:pr(r)?ea:Xr})}function c4(r){return new pd({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:mt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function u2(r){var t=JP;if(pr(r))t=ea;else if(Y(r)){r.length===0&&(t=je);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(Y(i)||pr(i)){t=je;break}else if(yt(i)){t=qr;break}}}}else if(yt(r)){for(var a in r)if(lt(r,a)&&Ke(r[a])){t=Xn;break}}return t}function h4(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:qb(i),startIndex:o,dimensionsDetectedCount:a};if(t===je){var s=r;n==="auto"||n==null?Kb(function(u){u!=null&&u!=="-"&&(nt(u)?o==null&&(o=1):o=0)},e,s,10):o=Ft(n)?n:n?1:0,!i&&o===1&&(i=[],Kb(function(u,f){i[f]=u!=null?u+"":""},e,s,1/0)),a=i?i.length:e===ll?s.length:s[0]?s[0].length:null}else if(t===qr)i||(i=v4(r));else if(t===Xn)i||(i=[],M(r,function(u,f){i.push(f)}));else if(t===Xr){var l=tl(r[0]);a=Y(l)&&l.length||1}return{startIndex:o,dimensionsDefine:qb(i),dimensionsDetectedCount:a}}function v4(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return kt(e)}function qb(r){if(r){var t=ft();return Z(r,function(e,n){e=yt(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Kb(r,t,e,n){if(t===ll)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function f2(r){var t=r.sourceFormat;return t===qr||t===Xn}var Na,Va,Ba,jb,Jb,c2=function(){function r(t,e){var n=O_(t)?t:N_(t);this._source=n;var i=this._data=n.data;n.sourceFormat===ea&&(this._offset=0,this._dimSize=e,this._data=i),Jb(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Jb=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=jb[V_(u,f)];if(F(o,v),u===ea)o.getItem=e,o.count=i,o.fillStorage=n;else{var d=h2(u,f);o.getItem=at(d,null,s,c,h);var p=v2(u,f);o.count=at(p,null,s,c,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=l[h],m=0;m<g;m++){var _=f[m*c+h];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};jb=(t={},t[je+"_"+Gn]={pure:!0,appendData:a},t[je+"_"+ll]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[qr]={pure:!0,appendData:a},t[Xn]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Xr]={appendData:a},t[ea]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Qb=function(r,t,e,n){return r[n]},d4=(Na={},Na[je+"_"+Gn]=function(r,t,e,n){return r[n+t]},Na[je+"_"+ll]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Na[qr]=Qb,Na[Xn]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];a[o]=l?l[n]:null}return a},Na[Xr]=Qb,Na);function h2(r,t){var e=d4[V_(r,t)];return e}var tw=function(r,t,e){return r.length},p4=(Va={},Va[je+"_"+Gn]=function(r,t,e){return Math.max(0,r.length-t)},Va[je+"_"+ll]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},Va[qr]=tw,Va[Xn]=function(r,t,e){var n=e[0].name,i=r[n];return i?i.length:0},Va[Xr]=tw,Va);function v2(r,t){var e=p4[V_(r,t)];return e}var Bp=function(r,t,e){return r[t]},g4=(Ba={},Ba[je]=Bp,Ba[qr]=function(r,t,e){return r[e]},Ba[Xn]=Bp,Ba[Xr]=function(r,t,e){var n=tl(r);return n instanceof Array?n[t]:n},Ba[ea]=Bp,Ba);function d2(r){var t=g4[r];return t}function V_(r,t){return r===je?r+"_"+t:r}function Ws(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return d2(a)(n,o,s)}else{var l=n;return a===Xr&&(l=tl(n)),l}}}}var y4=/\{@(.+?)\}/g,gd=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,i,a,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&Y(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(vt(a))return l.status=e,l.dimensionIndex=i,a(l);if(nt(a)){var f=ZP(a,l);return f.replace(y4,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Ws(s,t,d);if(o&&Y(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Ws(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function ew(r){var t,e;return yt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Mu(r){return new m4(r)}var m4=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),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 v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var p=this._progress;if(Y(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;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,n,i,a){rw.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:rw.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Y(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(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}(),rw=function(){var r,t,e,n,i,a={reset:function(l,u,f,c){t=l,r=u,e=f,n=c,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=r?null:l<n?l:t;return t++,u}}();function ra(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Ft(r)&&r!=null&&r!=="-"&&(r=+Yn(r)),r==null||r===""?NaN:Number(r))}var _4=ft({number:function(r){return parseFloat(r)},time:function(r){return+Yn(r)},trim:function(r){return nt(r)?an(r):r}});function p2(r){return _4.get(r)}var g2={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}},S4=function(){function r(t,e){if(!Ft(e)){var n="";Wt(n)}this._opFn=g2[t],this._rvalFloat=yi(e)}return r.prototype.evaluate=function(t){return Ft(t)?this._opFn(t,this._rvalFloat):this._opFn(yi(t),this._rvalFloat)},r}(),y2=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=Ft(t)?t:yi(t),i=Ft(e)?e:yi(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=nt(t),l=nt(e);s&&(n=l?t:0),l&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),x4=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=yi(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=yi(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function b4(r,t){return r==="eq"||r==="ne"?new x4(r==="eq",t):lt(g2,r)?new S4(r,t):null}var w4=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 ra(t,e)},r}();function T4(r,t){var e=new w4,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Gn&&Wt(o);var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";lt(l,y)&&Wt(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=h2(i,Gn);t.__isBuiltIn&&(e.getRawDataItem=function(p){return c(n,a,s,p)},e.getRawData=at(A4,null,r)),e.cloneRawData=at(C4,null,r);var h=v2(i,Gn);e.count=at(h,null,n,a,s);var v=d2(i);e.retrieveValue=function(p,g){var y=c(n,a,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return v(p,g,y.name)}};return e.getDimensionInfo=at(M4,null,s,l),e.cloneAllDimensionInfo=at(D4,null,s),e}function A4(r){var t=r.sourceFormat;if(!B_(t)){var e="";Wt(e)}return r.data}function C4(r){var t=r.sourceFormat,e=r.data;if(!B_(t)){var n="";Wt(n)}if(t===je){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===qr){for(var i=[],a=0,o=e.length;a<o;a++)i.push(F({},e[a]));return i}}function M4(r,t,e){if(e!=null){if(Ft(e)||!isNaN(e)&&!lt(t,e))return r[e];if(lt(t,e))return t[e]}}function D4(r){return mt(r)}var m2=ft();function I4(r){r=mt(r);var t=r.type,e="";t||Wt(e);var n=t.split(":");n.length!==2&&Wt(e);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,m2.set(t,r)}function L4(r,t,e){var n=Zt(r),i=n.length,a="";i||Wt(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=P4(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function P4(r,t,e,n){var i="";t.length||Wt(i),yt(r)||Wt(i);var a=r.type,o=m2.get(a);o||Wt(i);var s=Z(t,function(u){return T4(u,o)}),l=Zt(o.transform({upstream:s[0],upstreamList:s,config:mt(r.config)}));return Z(l,function(u,f){var c="";yt(u)||Wt(c),u.data||Wt(c);var h=u2(u.data);B_(h)||Wt(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:Gn,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Gn,sourceHeader:0,dimensions:u.dimensions};return xm(u.data,v,null)})}function B_(r){return r===je||r===qr}var yd="undefined",R4=typeof Uint32Array===yd?Array:Uint32Array,E4=typeof Uint16Array===yd?Array:Uint16Array,_2=typeof Int32Array===yd?Array:Int32Array,nw=typeof Float64Array===yd?Array:Float64Array,S2={float:nw,int:_2,ordinal:Array,number:Array,time:nw},zp;function Qo(r){return r>65535?R4:E4}function ts(){return[1/0,-1/0]}function k4(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function iw(r,t,e,n,i){var a=S2[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(n)}var bm=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ft()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=zp[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],f2(i),this._dimensions=Z(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 n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new S2[e||"float"](this._rawCount),this._rawExtent[a]=ts(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=ts());for(var l=a[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=i[u];iw(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<a;d++){var f=i[d],p=zp.arrayRows.call(this,t[v]||c,f.property,v,d);n[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=ts()),iw(a,f,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var h=[],v=t;v<e;v++){h=i.getItem(v,h);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],i=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),v=e-a[h],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=Qo(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Qo(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<i;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=e(h);else if(l===1){var p=c[f][d];v=e(p,h)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][d];s[g]=h,v=e.apply(null,s)}v&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=kt(t),a=i.length;if(!a)return this;var o=e.count(),s=Qo(e._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],h=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(a===1){for(var g=v[i[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],S=t[i[1]][0],x=t[i[1]][1],y=0;y<n;y++){var m=g[y],b=_[y];(m>=c&&m<=h||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var w=e.getRawIndex(y),m=v[i[0]][w];(m>=c&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var T=!0,w=e.getRawIndex(y),A=0;A<a;A++){var C=i[A],m=v[C][w];(m<t[C][0]||m>t[C][1])&&(T=!1)}T&&(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 n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var i=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=ts();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=i[e[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=i[p];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(Qo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),x=a[S];isNaN(x)||(m+=x)}m/=g-p;var b=d,w=Math.min(d+l,o),T=d-1,A=a[u];f=-1,h=b;for(var C=-1,D=0,_=b;_<w;_++){var S=this.getRawIndex(_),x=a[S];if(isNaN(x)){D++,C<0&&(C=S);continue}c=Math.abs((T-y)*(x-A)-(T-_)*(m-A)),c>f&&(f=c,h=S)}D>0&&D<w-b&&(v[s++]=Math.min(C,h),h=Math.max(C,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/e),o=i[t],s=this.count(),l=new(Qo(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<h&&(h=m,c=f+g),m>d&&(d=m,v=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),c=a._rawExtent[t]=ts(),h=new(Qo(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[v++]=m}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=ts();if(!e)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=e[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&Wn(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?k4(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=mt(this._extent),t._rawExtent=mt(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return ra(e[a],this._dimensions[a])}zp={arrayRows:t,objectRows:function(e,n,i,a){return ra(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return ra(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),x2=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(hc(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=pr(s)?ea:Xr,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=xt(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=xt(c.sourceHeader,h.sourceHeader),p=xt(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;i=g?[xm(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[xm(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&ow(a)}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&ow(c),s.push(f),l.push(u._getVersionSign())}),n?o=L4(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[c4(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];hc(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new bm,s.initData(new c2(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(hc(t)){var e=E_(t);return e?[e.getSourceManager()]:[]}else return Z(VH(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(hc(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r}();function aw(r){var t=r.option.transform;t&&Oh(r.option.transform)}function hc(r){return r.mainType==="series"}function ow(r){throw new Error(r)}var O4="line-height:1";function b2(r){var t=r.lineHeight;return t==null?O4:"line-height:"+qe(t+"")+"px"}function w2(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+qe(n+"")+"px;color:"+qe(e)+";font-weight:"+qe(i+""),valueStyle:"font-size:"+qe(o+"")+"px;color:"+qe(a)+";font-weight:"+qe(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var N4=[0,10,20,30],V4=["",` |
|
`,` |
|
|
|
`,` |
|
|
|
|
|
`];function Ie(r,t){return t.type=r,t}function wm(r){return r.type==="section"}function T2(r){return wm(r)?B4:z4}function A2(r){if(wm(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return M(r.blocks,function(i){var a=A2(i);a>=t&&(t=a+ +(n&&(!a||wm(i)&&!i.noHeader)))}),t}return 0}function B4(r,t,e,n){var i=t.noHeader,a=G4(A2(t)),o=[],s=t.blocks||[];lr(!s||Y(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(lt(u,l)){var f=new y2(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var y=t.valueFormatter,m=T2(p)(y?F(F({},r),{valueFormatter:y}):r,p,g>0?a.html:0,n);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(a.richText):Tm(n,o.join(""),i?e:a.html);if(i)return c;var h=mm(t.header,"ordinal",r.useUTC),v=w2(n,r.renderMode).nameStyle,d=b2(n);return r.renderMode==="richText"?C2(r,h,v)+a.richText+c:Tm(n,'<div style="'+v+";"+d+';">'+qe(h)+"</div>"+c,e)}function z4(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=Y(S)?S:[S],Z(S,function(x,b){return mm(x,Y(v)?v[b]:v,u)})};if(!(a&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":mm(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=w2(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":c)+(a?"":C2(r,h,m))+(o?"":W4(r,d,p,g,_)):Tm(n,(s?"":c)+(a?"":F4(h,!s,m))+(o?"":H4(d,p,g,_)),e)}}function sw(r,t,e,n,i,a){if(r){var o=T2(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function G4(r){return{html:N4[r],richText:V4[r]}}function Tm(r,t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0",a=b2(r);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function F4(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+qe(r)+"</span>"}function H4(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=Y(r)?r:[r],'<span style="'+a+";"+n+'">'+Z(r,function(o){return qe(o)}).join(" ")+"</span>"}function C2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function W4(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,a)}function M2(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Po(n)}function D2(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Gp=function(){function r(){this.richTextStyles={},this._nextStyleNameId=DL()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=LH({color:e,type:t,renderMode:n,markerId:i});return nt(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};Y(e)?M(e,function(a){return F(n,a)}):F(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function I2(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=Y(s),u=M2(t,e),f,c,h,v;if(o>1||l&&!o){var d=$4(s,t,e,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=Ws(i,e,a[0]),c=p.type}else v=f=l?s[0]:s;var g=u_(t),y=g&&t.name||"",m=i.getName(e),_=n?y:m;return Ie("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[Ie("nameValue",{markerType:"item",markerColor:u,name:_,noName:!an(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function $4(r,t,e,n,i){var a=t.getData(),o=Wn(r,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(c){f(Ws(a,e,c),c)}):M(r,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Ie("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Pi=Nt();function vc(r,t){return r.getName(t)||r.getId(t)}var dh="__universalTransitionEnabled",md=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Mu({count:Y4,reset:Z4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Pi(this).sourceManager=new x2(this);a.prepareSource();var o=this.getInitialData(e,i);uw(o,this),this.dataTask.context.data=o,Pi(this).dataBeforeProcessed=o,lw(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Ju(this),a=i?ol(e):{},o=this.subType;Bt.hasClass(o)&&(o+="Series"),Tt(e,n.getTheme().get(this.subType)),Tt(e,this.getDefaultOption()),Mo(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&la(e,a,i)},t.prototype.mergeOption=function(e,n){e=Tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Ju(this);i&&la(this.option,e,i);var a=Pi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);uw(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Pi(this).dataBeforeProcessed=o,lw(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!pr(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&Mo(e[i],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=Am(this);if(n){var i=n.context.data;return e==null||!i.getLinkedData?i:i.getLinkedData(e)}else return Pi(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=Am(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}Pi(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return ft(e)},t.prototype.getSourceManager=function(){return Pi(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Pi(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,n,i){return I2({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(zt.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=k_.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=vc(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=kt(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[vc(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[dh])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){yt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=vc(e,c);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=vc(e,v);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Bt.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}(Bt);_e(md,gd);_e(md,k_);VL(md,Bt);function lw(r){var t=r.name;u_(r)||(r.name=U4(r)||t)}function U4(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return M(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Y4(r){return r.model.getRawData().count()}function Z4(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),X4}function X4(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function uw(r,t){M(Fu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(q4,t))})}function q4(r,t){var e=Am(r);return e&&e.setOutputEnd((t||this).count()),t}function Am(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const le=md;var z_=function(){function r(){this.group=new _t,this.uid=il("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();c_(z_);Jv(z_);const fe=z_;function ul(){var r=Nt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var L2=Nt(),K4=ul(),G_=function(){function r(){this.group=new _t,this.uid=il("viewChart"),this.renderTask=Mu({plan:j4,reset:J4}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&cw(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&cw(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){ga(this.group,t)},r.markUpdateMethod=function(t,e){L2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function fw(r,t,e){r&&qu(r)&&(t==="emphasis"?mi:_i)(r,e)}function cw(r,t,e){var n=Do(r,t),i=t&&t.highlightKey!=null?w3(t.highlightKey):null;n!=null?M(Zt(n),function(a){fw(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){fw(a,e,i)})}c_(G_);Jv(G_);function j4(r){return K4(r.model)}function J4(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&L2(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),Q4[l]}var Q4={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)}}};const ee=G_;var jh="\0__throttleOriginMethod",hw="\0__throttleRate",vw="\0__throttleType";function F_(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var p=f||t,g=f||e;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function fl(r,t,e,n){var i=r[t];if(i){var a=i[jh]||i,o=i[vw],s=i[hw];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=F_(a,e,n==="debounce"),i[jh]=a,i[vw]=n,i[hw]=e}return i}}function tf(r,t){var e=r[t];e&&e[jh]&&(e.clear&&e.clear(),r[t]=e[jh])}var dw=Nt(),pw={itemStyle:Io(kP,!0),lineStyle:Io(EP,!0)},tW={lineStyle:"stroke",itemStyle:"fill"};function P2(r,t){var e=r.visualStyleMapper||pw[t];return e||(console.warn("Unknown style type '"+t+"'."),pw.itemStyle)}function R2(r,t){var e=r.visualDrawType||tW[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var eW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=P2(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=R2(r,n),u=o[l],f=vt(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||vt(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||vt(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(v,d){var p=r.getDataParams(d),g=F({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},Ll=new te,rW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=P2(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ll.option=l[n];var u=i(Ll),f=o.ensureUniqueItemVisual(s,"style");F(f,u),Ll.option.decal&&(o.setItemVisual(s,"decal",Ll.option.decal),Ll.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},nW={performRawSeries:!0,overallReset:function(r){var t=ft();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),dw(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=dw(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=R2(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},dc=Math.PI;function iW(r,t){t=t||{},pt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new _t,n=new Vt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Gt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Vt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new x_({shape:{startAngle:-dc/2,endAngle:-dc/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:dc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:dc*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var aW=function(){function r(t,e,n,i){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";lr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;M(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=ft(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Mu({plan:fW,reset:cW,count:vW}));v.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||Mu({reset:oW});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ft(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";lr(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,M(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(h=!0,Mu({reset:sW,onDirty:uW})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,a._pipe(p,y)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:dW(t)}),t.uid=il("stageHandler"),e&&(t.visualType=e),t},r}();function oW(r){r.overallReset(r.ecModel,r.api,r.payload)}function sW(r){return r.overallProgress&&lW}function lW(){this.agent.dirty(),this.getDownstream().dirty()}function uW(){this.agent&&this.agent.dirty()}function fW(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function cW(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Zt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Z(t,function(e,n){return E2(n)}):hW}var hW=E2(0);function E2(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function vW(r){return r.data.count()}function dW(r){Jh=null;try{r(ef,k2)}catch(t){}return Jh}var ef={},k2={},Jh;O2(ef,a2);O2(k2,o2);ef.eachSeriesByType=ef.eachRawSeriesByType=function(r){Jh=r};ef.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Jh=r.subType)};function O2(r,t){for(var e in t.prototype)r[e]=pe}const N2=aW;var gw=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const pW={color:gw,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],gw]};var Ye="#B9B8CE",yw="#100C2A",pc=function(){return{axisLine:{lineStyle:{color:Ye}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},mw=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],V2={darkMode:!0,color:mw,backgroundColor:yw,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ye},pageTextStyle:{color:Ye}},textStyle:{color:Ye},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ye}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ye},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ye}},timeline:{lineStyle:{color:Ye},label:{color:Ye},controlStyle:{color:Ye,borderColor:Ye}},calendar:{itemStyle:{color:yw},dayLabel:{color:Ye},monthLabel:{color:Ye},yearLabel:{color:Ye}},timeAxis:pc(),logAxis:pc(),valueAxis:pc(),categoryAxis:pc(),line:{symbol:"circle"},graph:{color:mw},gauge:{title:{color:Ye},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ye},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};V2.categoryAxis.splitLine.show=!1;const gW=V2;var yW=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(nt(t)){var a=Nn(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Cm=["symbol","symbolSize","symbolRotate","symbolOffset"],_w=Cm.concat(["symbolKeepAspect"]),mW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Cm.length;o++){var s=Cm[o],l=r.get(s);vt(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(F({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=kt(i);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,i[g](v,d))}}return{dataEach:a?f:null}}},_W={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<_w.length;s++){var l=_w[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function H_(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function If(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 B2(r,t,e,n){switch(e){case"color":var i=r.ensureUniqueItemVisual(t,"style");i[r.getVisual("drawType")]=n,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,n);break}}function z2(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}M([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=F({},i),o.dispatchAction(F(i,{type:n[1],seriesIndex:e(a,i)}))})})}function es(r,t,e,n,i){var a=r+t;e.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=Do(c,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:Y(h)?c.getName(h[0]):c.getName(h),selected:nt(l)?l:F({},l)})}})}function SW(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(es("map","selectchanged",t,i,n),es("pie","selectchanged",t,i,n)):n.fromAction==="select"?(es("map","selected",t,i,n),es("pie","selected",t,i,n)):n.fromAction==="unselect"&&(es("map","unselected",t,i,n),es("pie","unselected",t,i,n))})}function uo(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var xW=Math.round(Math.random()*9),bW=typeof Object.defineProperty=="function",wW=function(){function r(){this._id="__ec_inner_"+xW++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return bW?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();const TW=wW;var AW=Pt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),CW=Pt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),MW=Pt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-c*v,l+s+h*v,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+c*v,l+s+h*v,e-f,l+s),r.closePath()}}),DW=Pt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),IW={line:Ee,rect:Vt,roundRect:Vt,square:Vt,circle:pa,diamond:CW,pin:MW,arrow:DW,triangle:AW},LW={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},Qh={};M(IW,function(r,t){Qh[t]=new r});var PW=Pt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=Hh(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var i=Qh[n];i||(n="rect",i=Qh[n]),LW[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function RW(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function me(r,t,e,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=AP(r.slice(8),new Mt(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=od(r.slice(7),{},new Mt(t,e,n,i),o?"center":"cover"):l=new PW({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=RW,a&&l.setColor(a),l}function cl(r){return Y(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function zo(r,t){if(r!=null)return Y(r)||(r=[r,r]),[rt(r[0],t[0])||0,rt(xt(r[1],r[0]),t[1])||0]}function fo(r){return isFinite(r)}function EW(r,t,e){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=fo(n)?n:0,i=fo(i)?i:1,a=fo(a)?a:0,o=fo(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function kW(r,t,e){var n=e.width,i=e.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*i+e.y,l=l*a),o=fo(o)?o:.5,s=fo(s)?s:.5,l=l>=0&&fo(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Mm(r,t,e){for(var n=t.type==="radial"?kW(r,t,e):EW(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function OW(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 gc(r){return parseInt(r,10)}function bs(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||gc(s[n])||gc(r.style[n]))-(gc(s[a])||0)-(gc(s[o])||0)|0}function NW(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Ft(r)?[r]:Y(r)?r:null}function W_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&NW(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=Z(e,function(a){return a/i}),n/=i)}return[e,n]}var VW=new Zn(!0);function tv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Sw(r){return typeof r=="string"&&r!=="none"}function ev(r){var t=r.fill;return t!=null&&t!=="none"}function xw(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 bw(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 Dm(r,t,e){var n=h_(t.image,t.__image,e);if(Qv(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*th),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function BW(r,t,e,n){var i,a=tv(e),o=ev(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||VW,c=t.__dirty;if(!n){var h=e.fill,v=e.stroke,d=o&&!!h.colorStops,p=a&&!!v.colorStops,g=o&&!!h.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(m=c?Mm(r,h,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?Mm(r,v,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?Dm(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=c||!t.__canvasStrokePattern?Dm(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(x?r.strokeStyle=x:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,A;r.setLineDash&&e.lineDash&&(i=W_(t),T=i[0],A=i[1]);var C=!0;(u||c&ps)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),C=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),C&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=A),n||(e.strokeFirst?(a&&bw(r,e),o&&xw(r,e)):(o&&xw(r,e),a&&bw(r,e))),T&&r.setLineDash([])}function zW(r,t,e){var n=t.__image=h_(e.image,t.__image,t,t.onload);if(!(!n||!Qv(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,c=o-u,h=s-f;r.drawImage(n,u,f,c,h,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function GW(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||ia,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=W_(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(tv(e)&&r.strokeText(i,e.x,e.y),ev(e)&&r.fillText(i,e.x,e.y)):(ev(e)&&r.fillText(i,e.x,e.y),tv(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var ww=["shadowBlur","shadowOffsetX","shadowOffsetY"],Tw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function G2(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){dr(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?_o.opacity:o}(n||t.blend!==e.blend)&&(a||(dr(r,i),a=!0),r.globalCompositeOperation=t.blend||_o.blend);for(var s=0;s<ww.length;s++){var l=ww[s];(n||t[l]!==e[l])&&(a||(dr(r,i),a=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(dr(r,i),a=!0),r.shadowColor=t.shadowColor||_o.shadowColor),a}function Aw(r,t,e,n,i){var a=rf(t,i.inHover),o=n?null:e&&rf(e,i.inHover)||{};if(a===o)return!1;var s=G2(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(dr(r,i),s=!0),Sw(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(dr(r,i),s=!0),Sw(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(dr(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(dr(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<Tw.length;f++){var c=Tw[f],h=c[0];(n||a[h]!==o[h])&&(s||(dr(r,i),s=!0),r[h]=a[h]||c[1])}return s}function FW(r,t,e,n,i){return G2(r,rf(t,i.inHover),e&&rf(e,i.inHover),n,i)}function F2(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function HW(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),F2(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function WW(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 Cw=1,Mw=2,Dw=3,Iw=4;function $W(r){var t=ev(r),e=tv(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 dr(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function rf(r,t){return t&&r.__hoverStyle||r.style}function H2(r,t){co(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function co(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~br,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||OW(a,o))&&(o&&o.length&&(dr(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(dr(r,e),r.save(),HW(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof Pt&&t.autoBatch&&$W(t.style);s||WW(i,u.transform)?(dr(r,e),F2(r,t)):f||dr(r,e);var c=rf(t,e.inHover);t instanceof Pt?(e.lastDrawType!==Cw&&(l=!0,e.lastDrawType=Cw),Aw(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),BW(r,t,c,f),f&&(e.batchFill=c.fill||"",e.batchStroke=c.stroke||"")):t instanceof Zu?(e.lastDrawType!==Dw&&(l=!0,e.lastDrawType=Dw),Aw(r,t,u,l,e),GW(r,t,c)):t instanceof We?(e.lastDrawType!==Mw&&(l=!0,e.lastDrawType=Mw),FW(r,t,u,l,e),zW(r,t,c)):t.getTemporalDisplayables&&(e.lastDrawType!==Iw&&(l=!0,e.lastDrawType=Iw),UW(r,t,e)),f&&n&&dr(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function UW(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),co(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),co(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Fp=new TW,Lw=new xf(100),Pw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function $s(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&Fp.delete(r);var a=Fp.get(r);if(a)return a;var o=pt(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/e,Fp.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],c=!0,h=0;h<Pw.length;++h){var v=o[Pw[h]];if(v!=null&&!Y(v)&&!nt(v)&&!Ft(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(i?"-svg":"");var p=Lw.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=$2(o.dashArrayX),y=YW(o.dashArrayY),m=W2(o.symbol),_=ZW(g),S=U2(y),x=!i&&aa.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=A(),T;x&&(x.width=w.width*e,x.height=w.height*e,T=x.getContext("2d")),C(),c&&Lw.put(d,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function A(){for(var D=1,I=0,L=_.length;I<L;++I)D=Xx(D,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=Xx(P,m[I].length);D*=P;var E=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function C(){T&&(T.clearRect(0,0,x.width,x.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,x.width,x.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(D<=0)return;for(var L=-S,P=0,E=0,O=0;L<w.height;){if(P%2===0){for(var V=E/2%m.length,N=0,G=0,$=0;N<w.width*2;){for(var q=0,I=0;I<g[O].length;++I)q+=g[O][I];if(q<=0)break;if(G%2===0){var Q=(1-o.symbolSize)*.5,ct=N+g[O][G]*Q,ht=L+y[P]*Q,gt=g[O][G]*o.symbolSize,Et=y[P]*o.symbolSize,U=$/2%m[V].length;K(ct,ht,gt,Et,m[V][U])}N+=g[O][G],++$,++G,G===g[O].length&&(G=0)}++O,O===g.length&&(O=0)}L+=y[P],++E,++P,P===y.length&&(P=0)}function K(H,tt,j,ut,R){var k=i?1:e,z=me(R,H*k,tt*k,j*k,ut*k,o.color,o.symbolKeepAspect);if(i){var X=n.painter.renderOneToVNode(z);X&&b.children.push(X)}else H2(T,z)}}}}function W2(r){if(!r||r.length===0)return[["rect"]];if(nt(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!nt(r[e])){t=!1;break}if(t)return W2([r]);for(var n=[],e=0;e<r.length;++e)nt(r[e])?n.push([r[e]]):n.push(r[e]);return n}function $2(r){if(!r||r.length===0)return[[0,0]];if(Ft(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!Ft(r[n])){e=!1;break}if(e)return $2([r]);for(var i=[],n=0;n<r.length;++n)if(Ft(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=Z(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function YW(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Ft(r)){var t=Math.ceil(r);return[t,t]}var e=Z(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function ZW(r){return Z(r,function(t){return U2(t)})}function U2(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function XW(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=$s(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=$s(i,t)}}})}var qW=new Zr;const en=qW;var Y2={};function KW(r,t){Y2[r]=t}function jW(r){return Y2[r]}var JW=1,QW=800,t$=900,e$=1e3,r$=2e3,n$=5e3,Z2=1e3,i$=1100,$_=2e3,X2=3e3,a$=4e3,_d=4500,o$=4600,s$=5e3,l$=6e3,q2=7e3,u$={PROCESSOR:{FILTER:e$,SERIES_FILTER:QW,STATISTIC:n$},VISUAL:{LAYOUT:Z2,PROGRESSIVE_LAYOUT:i$,GLOBAL:$_,CHART:X2,POST_CHART_LAYOUT:o$,COMPONENT:a$,BRUSH:s$,CHART_ITEM:_d,ARIA:l$,DECAL:q2}},Ue="__flagInMainProcess",cr="__pendingUpdate",Hp="__needsUpdateStatus",Rw=/^[a-zA-Z0-9_]+$/,Wp="__connectUpdateStatus",Ew=0,f$=1,c$=2;function K2(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return J2(this,r,t)}}function j2(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return J2(this,r,t)}}function J2(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Zr.prototype[t].apply(r,e)}var Q2=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Zr),tR=Q2.prototype;tR.on=j2("on");tR.off=j2("off");var rs,$p,yc,Ri,Up,Yp,Zp,Pl,Rl,kw,Ow,Xp,Nw,mc,Vw,eR,Lr,Bw,rR=function(r){B(t,r);function t(e,n,i){var a=r.call(this,new yW)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},nt(n)&&(n=nR[n]),a._dom=e;var o="canvas",s="auto",l=!1;i.ssr&&$G(function(h){var v=St(h),d=v.dataIndex;if(d!=null){var p=ft();return p.set("series_index",v.seriesIndex),p.set("data_index",d),v.ssrType&&p.set("ssr_type",v.ssrType),p}});var u=a._zr=$x(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:xt(i.useDirtyRect,l),useCoarsePointer:xt(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=F_(at(u.flush,u),17),n=mt(n),n&&l2(n,!0),a._theme=n,a._locale=wH(i.locale||OP),a._coordSysMgr=new Df;var f=a._api=Vw(a);function c(h,v){return h.__prio-v.__prio}return nh(nv,c),nh(Im,c),a._scheduler=new N2(a,f,Im,nv),a._messageCenter=new Q2,a._initEvents(),a.resize=at(a.resize,a),u.animation.on("frame",a._onframe,a),kw(u,a),Ow(u,a),Oh(a),a}return t.prototype._onframe=function(){if(!this._disposed){Bw(this);var e=this._scheduler;if(this[cr]){var n=this[cr].silent;this[Ue]=!0;try{rs(this),Ri.update.call(this,null,this[cr].updateParams)}catch(l){throw this[Ue]=!1,this[cr]=null,l}this._zr.flush(),this[Ue]=!1,this[cr]=null,Pl.call(this,n),Rl.call(this,n)}else if(e.unfinished){var i=JW,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Yp(this,a),e.performVisualTasks(a),mc(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Ue]){if(this._disposed){this.id;return}var a,o,s;if(yt(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ue]=!0,!this._model||n){var l=new e4(this._api),u=this._theme,f=this._model=new a2;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Lm);var c={seriesTransition:s,optionChanged:!0};if(i)this[cr]={silent:a,updateParams:c},this[Ue]=!1,this.getZr().wakeUp();else{try{rs(this),Ri.update.call(this,null,c)}catch(h){throw this[cr]=null,this[Ue]=!1,h}this._ssr||this._zr.flush(),this[cr]=null,this[Ue]=!1,Pl.call(this,a),Rl.call(this,a)}}},t.prototype.setTheme=function(){},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||zt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(zt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;M(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(zw[i]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(Iu,function(_,S){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(mt(e)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),h.push({dom:x,left:b.left,top:b.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=aa.createCanvas(),y=$x(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return M(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 Vt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),M(h,function(_){var S=new We({style:{x:_.left*v-l,y:_.top*v-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,n){return Up(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Up(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=bu(i,e);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=bu(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?H_(s,l,n):If(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(h$,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&uo(s,function(d){var p=St(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=F({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),M(Du,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),M(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),SW(this._messageCenter,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&&kL(this.getDom(),Y_,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Iu[n.id]},t.prototype.resize=function(e){if(!this[Ue]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[cr]&&(a==null&&(a=this[cr].silent),i=!0,this[cr]=null),this[Ue]=!0;try{i&&rs(this),Ri.update.call(this,{type:"resize",animation:F({duration:0},e&&e.animation)})}catch(o){throw this[Ue]=!1,o}this[Ue]=!1,Pl.call(this,a),Rl.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(yt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Pm[e]){var i=Pm[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},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 n=F({},e);return n.type=Du[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(yt(n)||(n={silent:!!n}),!!rv[e.type]&&this._model){if(this[Ue]){this._pendingActions.push(e);return}var i=n.silent;Zp.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&zt.browser.weChat&&this._throttledZrFlush(),Pl.call(this,i),Rl.call(this,i)}},t.prototype.updateLabelLayout=function(){en.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){rs=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),$p(c,!0),$p(c,!1),h.plan()},$p=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(b,w){b!=="series"&&S(w)}):v.eachSeries(S);function S(b){var w=b.__requireNewView;b.__requireNewView=!1;var T="_ec_"+b.id+"_"+b.type,A=!w&&g[T];if(!A){var C=Nn(b.type),D=h?fe.getClass(C.main,C.sub):ee.getClass(C.sub);A=new D,A.init(v,m),g[T]=A,p.push(A),y.add(A.group)}b.__viewId=A.__id=T,A.__alive=!0,A.__model=b,A.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!h&&d.prepareView(A,b,v,m)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!h&&x.renderTask.dispose(),y.remove(x.group),x.dispose(v,m),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},yc=function(c,h,v,d,p){var g=c._model;if(g.setUpdatePayload(v),!d){M([].concat(c._componentsViews).concat(c._chartsViews),x);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=ft(),M(Zt(_),function(b){var w=xe(b,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!=null;if(!w)if(Sb(v))if(b instanceof le)v.type===So&&!v.notBlur&&!b.get(["emphasis","disabled"])&&p3(b,v,c._api);else{var T=m_(b.mainType,b.componentIndex,v.name,c._api),A=T.focusSelf,C=T.dispatchers;v.type===So&&A&&!v.notBlur&&cm(b.mainType,b.componentIndex,c._api),C&&M(C,function(D){v.type===So?mi(D):_i(D)})}else vm(v)&&b instanceof le&&(m3(b,v,c._api),mb(b),Lr(c))},c),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!=null;w||x(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function x(b){b&&b.__alive&&b[h]&&b[h](b.__model,g,c._api,v)}},Ri={prepareAndUpdate:function(c){rs(this),Ri.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(c),y.restoreData(v,c),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,c),Yp(this,v),g.update(v,d),e(v),y.performVisualTasks(v,c),Xp(this,v,d,c,h);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),en.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=ft();v.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,c);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),mc(this,v,d,c,{},g),en.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),ee.markUpdateMethod(c,"updateView"),e(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Xp(this,h,this._api,c,{}),en.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),ee.markUpdateMethod(c,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),en.trigger("afterupdate",v,this._api))},updateLayout:function(c){Ri.update.call(this,c)}},Up=function(c,h,v,d){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,m=bu(p,v),_=0;_<g.length;_++){var S=g[_];if(S[h]&&(y=S[h](p,m,d))!=null)return y}},Yp=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Zp=function(c,h){var v=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=rv[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&Nn(_[0]);this[Ue]=!0;var b=[c],w=!1;c.batch&&(w=!0,b=Z(c.batch,function(P){return P=pt(F({},P),c),P.batch=null,P}));var T=[],A,C=vm(c),D=Sb(c);if(D&&aP(this._api),M(b,function(P){if(A=y.action(P,v._model,v._api),A=A||F({},P),A.type=m.event||A.type,T.push(A),D){var E=f_(c),O=E.queryOptionMap,V=E.mainTypeSpecified,N=V?O.keys()[0]:"series";yc(v,S,P,N),Lr(v)}else C?(yc(v,S,P,"series"),Lr(v)):x&&yc(v,S,P,x.main,x.sub)}),S!=="none"&&!D&&!C&&!x)try{this[cr]?(rs(this),Ri.update.call(this,c),this[cr]=null):Ri[S].call(this,c)}catch(P){throw this[Ue]=!1,P}if(w?A={type:m.event||p,escapeConnect:g,batch:T}:A=T[0],this[Ue]=!1,!h){var I=this._messageCenter;if(I.trigger(A.type,A),C){var L={type:"selectchanged",escapeConnect:g,selected:_3(d),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};I.trigger(L.type,L)}}},Pl=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Zp.call(this,v,c)}},Rl=function(c){!c&&this.trigger("updated")},kw=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[cr]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Ow=function(c,h){c.on("mouseover",function(v){var d=v.target,p=uo(d,qu);p&&(g3(p,v,h._api),Lr(h))}).on("mouseout",function(v){var d=v.target,p=uo(d,qu);p&&(y3(p,v,h._api),Lr(h))}).on("click",function(v){var d=v.target,p=uo(d,function(m){return St(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=St(p);h._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?v:h).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:b})}),d){var p=h.concat(v),g,y;nh(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),M(p,function(m){var _=c.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)})}}Xp=function(c,h,v,d,p){n(h),Nw(c,h,v,d,p),M(c._chartsViews,function(g){g.__alive=!1}),mc(c,h,v,d,p),M(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},Nw=function(c,h,v,d,p,g){M(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,v,d),s(m,y),f(m,y)})},mc=function(c,h,v,d,p,g){var y=c._scheduler;p=F(p||{},{updatedSeries:h.getSeries()}),en.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,d),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),mb(_)}),y.unfinished=m||y.unfinished,en.trigger("series:layoutlabels",h,v,p),en.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(c,h),en.trigger("series:afterupdate",h,v,p)},Lr=function(c){c[Hp]=!0,c.getZr().wakeUp()},Bw=function(c){c[Hp]&&(c.getZr().storage.traverse(function(h){Ps(h)||i(h)}),c[Hp]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===rd&&c.states.emphasis?h.push("emphasis"):c.hoverState===Tf&&c.states.blur&&h.push("blur"),c.useStates(h)}function a(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!zt.node&&!zt.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],h,v,d),d);else c.z=h,c.zlevel=v,d=Math.max(c.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var S=c.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(c,h){h.eachRendered(function(v){if(!Ps(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Ps(y))return;if(y instanceof Pt&&T3(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}Vw=function(c){return new(function(h){B(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){mi(d,p),Lr(c)},v.prototype.leaveEmphasis=function(d,p){_i(d,p),Lr(c)},v.prototype.enterBlur=function(d){eP(d),Lr(c)},v.prototype.leaveBlur=function(d){y_(d),Lr(c)},v.prototype.enterSelect=function(d){rP(d),Lr(c)},v.prototype.leaveSelect=function(d){nP(d),Lr(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(o2))(c)},eR=function(c){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[Wp]=d}}M(Du,function(v,d){c._messageCenter.on(d,function(p){if(zw[c.group]&&c[Wp]!==Ew){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];M(Iu,function(m){m!==c&&m.group===c.group&&y.push(m)}),h(y,Ew),M(y,function(m){m[Wp]!==f$&&m.dispatchAction(g)}),h(y,c$)}})})}}(),t}(Zr),U_=rR.prototype;U_.on=K2("on");U_.off=K2("off");U_.one=function(r,t,e){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(r,i)}this.on.call(this,r,i,e)};var h$=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var rv={},Du={},Im=[],Lm=[],nv=[],nR={},Pm={},Iu={},zw={},v$=+new Date-0,Y_="_echarts_instance_";function Jit(r,t,e){var n=!(e&&e.ssr);if(n){var i=d$(r);if(i)return i}var a=new rR(r,t,e);return a.id="ec_"+v$++,Iu[a.id]=a,n&&kL(r,Y_,a.id),eR(a),en.trigger("afterinit",a),a}function d$(r){return Iu[fF(r,Y_)]}function iR(r,t){nR[r]=t}function Z_(r){Dt(Lm,r)<0&&Lm.push(r)}function aR(r,t){q_(Im,r,t,r$)}function p$(r){X_("afterinit",r)}function g$(r){X_("afterupdate",r)}function X_(r,t){en.on(r,t)}function qn(r,t,e){vt(t)&&(e=t,t="");var n=yt(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!Du[t]&&(lr(Rw.test(n)&&Rw.test(t)),rv[n]||(rv[n]={action:e,actionInfo:r}),Du[t]=n)}function y$(r,t){Df.register(r,t)}function m$(r,t){q_(nv,r,t,Z2,"layout")}function Go(r,t){q_(nv,r,t,X2,"visual")}var Gw=[];function q_(r,t,e,n,i){if((vt(t)||yt(t))&&(e=t,t=n),!(Dt(Gw,e)>=0)){Gw.push(e);var a=N2.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function oR(r,t){Pm[r]=t}function _$(r,t,e){var n=jW("registerMap");n&&n(r,t,e)}var S$=I4;Go($_,eW);Go(_d,rW);Go(_d,nW);Go($_,mW);Go(_d,_W);Go(q2,XW);Z_(l2);aR(t$,u4);oR("default",iW);qn({type:So,event:So,update:So},pe);qn({type:uh,event:uh,update:uh},pe);qn({type:wu,event:wu,update:wu},pe);qn({type:fh,event:fh,update:fh},pe);qn({type:Tu,event:Tu,update:Tu},pe);iR("light",pW);iR("dark",gW);var Fw=[],x$={registerPreprocessor:Z_,registerProcessor:aR,registerPostInit:p$,registerPostUpdate:g$,registerUpdateLifecycle:X_,registerAction:qn,registerCoordinateSystem:y$,registerLayout:m$,registerVisual:Go,registerTransform:S$,registerLoading:oR,registerMap:_$,registerImpl:KW,PRIORITY:u$,ComponentModel:Bt,ComponentView:fe,SeriesModel:le,ChartView:ee,registerComponentModel:function(r){Bt.registerClass(r)},registerComponentView:function(r){fe.registerClass(r)},registerSeriesModel:function(r){le.registerClass(r)},registerChartView:function(r){ee.registerClass(r)},registerSubTypeDefaulter:function(r,t){Bt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){HG(r,t)}};function Lt(r){if(Y(r)){M(r,function(t){Lt(t)});return}Dt(Fw,r)>=0||(Fw.push(r),vt(r)&&(r={install:r}),r.install(x$))}function El(r){return r==null?0:r.length||1}function Hw(r){return r}var b$=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Hw,this._newKeyGetter=i||Hw,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=El(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=El(u),h=El(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=e[i],o=El(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[i]=null}},r.prototype._initIndexMap=function(t,e,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!e){var l=e[s],u=El(l);u===0?(e[s]=o,a&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const Si=b$;var w$=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 T$(r,t){var e={},n=e.encode={},i=ft(),a=[],o=[],s={};M(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;qp(n,d)[p]=h,v.isExtraCoord||(i.set(d,1),A$(v.type)&&(a[0]=h),qp(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}jP.each(function(g,y){var m=qp(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};i.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=Z(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,e.userOutput=new w$(s,t),e}function qp(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function iv(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function A$(r){return!(r==="ordinal"||r==="time")}var C$=function(){function r(t){this.otherDims={},t!=null&&F(this,t)}return r}();const ph=C$;var M$=Nt(),D$={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},sR=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=fR(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return xt(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=f2(this.source),n=!cR(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=e?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=D$[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function lR(r){return r instanceof sR}function uR(r){for(var t=ft(),e=0;e<(r||[]).length;e++){var n=r[e],i=yt(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function fR(r){var t=M$(r);return t.dimNameMap||(t.dimNameMap=uR(r.dimensionsDefine))}function cR(r){return r>30}var kl=yt,Ei=Z,I$=typeof Int32Array=="undefined"?Array:Int32Array,L$="e\0\0",Ww=-1,P$=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],R$=["_approximateExtent"],$w,_c,Ol,Nl,Kp,Vl,jp,E$=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 n,i=!1;lR(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=nt(c)?new ph({name:c}):c instanceof ph?c:new ph(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),a[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ft();M(o,function(g){p.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(Ft(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(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof bm&&(a=t),!a){var o=this.dimensions,s=O_(t)||Ke(t)?new c2(t,o.length):t;a=new bm;var l=Ei(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=T$(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=e[l],o&&jp(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==ea&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xr;if(l&&!i.pure)for(var u=[],f=t;f<e;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&jG(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=xe(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=xe(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)jp(this,f);$w(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){kl(t)?F(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=Ol(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return _c(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,i=this._store;return Y(t)?i.getValues(Ei(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return i==null||isNaN(i)?Ww:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){vt(t)&&(n=e,e=t,t=[]);var i=n||this,a=Ei(Nl(t),this._getStoreDimIndex,this);this._store.each(a,i?at(e,i):e)},r.prototype.filterSelf=function(t,e,n){vt(t)&&(n=e,e=t,t=[]);var i=n||this,a=Ei(Nl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?at(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=kt(t);return M(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){vt(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=Ei(Nl(t),this._getStoreDimIndex,this),s=Vl(this);return s._store=this._store.map(o,a?at(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=n||i||this,o=Ei(Nl(t),this._getStoreDimIndex,this);this._store.modify(o,a?at(e,a):e)},r.prototype.downSample=function(t,e,n,i){var a=Vl(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.minmaxDownSample=function(t,e){var n=Vl(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},r.prototype.lttbDownSample=function(t,e){var n=Vl(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new te(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Si(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return _c(t,n)},function(n){return _c(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},kl(t)?F(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i==null?this.getVisual(e):i},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),Y(a)?a=a.slice():kl(a)&&(a=F({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,kl(e)?F(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){kl(t)?F(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?F(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;um(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Ei(this.dimensions,this._getDimInfo,this),this.hostModel)),Kp(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];vt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Q0(arguments)))})},r.internalField=function(){$w=function(t){var e=t._invertedIndicesMap;M(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new I$(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Ww;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Ol=function(t,e,n){return xe(t._getCategory(e,n),null)},_c=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=Ol(t,t._idDimIdx,e)),n==null&&(n=L$+e),n},Nl=function(t){return Y(t)||(t=t!=null?[t]:[]),t},Vl=function(t){var e=new r(t._schema?t._schema:Ei(t.dimensions,t._getDimInfo,t),t.hostModel);return Kp(e,t),e},Kp=function(t,e){M(P$.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,M(R$,function(n){t[n]=mt(e[n])}),t._calculationInfo=F({},e._calculationInfo)},jp=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=i[e];if(s==null&&a!=null&&(n[e]=s=Ol(t,a,e)),l==null&&o!=null&&(i[e]=l=Ol(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[e]=l}}}(),r}();const sr=E$;function Lf(r,t){O_(r)||(r=N_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=ft(),a=[],o=O$(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&cR(o),l=n===r.dimensionsDefine,u=l?fR(r):uR(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=ft(f),h=new _2(o),v=0;v<h.length;v++)h[v]=-1;function d(A){var C=h[A];if(C<0){var D=n[A],I=yt(D)?D:{name:D},L=new ph,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var E=a.length;return h[A]=E,L.storeDimIndex=A,a.push(L),L}return a[C]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(A,C){var D=Zt(A).slice();if(D.length===1&&!nt(D[0])&&D[0]<0){c.set(C,!1);return}var I=c.set(C,[]);M(D,function(L,P){var E=nt(L)?u.get(L):L;E!=null&&E<o&&(I[P]=E,g(d(E),C,P))})});var p=0;M(e,function(A){var C,D,I,L;if(nt(A))C=A,L={};else{L=A,C=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=F({},L),L.ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=c.get(C);if(E!==!1){if(E=Zt(E),!E.length)for(var O=0;O<(D&&D.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}M(E,function(V,N){var G=d(V);if(l&&L.type!=null&&(G.type=L.type),g(pt(G,L),C,N),G.name==null&&D){var $=D[N];!yt($)&&($={name:$}),G.name=G.displayName=$.name,G.defaultTooltip=$.defaultTooltip}I&&pt(G.otherDims,I)})}});function g(A,C,D){jP.get(C)!=null?A.otherDims[C]=D:(A.coordDim=C,A.coordDimIndex=D,i.set(C,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(A){A.name==null&&(A.name=A.coordDim)}if(s)M(a,function(A){x(A)}),a.sort(function(A,C){return A.storeDimIndex-C.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),T=w.coordDim;T==null&&(w.coordDim=N$(S,i,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),x(w),w.type==null&&(e2(r,b)===Ne.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return k$(a),new sR({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function k$(r){for(var t=ft(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function O$(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return M(t,function(a){var o;yt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function N$(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var V$=function(){function r(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return r}();function B$(r){var t=r.get("coordinateSystem"),e=new V$(t),n=z$[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var z$={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",ye).models[0],a=r.getReferringComponents("yAxis",ye).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),ns(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ns(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",ye).models[0];t.coordSysDims=["single"],e.set("single",i),ns(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",ye).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),ns(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ns(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),ns(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ns(r){return r.get("type")==="category"}function G$(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;F$(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(M(a,function(m,_){nt(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;M(a,function(m){m.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function F$(r){return!lR(r.schema)}function ua(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function hR(r,t){return ua(r,t)?r.getCalculationInfo("stackResultDimension"):t}function H$(r,t){var e=r.get("coordinateSystem"),n=Df.get(e),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=iv(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function W$(r,t,e){var n,i;return e&&M(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Ai(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=N_(r)):(i=n.getSource(),a=i.sourceFormat===Xr);var o=B$(t),s=H$(t,o),l=e.useEncodeDefaulter,u=vt(l)?l:l?bt(t2,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Lf(i,f),h=W$(c.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=G$(t,{schema:c,store:v}),p=new sr(c,t);p.setCalculationInfo(d);var g=h!=null&&$$(i)?function(y,m,_,S){return S===h?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,g),p}function $$(r){if(r.sourceFormat===Xr){var t=U$(r.data||[]);return!Y(tl(t))}}function U$(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var vR=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Jv(vR);const Ci=vR;var Y$=0,Z$=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Y$}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&Z(n,X$);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!nt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},r}();function X$(r){return yt(r)&&r.value!=null?r.value:r+""}const Rm=Z$;function Em(r){return r.type==="interval"||r.type==="log"}function q$(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=CL(a/t,!0);e!=null&&o<e&&(o=i.interval=e),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=dR(o),l=i.niceTickExtent=[ce(Math.ceil(r[0]/o)*o,s),ce(Math.floor(r[1]/o)*o,s)];return K$(l,r),i}function Jp(r){var t=Math.pow(10,l_(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ce(e*t)}function dR(r){return On(r)+2}function Uw(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function K$(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Uw(r,0,t),Uw(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Sd(r,t){return r>=t[0]&&r<=t[1]}function xd(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function bd(r,t){return r*(t[1]-t[0])+t[0]}var pR=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Rm({})),Y(i)&&(i=new Rm({categories:Z(i,function(a){return yt(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:nt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Sd(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),xd(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(bd(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ci);Ci.registerClass(pR);const K_=pR;var za=ce,gR=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Sd(e,this._extent)},t.prototype.normalize=function(e){return xd(e,this._extent)},t.prototype.scale=function(e){return bd(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=dR(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(e?s.push({value:za(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=za(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:za(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,h=c/e;u<e-1;){var v=za(l.value+(u+1)*h);v>a[0]&&v<a[1]&&f.push(v),u++}i.push(f)}return i},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=On(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=za(e.value,i,!0);return UP(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=q$(a,e,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);e.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=za(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=za(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(Ci);Ci.registerClass(gR);const fa=gR;var yR=typeof Float32Array!="undefined",j$=yR?Float32Array:Array;function Vn(r){return Y(r)?yR?new Float32Array(r):r:new j$(r)}var km="__ec_stack_";function j_(r){return r.get("stack")||km+r.seriesIndex}function J_(r){return r.dim+r.index}function J$(r){var t=[],e=r.axis,n="axis0";if(e.type==="category"){for(var i=e.getBandWidth(),a=0;a<r.count;a++)t.push(pt({bandWidth:i,axisKey:n,stackId:km+a},r));for(var o=SR(t),s=[],a=0;a<r.count;a++){var l=o[n][km+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function mR(r,t){var e=[];return t.eachSeriesByType(r,function(n){wR(n)&&e.push(n)}),e}function Q$(r){var t={};M(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);t[h]?t[h].push(y):t[h]=[y]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function _R(r){var t=Q$(r),e=[];return M(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=rt(n.get("barWidth"),s),p=rt(n.get("barMaxWidth"),s),g=rt(n.get("barMinWidth")||(TR(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:J_(a),stackId:j_(n)})}),SR(e)}function SR(r){var t={};M(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=kt(a).length;s=Math.max(35-l*4,15)+"%"}var u=rt(s,o),f=rt(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),M(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(y.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;M(a,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;M(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function tU(r,t,e){if(r&&t){var n=r[J_(t)];return n!=null&&e!=null?n[j_(e)]:n}}function xR(r,t){var e=mR(r,t),n=_R(e);M(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=j_(i),u=n[J_(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function bR(r){return{seriesType:r,plan:ul(),reset:function(t){if(wR(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),c=ua(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=eU(i,a),d=TR(t),p=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=d&&Vn(x*3),w=d&&l&&Vn(x*3),T=d&&Vn(x),A=n.master.getRect(),C=h?A.width:A.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(c?g:o,D),E=I.get(s,D),O=v,V=void 0;c&&(V=+P-I.get(o,D));var N=void 0,G=void 0,$=void 0,q=void 0;if(h){var Q=n.dataToPoint([P,E]);if(c){var ct=n.dataToPoint([V,E]);O=ct[0]}N=O,G=Q[1]+m,$=Q[0]-O,q=y,Math.abs($)<p&&($=($<0?-1:1)*p)}else{var Q=n.dataToPoint([E,P]);if(c){var ct=n.dataToPoint([E,V]);O=ct[1]}N=Q[0]+m,G=O,$=y,q=Q[1]-O,Math.abs(q)<p&&(q=(q<=0?-1:1)*p)}d?(b[L]=N,b[L+1]=G,b[L+2]=h?$:q,w&&(w[L]=h?A.x:N,w[L+1]=h?G:A.y,w[L+2]=C),T[D]=D):S.setItemLayout(D,{x:N,y:G,width:$,height:q}),L+=3}d&&S.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function wR(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function TR(r){return r.pipelineContext&&r.pipelineContext.large}function eU(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var rU=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},AR=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return ud(e.value,Ob[CH(Es(this._minLevelUnit))]||Ob.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return MH(e,n,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=uU(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Wr,n[1]+=Wr),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Wr}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Sc.length,l=Math.min(rU(Sc,this._approxInterval,0,s),s-1);this._interval=Sc[l][1],this._minLevelUnit=Sc[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Ft(e)?e:+Yn(e)},t.prototype.contain=function(e){return Sd(this.parse(e),this._extent)},t.prototype.normalize=function(e){return xd(this.parse(e),this._extent)},t.prototype.scale=function(e){return bd(e,this._extent)},t.type="time",t}(fa),Sc=[["second",D_],["minute",I_],["hour",Cu],["quarter-day",Cu*6],["half-day",Cu*12],["day",Wr*1.2],["half-week",Wr*3.5],["week",Wr*7],["month",Wr*31],["quarter",Wr*95],["half-year",kb/2],["year",kb]];function nU(r,t,e,n){var i=Yn(t),a=Yn(e),o=function(d){return Nb(i,d,n)===Nb(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function iU(r,t){return r/=Wr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function aU(r){var t=30*Wr;return r/=t,r>6?6:r>3?3:r>2?2:1}function oU(r){return r/=Cu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Yw(r,t){return r/=t?I_:D_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function sU(r){return CL(r,!0)}function lU(r,t,e){var n=new Date(r);switch(Es(t)){case"year":case"month":n[zP(e)](0);case"day":n[GP(e)](1);case"hour":n[FP(e)](0);case"minute":n[HP(e)](0);case"second":n[WP(e)](0),n[$P(e)](0)}return n.getTime()}function uU(r,t,e,n){var i=1e4,a=VP,o=0;function s(C,D,I,L,P,E,O){for(var V=new Date(D),N=D,G=V[L]();N<I&&N<=n[1];)O.push({value:N}),G+=C,V[P](G),N=V.getTime();O.push({value:N,notAdd:!0})}function l(C,D,I){var L=[],P=!D.length;if(!nU(Es(C),n[0],n[1],e)){P&&(D=[{value:lU(new Date(n[0]),C,e)},{value:n[1]}]);for(var E=0;E<D.length-1;E++){var O=D[E].value,V=D[E+1].value;if(O!==V){var N=void 0,G=void 0,$=void 0,q=!1;switch(C){case"year":N=Math.max(1,Math.round(t/Wr/365)),G=L_(e),$=DH(e);break;case"half-year":case"quarter":case"month":N=aU(t),G=ks(e),$=zP(e);break;case"week":case"half-week":case"day":N=iU(t),G=fd(e),$=GP(e),q=!0;break;case"half-day":case"quarter-day":case"hour":N=oU(t),G=ju(e),$=FP(e);break;case"minute":N=Yw(t,!0),G=cd(e),$=HP(e);break;case"second":N=Yw(t,!1),G=hd(e),$=WP(e);break;case"millisecond":N=sU(t),G=vd(e),$=$P(e);break}s(N,O,V,G,$,q,L),C==="year"&&I.length>1&&E===0&&I.unshift({value:I[0].value-N})}}for(var E=0;E<L.length;E++)I.push(L[E]);return L}}for(var u=[],f=[],c=0,h=0,v=0;v<a.length&&o++<i;++v){var d=Es(a[v]);if(AH(a[v])){l(a[v],u[u.length-1]||[],f);var p=a[v+1]?Es(a[v+1]):null;if(d!==p){if(f.length){h=c,f.sort(function(C,D){return C.value-D.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||r===a[v]))break}f=[]}}}for(var S=$t(Z(u,function(C){return $t(C,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(C){return C.length>0}),x=[],b=S.length-1,v=0;v<S.length;++v)for(var w=S[v],T=0;T<w.length;++T)x.push({value:w[T].value,level:b-v});x.sort(function(C,D){return C.value-D.value});for(var A=[],v=0;v<x.length;++v)(v===0||x[v].value!==x[v-1].value)&&A.push(x[v]);return A}Ci.registerClass(AR);const CR=AR;var Zw=Ci.prototype,Lu=fa.prototype,fU=ce,cU=Math.floor,hU=Math.ceil,xc=Math.pow,Jr=Math.log,Q_=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new fa,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Lu.getTicks.call(this,e);return Z(o,function(s){var l=s.value,u=ce(xc(this.base,l));return u=l===i[0]&&this._fixMin?bc(u,a[0]):u,u=l===i[1]&&this._fixMax?bc(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var i=Jr(this.base);e=Jr(Math.max(0,e))/i,n=Jr(Math.max(0,n))/i,Lu.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=Zw.getExtent.call(this);n[0]=xc(e,n[0]),n[1]=xc(e,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=bc(n[0],a[0])),this._fixMax&&(n[1]=bc(n[1],a[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Jr(e[0])/Jr(n),e[1]=Jr(e[1])/Jr(n),Zw.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=KG(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[ce(hU(n[0]/a)*a),ce(cU(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Lu.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Jr(e)/Jr(this.base),Sd(e,this._extent)},t.prototype.normalize=function(e){return e=Jr(e)/Jr(this.base),xd(e,this._extent)},t.prototype.scale=function(e){return e=bd(e,this._extent),xc(this.base,e)},t.type="log",t}(Ci),MR=Q_.prototype;MR.getMinorTicks=Lu.getMinorTicks;MR.getLabel=Lu.getLabel;function bc(r,t){return fU(r,On(t))}Ci.registerClass(Q_);const vU=Q_;var dU=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;vt(o)?this._modelMinNum=wc(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=wc(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(vt(s)?this._modelMaxNum=wc(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=wc(t,s)),i)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=Y(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[pn(u[0],1),pn(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:e-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Gu(s)||Gu(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[gU[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=pU[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),pU={min:"_determinedMin",max:"_determinedMax"},gU={min:"_dataMin",max:"_dataMax"};function DR(r,t,e){var n=r.rawExtentInfo;return n||(n=new dU(r,t,e),r.rawExtentInfo=n,n)}function wc(r,t){return t==null?null:Gu(t)?NaN:r.parse(t)}function IR(r,t){var e=r.type,n=DR(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=mR("bar",o),l=!1;if(M(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=_R(s),f=yU(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function yU(r,t,e,n){var i=e.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=tU(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;M(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/a,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Us(r,t){var e=t,n=IR(r,e),i=n.extent,a=e.get("splitNumber");r instanceof vU&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function wd(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new K_({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new CR({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ci.getClass(t)||fa)}}function mU(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function hl(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):nt(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):vt(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(t1(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function t1(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function _U(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof K_?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=hl(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var c=n?n[f]:{value:a[0]+f},h=s(c,f),v=o.getTextRect(h),d=SU(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function SU(r,t){var e=t*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new Mt(r.x,r.y,a,o);return s}function e1(r){var t=r.get("interval");return t==null?"auto":t}function LR(r){return r.type==="category"&&e1(r.getLabelModel())===0}function av(r,t){var e={};return M(r.mapDimensionsAll(t),function(n){e[hR(r,n)]=!0}),kt(e)}function xU(r,t,e){t&&M(av(t,e),function(n){var i=t.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var Pf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),bU=1e-8;function Xw(r,t){return Math.abs(r-t)<bU}function Qa(r,t,e){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=ni(i[0],i[1],o[0],o[1],t,e),i=o}var s=r[0];return(!Xw(i[0],s[0])||!Xw(i[1],s[1]))&&(n+=ni(i[0],i[1],s[0],s[1],t,e)),n!==0}var wU=[];function Qp(r,t){for(var e=0;e<r.length;e++)ze(r[e],r[e],t)}function qw(r,t,e,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Yi(t,t,a),Zi(e,e,a))}}function TU(r){for(var t=0,e=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;t+=f,e+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var PR=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}(),Kw=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),jw=function(){function r(t){this.type="linestring",this.points=t}return r}(),RR=function(r){B(t,r);function t(e,n,i){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,i=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return TU(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?qw(s.exterior,i,a,e):M(s.points,function(l){qw(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Mt(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Qa(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Qa(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new Mt(e,n,i,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var h=f[c];h.type==="polygon"?(Qp(h.exterior,u),M(h.interiors,function(v){Qp(v,u)})):M(h.points,function(v){Qp(v,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 n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(PR),AU=function(r){B(t,r);function t(e,n){var i=r.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=qv(wU),o=e;o&&!o.isGeoSVGGraphicRoot;)fi(a,o.getLocalTransform(),a),o=o.parent;return Qs(a,a),ze(i,i,a),i},t}(PR);function CU(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return M(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=ER(s,o,e);break;case"Polygon":tg(s,o,e);break;case"MultiLineString":tg(s,o,e);break;case"MultiPolygon":M(s,function(l,u){return tg(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function tg(r,t,e){for(var n=0;n<r.length;n++)r[n]=ER(r[n],t[n],e)}function ER(r,t,e){for(var n=[],i=t[0],a=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+=i,l+=a,i=s,a=l,n.push([s/e,l/e])}return n}function MU(r,t){return r=CU(r),Z($t(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Kw(o[0],o.slice(1)));break;case"MultiPolygon":M(i.coordinates,function(l){l[0]&&a.push(new Kw(l[0],l.slice(1)))});break;case"LineString":a.push(new jw([i.coordinates]));break;case"MultiLineString":a.push(new jw(i.coordinates))}var s=new RR(n[t||"name"],a,n.cp);return s.properties=n,s})}var nf=Nt();function kR(r,t){var e=Z(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function DU(r){var t=r.getLabelModel().get("customValues");if(t){var e=hl(r),n=r.scale.getExtent(),i=kR(r,t),a=$t(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:Z(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?LU(r):RU(r)}function IU(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),i=kR(r,e);return{ticks:$t(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?PU(r,t):{ticks:Z(r.scale.getTicks(),function(a){return a.value})}}function LU(r){var t=r.getLabelModel(),e=OR(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function OR(r,t){var e=NR(r,"labels"),n=e1(t),i=VR(e,n);if(i)return i;var a,o;return vt(n)?a=GR(r,n):(o=n==="auto"?EU(r):n,a=zR(r,o)),BR(e,n,{labels:a,labelCategoryInterval:o})}function PU(r,t){var e=NR(r,"ticks"),n=e1(t),i=VR(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),vt(n))a=GR(r,n,!0);else if(n==="auto"){var s=OR(r,r.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=zR(r,o,!0);return BR(e,n,{ticks:a,tickCategoryInterval:o})}function RU(r){var t=r.scale.getTicks(),e=hl(r);return{labels:Z(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function NR(r,t){return nf(r)[t]||(nf(r)[t]=[])}function VR(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function BR(r,t,e){return r.push({key:t,value:e}),e}function EU(r){var t=nf(r).autoInterval;return t!=null?t:nf(r).autoInterval=r.calculateCategoryInterval()}function kU(r){var t=OU(r),e=hl(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,p=0,g=bf(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var y=h/f,m=v/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=nf(r.model),x=r.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-_)<=1&&Math.abs(w-o)<=1&&b>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function OU(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 zR(r,t,e){var n=hl(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=LR(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);v&&d-l!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function GR(r,t,e){var n=r.scale,i=hl(r),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Jw=[0,1],NU=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return TL(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Qw(n,i.count())),Ut(t,Jw,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Qw(n,i.count()));var a=Ut(t,n,Jw,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=IU(this,e),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return VU(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return DU(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return kU(this)},r}();function Qw(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function VU(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;M(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:f[1]+1},t.push(o)}var c=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(v,d){return v=ce(v),d=ce(d),c?v>d:v<d}}const mn=NU;var Bl=Math.PI*2,Ga=Zn.CMD,BU=["top","right","bottom","left"];function zU(r,t,e,n,i){var a=e.width,o=e.height;switch(r){case"top":n.set(e.x+a/2,e.y-t),i.set(0,-1);break;case"bottom":n.set(e.x+a/2,e.y+o+t),i.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),i.set(-1,0);break;case"right":n.set(e.x+a+t,e.y+o/2),i.set(1,0);break}}function GU(r,t,e,n,i,a,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,c=s*e+t;if(Math.abs(n-i)%Bl<1e-4)return l[0]=f,l[1]=c,u-e;if(a){var h=n;n=Tr(i),i=Tr(h)}else n=Tr(n),i=Tr(i);n>i&&(i+=Bl);var v=Math.atan2(s,o);if(v<0&&(v+=Bl),v>=n&&v<=i||v+Bl>=n&&v+Bl<=i)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function ov(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function FR(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var rn=[];function FU(r,t,e){var n=FR(t.x,t.y,t.width,t.height,r.x,r.y,rn);return e.set(rn[0],rn[1]),n}function HU(r,t,e){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],i=f[v+1],a=n,o=i);var p=u;switch(d){case Ga.M:a=f[v++],o=f[v++],n=a,i=o;break;case Ga.L:p=ov(n,i,f[v],f[v+1],c,h,rn,!0),n=f[v++],i=f[v++];break;case Ga.C:p=iL(n,i,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,rn),n=f[v++],i=f[v++];break;case Ga.Q:p=oL(n,i,f[v++],f[v++],f[v],f[v+1],c,h,rn),n=f[v++],i=f[v++];break;case Ga.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],x=f[v++];v+=1;var b=!!(1-f[v++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,v<=1&&(a=s,o=l);var w=(c-g)*_/m+g;p=GU(g,y,_,S,S+x,b,w,h,rn),n=Math.cos(S+x)*m+g,i=Math.sin(S+x)*_+y;break;case Ga.R:a=n=f[v++],o=i=f[v++];var T=f[v++],A=f[v++];p=FR(a,o,T,A,c,h,rn);break;case Ga.Z:p=ov(n,i,a,o,c,h,rn,!0),n=a,i=o;break}p<u&&(u=p,e.set(rn[0],rn[1]))}return u}var on=new Ct,Jt=new Ct,de=new Ct,Bn=new Ct,kn=new Ct;function tT(r,t){if(r){var e=r.getTextGuideLine(),n=r.getTextContent();if(n&&e){var i=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||BU,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=r.getComputedTransform(),c=f&&Qs([],f),h=t.get("length2")||0;u&&de.copy(u);for(var v=0;v<o.length;v++){var d=o[v];zU(d,0,s,on,Bn),Ct.scaleAndAdd(Jt,on,Bn,h),Jt.transform(c);var p=r.getBoundingRect(),g=u?u.distance(Jt):r instanceof Pt?HU(Jt,r.path,de):FU(Jt,p,de);g<l&&(l=g,Jt.transform(f),de.transform(f),de.toArray(a[0]),Jt.toArray(a[1]),on.toArray(a[2]))}HR(a,t.get("minTurnAngle")),e.setShape({points:a})}}}var sv=[],ir=new Ct;function HR(r,t){if(t<=180&&t>0){t=t/180*Math.PI,on.fromArray(r[0]),Jt.fromArray(r[1]),de.fromArray(r[2]),Ct.sub(Bn,on,Jt),Ct.sub(kn,de,Jt);var e=Bn.len(),n=kn.len();if(!(e<.001||n<.001)){Bn.scale(1/e),kn.scale(1/n);var i=Bn.dot(kn),a=Math.cos(t);if(a<i){var o=ov(Jt.x,Jt.y,de.x,de.y,on.x,on.y,sv,!1);ir.fromArray(sv),ir.scaleAndAdd(kn,o/Math.tan(Math.PI-t));var s=de.x!==Jt.x?(ir.x-Jt.x)/(de.x-Jt.x):(ir.y-Jt.y)/(de.y-Jt.y);if(isNaN(s))return;s<0?Ct.copy(ir,Jt):s>1&&Ct.copy(ir,de),ir.toArray(r[1])}}}}function WU(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,on.fromArray(r[0]),Jt.fromArray(r[1]),de.fromArray(r[2]),Ct.sub(Bn,Jt,on),Ct.sub(kn,de,Jt);var n=Bn.len(),i=kn.len();if(!(n<.001||i<.001)){Bn.scale(1/n),kn.scale(1/i);var a=Bn.dot(t),o=Math.cos(e);if(a<o){var s=ov(Jt.x,Jt.y,de.x,de.y,on.x,on.y,sv,!1);ir.fromArray(sv);var l=Math.PI/2,u=Math.acos(kn.dot(t)),f=l+u-e;if(f>=l)Ct.copy(ir,de);else{ir.scaleAndAdd(kn,s/Math.tan(Math.PI/2-f));var c=de.x!==Jt.x?(ir.x-Jt.x)/(de.x-Jt.x):(ir.y-Jt.y)/(de.y-Jt.y);if(isNaN(c))return;c<0?Ct.copy(ir,Jt):c>1&&Ct.copy(ir,de)}ir.toArray(r[1])}}}}function eg(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function $U(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=Ui(n[0],n[1]),a=Ui(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=rh([],n[1],n[0],o/i),l=rh([],n[1],n[2],o/a),u=rh([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function r1(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Xu.length;l++){var u=Xu[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:xt(i.states[u]&&i.states[u].ignore,s);if(v||!xt(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&eg(n,!0,u,f);continue}n||(n=new mr,r.setTextGuideLine(n),!c&&(s||!o)&&eg(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),eg(n,!1,u,f)}}if(n){pt(n.style,e),n.style.fill=null;var p=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=$U}}function n1(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<ur.length;n++){var i=ur[n];e[i]=r.getModel([i,t])}return e}function WR(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Uh(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function $R(r,t,e,n,i,a){var o=r.length;if(o<2)return;r.sort(function(T,A){return T.rect[t]-A.rect[t]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var h=r[c],v=h.rect;l=v[t]-s,l<0&&(v[t]-=l,h.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[t]+v[e]}f>0&&a&&x(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=p.rect[t]-n,m=i-g.rect[t]-g.rect[e]}function S(T,A,C){if(T<0){var D=Math.min(A,-T);if(D>0){x(D*C,0,o);var I=D+T;I<0&&b(-I*C,1)}else b(-T*C,1)}}function x(T,A,C){T!==0&&(u=!0);for(var D=A;D<C;D++){var I=r[D],L=I.rect;L[t]+=T,I.label[t]+=T}}function b(T,A){for(var C=[],D=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[t]-L[t]-L[e],0);C.push(P),D+=P}if(D){var E=Math.min(Math.abs(T)/D,A);if(T>0)for(var I=0;I<o-1;I++){var O=C[I]*E;x(O,0,I+1)}else for(var I=o-1;I>0;I--){var O=C[I-1]*E;x(-O,I,o)}}}function w(T){var A=T<0?-1:1;T=Math.abs(T);for(var C=Math.ceil(T/(o-1)),D=0;D<o-1;D++)if(A>0?x(C,0,D+1):x(-C,o-D-1,o),T-=C,T<=0)return}return u}function UU(r,t,e,n){return $R(r,"x","width",t,e,n)}function UR(r,t,e,n){return $R(r,"y","height",t,e,n)}function YR(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Mt(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var c=a.obb,h=!1,v=0;v<t.length;v++){var d=t[v];if(e.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new Uh(d.localRect,d.transform)),c||(c=new Uh(s,l)),c.intersect(d.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function YU(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function ZU(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:YU(n&&n.shape.points)}}var eT=["align","verticalAlign","width","height","fontSize"],Je=new si,rg=Nt(),XU=Nt();function Tc(r,t,e){for(var n=0;n<e.length;n++){var i=e[n];t[i]!=null&&(r[i]=t[i])}}var Ac=["x","y","rotation"],qU=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();Mt.applyTransform(f,f,u),u?Je.setLocalTransform(u):(Je.x=Je.y=Je.rotation=Je.originX=Je.originY=0,Je.scaleX=Je.scaleY=1),Je.rotation=Tr(Je.rotation);var c=i.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Mt.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Je.x,y:Je.y,scaleX:Je.scaleX,scaleY:Je.scaleY,rotation:Je.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(vt(i)||kt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=St(a);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,i)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(_,S){return function(){tT(_,S)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;vt(o.layoutOption)?f=o.layoutOption(ZU(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=rt(f.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=rt(f.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=rg(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<eT.length;p++){var g=eT[p];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",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=WR(this._labelList),a=$t(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=$t(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});UU(a,0,e),UR(o,0,n);var s=$t(i,function(l){return l.layoutOption.hideOverlap});YR(s)},r.prototype.processLabelsOverall=function(){var t=this;M(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,a=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=rg(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=St(t),a=i.dataIndex;if(n&&a!=null){var o=e.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");r1(t,n1(s),l),tT(t,c)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Ps(t))){var a=rg(n),o=a.oldLayout,s=St(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(Dt(h,"select")>=0&&n.attr(a.oldLayoutSelect),Dt(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Ht(n,u,e,l)}else if(n.attr(u),!nl(n).valueAnimation){var c=xt(n.style.opacity,1);n.style.opacity=0,oe(n,{style:{opacity:c}},e,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};Tc(v,u,Ac),Tc(v,n.states.select,Ac)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Tc(d,u,Ac),Tc(d,n.states.emphasis,Ac)}RP(n,l,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=XU(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Ht(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,oe(i,{style:{strokePercent:1}},e)),a.oldLayout=p}},r}();const KU=qU;var ng=Nt();function jU(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=ng(e).labelManager;i||(i=ng(e).labelManager=new KU),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=ng(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var ig=Math.sin,ag=Math.cos,ZR=Math.PI,Fa=Math.PI*2,JU=180/ZR,QU=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,n,i,a,o){this._add("C",t,e,n,i,a,o)},r.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},r.prototype.arc=function(t,e,n,i,a,o){this.ellipse(t,e,n,n,0,i,a,o)},r.prototype.ellipse=function(t,e,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=Ki(c-Fa)||(f?u>=Fa:-u>=Fa),v=u>0?u%Fa:u%Fa+Fa,d=!1;h?d=!0:Ki(c)?d=!1:d=v>=ZR==!!f;var p=t+n*ag(o),g=e+i*ig(o);this._start&&this._add("M",p,g);var y=Math.round(a*JU);if(h){var m=1/this._p,_=(f?1:-1)*(Fa-m);this._add("A",n,i,y,1,+f,t+n*ag(o+_),e+i*ig(o+_)),m>.01&&this._add("A",n,i,y,0,+f,p,g)}else{var S=t+n*ag(s),x=e+i*ig(s);this._add("A",n,i,y,+d,+f,S,x)}},r.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,i,a,o,s,l,u){for(var f=[],c=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*c)/c)}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}();const XR=QU;var Pu="none",t6=Math.round;function e6(r){var t=r.fill;return t!=null&&t!==Pu}function r6(r){var t=r.stroke;return t!=null&&t!==Pu}var Om=["lineCap","miterLimit","lineJoin"],n6=Z(Om,function(r){return"stroke-"+r.toLowerCase()});function i6(r,t,e,n){var i=t.opacity==null?1:t.opacity;if(e instanceof We){r("opacity",i);return}if(e6(t)){var a=$u(t.fill);r("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&r("fill-opacity",o)}else r("fill",Pu);if(r6(t)){var s=$u(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*i:s.opacity*i,c=t.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||c)&&r("paint-order",c?"stroke":"fill"),(n||f<1)&&r("stroke-opacity",f),t.lineDash){var h=W_(e),v=h[0],d=h[1];v&&(d=t6(d||0),r("stroke-dasharray",v.join(",")),(d||n)&&r("stroke-dashoffset",d))}else n&&r("stroke-dasharray",Pu);for(var p=0;p<Om.length;p++){var g=Om[p];if(n||t[g]!==Wh[g]){var y=t[g]||Wh[g];y&&r(n6[p],y)}}}else n&&r("stroke",Pu)}var qR="http://www.w3.org/2000/svg",KR="http://www.w3.org/1999/xlink",a6="http://www.w3.org/2000/xmlns/",o6="http://www.w3.org/XML/1998/namespace",rT="ecmeta_";function jR(r){return document.createElementNS(qR,r)}function Ce(r,t,e,n,i){return{tag:r,attrs:e||{},children:n,text:i,key:t}}function s6(r,t){var e=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),e.push(a))}return"<"+r+" "+e.join(" ")+">"}function l6(r){return"</"+r+">"}function i1(r,t){t=t||{};var e=t.newline?` |
|
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return s6(o,s)+(o!=="style"?qe(l):l||"")+(a?""+e+Z(a,function(u){return n(u)}).join(e)+e:"")+l6(o)}return n(r)}function u6(r,t,e){e=e||{};var n=e.newline?` |
|
`:"",i=" {"+n,a=n+"}",o=Z(kt(r),function(l){return l+i+Z(kt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+a}).join(n),s=Z(kt(t),function(l){return"@keyframes "+l+i+Z(kt(t[l]),function(u){return u+i+Z(kt(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Nm(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function nT(r,t,e,n){return Ce("svg","root",{width:r,height:t,xmlns:qR,"xmlns:xlink":KR,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var f6=0;function JR(){return f6++}var iT={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"},Ua="transform-origin";function c6(r,t,e){var n=F({},r.shape);F(n,t),r.buildPath(e,n);var i=new XR;return i.reset(vL(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function h6(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[Ua]=e+"px "+n+"px")}var v6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function QR(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function d6(r,t,e){var n=r.shape.paths,i={},a,o;if(M(n,function(l){var u=Nm(e.zrId);u.animation=!0,Td(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=kt(f),v=h.length;if(v){o=h[v-1];var d=f[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=QR(i,e);return a.replace(o,s)}}function aT(r){return nt(r)?iT[r]?"cubic-bezier("+iT[r]+")":i_(r)?r:"":""}function Td(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof b_){var s=d6(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],c=[f.getMaxTime()/1e3+"s"],h=aT(f.getClip().easing),v=f.getDelay();h?c.push(h):c.push("linear"),v&&c.push(v/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,x={},b={},w={},T="animation-timing-function";function A(K,H,tt){for(var j=K.getTracks(),ut=K.getMaxTime(),R=0;R<j.length;R++){var k=j[R];if(k.needsAnimate()){var z=k.keyframes,X=k.propName;if(tt&&(X=tt(X)),X)for(var W=0;W<z.length;W++){var J=z[W],ot=Math.round(J.time/ut*100)+"%",st=aT(J.easing),it=J.rawValue;(nt(it)||Ft(it))&&(H[ot]=H[ot]||{},H[ot][X]=J.rawValue,st&&(H[ot][T]=st))}}}}for(var C=0;C<S;C++){var D=_[C],I=D.targetName;I?I==="shape"&&A(D,b):!n&&A(D,x)}for(var L in x){var P={};mL(P,r),F(P,x[L]);var E=dL(P),O=x[L][T];w[L]=E?{transform:E}:{},h6(w[L],P),O&&(w[L][T]=O)}var V,N=!0;for(var L in b){w[L]=w[L]||{};var G=!V,O=b[L][T];G&&(V=new Zn);var $=V.len();V.reset(),w[L].d=c6(r,b[L],V);var q=V.len();if(!G&&$!==q){N=!1;break}O&&(w[L][T]=O)}if(!N)for(var L in w)delete w[L].d;if(!n)for(var C=0;C<S;C++){var D=_[C],I=D.targetName;I==="style"&&A(D,w,function(j){return v6[j]})}for(var Q=kt(w),ct=!0,ht,C=1;C<Q.length;C++){var gt=Q[C-1],Et=Q[C];if(w[gt][Ua]!==w[Et][Ua]){ct=!1;break}ht=w[gt][Ua]}if(ct&&ht){for(var L in w)w[L][Ua]&&delete w[L][Ua];t[Ua]=ht}if($t(Q,function(K){return kt(w[K]).length>0}).length){var U=QR(w,e);return U+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+JR();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function p6(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};oT(n,t,e,!0)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=i.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(a=Xy(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),oT(n,t,e,!0)}}function oT(r,t,e,n){var i=JSON.stringify(r),a=e.cssStyleCache[i];a||(a=e.zrId+"-cls-"+JR(),e.cssStyleCache[i]=a,e.cssNodes["."+a+(n?":hover":"")]=r),t.class=t.class?t.class+" "+a:a}var af=Math.round;function tE(r){return r&&nt(r.src)}function eE(r){return r&&vt(r.toDataURL)}function a1(r,t,e,n){i6(function(i,a){var o=i==="fill"||i==="stroke";o&&hL(a)?nE(t,r,i,n):o&&a_(a)?iE(e,r,i,n):r[i]=a,o&&n.ssr&&a==="none"&&(r["pointer-events"]="visible")},t,e,!1),b6(e,r,n)}function o1(r,t){var e=WG(t);e&&(e.each(function(n,i){n!=null&&(r[(rT+i).toLowerCase()]=n+"")}),t.isSilent()&&(r[rT+"silent"]="true"))}function sT(r){return Ki(r[0]-1)&&Ki(r[1])&&Ki(r[2])&&Ki(r[3]-1)}function g6(r){return Ki(r[4])&&Ki(r[5])}function s1(r,t,e){if(t&&!(g6(t)&&sT(t))){var n=e?10:1e4;r.transform=sT(t)?"translate("+af(t[4]*n)/n+" "+af(t[5]*n)/n+")":uG(t)}}function lT(r,t,e){for(var n=r.points,i=[],a=0;a<n.length;a++)i.push(af(n[a][0]*e)/e),i.push(af(n[a][1]*e)/e);t.points=i.join(" ")}function uT(r){return!r.smooth}function y6(r){var t=Z(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=e[o[0]];s!=null&&(n[o[1]]=af(s*i)/i)}}}var m6={circle:[y6(["cx","cy","r"])],polyline:[lT,uT],polygon:[lT,uT]};function _6(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function rE(r,t){var e=r.style,n=r.shape,i=m6[r.type],a={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&vL(r)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&_6(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var c=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;c&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var v=h.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==v||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new XR),p.reset(u),h.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),a.d=p.getStr()}return s1(a,r.transform),a1(a,e,r,t),o1(a,r),t.animation&&Td(r,a,t),t.emphasis&&p6(r,a,t),Ce(s,r.id+"",a)}function S6(r,t){var e=r.style,n=e.image;if(n&&!nt(n)&&(tE(n)?n=n.src:eE(n)&&(n=n.toDataURL())),!!n){var i=e.x||0,a=e.y||0,o=e.width,s=e.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),s1(l,r.transform),a1(l,e,r,t),o1(l,r),t.animation&&Td(r,l,t),Ce("image",r.id+"",l)}}function x6(r,t){var e=r.style,n=e.text;if(n!=null&&(n+=""),!(!n||isNaN(e.x)||isNaN(e.y))){var i=e.font||ia,a=e.x||0,o=cG(e.y||0,jv(i),e.textBaseline),s=fG[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(KL(e)){var u="",f=e.fontStyle,c=qL(e.fontSize);if(!parseFloat(c))return;var h=e.fontFamily||FI,v=e.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),s1(l,r.transform),a1(l,e,r,t),o1(l,r),t.animation&&Td(r,l,t),Ce("text",r.id+"",l,void 0,n)}}function fT(r,t){if(r instanceof Pt)return rE(r,t);if(r instanceof We)return S6(r,t);if(r instanceof Zu)return x6(r,t)}function b6(r,t,e){var n=r.style;if(hG(n)){var i=vG(r),a=e.shadowCache,o=a[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,h=n.shadowBlur,v=$u(n.shadowColor),d=v.opacity,p=v.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=Ce("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ce("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),a[i]=o}t.filter=Kv(o)}}function nE(r,t,e,n){var i=r[e],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(fL(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(cL(i))a="radialGradient",o.cx=xt(i.x,.5),o.cy=xt(i.y,.5),o.r=xt(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=qy(s[u].offset)*100+"%",h=s[u].color,v=$u(h),d=v.color,p=v.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Ce("stop",u+"",g))}var y=Ce(a,"",o,l),m=i1(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=Ce(a,S,o,l)),t[e]=Kv(S)}function iE(r,t,e,n){var i=r.style[e],a=r.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(uL(i)){var h=i.imageWidth,v=i.imageHeight,d=void 0,p=i.image;if(nt(p)?d=p:tE(p)?d=p.src:eE(p)&&(d=p.toDataURL()),typeof Image=="undefined"){var g="Image width/height must been given explictly in svg-ssr renderer.";lr(h,g),lr(v,g)}else if(h==null||v==null){var y=function(C,D){if(C){var I=C.elm,L=h||D.width,P=v||D.height;C.tag==="pattern"&&(u?(P=1,L/=a.width):f&&(L=1,P/=a.height)),C.attrs.width=L,C.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=h_(d,null,r,function(C){l||y(b,C),y(c,C)});m&&m.width&&m.height&&(h=h||m.width,v=v||m.height)}c=Ce("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else i.svgElement&&(c=mt(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var x=dL(i);x&&(o.patternTransform=x);var b=Ce("pattern","",o,[c]),w=i1(b),T=n.patternCache,A=T[w];A||(A=n.zrId+"-p"+n.patternIdx++,T[w]=A,o.id=A,b=n.defs[A]=Ce("pattern",A,o,[c])),t[e]=Kv(A)}}function w6(r,t,e){var n=e.clipPathCache,i=e.defs,a=n[r.id];if(!a){a=e.zrId+"-c"+e.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=Ce("clipPath",a,o,[rE(r,e)])}t["clip-path"]=Kv(a)}function cT(r){return document.createTextNode(r)}function to(r,t,e){r.insertBefore(t,e)}function hT(r,t){r.removeChild(t)}function vT(r,t){r.appendChild(t)}function aE(r){return r.parentNode}function oE(r){return r.nextSibling}function og(r,t){r.textContent=t}var dT=58,T6=120,A6=Ce("","");function Vm(r){return r===void 0}function In(r){return r!==void 0}function C6(r,t,e){for(var n={},i=t;i<=e;++i){var a=r[i].key;a!==void 0&&(n[a]=i)}return n}function au(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function of(r){var t,e=r.children,n=r.tag;if(In(n)){var i=r.elm=jR(n);if(l1(A6,r),Y(e))for(t=0;t<e.length;++t){var a=e[t];a!=null&&vT(i,of(a))}else In(r.text)&&!yt(r.text)&&vT(i,cT(r.text))}else r.elm=cT(r.text);return r.elm}function sE(r,t,e,n,i){for(;n<=i;++n){var a=e[n];a!=null&&to(r,of(a),t)}}function lv(r,t,e,n){for(;e<=n;++e){var i=t[e];if(i!=null)if(In(i.tag)){var a=aE(i.elm);hT(a,i.elm)}else hT(r,i.elm)}}function l1(r,t){var e,n=t.elm,i=r&&r.attrs||{},a=t.attrs||{};if(i!==a){for(e in a){var o=a[e],s=i[e];s!==o&&(o===!0?n.setAttribute(e,""):o===!1?n.removeAttribute(e):e==="style"?n.style.cssText=o:e.charCodeAt(0)!==T6?n.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?n.setAttributeNS(a6,e,o):e.charCodeAt(3)===dT?n.setAttributeNS(o6,e,o):e.charCodeAt(5)===dT?n.setAttributeNS(KR,e,o):n.setAttribute(e,o))}for(e in i)e in a||n.removeAttribute(e)}}function M6(r,t,e){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=e.length-1,u=e[0],f=e[l],c,h,v,d;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=e[++i]:f==null?f=e[--l]:au(o,u)?(ys(o,u),o=t[++n],u=e[++i]):au(s,f)?(ys(s,f),s=t[--a],f=e[--l]):au(o,f)?(ys(o,f),to(r,o.elm,oE(s.elm)),o=t[++n],f=e[--l]):au(s,u)?(ys(s,u),to(r,s.elm,o.elm),s=t[--a],u=e[++i]):(Vm(c)&&(c=C6(t,n,a)),h=c[u.key],Vm(h)?to(r,of(u),o.elm):(v=t[h],v.tag!==u.tag?to(r,of(u),o.elm):(ys(v,u),t[h]=void 0,to(r,v.elm,o.elm))),u=e[++i]);(n<=a||i<=l)&&(n>a?(d=e[l+1]==null?null:e[l+1].elm,sE(r,d,e,i,l)):lv(r,t,n,a))}function ys(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(l1(r,t),Vm(t.text)?In(n)&&In(i)?n!==i&&M6(e,n,i):In(i)?(In(r.text)&&og(e,""),sE(e,null,i,0,i.length-1)):In(n)?lv(e,n,0,n.length-1):In(r.text)&&og(e,""):r.text!==t.text&&(In(n)&&lv(e,n,0,n.length-1),og(e,t.text)))}function D6(r,t){if(au(r,t))ys(r,t);else{var e=r.elm,n=aE(e);of(t),n!==null&&(to(n,t.elm,oE(e)),lv(n,[r],0,0))}return t}var I6=0,L6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=pT(),this.configLayer=pT(),this.storage=e,this._opts=n=F({},n),this.root=t,this._id="zr"+I6++,this._oldVNode=nT(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=jR("svg");l1(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.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",D6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return fT(t,Nm(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Nm(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=P6(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Ce("g","main",{},[]);this._paintList(e,a,l?l.children:o),l&&o.push(l);var u=Z(kt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Ce("defs","defs",{},u)),t.animation){var f=u6(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Ce("style","stl",{},[],f);o.push(c)}}return nT(n,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},i1(this.renderToVNode({animation:xt(t.cssAnimation,!0),emphasis:xt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:xt(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,n){for(var i=t.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var c=t[f];if(!c.invisible){var h=c.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=a[o-1];for(var y=p+1;y<v;y++){var m={};w6(h[y],m,e);var _=Ce("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=h;var S=fT(c,e);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(t,e){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),e!=null&&(n.height=e),i&&a&&(a.style.display="none",t=bs(i,0,n),e=bs(i,1,n),a.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,a){var o=a.style;o.width=t+"px",o.height=e+"px"}if(a_(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(),n="data:image/svg+xml;";return t?(e=pG(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},r}();function pT(r){return function(){}}function P6(r,t,e,n){var i;if(e&&e!=="none")if(i=Ce("rect","bg",{width:r,height:t,x:"0",y:"0"}),hL(e))nE({fill:e},i.attrs,"fill",n);else if(a_(e))iE({style:{fill:e},dirty:pe,getBoundingRect:function(){return{width:r,height:t}}},i.attrs,"fill",n);else{var a=$u(e),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}const R6=L6;function E6(r){r.registerPainter("svg",R6)}function gT(r,t,e){var n=aa.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*e,n.height=a*e,n}var k6=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Fh,typeof e=="string"?o=gT(e,n,i):yt(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(ZI(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=gT("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Mt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new Mt(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,x=1/0,b=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var A=new Mt(0,0,0,0);A.copy(T),A.union(m),o[w]=A,S=!0;break}else if(l){u.copy(m),u.union(T);var C=m.width*m.height,D=T.width*T.height,I=u.width*u.height,L=I-C-D;L<x&&(x=L,b=w)}}if(l&&(o[b].union(m),S=!0),!S){var _=new Mt(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=e[c];if(h){var v=h.shouldBePainted(i,a,!0,!0),d=h.__isRendered&&(h.__dirty&br||!v)?h.getPrevPaintRect():null;d&&f(d);var p=v&&(h.__dirty&br||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],v=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var y=c+1;y<o.length;)o[c].intersect(o[y])?(g=!0,o[c].union(o[y]),o.splice(y,1)):y++;c++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var v=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(Zv(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||Mm(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else p5(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Dm(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,p,g,y,m),o.restore())}!i||u?d(0,0,s,l):i.length&&M(i,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(Zr);const sg=k6;var yT=1e5,Ha=314159,Cc=.01,O6=.001;function N6(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function V6(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var B6=function(){function r(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=F({},n||{}),this.dpr=n.devicePixelRatio||Fh,this._singleCanvas=a,this.root=t;var o=t.style;o&&(ZI(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var v=new sg(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Ha]=v,v.zlevel=Ha,s.push(Ha),this._domRoot=t}else{this._width=bs(t,0,n),this._height=bs(t,1,n);var u=this._domRoot=V6(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(yT)),a||(a=n.ctx,a.save()),co(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(yT)},r.prototype.paintOne=function(t,e){H2(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Wy(function(){l._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Ha).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,h=function(p){var g=a[p],y=g.ctx,m=o&&g.createRepaintRects(t,e,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,x=S&&Date.now(),b=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,m);else if(_===g.__startIndex){var w=t[_];(!w.incremental||!w.notClear||n)&&g.clear(!1,b,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,A=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<g.__endIndex;T++){var E=t[T];if(E.__inHover&&(c=!0),i._doPaintEl(E,g,o,L,P,T===g.__endIndex-1),S){var O=Date.now()-x;if(O>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var C=v.dpr,D=0;D<m.length;++D){var I=m[D];y.save(),y.beginPath(),y.rect(I.x*C,I.y*C,I.width*C,I.height*C),y.clip(),A(I),y.restore()}else y.save(),A(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)h(d);return zt.wxa&&M(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(co(s,t,a,o),t.setPrevPaintRect(l))}else co(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Ha);var n=this._layers[t];return n||(n=new sg("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Tt(n,this._layerConfig[t],!0):this._layerConfig[t-Cc]&&Tt(n,this._layerConfig[t-Cc],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&N6(e)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function e(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+O6,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Cc:0),this._needsManuallyCompositing),f.__builtin__||j0("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),i.__dirty&br&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Tt(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+Cc){var o=this._layers[a];Tt(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(Dt(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=bs(a,0,i),e=bs(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Ha).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Ha].dom;var e=new sg("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];co(n,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const z6=B6;function G6(r){r.registerPainter("canvas",z6)}var F6=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return Ai(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new _t,i=me("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=me(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(le);const H6=F6;function Ys(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Ws(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(Ws(r,t,e[o]));return a.join(" ")}}function lE(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!Y(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}var W6=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=me(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=$6,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){mi(this.childAt(0))},t.prototype.downplay=function(){_i(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):Ht(h,v,s,n),gn(h)}if(this._updateCommon(e,n,l,i,a),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,oe(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=De(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=zo(e.getItemVisual(n,"symbolOffset"),i);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(n,"style"),w=b.fill;if(s instanceof We){var T=s.style;s.useStyle(F({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(F({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(n,"liftZ"),C=this._z2;A!=null?C==null&&(this._z2=s.z2,s.z2+=A):C!=null&&(s.z2=C,this._z2=null);var D=o&&o.useNameLabel;He(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(E){return D?e.getName(E):Ys(e,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),ue(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=St(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&sa(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();sa(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return cl(e.getItemVisual(n,"symbolSize"))},t}(_t);function $6(r,t){this.parent.drift(r,t)}const Rf=W6;function lg(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function mT(r){return r!=null&&!yt(r)&&(r={isIgnore:r}),r||{}}function _T(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:De(t),cursorStyle:t.get("cursor")}}var U6=function(){function r(t){this.group=new _t,this._SymbolCtor=t||Rf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=mT(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=_T(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var h=f(c);if(lg(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!lg(t,d,c,e)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):Ht(v,y,i)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=_T(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=mT(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(lg(e,o,a,n)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){ga(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},n.hostModel)}):e.removeAll()},r}();const Ef=U6;function uE(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=Y6(i,e),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=Z(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return ua(t,c[0])&&(h=!0,c[0]=v),ua(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Y6(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:Ft(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function fE(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function Z6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function X6(r,t,e,n,i,a,o,s){for(var l=Z6(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=uE(i,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 T=y[b],A=y[b+1],C=m[w],D=m[w+1];(isNaN(T)||isNaN(A))&&(T=C,A=D),u.push(T,A),f.push(C,D),c.push(e[b],e[b+1]),h.push(n[w],n[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=i.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);w=I*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var E=fE(g,i,t,I);c.push(E[0],E[1]),h.push(n[w],n[w+1]),p.push(t.getRawIndex(I));break;case"-":x=!1}x&&(v.push(S),d.push(d.length))}d.sort(function(gt,Et){return p[gt]-p[Et]});for(var O=u.length,V=Vn(O),N=Vn(O),G=Vn(O),$=Vn(O),q=[],_=0;_<d.length;_++){var Q=d[_],ct=_*2,ht=Q*2;V[ct]=u[ht],V[ct+1]=u[ht+1],N[ct]=f[ht],N[ct+1]=f[ht+1],G[ct]=c[ht],G[ct+1]=c[ht+1],$[ct]=h[ht],$[ct+1]=h[ht+1],q[_]=v[Q]}return{current:V,next:N,stackedOnCurrent:G,stackedOnNext:$,status:q}}var ki=Math.min,Oi=Math.max;function To(r,t){return isNaN(r)||isNaN(t)}function Bm(r,t,e,n,i,a,o,s,l){for(var u,f,c,h,v,d,p=e,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=i||p<0)break;if(To(y,m)){if(l){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](y,m),c=y,h=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var x=p+a,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g<n;)g++,x+=a,p+=a,b=t[x*2],w=t[x*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;To(b,w)&&T<n;)T++,x+=a,b=t[x*2],w=t[x*2+1];var A=.5,C=0,D=0,I=void 0,L=void 0;if(T>=n||To(b,w))v=y,d=m;else{C=b-u,D=w-f;var P=y-u,E=b-y,O=m-f,V=w-m,N=void 0,G=void 0;if(s==="x"){N=Math.abs(P),G=Math.abs(E);var $=C>0?1:-1;v=y-$*N*o,d=m,I=y+$*G*o,L=m}else if(s==="y"){N=Math.abs(O),G=Math.abs(V);var q=D>0?1:-1;v=y,d=m-q*N*o,I=y,L=m+q*G*o}else N=Math.sqrt(P*P+O*O),G=Math.sqrt(E*E+V*V),A=G/(G+N),v=y-C*o*(1-A),d=m-D*o*(1-A),I=y+C*o*A,L=m+D*o*A,I=ki(I,Oi(b,y)),L=ki(L,Oi(w,m)),I=Oi(I,ki(b,y)),L=Oi(L,ki(w,m)),C=I-y,D=L-m,v=y-C*N/G,d=m-D*N/G,v=ki(v,Oi(u,y)),d=ki(d,Oi(f,m)),v=Oi(v,ki(u,y)),d=Oi(d,ki(f,m)),C=y-v,D=m-d,I=y+C*G/N,L=m+D*G/N}r.bezierCurveTo(c,h,v,d,y,m),c=I,h=L}else r.lineTo(y,m)}u=y,f=m,p+=a}return g}var cE=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),q6=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cE},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&To(i[o*2-2],i[o*2-1]);o--);for(;a<o&&To(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Bm(e,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Zn.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var h=a[c++],v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(h){case o.M:s=a[c++],l=a[c++];break;case o.L:if(v=a[c++],d=a[c++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],p=a[c++],g=a[c++],y=a[c++],m=a[c++];var x=u?Vh(s,v,p,y,e,f):Vh(l,d,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?Ae(l,d,g,m,w):Ae(s,v,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Pt),K6=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(cE),hE=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new K6},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&To(i[s*2-2],i[s*2-1]);s--);for(;o<s&&To(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Bm(e,i,o,s,s,1,n.smooth,l,n.connectNulls);Bm(e,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(Pt);function vE(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||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 c=new Vt({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=vt(i)?function(g){i(g,c)}:null;oe(c,{shape:{width:l,height:u,x:o,y:s}},e,null,n,p)}return c}function dE(r,t,e){var n=r.getArea(),i=ce(n.r0,1),a=ce(n.r,1),o=new gr({shape:{cx:ce(r.cx,1),cy:ce(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,oe(o,{shape:{endAngle:n.endAngle,r:a}},e)}return o}function kf(r,t,e,n,i){if(r){if(r.type==="polar")return dE(r,t,e);if(r.type==="cartesian2d")return vE(r,t,e,n,i)}else return null;return null}function Fo(r,t){return r.type===t}function ST(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function xT(r){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[n,i]]}function bT(r,t){var e=xT(r),n=e[0],i=e[1],a=xT(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function wT(r){return Ft(r)?r:r?.5:0}function j6(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),i=Vn(n*2),a=0;a<n;a++){var o=fE(e,r,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Ni(r,t,e,n,i){var a=e.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(i){for(l=0;l<r.length;l+=2){var v=t||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function J6(r,t){var e=[],n=r.length,i,a;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=lG(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>t){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function Q6(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=J6(u,i==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,y=g-p;if(y<.001)return"transparent";M(h,function(_){_.offset=(_.coord-p)/y}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new Af(0,0,0,0,h,!0);return m[i]=p,m[i+"2"]=g,m}}}function t8(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&e8(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function e8(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Rf.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function r8(r,t){return isNaN(r)||isNaN(t)}function n8(r){for(var t=r.length/2;t>0&&r8(r[t*2-2],r[t*2-1]);t--);return t-1}function TT(r,t){return[r[t*2],r[t*2+1]]}function i8(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function pE(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<ur.length;t++)if(r.get([ur[t],"endLabel","show"]))return!0;return!1}function ug(r,t,e,n){if(Fo(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=pE(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=vE(t,e,n,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return dE(t,e,n)}function a8(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),i=e.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var o8=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new _t,n=new Ef;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e,this._changePolyState=at(this._changePolyState,this)},t.prototype.render=function(e,n,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=uE(a,s,_),x=m&&j6(a,s,S),b=e.get("showSymbol"),w=e.get("connectNulls"),T=b&&!c&&t8(e,s,a),A=this._data;A&&A.eachItemGraphicEl(function(gt,Et){gt.__temp&&(o.remove(gt),A.setItemGraphicEl(Et,null))}),b||v.remove(),o.add(g);var C=c?!1:e.get("step"),D;a&&a.getArea&&e.get("clip",!0)&&(D=a.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 I=Q6(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===a.type&&C===this._step))b&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(gt){return[f[gt*2],f[gt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,a,D),C&&(x&&(x=Ni(x,f,a,C,w)),f=Ni(f,null,a,C,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,x):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,a,Po(I)),g.setClipPath(ug(this,a,!0,e));else{m&&!p?p=this._newPolygon(f,x):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,a,Po(I));var L=g.getClipPath();if(L){var P=ug(this,a,!1,e);oe(L,{shape:P.shape},e)}else g.setClipPath(ug(this,a,!0,e));b&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(gt){return[f[gt*2],f[gt*2+1]]}}),(!ST(this._stackedOnPoints,x)||!ST(this._points,f))&&(y?this._doUpdateAnimation(s,x,a,i,C,_,w):(C&&(x&&(x=Ni(x,f,a,C,w)),f=Ni(f,null,a,C,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:x})))}var E=e.getModel("emphasis"),O=E.get("focus"),V=E.get("blurScope"),N=E.get("disabled");if(d.useStyle(pt(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Fe(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=d.getState("emphasis").style;G.lineWidth=+d.style.lineWidth+1}St(d).seriesIndex=e.seriesIndex,ue(d,O,V,N);var $=wT(e.get("smooth")),q=e.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:q,connectNulls:w}),p){var Q=s.getCalculationInfo("stackedOnSeries"),ct=0;p.useStyle(pt(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Q&&(ct=wT(Q.get("smooth"))),p.setShape({smooth:$,stackedOnSmooth:ct,smoothMonotone:q,connectNulls:w}),Fe(p,e,"areaStyle"),St(p).seriesIndex=e.seriesIndex,ue(p,O,V,N)}var ht=this._changePolyState;s.eachItemGraphicEl(function(gt){gt&&(gt.onHoverStateChange=ht)}),this._polyline.onHoverStateChange=ht,this._data=s,this._coordSys=a,this._stackedOnPoints=x,this._points=f,this._step=C,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){St(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Do(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new Rf(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ee.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Do(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ee.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;$h(this._polyline,e),n&&$h(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new q6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new hE({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");vt(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=vt(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,x=n.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=i;a?(y=b.x,m=b.x+b.width,_=v.x):(y=b.y+b.height,m=b.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=vt(c)?c(d):f*w+h,A=p.getSymbolPath(),C=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(pE(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 Gt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=n8(l);f>=0&&(He(s,De(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?lE(o,v):Ys(o,c)},enableTextSetter:!0},a8(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=i8(c,S,w),A=T.range,C=A[1]-A[0],D=void 0;if(C>=1){if(C>1&&!v){var I=TT(c,A[0]);u.attr({x:I[0]+x,y:I[1]+b}),o&&(D=h.getRawValue(A[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+x,y:I[1]+b});var L=h.getRawValue(A[0]),P=h.getRawValue(A[1]);o&&(D=OL(i,d,L,P,T.t))}a.lastFrameIndex=A[0]}else{var E=e===1||a.lastFrameIndex>0?A[0]:0,I=TT(c,E);o&&(D=h.getRawValue(E)),u.attr({x:I[0]+x,y:I[1]+b})}if(o){var O=nl(u);typeof O.setLabelText=="function"&&O.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=X6(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=Ni(h.stackedOnCurrent,h.current,i,o,l),v=Ni(h.current,null,i,o,l),g=Ni(h.stackedOnNext,h.next,i,o,l),p=Ni(h.next,null,i,o,l)),bT(v,p)>3e3||f&&bT(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:p}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),Ht(u,y,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Ht(f,{shape:{stackedOnPoints:g}},c),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,T=0;T<m.length;T++){var A=m[T].el,C=m[T].ptIdx*2;A.x=w[C],A.y=w[C+1],A.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ee);const s8=o8;function Of(r,t){return{seriesType:r,plan:ul(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(i){var s=Z(i.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ua(n,s[0])&&(s[0]=u),ua(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&Vn(p*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var x=void 0;if(l===1){var b=f.get(c,_);x=i.dataToPoint(b,null,m)}else y[0]=f.get(c,_),y[1]=f.get(h,_),x=i.dataToPoint(y,null,m);o?(g[S++]=x[0],g[S++]=x[1]):d.setItemLayout(_,x.slice())}o&&d.setLayout("points",g)}}}}}}var l8={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},u8=function(r){return Math.round(r.length/2)};function gE(r){return{seriesType:r,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;nt(a)?d=l8[a]:vt(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,u8))}}}}}function f8(r){r.registerChartView(s8),r.registerSeriesModel(H6),r.registerLayout(Of("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,gE("line"))}var yE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)M(a.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,x=0;x<d.length;x++){var b=d[x].coord,w=x===d.length-1?d[x-1].tickValue+S:d[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-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(le);le.registerClass(yE);const uv=yE;var c8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Ai(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ya(uv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(uv);const h8=c8;var v8=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}(),d8=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new v8},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(e.moveTo(p*o+i,g*o+a),e.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!h)):e.moveTo(p*s+i,g*s+a),e.arc(i,a,s,f,c,!h),e.arc(y*u+i,m*u+a,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&e.arc(i,a,o,c,f,h)},t}(Pt);const fv=d8;function p8(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Hh(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,x=f+h*_(p),b=c+h*S(p),w="left",T="top";switch(s){case"startArc":x=f+(v-l)*_(y),b=c+(v-l)*S(y),w="center",T="top";break;case"insideStartArc":x=f+(v+l)*_(y),b=c+(v+l)*S(y),w="center",T="bottom";break;case"startAngle":x=f+d*_(p)+Mc(p,l+m,!1),b=c+d*S(p)+Dc(p,l+m,!1),w="right",T="middle";break;case"insideStartAngle":x=f+d*_(p)+Mc(p,-l+m,!1),b=c+d*S(p)+Dc(p,-l+m,!1),w="left",T="middle";break;case"middle":x=f+d*_(y),b=c+d*S(y),w="center",T="middle";break;case"endArc":x=f+(h+l)*_(y),b=c+(h+l)*S(y),w="center",T="bottom";break;case"insideEndArc":x=f+(h-l)*_(y),b=c+(h-l)*S(y),w="center",T="top";break;case"endAngle":x=f+d*_(g)+Mc(g,l+m,!0),b=c+d*S(g)+Dc(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":x=f+d*_(g)+Mc(g,-l+m,!0),b=c+d*S(g)+Dc(g,-l+m,!0),w="right",T="middle";break;default:return Hh(n,i,a)}return n=n||{},n.x=x,n.y=b,n.align=w,n.verticalAlign=T,n}}function g8(r,t,e,n){if(Ft(n)){r.setTextConfig({rotation:n});return}else if(Y(t)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Mc(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Dc(r,t,e){return t*Math.cos(r)*(e?1:-1)}function ho(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;Y(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Z(n,function(a){return pn(a,i)})}}var fg=Math.max,cg=Math.min;function y8(r,t){var e=r.getArea&&r.getArea();if(Fo(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var m8=function(r){B(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,i):this._renderNormal(e,n,i,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){ga(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,i,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=e.isAnimationEnabled()?e:null,v=_8(e,u);v&&this._enableRealtimeSort(v,s,i);var d=e.get("clip",!0)||v,p=y8(u,s);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=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function T(D){var I=Ic[u.type](s,D),L=C8(u,c,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=Ic[u.type](s,D,I);if(y&&T(D),!(!s.hasValue(D)||!IT[u.type](L))){var P=!1;d&&(P=AT[u.type](p,L));var E=CT[u.type](e,s,D,L,c,h,f.model,!1,g);v&&(E.forceLabelAnimation=!0),LT(E,s,D,I,L,e,c,u.type==="polar"),b?E.attr({shape:L}):v?MT(v,h,E,L,D,c,!1,!1):oe(E,{shape:L},e,D),s.setItemGraphicEl(D,E),o.add(E),E.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=Ic[u.type](s,D,L);if(y){var E=void 0;x.length===0?E=T(I):(E=x[I],E.useStyle(m.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[D]=E);var O=Ic[u.type](s,D),V=_E(c,O,u);Ht(E,{shape:V},h,D)}var N=l.getItemGraphicEl(I);if(!s.hasValue(D)||!IT[u.type](P)){o.remove(N);return}var G=!1;if(d&&(G=AT[u.type](p,P),G&&o.remove(N)),N?gn(N):N=CT[u.type](e,s,D,P,c,h,f.model,!!N,g),v&&(N.forceLabelAnimation=!0),w){var $=N.getTextContent();if($){var q=nl($);q.prevValue!=null&&(q.prevValue=q.value)}}else LT(N,s,D,L,P,e,c,u.type==="polar");b?N.attr({shape:P}):v?MT(v,h,N,P,D,c,!0,w):Ht(N,{shape:P},e,D,null),s.setItemGraphicEl(D,N),N.ignore=G,o.add(N)}).remove(function(D){var I=l.getItemGraphicEl(D);I&&Ku(I,e,D)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new _t);A.removeAll();for(var C=0;C<S.length;++C)A.add(S[C]);o.add(A),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),RT(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),RT(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&kf(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,i){var a=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=i(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Z(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ku(a,e,St(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ee),AT={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=fg(t.x,r.x),s=cg(t.x+t.width,i),l=fg(t.y,r.y),u=cg(t.y+t.height,a),f=s<o,c=u<l;return t.x=f&&o>i?s:o,t.y=c&&l>a?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=cg(t.r,r.r),a=fg(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},CT={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new Vt({shape:F({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?fv:gr,f=new u({shape:n,z2:1});f.name="item";var c=mE(i);if(f.calculateTextPosition=p8(c,{isRoundCap:u===fv}),a){var h=f.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Ht:oe)(f,{shape:d},a)}return f}};function _8(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function MT(r,t,e,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ht:oe)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?Ht:oe)(e,{shape:u},f,i)}function DT(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var S8=["x","y","width","height"],x8=["cx","cy","r","startAngle","endAngle"],IT={cartesian2d:function(r){return!DT(r,S8)},polar:function(r){return!DT(r,x8)}},Ic={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),i=e?w8(e,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function b8(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function mE(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function LT(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,c=ho(n.getModel("itemStyle"),f,!0);F(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=De(n);He(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:Ys(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,g8(r,g==="outside"?v:g,mE(o),n.get(["label","rotate"]))}PP(p,d,a.getRawValue(e),function(m){return lE(t,m)});var y=n.getModel(["emphasis"]);ue(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Fe(r,n),b8(i)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function w8(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var T8=function(){function r(){}return r}(),PT=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new T8},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(Pt);function RT(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new PT({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var c=new PT({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(i.getVisual("style")),c.style.stroke=null,St(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",ET),c.on("mousemove",ET)),e&&e.push(c)}var ET=F_(function(r){var t=this,e=A8(t,r.offsetX,r.offsetY);St(t).dataIndex=e>=0?e:null},30,!1);function A8(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=a.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function _E(r,t,e){if(Fo(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function C8(r,t,e){var n=r.type==="polar"?gr:Vt;return new n({shape:_E(t,e,r),silent:!0,z2:0})}const M8=m8;function D8(r){r.registerChartView(M8),r.registerSeriesModel(h8),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(xR,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bR("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,gE("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var kT=Math.PI*2,Lc=Math.PI/180;function SE(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xE(r,t){var e=SE(r,t),n=r.get("center"),i=r.get("radius");Y(i)||(i=[0,i]);var a=rt(e.width,t.getWidth()),o=rt(e.height,t.getHeight()),s=Math.min(a,o),l=rt(i[0],s/2),u=rt(i[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else Y(n)||(n=[n,n]),f=rt(n[0],a)+e.x,c=rt(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function I8(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=SE(n,e),s=xE(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*Lc,v=n.get("endAngle"),d=n.get("padAngle")*Lc;v=v==="auto"?h-kT:-v*Lc;var p=n.get("minAngle")*Lc,g=p+d,y=0;i.each(a,function(V){!isNaN(V)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,S=n.get("clockwise"),x=n.get("roseType"),b=n.get("stillShowZeroSum"),w=i.getDataExtent(a);w[0]=0;var T=S?1:-1,A=[h,v],C=T*d/2;v_(A,!S),h=A[0],v=A[1];var D=bE(n);D.startAngle=h,D.endAngle=v,D.clockwise=S;var I=Math.abs(v-h),L=I,P=0,E=h;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(V,N){var G;if(isNaN(V)){i.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:c,r:x?NaN:f});return}x!=="area"?G=m===0&&b?_:V*_:G=I/y,G<g?(G=g,L-=g):P+=V;var $=E+T*G,q=0,Q=0;d>G?(q=E+T*G/2,Q=q):(q=E+C,Q=$-C),i.setItemLayout(N,{angle:G,startAngle:q,endAngle:Q,clockwise:S,cx:l,cy:u,r0:c,r:x?Ut(V,w,[c,f]):f}),E=$}),L<kT&&y)if(L<=.001){var O=I/y;i.each(a,function(V,N){if(!isNaN(V)){var G=i.getItemLayout(N);G.angle=O;var $=0,q=0;O<d?($=h+T*(N+1/2)*O,q=$):($=h+T*N*O+C,q=h+T*(N+1)*O-C),G.startAngle=$,G.endAngle=q}})}else _=L/P,E=h,i.each(a,function(V,N){if(!isNaN(V)){var G=i.getItemLayout(N),$=G.angle===g?g:V*_,q=0,Q=0;$<d?(q=E+T*$/2,Q=q):(q=E+C,Q=E+T*$-C),G.startAngle=q,G.endAngle=Q,E+=T*$}})})}var bE=Nt();function Nf(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var L8=Math.PI/180;function OT(r,t,e,n,i,a,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),x=n+_.len,b=x*x,w=Math.sqrt(Math.abs((1-S*S/y)*b)),T=t+(w+_.len2)*i,A=T-_.label.x,C=_.targetTextWidth-A*i;wE(_,C,!0),_.label.x=T}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?y:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var b=_.label.x-t-_.len2*i,w=n+_.len,T=Math.abs(b)<w?Math.sqrt(x*x/(1-b*b/w/w)):w;S.rB=T,S.maxY=x}S.list.push(_)}f(g),f(y)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}UR(r,l,l+o)&&c(r)}function P8(r,t,e,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;hg(r[h])||(v.x<t?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!hg(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?g=f-o-d.bleedMargin:g=o+i-c-d.bleedMargin:v.x<t?g=v.x-o-d.bleedMargin:g=o+i-v.x-d.bleedMargin,d.targetTextWidth=g,wE(d,g)}}OT(u,t,e,n,1,i,a,o,s,c),OT(l,t,e,n,-1,i,a,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!hg(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,x=d.rect.width+S,b=p[1][0]-p[2][0];y?v.x<t?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+i-d.edgeDistance-x-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=v.y}}}function wE(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||e){var c=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function hg(r){return r.position==="center"}function R8(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*L8,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(b){b.ignore=!0}function d(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),T=w.shape,A=w.getTextContent(),C=w.getTextGuideLine(),D=t.getItemModel(b),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),E=I.get("alignTo"),O=rt(I.get("edgeDistance"),u),V=I.get("bleedMargin"),N=D.getModel("labelLine"),G=N.get("length");G=rt(G,u);var $=N.get("length2");if($=rt($,u),Math.abs(T.endAngle-T.startAngle)<o){M(A.states,v),A.ignore=!0,C&&(M(C.states,v),C.ignore=!0);return}if(d(A)){var q=(T.startAngle+T.endAngle)/2,Q=Math.cos(q),ct=Math.sin(q),ht,gt,Et,U;n=T.cx,i=T.cy;var K=L==="inside"||L==="inner";if(L==="center")ht=T.cx,gt=T.cy,U="center";else{var H=(K?(T.r+T.r0)/2*Q:T.r*Q)+n,tt=(K?(T.r+T.r0)/2*ct:T.r*ct)+i;if(ht=H+Q*3,gt=tt+ct*3,!K){var j=H+Q*(G+l-T.r),ut=tt+ct*(G+l-T.r),R=j+(Q<0?-1:1)*$,k=ut;E==="edge"?ht=Q<0?f+O:f+u-O:ht=R+(Q<0?-P:P),gt=k,Et=[[H,tt],[j,ut],[R,k]]}U=K?"center":E==="edge"?Q>0?"right":"left":Q>0?"left":"right"}var z=Math.PI,X=0,W=I.get("rotate");if(Ft(W))X=W*(z/180);else if(L==="center")X=0;else if(W==="radial"||W===!0){var J=Q<0?-q+z:-q;X=J}else if(W==="tangential"&&L!=="outside"&&L!=="outer"){var ot=Math.atan2(Q,ct);ot<0&&(ot=z*2+ot);var st=ct>0;st&&(ot=z+ot),X=ot-z}if(a=!!X,A.x=ht,A.y=gt,A.rotation=X,A.setStyle({verticalAlign:"middle"}),K){A.setStyle({align:U});var At=A.states.select;At&&(At.x+=A.x,At.y+=A.y)}else{var it=A.getBoundingRect().clone();it.applyTransform(A.getComputedTransform());var et=(A.style.margin||0)+2.1;it.y-=et/2,it.height+=et,e.push({label:A,labelLine:C,position:L,len:G,len2:$,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Ct(Q,ct),linePoints:Et,textAlign:U,labelDistance:P,labelAlignTo:E,edgeDistance:O,bleedMargin:V,rect:it,unconstrainedWidth:it.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:K})}}),!a&&r.get("avoidLabelOverlap")&&P8(e,n,i,l,u,h,f,c);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(M(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var x=g.linePoints;_||!x?(M(m.states,v),m.ignore=!0):(HR(x,g.minTurnAngle),WU(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new Ct(x[0][0],x[0][1])})}}}var E8=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new Gt;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),c=F(ho(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(oe(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,oe(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),oe(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ht(o,{shape:{endAngle:f.endAngle}},s,n))}else gn(o),Ht(o,{shape:c},s,n);o.useStyle(e.getItemVisual(n,"style")),Fe(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=F({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},ho(u.getModel("itemStyle"),f)),F(o.ensureState("select"),{x:p,y:g,shape:ho(l.getModel(["select","itemStyle"]),f)}),F(o.ensureState("blur"),{shape:ho(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&F(m.ensureState("select"),{x:p,y:g}),F(_.ensureState("select"),{x:p,y:g}),ue(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;He(a,De(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=e.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new mr,this.setTextGuideLine(v)),r1(this,n1(o),{stroke:u,opacity:zn(s.get(["lineStyle","opacity"]),f,1)})}},t}(gr),k8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i,a){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=bE(e),v=new gr({shape:F(xE(e,i),h)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new E8(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Ku(p,e,d)}).execute(),R8(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(ee);const O8=k8;function vl(r,t,e){t=Y(t)&&{coordDimensions:t}||F({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Lf(n,t).dimensions,a=new sr(i,r);return a.initData(n,e),a}var N8=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const Vf=N8;var V8=Nt(),B8=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Vf(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return vl(this,{coordDimensions:["value"],encodeDefaulter:bt(R_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=V8(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=ZG(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Mo(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(le);const z8=B8;function G8(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Ft(o)&&!isNaN(o)&&o<0)})}}}function F8(r){r.registerChartView(O8),r.registerSeriesModel(z8),z2("pie",r.registerAction),r.registerLayout(bt(I8,"pie")),r.registerProcessor(Nf("pie")),r.registerProcessor(G8("pie"))}var H8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,n,i){return i.point(n.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"],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:"#212121"}},universalTransition:{divideShape:"clone"}},t}(le);const W8=H8;var TE=4,$8=function(){function r(){}return r}(),U8=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new $8},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&a[0]<TE,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var h=i[c++],v=i[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-a[0]/2,s.y=v-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,n=e.points,i=e.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,h=a[f+1]-l/2;if(e>=c&&n>=h&&e<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<i.length;){var v=i[h++],d=i[h++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),c=Math.max(d,c)}e=this._rect=new Mt(l-o/2,u-s/2,f-l+o,c-u+s)}return e},t}(Pt),Y8=function(){function r(){this.group=new _t}return r.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;e=new Float32Array(e.buffer,a,i)}n.setShape("points",e),n.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],a=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,e,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new U8({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=me(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<TE;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=St(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var c=t.hoverDataIdx;c>=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const Z8=Y8;var X8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,i){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Of("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Z8:new Ef,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ee);const q8=X8;var K8=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Bt);const j8=K8;var zm=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ye).models[0]},t.type="cartesian2dAxis",t}(Bt);_e(zm,Pf);var AE={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},J8=Tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},AE),u1=Tt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},AE),Q8=Tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},u1),tY=pt({logBase:10},u1);const CE={category:J8,value:u1,time:Q8,log:tY};var eY={value:1,category:1,time:1,log:1};function Zs(r,t,e,n){M(eY,function(i,a){var o=Tt(Tt({},CE[a],!0),n,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Ju(this),v=h?ol(f):{},d=c.getTheme();Tt(f,d.get(a+"Axis")),Tt(f,this.getDefaultOption()),f.type=NT(f),h&&la(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Rm.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",NT)}function NT(r){return r.type||(r.data?"category":"value")}var rY=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 Z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),$t(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}();const nY=rY;var Gm=["x","y"];function VT(r){return r.type==="interval"||r.type==="time"}var iY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Gm,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!VT(e)||!VT(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Qs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new Mt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ze(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return ze(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(n[0],n[1])-a+e,l=Math.max(i[0],i[1])-o+e;return new Mt(a,o,s,l)},t}(nY),aY=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(mn);const oY=aY;function Fm(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Re(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function BT(r){return r.get("coordinateSystem")==="cartesian2d"}function zT(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,ye).models[0];t[n]=a}),t}var vg=Math.log;function ME(r,t,e){var n=fa.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=IR(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=vg(r.base);u=[vg(u[0])/h,vg(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=Jp(d),g=u[0]+d*o;else if(c)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Jp(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Jp(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=ce(g-m),p<0&&u[0]>=0?(p=0,g=ce(m)):g>0&&u[1]<=0&&(g=0,p=-ce(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var sY=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Gm,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=kt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Em(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Us(p,d),Em(p)&&(s=v))}f.length&&(s||(s=f.pop(),Us(s.scale,s.model)),M(f,function(g){ME(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){GT(n,"y",o,a)}),M(n.y,function(o){GT(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=be(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=_U(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),lY(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}yt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",ye).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",ye).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,Dt(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(f,c){M(s.y,function(h,v){var d="x"+c+"y"+v,p=new iY(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(dg(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new oY(f,wd(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=h,a._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){M(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(BT(i)){var a=zT(i),o=a.xAxisModel,s=a.yAxisModel;if(!dg(o,e)||!dg(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){M(av(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return M(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);Dt(e,a)<0&&e.push(a),Dt(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(BT(i)){var a=zT(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=Gm,r}();function dg(r,t){return r.getCoordSysModel()===t}function GT(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)FT(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&FT(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function FT(r){return r&&r.type!=="category"&&r.type!=="time"&&mU(r)}function lY(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const uY=sY;var ji=Math.PI,Ao=function(){function r(t,e){this.group=new _t,this.opt=e,this.axisModel=t,pt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _t({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!HT[t]},r.prototype.add=function(t){HT[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var i=AL(e-t),a,o;return Uu(i)?(o=n>0?"top":"bottom",a="center"):Uu(i-ji)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<ji?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),HT={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(ze(s,s,o),ze(l,l,o));var f=F({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Ee({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Hs(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);nt(h)&&(h=[h,h]),(nt(v)||Ft(v))&&(v=[v,v]);var d=zo(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(h[m]!=="none"&&h[m]!=null){var _=me(h[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,x=u?l:s;_.attr({rotation:y.rotate,x:x[0]+S*Math.cos(r.rotation),y:x[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=hY(e,n,t,r),a=dY(e,n,t,r);if(cY(t,a,i),vY(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=WR(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));YR(o)}},axisName:function(r,t,e,n){var i=Re(r.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,$T(a)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*ji/180);var d;$T(a)?h=Ao.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(h=fY(r.rotation,a,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Re(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Gt({x:c[0],y:c[1],rotation:h.rotation,silent:Ao.isLabelSilent(t),style:Qt(s,{text:i,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(No({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=Ao.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,St(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function fY(r,t,e,n){var i=AL(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Uu(i-ji/2)?(o=l?"bottom":"top",a="center"):Uu(i-ji*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<ji*1.5&&i>ji/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function cY(r,t,e){if(!LR(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(Pr(a),Pr(u)):WT(a,o)&&(n?(Pr(o),Pr(f)):(Pr(a),Pr(u))),i===!1?(Pr(s),Pr(c)):WT(l,s)&&(i?(Pr(l),Pr(h)):(Pr(s),Pr(c)))}}function Pr(r){r&&(r.ignore=!0)}function WT(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=qv([]);return Oo(i,i,-r.rotation),e.applyTransform(fi([],i,r.getLocalTransform())),n.applyTransform(fi([],i,t.getLocalTransform())),e.intersect(n)}}function $T(r){return r==="middle"||r==="center"}function DE(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(ze(o,o,t),ze(s,s,t));var f=new Ee({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Hs(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f)}return a}function hY(r,t,e,n){var i=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=DE(u,t.transform,l,pt(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)r.add(f[c]);return f}}function vY(r,t,e,n){var i=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=pt(s.getLineStyle(),pt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=DE(o[f],t.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)r.add(c[h])}}function dY(r,t,e,n){var i=e.axis,a=Re(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Re(n.labelRotate,o.get("rotate"))||0)*ji/180,f=Ao.innerTextLayout(n.rotation,u,n.labelDirection),c=e.getCategories&&e.getCategories(!0),h=[],v=Ao.isLabelSilent(e),d=e.get("triggerEvent");return M(l,function(p,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(c&&c[y]){var x=c[y];yt(x)&&x.textStyle&&(S=new te(x.textStyle,o,e.ecModel))}var b=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(y),T=S.getShallow("align",!0)||f.textAlign,A=xt(S.getShallow("alignMinLabel",!0),T),C=xt(S.getShallow("alignMaxLabel",!0),T),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,I=xt(S.getShallow("verticalAlignMinLabel",!0),D),L=xt(S.getShallow("verticalAlignMaxLabel",!0),D),P=new Gt({x:w,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:Qt(S,{text:m,align:g===0?A:g===l.length-1?C:T,verticalAlign:g===0?I:g===l.length-1?L:D,fill:vt(b)?b(i.type==="category"?_:i.type==="value"?y+"":y,g):b})});if(P.anid="label_"+y,No({el:P,componentModel:e,itemName:m,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:_,tickIndex:g}}),d){var E=Ao.makeAxisEventDataBase(e);E.targetType="axisLabel",E.value=_,E.tickIndex=g,i.type==="category"&&(E.dataIndex=y),St(P).eventData=E}t.add(P),P.updateTransform(),h.push(P),r.add(P),P.decomposeTransform()}),h}}const xi=Ao;function pY(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return gY(e,r,t),e.seriesInvolved&&mY(e,r),e}function gY(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];M(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=sf(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(M(s.getAxes(),bt(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&M(d.baseAxes,bt(p,v?"cross":!0,h)),v&&M(d.otherAxes,bt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Hm(_))){y==null&&(y=_.get("triggerTooltip")),_=g?yY(m,c,i,t,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=sf(m.model),T=y||x||m.type==="category",A=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:x,useHandle:Hm(_),seriesModels:[],linkGroup:null};u[w]=A,r.seriesInvolved=r.seriesInvolved||T;var C=_Y(a,m);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[w]=A,D.mapper=a[C].mapper,A.linkGroup=D}}}})}function yY(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(h){l[h]=mt(o.get(h))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&pt(u,c.textStyle)}}return r.model.getModel("axisPointer",new te(l,e,n))}function mY(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||M(r.coordSysAxesInfo[sf(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function _Y(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(pg(a[n+"AxisId"],e.id)||pg(a[n+"AxisIndex"],e.componentIndex)||pg(a[n+"AxisName"],e.name))return i}}function pg(r,t){return r==="all"||Y(r)&&Dt(r,t)>=0||r===t}function SY(r){var t=f1(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Hm(e);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function f1(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[sf(r)]}function xY(r){var t=f1(r);return t&&t.axisPointerModel}function Hm(r){return!!r.get(["handle","show"])}function sf(r){return r.type+"||"+r.id}var UT={},bY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.axisPointerClass&&SY(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=xY(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){UT[e]=n},t.getAxisPointerClass=function(e){return e&&UT[e]},t.type="axis",t}(fe);const Ho=bY;var Wm=Nt();function IE(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,c=Wm(r).splitAreaColors,h=ft(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Y(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,x=void 0,b=void 0;i.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[d-1].tickValue;w!=null&&h.set(w,v),t.add(new Vt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:pt({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}Wm(r).splitAreaColors=h}}}function LE(r){Wm(r).splitAreaColors=null}var wY=["axisLine","axisTickLabel","axisName"],TY=["splitArea","splitLine","minorSplitLine"],PE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Fm(s,e),u=new xi(e,F({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(Em(h[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));M(wY,u.add,u),this._axisGroup.add(u.getGroup()),M(TY,function(c){e.get([c,"show"])&&AY[c](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||Cf(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){LE(this)},t.type="cartesianAxis",t}(Ho),AY={splitLine:function(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;s=Y(s)?s:[s];for(var f=n.coordinateSystem.getRect(),c=i.isHorizontal(),h=0,v=i.getTicksCoords({tickModel:a}),d=[],p=[],g=o.getLineStyle(),y=0;y<v.length;y++){var m=i.toGlobalCoord(v[y].coord);if(!(y===0&&!l||y===v.length-1&&!u)){var _=v[y].tickValue;c?(d[0]=m,d[1]=f.y,p[0]=m,p[1]=f.y+f.height):(d[0]=f.x,d[1]=m,p[0]=f.x+f.width,p[1]=m);var S=h++%s.length,x=new Ee({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:pt({stroke:s[S]},g),silent:!0});Hs(x.shape,g.lineWidth),t.add(x)}}}},minorSplitLine:function(r,t,e,n){var i=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var f=[],c=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=i.toGlobalCoord(u[v][d].coord);l?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var g=new Ee({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});Hs(g.shape,h.lineWidth),t.add(g)}},splitArea:function(r,t,e,n){IE(r,t,e,n)}},RE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(PE),CY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=RE.type,e}return t.type="yAxis",t}(PE),MY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new Vt({shape:e.coordinateSystem.getRect(),style:pt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(fe),YT={offset:0};function EE(r){r.registerComponentView(MY),r.registerComponentModel(j8),r.registerCoordinateSystem("cartesian2d",uY),Zs(r,"x",zm,YT),Zs(r,"y",zm,YT),r.registerComponentView(RE),r.registerComponentView(CY),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function DY(r){Lt(EE),r.registerSeriesModel(W8),r.registerChartView(q8),r.registerLayout(Of("scatter"))}function IY(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();M(a,function(o,s){e.each(e.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var f=i.dataToPoint(l,s);n[u][s]=ZT(f)?f:XT(i)})}),e.each(function(o){var s=v5(n[o],function(l){return ZT(l)})||XT(i);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function ZT(r){return!isNaN(r[0])&&!isNaN(r[1])}function XT(r){return[r.cx,r.cy]}function LY(r){var t=r.polar;if(t){Y(t)||(t=[t]);var e=[];M(t,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],Y(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}M(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var PY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=cl(h.getItemVisual(v,"symbolSize")),g=me(d,-1,-1,2,2),y=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(h,v,d,p,g,y){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Vo[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,g)):_.setPosition(v[m]),d.add(_))}}function c(h){return Z(h,function(v){return[a.cx,a.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new yr,p=new mr,g={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),oe(d,g,e,h),oe(p,g,e,h);var y=new _t,m=new _t;y.add(p),y.add(d),y.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,h,!1),gn(g),gn(p),Ht(p,m,e),Ht(g,m,e),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(pt(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Fe(p,d,"lineStyle"),Fe(g,d,"areaStyle");var S=d.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,M(["emphasis","select","blur"],function(T){var A=d.getModel([T,"areaStyle"]),C=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(T).ignore=C&&x}),g.useStyle(pt(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=d.getModel("emphasis"),w=b.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof We){var A=T.style;T.useStyle(F({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var C=T.ensureState("emphasis");C.style=mt(w);var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(D==null||isNaN(D))&&(D=""),He(T,De(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),ue(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="radar",t}(ee);const RY=PY;var EY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Vf(at(this.getData,this),at(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return vl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=M2(this,e);return Ie("section",{header:u,sortBlocks:!0,blocks:Z(s,function(c){var h=a.get(a.mapDimension(c.dim),e);return Ie("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(Z(i.dimensions,function(u){return n.mapDimension(u)}),e),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},t.type="series.radar",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}(le);const kY=EY;var zl=CE.value;function Pc(r,t){return pt({show:t},r)}var OY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=Z(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 p=l;d.color!=null&&(p=pt({color:d.color},l));var g=Tt(mt(d),{boundaryGap:e,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(nt(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else vt(f)&&(g.name=f(g.name,g));var m=new te(g,null,this.ecModel);return _e(m,Pf.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Tt({lineStyle:{color:"#bbb"}},zl.axisLine),axisLabel:Pc(zl.axisLabel,!1),axisTick:Pc(zl.axisTick,!1),splitLine:Pc(zl.splitLine,!0),splitArea:Pc(zl.splitArea,!0),indicator:[]},t}(Bt);const NY=OY;var VY=["axisLine","axisTickLabel","axisName"],BY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes(),a=Z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new xi(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(a,function(o){M(VY,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),d=Y(h)?h:[h],p=Y(v)?v:[v],g=[],y=[];function m(E,O,V){var N=V%O.length;return E[N]=E[N]||[],N}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,x=n.cy,b=0;b<_.length;b++){if(f){var w=m(g,d,b);g[w].push(new pa({shape:{cx:S,cy:x,r:_[b].coord}}))}if(c&&b<_.length-1){var w=m(y,p,b);y[w].push(new id({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,A=Z(i,function(E,O){var V=E.getTicksCoords();return T=T==null?V.length-1:Math.min(V.length-1,T),Z(V,function(N){return n.coordToPoint(N.coord,O)})}),C=[],b=0;b<=T;b++){for(var D=[],I=0;I<i.length;I++)D.push(A[I][b]);if(D[0]&&D.push(D[0].slice()),f){var w=m(g,d,b);g[w].push(new mr({shape:{points:D}}))}if(c&&C){var w=m(y,p,b-1);y[w].push(new yr({shape:{points:D.concat(C)}}))}C=D.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();M(y,function(E,O){this.group.add(Hr(E,{style:pt({stroke:"none",fill:p[O%p.length]},P),silent:!0}))},this),M(g,function(E,O){this.group.add(Hr(E,{style:pt({fill:"none",stroke:d[O%d.length]},L),silent:!0}))},this)},t.type="radar",t}(fe);const zY=BY;var GY=function(r){B(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(mn);const FY=GY;var HY=function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Z(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new FY(o,new fa);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var a=Math.atan2(-n,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(a-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight(),o=Math.min(i,a)/2;this.cx=rt(n[0],i),this.cy=rt(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(nt(s)||Ft(s))&&(s=[0,s]),this.r0=rt(s[0],o),this.r=rt(s[1],o),M(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;M(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();M(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new fa;o.setExtent(0,a),o.setInterval(1),M(n,function(s,l){ME(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent("radar",function(i){var a=new r(i,t,e);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},r.dimensions=[],r}();const WY=HY;function $Y(r){r.registerCoordinateSystem("radar",WY),r.registerComponentModel(NY),r.registerComponentView(zY),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function UY(r){Lt($Y),r.registerChartView(RY),r.registerSeriesModel(kY),r.registerLayout(IY),r.registerProcessor(Nf("radar")),r.registerPreprocessor(LY)}var qT="\0_ec_interaction_mutex";function YY(r,t,e){var n=c1(r);n[t]=e}function ZY(r,t,e){var n=c1(r),i=n[t];i===e&&(n[t]=null)}function KT(r,t){return!!c1(r)[t]}function c1(r){return r[qT]||(r[qT]={})}qn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},pe);var XY=function(r){B(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var i=at(n._mousedownHandler,n),a=at(n._mousemoveHandler,n),o=at(n._mouseupHandler,n),s=at(n._mousewheelHandler,n),l=at(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=pt(mt(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",i),e.on("mousemove",a),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!xx(e)){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!gh("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||KT(this._zr,"globalPan"))){var n=e.offsetX,i=e.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&gi(e.event),kE(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){xx(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=gh("zoomOnMouseWheel",e,this._opt),i=gh("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;gg(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(a),h=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);gg(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!KT(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;gg(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Zr);function gg(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(gi(n.event),kE(r,t,e,n,i))}function kE(r,t,e,n,i){i.isAvailableBehavior=at(gh,null,e,n),r.trigger(t,i)}function gh(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}const Bf=XY;function h1(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function v1(r,t,e,n){var i=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(e-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var qY={axisPointer:1,tooltip:1,brush:1};function Ad(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!qY.hasOwnProperty(n.mainType)&&i&&i.model!==e}function OE(r){if(nt(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 yg,cv={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"},jT=kt(cv),hv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},JT=kt(hv),KY=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=OE(t);this._defsUsePending=[];var i=new _t;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),xr(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;QY(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=Cd(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&&(c=VE(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var v=i;i=new _t,i.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Vt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:a}},r.prototype._parseNode=function(t,e,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!a){var f=yg[s];if(f&<(yg,s)){l=f.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});e.add(l)}}var v=QT[s];if(v&<(QT,s)){var d=v.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new Zu({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),jY(n,e);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=function(){yg={g:function(t,e){var n=new _t;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Vt;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new pa;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Ee;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new S_;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),i;n&&(i=rA(n));var a=new yr({shape:{points:i||[]},silent:!0});return Rr(e,a),xr(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,e){var n=t.getAttribute("points"),i;n&&(i=rA(n));var a=new mr({shape:{points:i||[]},silent:!0});return Rr(e,a),xr(t,a,this._defsUsePending,!1,!1),a},image:function(t,e){var n=new We;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new _t;return Rr(e,s),xr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new _t;return Rr(e,s),xr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",i=fP(n);return Rr(e,i),xr(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),QT={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),a=new Af(t,e,n,i);return tA(r,a),eA(r,a),a},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),i=new wP(t,e,n);return tA(r,i),eA(r,i),i}};function tA(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function eA(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};NE(e,a,a);var o=a.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}e=e.nextSibling}}function Rr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),pt(t.__inheritedStyle,r.__inheritedStyle))}function rA(r){for(var t=Cd(r),e=[],n=0;n<t.length;n+=2){var i=parseFloat(t[n]),a=parseFloat(t[n+1]);e.push([i,a])}return e}function xr(r,t,e,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};r.nodeType===1&&(r7(r,t),NE(r,o,s),n||n7(r,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=nA(a,"fill",o.fill,e)),o.stroke!=null&&(a.style.stroke=nA(a,"stroke",o.stroke,e)),M(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),M(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=Z(Cd(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function jY(r,t){var e=t.__selfStyle;if(e){var n=e.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),r.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var JY=/^url\(\s*#(.*?)\)/;function nA(r,t,e,n){var i=e&&e.match(JY);if(i){var a=an(i[1]);n.push([r,t,a]);return}return e==="none"&&(e=null),e}function QY(r,t){for(var e=0;e<t.length;e++){var n=t[e];n[0].style[n[1]]=r[n[2]]}}var t7=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Cd(r){return r.match(t7)||[]}var e7=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,mg=Math.PI/180;function r7(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=[],i=null;e.replace(e7,function(c,h,v){return n.push(h,v),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=Cd(o);switch(i=i||Cr(),s){case"translate":$n(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":n_(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Oo(i,i,-parseFloat(l[0])*mg,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*mg);fi(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*mg);fi(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var iA=/([^\s:;]+)\s*:\s*([^:;]+)/g;function NE(r,t,e){var n=r.getAttribute("style");if(n){iA.lastIndex=0;for(var i;(i=iA.exec(n))!=null;){var a=i[1],o=lt(cv,a)?cv[a]:null;o&&(t[o]=i[2]);var s=lt(hv,a)?hv[a]:null;s&&(e[s]=i[2])}}}function n7(r,t,e){for(var n=0;n<jT.length;n++){var i=jT[n],a=r.getAttribute(i);a!=null&&(t[cv[i]]=a)}for(var n=0;n<JT.length;n++){var i=JT[n],a=r.getAttribute(i);a!=null&&(e[hv[i]]=a)}}function VE(r,t){var e=t.width/r.width,n=t.height/r.height,i=Math.min(e,n);return{scale:i,x:-(r.x+r.width/2)*i+(t.x+t.width/2),y:-(r.y+r.height/2)*i+(t.y+t.height/2)}}function i7(r,t){var e=new KY;return e.parse(r,t)}var a7=ft(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),o7=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=ft(),this._freedGraphics=[],this._mapName=t,this._parsedXML=OE(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=l7(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,n;try{e=t&&i7(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,lr(n!=null)}catch(g){throw new Error(`Invalid svg format |
|
`+g.message)}var i=new _t;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,h=void 0;if(a!=null?(u=0,c=a):s&&(u=s.x,c=s.width),o!=null?(f=0,h=o):s&&(f=s.y,h=s.height),u==null||f==null){var v=n.getBoundingRect();u==null&&(u=v.x,c=v.width),f==null&&(f=v.y,h=v.height)}l=this._boundingRect=new Mt(u,f,c,h)}if(s){var d=VE(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}i.setClipPath(new Vt({shape:l.plain()}));var p=[];return M(e.named,function(g){a7.get(g.svgNodeTagLower)!=null&&(p.push(g),s7(g.el))}),{root:i,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},r}();function s7(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function l7(r){var t=[],e=ft();return M(r,function(n){if(n.namedFrom==null){var i=new AU(n.name,n.el);t.push(i),e.set(n.name,i)}}),{regions:t,regionsMap:e}}var $m=[126,25],aA="南海诸岛",Ya=[[[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 Wa=0;Wa<Ya.length;Wa++)for(var is=0;is<Ya[Wa].length;is++)Ya[Wa][is][0]/=10.5,Ya[Wa][is][1]/=-10.5/.75,Ya[Wa][is][0]+=$m[0],Ya[Wa][is][1]+=$m[1];function u7(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===aA)return;t.push(new RR(aA,Z(Ya,function(n){return{type:"polygon",exterior:n}}),$m))}}var f7={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function c7(r,t){if(r==="china"){var e=f7[t.name];if(e){var n=t.getCenter();n[0]+=e[0]/10.5,n[1]+=-e[1]/(10.5/.75),t.setCenter(n)}}}var h7=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function v7(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:h7[0]})}var d7="name",p7=function(){function r(t,e,n){this.type="geoJSON",this._parsedMap=ft(),this._mapName=t,this._specialAreas=n,this._geoJSON=y7(e)}return r.prototype.load=function(t,e){e=e||d7;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:g7(i)})}var a=ft(),o=[];return M(n.regions,function(s){var l=s.name;t&<(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Mt(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(t){var e=this._mapName,n=this._geoJSON,i;try{i=n?MU(n,t):[]}catch(a){throw new Error(`Invalid geoJson format |
|
`+a.message)}return u7(e,i),M(i,function(a){var o=a.name;c7(e,a),v7(e,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function g7(r){for(var t,e=0;e<r.length;e++){var n=r[e].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function y7(r){return nt(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Gl=ft();const bi={registerMap:function(r,t,e){if(t.svg){var n=new o7(r,t.svg);Gl.set(r,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?e=t.specialAreas:i=t;var n=new p7(r,i,e);Gl.set(r,n)}},getGeoResource:function(r){return Gl.get(r)},getMapForUser:function(r){var t=Gl.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var n=Gl.get(r);if(n)return n.load(t,e)}};var d1=["rect","circle","line","ellipse","polygon","polyline","path"],m7=ft(d1),_7=ft(d1.concat(["g"])),S7=ft(d1.concat(["g"])),BE=Nt();function Rc(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function oA(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var x7=function(){function r(t){var e=new _t;this.uid=il("ec_map_draw"),this._controller=new Bf(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new _t),e.add(this._svgGroup=new _t)}return r.prototype.draw=function(t,e,n,i,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,f=this.group,c=l.getTransformInfo(),h=c.raw,v=c.roam,d=!u.childAt(0)||a;d?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Ht(f,v,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,u,n,i)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(v,d){return d&&(v=d(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function c(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],p);y&&d.push(y)}return d}function h(v){return{shape:{points:c(v)}}}i.removeAll(),M(t.geo.regions,function(v){var d=v.name,p=e.get(d),g=n.get(d)||{},y=g.dataIdx,m=g.regionModel;if(!p){p=e.set(d,new _t),i.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(p.silent=_),n.set(d,{dataIdx:y,regionModel:m})}var S=[],x=[];M(v.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=hA(A,u)),M(A,function(D){S.push(new yr(h(D)))})}else{var C=T.points;u&&(C=hA(C,u,!0)),M(C,function(D){x.push(new mr(h(D)))})}});var b=f(v.getCenter(),l&&l.project);function w(T,A){if(T.length){var C=new b_({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(C),sA(t,C,y,m),lA(t,C,d,m,o,y,b),A&&(oA(C),M(C.states,oA))}}w(S),w(x,!0)}),e.each(function(v,d){var p=n.get(d),g=p.dataIdx,y=p.regionModel;uA(t,v,d,y,o,g),fA(t,v,d,y,o),cA(t,v,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=ft(),a=!1;M(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,f=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);m7.get(f)!=null&&c instanceof Yr&&sA(t,c,h,v),c instanceof Yr&&(c.culling=!0);var d=v.get("silent",!0);if(d!=null&&(c.silent=d),c.z2EmphasisLift=0,!o.namedFrom&&(S7.get(f)!=null&&lA(t,c,s,v,l,h,null),uA(t,c,s,v,l,h),fA(t,c,s,v,l),_7.get(f)!=null)){var p=cA(t,c,s,v,l);p==="self"&&(a=!0);var g=i.get(s)||i.set(s,[]);g.push(c)}},this),this._enableBlurEntireSVG(a,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Lo(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var n=e.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(t);return a?[a]:[]}}else if(n.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=bi.getGeoResource(t);if(e&&e.type==="geoSVG"){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=bi.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,h1(o,u.dx,u.dy),n.dispatchAction(F(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,v1(o,u.scale,u.originX,u.originY),n.dispatchAction(F(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,f,c){return i.containPoint([f,c])&&!Ad(u,n,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=BE(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,n,i){var a=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){a._mouseDownFlag=!0}),e.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},r}();function sA(r,t,e,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Rc(i),u=Rc(a),f=Rc(s),c=Rc(o),h=r.data;if(h){var v=h.getItemVisual(e,"style"),d=h.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=$s(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=c,Lo(t)}function lA(r,t,e,n,i,a,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),f=s&&s.getItemLayout(a);if(l||u||f&&f.showLabel){var c=l?e:a,h=void 0;(!s||a>=0)&&(h=i);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;He(t,De(n),{labelFetcher:h,labelDataIndex:c,defaultText:e},v);var d=t.getTextContent();if(d&&(BE(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function uA(r,t,e,n,i,a){r.data?r.data.setItemGraphicEl(a,t):St(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:e,region:n&&n.option||{}}}function fA(r,t,e,n,i){r.data||No({el:t,componentModel:i,itemName:e,itemTooltipOption:n.get("tooltip")})}function cA(r,t,e,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return ue(t,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&b3(t,i,e),o}function hA(r,t,e){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),M(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(),n}const zE=x7;var b7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new zE(i);o.add(s.group),s.draw(e,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(e,n,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,n,i){var a=e.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,c=u.offset,h=new pa({style:{fill:e.getData().getVisual("style").fill},shape:{cx:f[0]+c*9,cy:f[1],r:3},silent:!0,z2:8+(c?0:el+1)});if(!c){var v=e.mainSeries.getData(),d=a.getName(l),p=v.indexOfName(d),g=a.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(p);He(h,De(g),{labelFetcher:{getFormattedLabel:function(_,S){return e.getFormattedLabel(p,S)}},defaultText:d}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){$h(h,_)}}o.add(h)}}})},t.type="map",t}(ee);const w7=b7;var T7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var n=vl(this,{coordDimensions:["value"],encodeDefaulter:bt(R_,this)}),i=ft(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,o)}var u=bi.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return M(u.regions,function(f){var c=f.name,h=i.get(c),v=f.properties&&f.properties.echartsStyle,d;h==null?(d={name:c},a.push(d)):d=n.getRawDataItem(h),v&&Tt(d,v)}),n.appendData(a),n},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var n=this.getData();return n.get(n.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var n=this.getData();return n.getItemModel(n.indexOfName(e))},t.prototype.formatTooltip=function(e,n,i){for(var a=this.getData(),o=this.getRawValue(e),s=a.getName(e),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var c=l[f].originalData.indexOfName(s),h=a.mapDimension("value");isNaN(l[f].originalData.get(h,c))||u.push(l[f].name)}return Ie("section",{header:u.join(", "),noHeader:!u.length,blocks:[Ie("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var n=e.icon||"roundRect",i=me(n,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return i.setStyle(e.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(le);const A7=T7;function C7(r,t){var e={};return M(r,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(n,i){for(var a="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=e[a].length,f=0;f<u;f++)s=Math.min(s,e[a][f]),l=Math.max(l,e[a][f]),o+=e[a][f];var c;return t==="min"?c=s:t==="max"?c=l:t==="average"?c=o/u:c=o,u===0?NaN:c})}function M7(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),M(t,function(e,n){for(var i=C7(Z(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(var a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=a===0&&!e[a].getHostGeoModel(),e[a].setData(i.cloneShallow()),e[a].mainSeries=e[0]})}function D7(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getMapType();if(!(e.getHostGeoModel()||t[n])){var i={};M(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var c=l.getName(f),h=s.getRegion(c);if(!(!h||isNaN(u))){var v=i[c]||0,d=s.dataToPoint(h.getCenter());i[c]=v+1,l.setItemLayout(f,{point:d,offset:v})}})});var a=e.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),t[n]=!0}})}var vA=ze,I7=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new si,n._rawTransformable=new si,n.name=e,n}return t.prototype.setBoundingRect=function(e,n,i,a){return this._rect=new Mt(e,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,n,i,a){this._transformTo(e,n,i,a),this._viewRect=new Mt(e,n,i,a)},t.prototype._transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Mt(e,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,n){e&&(this._center=[rt(e[0],n.getWidth()),rt(e[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var n=this.zoomLimit;n&&(n.max!=null&&(e=Math.min(n.max,e)),n.min!=null&&(e=Math.max(n.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),n=e.x+e.width/2,i=e.y+e.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=ze([],a,e),i=ze([],i,e),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,n=this._rawTransformable;n.parent=e,e.updateTransform(),n.updateTransform(),r_(this.transform||(this.transform=[]),n.transform||Cr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Qs(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,n=this._roamTransformable,i=new si;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?vA(i,e,a):rr(i,e)},t.prototype.pointToData=function(e){var n=this.invTransform;return n?vA([],e,n):[e[0],e[1]]},t.prototype.convertToPixel=function(e,n,i){var a=dA(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,n,i){var a=dA(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(si);function dA(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const zf=I7;var L7={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},GE=["lng","lat"],FE=function(r){B(t,r);function t(e,n,i){var a=r.call(this,e)||this;a.dimensions=GE,a.type="geo",a._nameCoordMap=ft(),a.map=n;var o=i.projection,s=bi.load(n,i.nameMap,i.nameProperty),l=bi.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,f=L7[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var c;if(o)for(var h=0;h<u.length;h++){var v=u[h].getBoundingRect(o);c=c||v.clone(),c.union(v)}else c=s.boundingRect;return a.setBoundingRect(c.x,c.y,c.width,c.height),a.aspectScale=o?1:xt(i.aspectScale,f.aspectScale),a._invertLongitute=o?!1:f.invertLongitute,a}return t.prototype._transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Mt(e,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(e))return n[i]}},t.prototype.addGeoCoord=function(e,n){this._nameCoordMap.set(e,n)},t.prototype.getGeoCoord=function(e){var n=this._regionsMap.get(e);return this._nameCoordMap.get(e)||n&&n.getCenter()},t.prototype.dataToPoint=function(e,n,i){if(nt(e)&&(e=this.getGeoCoord(e)),e){var a=this.projection;return a&&(e=a.project(e)),e&&this.projectedToPoint(e,n,i)}},t.prototype.pointToData=function(e){var n=this.projection;return n&&(e=n.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,n,i){return r.prototype.dataToPoint.call(this,e,n,i)},t.prototype.convertToPixel=function(e,n,i){var a=pA(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,n,i){var a=pA(n);return a===this?a.pointToData(i):null},t}(zf);_e(FE,zf);function pA(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",ye).models[0]||{}).coordinateSystem:null}const gA=FE;function yA(r,t){var e=r.get("boundingCoords");if(e!=null){var n=e[0],i=e[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var f=function(b,w,T,A){for(var C=T-b,D=A-w,I=0;I<=100;I++){var L=I/100,P=a.project([b+C*L,w+D*L]);Yi(n,n,P),Zi(i,i,P)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var c=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),d=t.getWidth(),p=t.getHeight(),g=c.width/c.height*this.aspectScale,y=!1,m,_;h&&v&&(m=[rt(h[0],d),rt(h[1],p)],_=rt(v,Math.min(d,p)),!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=be(x,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function P7(r,t){M(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var R7=function(){function r(){this.dimensions=GE}return r.prototype.create=function(t,e){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new gA(l+s,l,F({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=yA,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),M(a,function(o,s){var l=Z(o,function(f){return f.get("nameMap")}),u=new gA(s,s,F({nameMap:J0(l)},i(o[0])));u.zoomLimit=Re.apply(null,Z(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=yA,u.resize(o[0],e),M(o,function(f){f.coordinateSystem=u,P7(u,f)})}),n},r.prototype.getFilledRegions=function(t,e,n,i){for(var a=(t||[]).slice(),o=ft(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=bi.load(e,n,i);return M(l.regions,function(u){var f=u.name,c=o.get(f),h=u.properties&&u.properties.echartsStyle;c||(c={name:f},a.push(c)),h&&Tt(c,h)}),a},r}(),E7=new R7;const HE=E7;var k7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,i){var a=bi.getGeoResource(e.map);if(a&&a.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,i),Mo(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,n=this.option;n.regions=HE.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=Wn(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new te(o,e,e.ecModel)),o.selected&&(i[s]=!0)),a},ft()),n.selectedMap||(n.selectedMap=i)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new te(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,n){var i=this.getRegionModel(e),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:e};if(vt(a))return o.status=n,a(o);if(nt(a))return a.replace("{a}",e!=null?e:"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[e]=!0}},t.prototype.unSelect=function(e){var n=this.option.selectedMap;n&&(n[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var n=this.option.selectedMap;return!!(n&&n[e])},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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Bt);const O7=k7;function mA(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function p1(r,t,e,n){var i=r.getZoom(),a=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(mA(r,s),n)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}r.scaleX*=o,r.scaleY*=o;var f=(t.originX-r.x)*(o-1),c=(t.originY-r.y)*(o-1);r.x-=f,r.y-=c,r.updateTransform(),r.setCenter(mA(r,s),n),r.setZoom(o*i)}return{center:r.getCenter(),zoom:r.getZoom()}}var N7=function(r){B(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,n){this._api=n},t.prototype.render=function(e,n,i,a){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new zE(i));var o=this._mapDraw;o.draw(e,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,n,i)},t.prototype._handleRegionClick=function(e){var n;uo(e.target,function(i){return(n=St(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(e,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=St(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.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}(fe);const V7=N7;function B7(r,t,e){bi.registerMap(r,t,e)}function WE(r){r.registerCoordinateSystem("geo",HE),r.registerComponentModel(O7),r.registerComponentView(V7),r.registerImpl("registerMap",B7),r.registerImpl("getMap",function(e){return bi.getMapForUser(e)});function t(e,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[e](i.name);var u=l.coordinateSystem;M(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];M(o,function(c,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:i.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,n,i){var a=e.componentType||"series";n.eachComponent({mainType:a,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=p1(s,e,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&M(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function z7(r){Lt(WE),r.registerChartView(w7),r.registerSeriesModel(A7),r.registerLayout(D7),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,M7),z2("map",r.registerAction)}function G7(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],n,i;n=e.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function F7(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,i=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){$7(r);var a=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+t(r,i),r.hierNode.modifier=r.hierNode.prelim-a):r.hierNode.prelim=a}else i&&(r.hierNode.prelim=i.hierNode.prelim+t(r,i));r.parentNode.hierNode.defaultAncestor=U7(r,i,r.parentNode.hierNode.defaultAncestor||n[0],t)}function H7(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function _A(r){return arguments.length?r:X7}function ou(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function W7(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function $7(r){for(var t=r.children,e=t.length,n=0,i=0;--e>=0;){var a=t[e];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function U7(r,t,e,n){if(t){for(var i=r,a=r,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=_g(s),a=Sg(a),s&&a;){i=_g(i),o=Sg(o),i.hierNode.ancestor=r;var h=s.hierNode.prelim+c-a.hierNode.prelim-u+n(s,a);h>0&&(Z7(Y7(s,r,e),r,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,f+=o.hierNode.modifier}s&&!_g(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=c-l),a&&!Sg(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-f,e=r)}return e}function _g(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Sg(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function Y7(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function Z7(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function X7(r,t){return r.parentNode===t.parentNode?1:2}var q7=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),K7=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new q7},t.prototype.buildPath=function(e,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,h=rt(n.forkPosition,1),v=[];v[f]=o[f],v[c]=o[c]+(l[c]-o[c])*h,e.moveTo(o[0],o[1]),e.lineTo(v[0],v[1]),e.moveTo(s[0],s[1]),v[f]=s[f],e.lineTo(v[0],v[1]),v[f]=l[f],e.lineTo(v[0],v[1]),e.lineTo(l[0],l[1]);for(var d=1;d<a-1;d++){var p=i[d];e.moveTo(p[0],p[1]),v[f]=p[f],e.lineTo(v[0],v[1])}},t}(Pt),j7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new _t,e}return t.prototype.init=function(e,n){this._controller=new Bf(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,n,i){var a=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,i),this._updateController(e,n,i);var u=this._data;a.diff(u).add(function(f){SA(a,f)&&xA(a,f,null,s,e)}).update(function(f,c){var h=u.getItemGraphicEl(c);if(!SA(a,f)){h&&wA(u,c,h,s,e);return}xA(a,f,h,s,e)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&wA(u,f,c,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:c})})}),this._data=a},t.prototype._updateViewCoordSys=function(e,n){var i=e.getData(),a=[];i.each(function(c){var h=i.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&a.push([+h.x,+h.y])});var o=[],s=[];ed(a,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=new zf;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(e.get("center"),n),f.setZoom(e.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!Ad(u,i,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){h1(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){v1(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(e),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var n=e.getData(),i=this._getNodeGlobalScale(e);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(e){var n=e.coordinateSystem;if(n.type!=="view")return 1;var i=this._nodeScaleRatio,a=n.scaleX||1,o=n.getZoom(),s=(o-1)*i+1;return s/a},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(ee);function SA(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function xA(r,t,e,n,i){var a=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",f=r.tree.root,c=o.parentNode===f?o:o.parentNode||o,h=r.getItemGraphicEl(c.dataIndex),v=c.getLayout(),d=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,p=o.getLayout();a?(e=new Rf(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=d.x,e.y=d.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=p.rawX,e.__radialRawY=p.rawY,n.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,Ht(e,{x:p.x,y:p.y},i);var g=e.getSymbolPath();if(i.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(p.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(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<m.x,x&&(S=S-Math.PI)):(x=p.x>m.x,x||(S=S-Math.PI));var w=x?"left":"right",T=s.getModel("label"),A=T.get("rotate"),C=A*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:A==null?-S:C,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Fu(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(St(e).focus=L),J7(i,o,f,e,d,v,p,n),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var E=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===Tf||$h(e.__edge,P)}})}function J7(r,t,e,n,i,a,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=n.__edge=new ad({shape:Um(f,c,h,i,i)})),Ht(p,{shape:Um(f,c,h,a,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])}p||(p=n.__edge=new K7({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:v}})),Ht(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(pt({strokeNoScale:!0,fill:null},d)),Fe(p,l,"lineStyle"),Lo(p),s.add(p))}function bA(r,t,e,n,i){var a=t.tree.root,o=$E(a,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var f=t.getItemGraphicEl(s.dataIndex),c=f.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),v=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);h&&(v==="curve"?sa(h,{shape:Um(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){e.remove(h)},removeOpt:i}):v==="polyline"&&n.get("layout")==="orthogonal"&&sa(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){e.remove(h)},removeOpt:i}))}}function $E(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,n;n=e.getLayout(),n==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:n}}function wA(r,t,e,n,i){var a=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=$E(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};sa(e,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){bA(u,r,n,i,l)}),bA(a,r,n,i,l)}function Um(r,t,e,n,i){var a,o,s,l,u,f,c,h;if(r==="radial"){u=n.rawX,c=n.rawY,f=i.rawX,h=i.rawY;var v=ou(u,c),d=ou(u,c+(h-c)*e),p=ou(f,h+(c-h)*e),g=ou(f,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,c=n.y,f=i.x,h=i.y,(t==="LR"||t==="RL")&&(a=u+(f-u)*e,o=c,s=f+(u-f)*e,l=h),(t==="TB"||t==="BT")&&(a=u,o=c+(h-c)*e,s=f,l=h+(c-h)*e);return{x1:u,y1:c,x2:f,y2:h,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}const Q7=j7;var Ur=Nt();function UE(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,YE(t,e,r),M(e,function(n){M(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,bt(t9,r))})}),t.wrapMethod("cloneShallow",bt(r9,r)),M(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,bt(e9,r))}),lr(e[t.dataType]===t)}function t9(r,t){if(a9(this)){var e=F({},Ur(this).datas);e[this.dataType]=t,YE(t,e,r)}else g1(t,this.dataType,Ur(this).mainData,r);return t}function e9(r,t){return r.struct&&r.struct.update(),t}function r9(r,t){return M(Ur(t).datas,function(e,n){e!==t&&g1(e.cloneShallow(),n,t,r)}),t}function n9(r){var t=Ur(this).mainData;return r==null||t==null?t:Ur(t).datas[r]}function i9(){var r=Ur(this).mainData;return r==null?[{data:r}]:Z(kt(Ur(r).datas),function(t){return{type:t,data:Ur(r).datas[t]}})}function a9(r){return Ur(r).mainData===r}function YE(r,t,e){Ur(r).datas={},M(t,function(n,i){g1(n,i,r,e)})}function g1(r,t,e,n){Ur(e).datas[t]=r,Ur(r).mainData=e,r.dataType=t,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=r),r.getLinkedData=n9,r.getLinkedDataAll=i9}var o9=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,n){vt(t)&&(n=e,e=t,t=null),t=t||{},nt(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=e.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,e,n);i==="postorder"&&e.call(n,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var a=n[e].getNodeById(t);if(a)return a}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var a=n[e].contains(t);if(a)return a}},r.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.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,n=e.data.getItemModel(this.dataIndex);return n.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}(),s9=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},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,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,n){var i=new r(e),a=[],o=1;s(t);function s(f,c){var h=f.value;o=Math.max(o,Y(h)?h.length:1),a.push(f);var v=new o9(xe(f.name,""),i);c?l9(v,c):i.root=v,i._nodes.push(v);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}i.root.updateDepthAndHeight(0);var l=Lf(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new sr(l,e);return u.initData(a),n&&n(u),UE({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},r}();function l9(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}const y1=s9;function lf(r,t,e){if(r&&Dt(t,r.type)>=0){var n=e.getData().tree.root,i=r.targetNode;if(nt(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=r.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function ZE(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function m1(r,t){var e=ZE(r);return Dt(e,t)>=0}function Md(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var u9=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},i=e.leaves||{},a=new te(i,this,this.ecModel),o=y1.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.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.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Ie("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Md(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(le);const f9=u9;function c9(r,t,e){for(var n=[r],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)t(a,e)}function Fl(r,t){for(var e=[r],n;n=e.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)e.push(i[a])}}function h9(r,t){r.eachSeriesByType("tree",function(e){v9(e,t)})}function v9(r,t){var e=W7(r,t);r.layoutInfo=e;var n=r.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(e.height,e.width)/2,o=_A(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(i=e.width,a=e.height,o=_A());var s=r.getData().tree.root,l=s.children[0];if(l){G7(s),c9(l,F7,o),s.hierNode.modifier=-l.hierNode.prelim,Fl(l,H7);var u=l,f=l,c=l;Fl(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>f.getLayout().x&&(f=_),_.depth>c.depth&&(c=_)});var h=u===f?1:o(u,f)/2,v=h-u.getLayout().x,d=0,p=0,g=0,y=0;if(n==="radial")d=i/(f.getLayout().x+h+v),p=a/(c.depth-1||1),Fl(l,function(_){g=(_.getLayout().x+v)*d,y=(_.depth-1)*p;var S=ou(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),Fl(l,function(_){y=(_.getLayout().x+v)*p,g=m==="LR"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=i/(f.getLayout().x+h+v),p=a/(c.depth-1||1),Fl(l,function(_){g=(_.getLayout().x+v)*d,y=m==="TB"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function d9(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(i.dataIndex,"style");F(s,o)})})}function p9(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=p1(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function g9(r){r.registerChartView(Q7),r.registerSeriesModel(f9),r.registerLayout(h9),r.registerVisual(d9),p9(r)}var TA=["treemapZoomToNode","treemapRender","treemapMove"];function y9(r){for(var t=0;t<TA.length;t++)r.registerAction({type:TA[t],update:"updateView"},pe);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"treemap",query:e},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=lf(e,s,a);if(l){var u=a.getViewRoot();u&&(e.direction=m1(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function XE(r){var t=r.getData(),e=t.tree,n={};e.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=Sm(r.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var m9=function(r){B(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,n){var i={name:e.name,children:e.data};qE(i);var a=e.levels||[],o=this.designatedVisualItemStyle={},s=new te({itemStyle:o},this,n);a=e.levels=_9(a,n);var l=Z(a||[],function(c){return new te(c,s,n)},this),u=y1.createTree(i,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return Ie("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Md(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ft(),this._idIndexMapCount=0);var i=n.get(e);return i==null&&n.set(e,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){XE(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(le);function qE(r){var t=0;M(r.children,function(n){qE(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var e=r.value;Y(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Y(r.value)?r.value[0]=e:r.value=e}function _9(r,t){var e=Zt(t.get("color")),n=Zt(t.get(["aria","decal","decals"]));if(e){r=r||[];var i,a;M(r,function(s){var l=new te(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(a=!0)});var o=r[0]||(r[0]={});return i||(o.color=e.slice()),!a&&n&&(o.decal=n.slice()),r}}const S9=m9;var x9=8,AA=8,xg=5,b9=function(){function r(t){this.group=new _t,t.add(this.group)}return r.prototype.render=function(t,e,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(t,c,s,l,u,f,i),dd(o,c.pos,c.box)}},r.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var a=xe(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+x9*2,e.emptyItemWidth);e.totalWidth+=s+AA,e.renderList.push({node:i,text:a,width:s})}},r.prototype._renderContent=function(t,e,n,i,a,o,s){for(var l=0,u=e.emptyItemWidth,f=t.get(["breadcrumb","height"]),c=PH(e.pos,e.box),h=e.totalWidth,v=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],y=g.node,m=g.width,_=g.text;h>c.width&&(h-=m-u,m=u,_=null);var S=new yr({shape:{points:w9(l,0,m,f,p===v.length-1,p===0)},style:pt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gt({style:Qt(a,{text:_})}),textConfig:{position:"inside"},z2:el*1e4,onclick:bt(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Qt(o,{text:_}),S.ensureState("emphasis").style=d,ue(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),T9(S,t,y),l+=m+AA}},r.prototype.remove=function(){this.group.removeAll()},r}();function w9(r,t,e,n,i,a){var o=[[i?r:r-xg,t],[r+e,t],[r+e,t+n],[i?r:r-xg,t+n]];return!a&&o.splice(2,0,[r+e+xg,t+n/2]),!i&&o.push([r,t+n/2]),o}function T9(r,t,e){St(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&&Md(e,t)}}const A9=b9;var C9=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:a}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function M9(){return new C9}var Ym=_t,CA=Vt,MA=3,DA="label",IA="upperLabel",D9=el*10,I9=el*2,L9=el*3,Za=Io([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),LA=function(r){var t=Za(r);return t.stroke=t.fill=t.lineWidth=null,t},vv=Nt(),P9=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=Hl(),e}return t.prototype.render=function(e,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(Dt(o,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=lf(a,s,e),u=a&&a.type,f=e.layoutInfo,c=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,d=this._giveContainerGroup(f),p=e.get("animation"),g=this._doRender(d,e,v);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,e,v):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(e,i,l)}},t.prototype._giveContainerGroup=function(e){var n=this._containerGroup;return n||(n=this._containerGroup=new Ym,this._initEvents(n),this.group.add(n)),n.x=e.x,n.y=e.y,n},t.prototype._doRender=function(e,n,i){var a=n.getData().tree,o=this._oldTree,s=Hl(),l=Hl(),u=this._storage,f=[];function c(m,_,S,x){return R9(n,l,u,i,s,f,m,_,S,x)}p(a.root?[a.root]:[],o&&o.root?[o.root]:[],e,a===o||!o,0);var h=g(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,d=a.root.getLayout();d.width===v.width&&d.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:y};function p(m,_,S,x,b){x?(_=m,M(m,function(A,C){!A.isRemoved()&&T(C,C)})):new Si(_,m,w,w).add(T).update(T).remove(bt(T,null)).execute();function w(A){return A.getId()}function T(A,C){var D=A!=null?m[A]:null,I=C!=null?_[C]:null,L=c(D,I,S,b);L&&p(D&&D.viewChildren||[],I&&I.viewChildren||[],L,x,b+1)}}function g(m){var _=Hl();return m&&M(m,function(S,x){var b=_[x];M(S,function(w){w&&(b.push(w),vv(w).willDelete=!0)})}),_}function y(){M(h,function(m){M(m,function(_){_.parent&&_.parent.remove(_)})}),M(f,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(e,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(vt(o)?0:o)||0,u=(vt(s)?null:s)||"cubicOut",f=M9();M(n.willDeleteEls,function(c,h){M(c,function(v,d){if(!v.invisible){var p=v.parent,g,y=vv(p);if(a&&a.direction==="drillDown")g=p===a.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(v,g,l,0,u)}})}),M(this._storage,function(c,h){M(c,function(v,d){var p=n.lastsForAnimation[h][d],g={};p&&(v instanceof _t?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=F({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),f.add(v,g,l,0,u))})},this),this._state="animating",f.finished(at(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(e){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new Bf(e.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",at(this._onPan,this)),n.on("zoom",at(this._onZoom,this)));var a=new Mt(0,0,e.getWidth(),e.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>MA||Math.abs(e.dy)>MA)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var n=e.originX,i=e.originY,a=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Mt(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var c=f.zoom=f.zoom||1;if(c*=a,u){var h=u.min||0,v=u.max||1/0;c=Math.max(Math.min(v,c),h)}var d=c/f.zoom;f.zoom=c;var p=this.seriesModel.layoutInfo;n-=p.x,i-=p.y;var g=Cr();$n(g,g,[-n,-i]),n_(g,g,[d,d]),$n(g,g,[n,i]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Kh(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,i){var a=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new A9(this.group))).render(e,n,i.node,function(o){a._state!=="animating"&&(m1(e.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Hl(),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,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(ee);function Hl(){return{nodeGroup:[],background:[],content:[]}}function R9(r,t,e,n,i,a,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,d=f.height,p=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"]),T=h.getModel(["blur","itemStyle"]),A=h.getModel(["select","itemStyle"]),C=b.get("borderRadius")||0,D=gt("nodeGroup",Ym);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),vv(D).nodeWidth=v,vv(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=gt("background",CA,u,I9);I&&$(D,I,x&&f.upperLabelHeight);var L=h.getModel("emphasis"),P=L.get("focus"),E=L.get("blurScope"),O=L.get("disabled"),V=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)qu(D)&&so(D,!1),I&&(so(I,!O),c.setItemGraphicEl(o.dataIndex,I),hm(I,V,E));else{var N=gt("content",CA,u,L9);N&&q(D,N),I.disableMorphing=!0,I&&qu(I)&&so(I,!1),so(D,!O),c.setItemGraphicEl(o.dataIndex,D);var G=h.getShallow("cursor");G&&N.attr("cursor",G),hm(D,V,E)}return D;function $(K,H,tt){var j=St(H);if(j.dataIndex=o.dataIndex,j.seriesIndex=r.seriesIndex,H.setShape({x:0,y:0,width:v,height:d,r:C}),g)Q(H);else{H.invisible=!1;var ut=o.getVisual("style"),R=ut.stroke,k=LA(b);k.fill=R;var z=Za(w);z.fill=w.get("borderColor");var X=Za(T);X.fill=T.get("borderColor");var W=Za(A);if(W.fill=A.get("borderColor"),tt){var J=v-2*p;ct(H,R,ut.opacity,{x:p,y:0,width:J,height:S})}else H.removeTextContent();H.setStyle(k),H.ensureState("emphasis").style=z,H.ensureState("blur").style=X,H.ensureState("select").style=W,Lo(H)}K.add(H)}function q(K,H){var tt=St(H);tt.dataIndex=o.dataIndex,tt.seriesIndex=r.seriesIndex;var j=Math.max(v-2*p,0),ut=Math.max(d-2*p,0);if(H.culling=!0,H.setShape({x:p,y:p,width:j,height:ut,r:C}),g)Q(H);else{H.invisible=!1;var R=o.getVisual("style"),k=R.fill,z=LA(b);z.fill=k,z.decal=R.decal;var X=Za(w),W=Za(T),J=Za(A);ct(H,k,R.opacity,null),H.setStyle(z),H.ensureState("emphasis").style=X,H.ensureState("blur").style=W,H.ensureState("select").style=J,Lo(H)}K.add(H)}function Q(K){!K.invisible&&a.push(K)}function ct(K,H,tt,j){var ut=h.getModel(j?IA:DA),R=xe(h.get("name"),null),k=ut.getShallow("show");He(K,De(h,j?IA:DA),{defaultText:k?R:null,inheritColor:H,defaultOpacity:tt,labelFetcher:r,labelDataIndex:o.dataIndex});var z=K.getTextContent();if(z){var X=z.style,W=t_(X.padding||0);j&&(K.setTextConfig({layoutRect:j}),z.disableLabelLayout=!0),z.beforeUpdate=function(){var ot=Math.max((j?j.width:K.shape.width)-W[1]-W[3],0),st=Math.max((j?j.height:K.shape.height)-W[0]-W[2],0);(X.width!==ot||X.height!==st)&&z.setStyle({width:ot,height:st})},X.truncateMinChar=2,X.lineOverflow="truncate",ht(X,j,f);var J=z.getState("emphasis");ht(J?J.style:null,j,f)}}function ht(K,H,tt){var j=K?K.text:null;if(!H&&tt.isLeafRoot&&j!=null){var ut=r.get("drillDownIcon",!0);K.text=ut?ut+" "+j:j}}function gt(K,H,tt,j){var ut=m!=null&&e[K][m],R=i[K];return ut?(e[K][m]=null,Et(R,ut)):g||(ut=new H,ut instanceof Yr&&(ut.z2=E9(tt,j)),U(R,ut)),t[K][y]=ut}function Et(K,H){var tt=K[y]={};H instanceof Ym?(tt.oldX=H.x,tt.oldY=H.y):tt.oldShape=F({},H.shape)}function U(K,H){var tt=K[y]={},j=o.parentNode,ut=H instanceof _t;if(j&&(!n||n.direction==="drillDown")){var R=0,k=0,z=i.background[j.getRawIndex()];!n&&z&&z.oldShape&&(R=z.oldShape.width,k=z.oldShape.height),ut?(tt.oldX=0,tt.oldY=k):tt.oldShape={x:R,y:k,width:0,height:0}}tt.fadein=!ut}}function E9(r,t){return r*D9+t}const k9=P9;var uf=M,O9=yt,dv=-1,_1=function(){function r(t){var e=t.mappingMethod,n=t.type,i=this.option=mt(t);this.type=n,this.mappingMethod=e,this._normalizeData=B9[e];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[e],e==="piecewise"?(bg(i),N9(i)):e==="category"?i.categories?V9(i):bg(i,!0):(lr(e!=="linear"||i.dataExtent),bg(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return at(this._normalizeData,this)},r.listVisualTypes=function(){return kt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){yt(t)?M(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var i,a=Y(t)?[]:yt(t)?{}:(i=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);i?a=l:a[s]=l}),a},r.retrieveVisuals=function(t){var e={},n;return t&&uf(r.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(e[a]=t[a],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(O9(t)){var e=[];uf(t,function(n,i){e.push(i)}),t=e}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.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,n){for(var i,a=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||nt(l)&&l===t+"")return o;n&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(kc(c[1],t,f[1]))return o}else if(f[1]===1/0){if(kc(c[0],f[0],t))return o}else if(kc(c[0],f[0],t)&&kc(c[1],t,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(v,d){var p=Math.abs(v-t);p<a&&(a=p,i=d)}},r.visualHandlers={color:{applyVisual:Wl("color"),getColorMapper:function(){var t=this.option;return at(t.mappingMethod==="category"?function(e,n){return!n&&(e=this._normalizeData(e)),su.call(this,e)}:function(e,n,i){var a=!!i;return!n&&(e=this._normalizeData(e)),i=rp(e,t.parsedVisual,i),a?i:ci(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return ci(rp(t,this.option.parsedVisual),"rgba")},category:su,piecewise:function(t,e){var n=Xm.call(this,e);return n==null&&(n=ci(rp(t,this.option.parsedVisual),"rgba")),n},fixed:Xa}},colorHue:Ec(function(t,e){return _u(t,e)}),colorSaturation:Ec(function(t,e){return _u(t,null,e)}),colorLightness:Ec(function(t,e){return _u(t,null,null,e)}),colorAlpha:Ec(function(t,e){return Bh(t,e)}),decal:{applyVisual:Wl("decal"),_normalizedToVisual:{linear:null,category:su,piecewise:null,fixed:null}},opacity:{applyVisual:Wl("opacity"),_normalizedToVisual:Zm([0,1])},liftZ:{applyVisual:Wl("liftZ"),_normalizedToVisual:{linear:Xa,category:Xa,piecewise:Xa,fixed:Xa}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:PA,category:su,piecewise:function(t,e){var n=Xm.call(this,e);return n==null&&(n=PA.call(this,t)),n},fixed:Xa}},symbolSize:{applyVisual:Wl("symbolSize"),_normalizedToVisual:Zm([0,1])}},r}();function N9(r){var t=r.pieceList;r.hasSpecialVisual=!1,M(t,function(e,n){e.originIndex=n,e.visual!=null&&(r.hasSpecialVisual=!0)})}function V9(r){var t=r.categories,e=r.categoryMap={},n=r.visual;if(uf(t,function(o,s){e[o]=s}),!Y(n)){var i=[];yt(n)?uf(n,function(o,s){var l=e[s];i[l!=null?l:dv]=o}):i[dv]=n,n=KE(r,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete e[t[a]],t.pop())}function bg(r,t){var e=r.visual,n=[];yt(e)?uf(e,function(a){n.push(a)}):e!=null&&n.push(e);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),KE(r,n)}function Ec(r){return{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("color",r(e("color"),i))},_normalizedToVisual:Zm([0,1])}}function PA(r){var t=this.option.visual;return t[Math.round(Ut(r,[0,1],[0,t.length-1],!0))]||{}}function Wl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function su(r){var t=this.option.visual;return t[this.option.loop&&r!==dv?r%t.length:r]}function Xa(){return this.option.visual[0]}function Zm(r){return{linear:function(t){return Ut(t,r,this.option.visual,!0)},category:su,piecewise:function(t,e){var n=Xm.call(this,e);return n==null&&(n=Ut(t,r,this.option.visual,!0)),n},fixed:Xa}}function Xm(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=_1.findPieceIndex(r,e),i=e[n];if(i&&i.visual)return i.visual[this.type]}}function KE(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Z(t,function(e){var n=Mr(e);return n||[0,0,0,1]})),t}var B9={linear:function(r){return Ut(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=_1.findPieceIndex(r,t,!0);if(e!=null)return Ut(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?dv:t},fixed:pe};function kc(r,t,e){return r?t<=e:t<e}const Ge=_1;var z9="itemStyle",jE=Nt();const G9={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||JE(e,{},r.getViewRoot().getAncestors(),r)}};function JE(r,t,e,n){var i=r.getModel(),a=r.getLayout(),o=r.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(z9),l=F9(s,t,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=RA(l),f=H9(c,h)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)h=RA(l),u.fill=h;else{var d=W9(r,i,a,s,l,v);M(v,function(p,g){if(p.depth>=e.length||p===e[p.depth]){var y=$9(i,l,p,g,d,n);JE(p,y,e,n)}})}}}function F9(r,t,e){var n=F({},t),i=e.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=r.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function RA(r){var t=wg(r,"color");if(t){var e=wg(r,"colorAlpha"),n=wg(r,"colorSaturation");return n&&(t=_u(t,null,null,n)),e&&(t=Bh(t,e)),t}}function H9(r,t){return t!=null?_u(t,null,null,r):null}function wg(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function W9(r,t,e,n,i,a){if(!(!a||!a.length)){var o=Tg(t,"color")||i.color!=null&&i.color!=="none"&&(Tg(t,"colorAlpha")||Tg(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"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new Ge(c);return jE(h).drColorMappingBy=f,h}}}function Tg(r,t){var e=r.get(t);return Y(e)&&e.length?{name:t,range:e}:null}function $9(r,t,e,n,i,a){var o=F({},t);if(i){var s=i.type,l=s==="color"&&jE(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var ff=Math.max,pv=Math.min,EA=Re,S1=M,QE=["itemStyle","borderWidth"],U9=["itemStyle","gapWidth"],Y9=["upperLabel","show"],Z9=["upperLabel","height"];const X9={seriesType:"treemap",reset:function(r,t,e,n){var i=e.getWidth(),a=e.getHeight(),o=r.option,s=be(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=rt(EA(s.width,l[0]),i),f=rt(EA(s.height,l[1]),a),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=lf(n,h,r),d=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,p=r.getViewRoot(),g=ZE(p);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?tZ(r,v,p,u,f):d?[d.width,d.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(S),tk(p,_,!1,0),S=p.getLayout(),S1(g,function(b,w){var T=(g[w+1]||p).getValue();b.setLayout(F({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var x=r.getData().tree.root;x.setLayout(eZ(s,d,v),!0),r.setLayoutInfo(s),ek(x,new Mt(-s.x,-s.y,i,a),g,p,0)}};function tk(r,t,e,n){var i,a;if(!r.isRemoved()){var o=r.getLayout();i=o.width,a=o.height;var s=r.getModel(),l=s.get(QE),u=s.get(U9)/2,f=rk(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),i=ff(i-2*h,0),a=ff(a-h-v,0);var d=i*a,p=q9(r,s,d,t,e,n);if(p.length){var g={x:h,y:v,width:i,height:a},y=pv(i,a),m=1/0,_=[];_.area=0;for(var S=0,x=p.length;S<x;){var b=p[S];_.push(b),_.area+=b.getLayout().area;var w=Q9(_,y,t.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,kA(_,y,g,u,!1),y=pv(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&kA(_,y,g,u,!0),!e){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(e=!0)}for(var S=0,x=p.length;S<x;S++)tk(p[S],t,e,n+1)}}}function q9(r,t,e,n,i,a){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return r.viewChildren=[];o=$t(o,function(v){return!v.isRemoved()}),j9(o,s);var u=J9(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=K9(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,c=o.length;f<c;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 K9(r,t,e,n,i){if(!n)return e;for(var a=r.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/e*t<a&&(s=l,e-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),e}function j9(r,t){return t&&r.sort(function(e,n){var i=t==="asc"?e.getValue()-n.getValue():n.getValue()-e.getValue();return i===0?t==="asc"?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i}),r}function J9(r,t,e){for(var n=0,i=0,a=t.length;i<a;i++)n+=t[i].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=[1/0,-1/0],S1(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function Q9(r,t,e){for(var n=0,i=1/0,a=0,o=void 0,s=r.length;a<s;a++)o=r[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=r.area*r.area,u=t*t*e;return l?ff(u*n/l,l/(u*i)):1/0}function kA(r,t,e,n,i){var a=t===e.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=e[s[a]],f=t?r.area/t:0;(i||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,h=r.length;c<h;c++){var v=r[c],d={},p=f?v.getLayout().area/f:0,g=d[l[o]]=ff(f-2*n,0),y=e[s[a]]+e[l[a]]-u,m=c===h-1||y<p?y:p,_=d[l[a]]=ff(m-2*n,0);d[s[o]]=e[s[o]]+pv(n,g/2),d[s[a]]=u+pv(n,_/2),u+=m,v.setLayout(d,!0)}e[s[o]]+=f,e[l[o]]-=f}function tZ(r,t,e,n,i){var a=(t||{}).node,o=[n,i];if(!a||a===e)return o;for(var s,l=n*i,u=l*r.option.zoomToNodeRatio;s=a.parentNode;){for(var f=0,c=s.children,h=0,v=c.length;h<v;h++)f+=c[h].getValue();var d=a.getValue();if(d===0)return o;u*=f/d;var p=s.getModel(),g=p.get(QE),y=Math.max(g,rk(p));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>Yx&&(u=Yx),a=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,i*m]}function eZ(r,t,e){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!e)return n;var i=e.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;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 ek(r,t,e,n,i){var a=r.getLayout(),o=e[i],s=o&&o===r;if(!(o&&!s||i===e.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new Mt(t.x-a.x,t.y-a.y,t.width,t.height);S1(r.viewChildren||[],function(u){ek(u,l,e,n,i+1)})}}function rk(r){return r.get(Y9)?r.get(Z9):0}function rZ(r){r.registerSeriesModel(S9),r.registerChartView(k9),r.registerVisual(G9),r.registerLayout(X9),y9(r)}function nZ(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){Ft(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}function iZ(r){var t={};r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){nt(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),f=i.ensureUniqueItemVisual(o,"style");F(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)i.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function Oc(r){return r instanceof Array||(r=[r,r]),r}function aZ(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),i=Oc(t.get("edgeSymbol")),a=Oc(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=e.getEdgeByIndex(o),u=Oc(s.getShallow("symbol",!0)),f=Oc(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(F(h,c),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.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])})})}var qm="-->",Dd=function(r){return r.get("autoCurveness")||null},nk=function(r,t){var e=Dd(r),n=20,i=[];if(Ft(e))n=e;else if(Y(e)){r.__curvenessList=e;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=i},cf=function(r,t,e){var n=[r.id,r.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[e.uid,n,i].join(qm)},ik=function(r){var t=r.split(qm);return[t[0],t[2],t[1]].join(qm)},oZ=function(r,t){var e=cf(r.node1,r.node2,t);return t.__edgeMap[e]},sZ=function(r,t){var e=Km(cf(r.node1,r.node2,t),t),n=Km(cf(r.node2,r.node1,t),t);return e+n},Km=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function lZ(r){Dd(r)&&(r.__curvenessList=[],r.__edgeMap={},nk(r))}function uZ(r,t,e,n){if(Dd(e)){var i=cf(r,t,e),a=e.__edgeMap,o=a[ik(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function x1(r,t,e,n){var i=Dd(t),a=Y(i);if(!i)return null;var o=oZ(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=sZ(r,t);nk(t,u),r.lineStyle=r.lineStyle||{};var f=cf(r.node1,r.node2,t),c=t.__curvenessList,h=a||u%2?0:1;if(o.isForward)return c[h+s];var v=ik(f),d=Km(v,t),p=c[s+d+h];return n?a?i&&i[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:c[s+d+h]}function ak(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),b1(e,r)}}function b1(r,t){r.eachEdge(function(e,n){var i=zn(e.getModel().get(["lineStyle","curveness"]),-x1(e,t,n,!0),0),a=ui(e.node1.getLayout()),o=ui(e.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),e.setLayout(s)})}function fZ(r,t){r.eachSeriesByType("graph",function(e){var n=e.get("layout"),i=e.coordinateSystem;if(i&&i.type!=="view"){var a=e.getData(),o=[];M(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=a.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}b1(a.graph,e)}else(!n||n==="none")&&ak(e)})}function lu(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*e+1;return a/n}function uu(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var OA=Math.PI,Ag=[];function w1(r,t,e,n){var i=r.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=r.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,f=Math.min(a.width,a.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(e){var h=i.pointToData(n),v=h[0],d=h[1],p=[v-l,d-u];Js(p,p),eh(p,p,f),e.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);ok(e,g,l,u)}cZ[t](r,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=zn(y.getModel().get(["lineStyle","curveness"]),x1(y,r,m),0),S=ui(y.node1.getLayout()),x=ui(y.node2.getLayout()),b,w=(S[0]+x[0])/2,T=(S[1]+x[1])/2;+_&&(_*=3,b=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,x,b])})}}}var cZ={value:function(r,t,e,n,i,a,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=h})},symbolSize:function(r,t,e,n,i,a,o){var s=0;Ag.length=o;var l=lu(r);t.eachNode(function(c){var h=uu(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/n);isNaN(v)&&(v=OA/2),Ag[c.dataIndex]=v,s+=v*2});var u=(2*OA-s)/o/2,f=0;t.eachNode(function(c){var h=u+Ag[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+i,n*Math.sin(f)+a]),f+=h})}};function ok(r,t,e,n){var i=r.getGraphicEl();if(i){var a=r.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-e);u<0&&(u=Math.PI*2+u);var f=l[0]<e;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");F(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function hZ(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&w1(t,"symbolSize")})}var as=Ny;function vZ(r,t,e){for(var n=r,i=t,a=e.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=e.gravity==null?.1:e.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=ko(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=ui(c.p),c.edges=null}var h=e.friction==null?.6:e.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,i);for(var y=[],m=n.length,_=0;_<i.length;_++){var S=i[_];if(!S.ignoreForceLayout){var x=S.n1,b=S.n2;ao(y,b.p,x.p);var w=Vy(y)-S.d,T=b.w/(x.w+b.w);isNaN(T)&&(T=0),Js(y,y),!x.fixed&&as(x.p,x.p,y,T*w*v),!b.fixed&&as(b.p,b.p,y,-(1-T)*w*v)}}for(var _=0;_<m;_++){var A=n[_];A.fixed||(ao(y,l,A.p),as(A.p,A.p,y,u*v))}for(var _=0;_<m;_++)for(var x=n[_],C=_+1;C<m;C++){var b=n[C];ao(y,b.p,x.p);var w=Vy(y);w===0&&(S5(y,Math.random()-.5,Math.random()-.5),w=1);var D=(x.rep+b.rep)/w/w;!x.fixed&&as(x.pp,x.pp,y,D),!b.fixed&&as(b.pp,b.pp,y,-D)}for(var I=[],_=0;_<m;_++){var A=n[_];A.fixed||(ao(I,A.p,A.pp),as(A.p,A.p,I,v),rr(A.pp,A.p))}v=v*.992;var L=v<.01;p&&p(n,i,L),g&&g(L)}}}function dZ(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(_){var S=a.getId(_);a.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?ak(t):l==="circular"&&w1(t,"value");var u=a.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=Y(c)?c:[c,c],d=Y(h)?h:[h,h];d=[d[1],d[0]];var p=a.mapArray("value",function(_,S){var x=a.getItemLayout(S),b=Ut(_,u,v);return isNaN(b)&&(b=(v[0]+v[1])/2),{w:b,rep:b,fixed:a.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=i.getEdgeByIndex(S),b=Ut(_,f,d);isNaN(b)&&(b=(d[0]+d[1])/2);var w=x.getModel(),T=zn(x.getModel().get(["lineStyle","curveness"]),-x1(x,t,S,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:b,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=vZ(p,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&&rr(_[x].p,i.getNodeByIndex(x).getLayout())}),m.afterStep(function(_,S,x){for(var b=0,w=_.length;b<w;b++)_[b].fixed||i.getNodeByIndex(b).setLayout(_[b].p),n[a.getId(b)]=_[b].p;for(var b=0,w=S.length;b<w;b++){var T=S[b],A=i.getEdgeByIndex(b),C=T.n1.p,D=T.n2.p,I=A.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],rr(I[0],C),rr(I[1],D),+T.curveness&&(I[2]=[(C[0]+D[0])/2-(C[1]-D[1])*T.curveness,(C[1]+D[1])/2-(D[0]-C[0])*T.curveness]),A.setLayout(I)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function pZ(r,t,e){var n=F(r.getBoxLayoutParams(),{aspect:e});return be(n,{width:t.getWidth(),height:t.getHeight()})}function gZ(r,t){var e=[];return r.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(g){var y=a.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];ed(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=pZ(n,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],v=f.width,d=f.height,p=n.coordinateSystem=new zf;p.zoomLimit=n.get("scaleLimit"),p.setBoundingRect(s[0],s[1],c,h),p.setViewRect(f.x,f.y,v,d),p.setCenter(n.get("center"),t),p.setZoom(n.get("zoom")),e.push(p)}}),e}var NA=Ee.prototype,Cg=ad.prototype,sk=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(sk);function Mg(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var yZ=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sk},t.prototype.buildPath=function(e,n){Mg(n)?NA.buildPath.call(this,e,n):Cg.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return Mg(this.shape)?NA.pointAt.call(this,e):Cg.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,i=Mg(n)?[n.x2-n.x1,n.y2-n.y1]:Cg.tangentAt.call(this,e);return Js(i,i)},t}(Pt);const mZ=yZ;var Dg=["fromSymbol","toSymbol"];function VA(r){return"_"+r+"Type"}function BA(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=cl(i),u=zo(o||0,l);return n+l+u+(a||"")+(s||"")}function zA(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=cl(i),u=zo(o||0,l),f=me(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function _Z(r){var t=new mZ({name:"line",subPixelOptimize:!0});return jm(t.shape,r),t}function jm(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 SZ=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;return a._createLine(e,n,i),a}return t.prototype._createLine=function(e,n,i){var a=e.hostModel,o=e.getItemLayout(n),s=_Z(o);s.shape.percent=0,oe(s,{shape:{percent:1}},a,n),this.add(s),M(Dg,function(l){var u=zA(l,e,n);this.add(u),this[VA(l)]=BA(l,e,n)},this),this._updateCommonStl(e,n,i)},t.prototype.updateData=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),l={shape:{}};jm(l.shape,s),Ht(o,l,a,n),M(Dg,function(u){var f=BA(u,e,n),c=VA(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=zA(u,e,n);this.add(h)}this[c]=f},this),this._updateCommonStl(e,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,h=i&&i.focus,v=i&&i.blurScope;if(!i||e.hasItemOption){var d=e.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),f=De(d)}var g=e.getItemVisual(n,"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,M(Dg,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<ur.length;T++){var A=ur[T],C=o.getState(A);if(C){var D=C.style||{},I=w.ensureState(A),L=I.style||(I.style={});D.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(L.opacity=D.opacity)}}w.markRedraw()}},this);var m=a.getRawValue(n);He(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(b,w){return a.getFormattedLabel(b,w,e.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?e.getName(n):isFinite(m)?ce(m):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");Y(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),ue(this,h,v,c)},t.prototype.highlight=function(){mi(this)},t.prototype.downplay=function(){_i(this)},t.prototype.updateLayout=function(e,n){this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");jm(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),a=e.getTextContent();if(!n&&!i&&(!a||a.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),c=l.pointAt(u),h=ao([],c,f);Js(h,h);function v(C,D){var I=C.__specifiedRotation;if(I==null){var L=l.tangentAt(D);C.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else C.attr("rotation",I)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(c),v(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,p=void 0,g=a.__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(a.__position!=="start"&&a.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(T=Math.PI+T),a.rotation=T}var A=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=m,p="top";break;default:A=0,p="middle"}switch(a.__position){case"end":a.x=h[0]*y+c[0],a.y=h[1]*m+c[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*y+f[0],a.y=-h[1]*m+f[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*w+f[0],a.y=f[1]+A,d=S[0]<0?"right":"left",a.originX=-y*w,a.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+A,d="center",a.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*w+c[0],a.y=c[1]+A,d=S[0]>=0?"right":"left",a.originX=y*w,a.originY=-A;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}},t}(_t);const T1=SZ;var xZ=function(){function r(t){this.group=new _t,this._LineCtor=t||T1}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=GA(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=GA(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!bZ(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=e.getItemLayout(i);if(Ig(a)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){ga(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(Ig(i)){var a=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,a),this.group.add(a)}},r.prototype._doUpdate=function(t,e,n,i,a){var o=t.getItemGraphicEl(n);if(!Ig(e.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(e,i,a):o=new this._LineCtor(e,i,a),e.setItemGraphicEl(i,o),this.group.add(o)},r}();function bZ(r){return r.animators&&r.animators.length>0}function GA(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:De(t)}}function FA(r){return isNaN(r[0])||isNaN(r[1])}function Ig(r){return r&&!FA(r[0])&&!FA(r[1])}const A1=xZ;var Lg=[],Pg=[],Rg=[],os=Le,Eg=yo,HA=Math.abs;function WA(r,t,e){for(var n=r[0],i=r[1],a=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){Lg[0]=os(n[0],i[0],a[0],f),Lg[1]=os(n[1],i[1],a[1],f);var c=HA(Eg(Lg,t)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;Pg[0]=os(n[0],i[0],a[0],s),Pg[1]=os(n[1],i[1],a[1],s),Rg[0]=os(n[0],i[0],a[0],v),Rg[1]=os(n[1],i[1],a[1],v);var c=Eg(Pg,t)-l;if(HA(c)<.01)break;var d=Eg(Rg,t)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function kg(r,t){var e=[],n=Hu,i=[[],[],[]],a=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[ui(u[0]),ui(u[1])],u[2]&&u.__original.push(ui(u[2])));var h=u.__original;if(u[2]!=null){if(rr(i[0],h[0]),rr(i[1],h[2]),rr(i[2],h[1]),f&&f!=="none"){var v=uu(s.node1),d=WA(i,h[0],v*t);n(i[0][0],i[1][0],i[2][0],d,e),i[0][0]=e[3],i[1][0]=e[4],n(i[0][1],i[1][1],i[2][1],d,e),i[0][1]=e[3],i[1][1]=e[4]}if(c&&c!=="none"){var v=uu(s.node2),d=WA(i,h[1],v*t);n(i[0][0],i[1][0],i[2][0],d,e),i[1][0]=e[1],i[2][0]=e[2],n(i[0][1],i[1][1],i[2][1],d,e),i[1][1]=e[1],i[2][1]=e[2]}rr(u[0],i[0]),rr(u[1],i[2]),rr(u[2],i[1])}else{if(rr(a[0],h[0]),rr(a[1],h[1]),ao(o,a[1],a[0]),Js(o,o),f&&f!=="none"){var v=uu(s.node1);Ny(a[0],a[0],o,v*t)}if(c&&c!=="none"){var v=uu(s.node2);Ny(a[1],a[1],o,-v*t)}rr(u[0],a[0]),rr(u[1],a[1])}})}function $A(r){return r.type==="view"}var wZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){var i=new Ef,a=new A1,o=this.group;this._controller=new Bf(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(e,n,i){var a=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if($A(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Ht(u,f,e)}kg(e.getGraph(),lu(e));var c=e.getData();s.updateData(c);var h=e.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,n,i),clearTimeout(this._layoutTimeout);var v=e.forceLayout,d=e.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var p=e.get("layout");c.graph.eachNode(function(_){var S=_.dataIndex,x=_.getGraphicEl(),b=_.getModel();if(x){x.off("drag").off("dragend");var w=b.get("draggable");w&&x.on("drag",function(A){switch(p){case"force":v.warmUp(),!a._layouting&&a._startForceLayoutIteration(v,d),v.setFixed(S),c.setItemLayout(S,[x.x,x.y]);break;case"circular":c.setItemLayout(S,[x.x,x.y]),_.setLayout({fixed:!0},!0),w1(e,"symbolSize",_,[A.offsetX,A.offsetY]),a.updateLayout(e);break;case"none":default:c.setItemLayout(S,[x.x,x.y]),b1(e.getGraph(),e),a.updateLayout(e);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),x.setDraggable(w,!!b.get("cursor"));var T=b.get(["emphasis","focus"]);T==="adjacency"&&(St(x).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var S=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);S&&x==="adjacency"&&(St(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),y=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(_){ok(_,g,y,m)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var i=this;(function a(){e.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!Ad(u,i,e)}),!$A(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){h1(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){v1(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),kg(e.getGraph(),lu(e)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),i=lu(e);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(e){kg(e.getGraph(),lu(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(ee);const TZ=wZ;function ss(r){return"_EC_"+r}var AZ=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 n=this._nodesMap;if(!n[ss(t)]){var i=new qa(t,e);return i.hostGraph=this,this.nodes.push(i),n[ss(t)]=i,i}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[ss(t)]},r.prototype.addEdge=function(t,e,n){var i=this._nodesMap,a=this._edgesMap;if(Ft(t)&&(t=this.nodes[t]),Ft(e)&&(e=this.nodes[e]),t instanceof qa||(t=i[ss(t)]),e instanceof qa||(e=i[ss(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new lk(t,e,n);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),a[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 qa&&(t=t.id),e instanceof qa&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(e,n[a],a)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(e,n[a],a)},r.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof qa||(e=this._nodesMap[ss(e)]),!!e){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(i,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;e.filterSelf(function(s){var l=i[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)i[e.getRawIndex(a)].dataIndex=a},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},r}(),qa=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t==null?"":t,this.dataIndex=e==null?-1:e}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,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=ft(),e=ft(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,e.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)t.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},r}(),lk=function(){function r(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=n==null?-1:n}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=ft(),e=ft();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,e.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,e.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},r}();function uk(r,t){return{getValue:function(e){var n=this[r][t];return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,n){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},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)}}}_e(qa,uk("hostGraph","data"));_e(lk,uk("hostGraph","edgeData"));const CZ=AZ;function fk(r,t,e,n,i){for(var a=new CZ(n),o=0;o<r.length;o++)a.addNode(Re(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],c=f.source,h=f.target;a.addEdge(c,h,u)&&(l.push(f),s.push(Re(xe(f.id,null),c+" > "+h)),u++)}var v=e.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=Ai(r,e);else{var p=Df.get(v),g=p?p.dimensions||[]:[];Dt(g,"value")<0&&g.concat(["value"]);var y=Lf(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new sr(y,e),d.initData(r)}var m=new sr(["value"],e);return m.initData(l,s),i&&i(d,m),UE({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var MZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Vf(i,i),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),Mo(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var i=e.edges||e.links||[],a=e.data||e.nodes||[],o=this;if(a&&i){lZ(this);var s=fk(a,i,this,!0,l);return M(s.edges,function(u){uZ(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=te.prototype.getModel;function h(d,p){var g=c.call(this,d,p);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},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,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(e,i),s=a.graph.getEdgeByIndex(e),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Ie("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=I2({series:this,dataIndex:e,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var e=Z(this.option.categories||[],function(i){return i.value!=null?i:F({value:0},i)}),n=new sr(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",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:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(le);const DZ=MZ;var IZ={type:"graphRoam",event:"graphRoam",update:"none"};function LZ(r){r.registerChartView(TZ),r.registerSeriesModel(DZ),r.registerProcessor(nZ),r.registerVisual(iZ),r.registerVisual(aZ),r.registerLayout(fZ),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,hZ),r.registerLayout(dZ),r.registerCoordinateSystem("graphView",{dimensions:zf.dimensions,create:gZ}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},pe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},pe),r.registerAction(IZ,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=p1(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var PZ=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),RZ=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new PZ},t.prototype.buildPath=function(e,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),f=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+i(l)*s,n.y+a(l)*s),e.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),e.lineTo(n.x-i(l)*s,n.y-a(l)*s),e.lineTo(u,f)},t}(Pt);const EZ=RZ;function kZ(r,t){var e=r.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=rt(e[0],t.getWidth()),s=rt(e[1],t.getHeight()),l=rt(r.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Nc(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var OZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeAll();var a=e.get(["axisLine","lineStyle","color"]),o=kZ(e,i);this._renderMain(e,n,i,a,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,i,a,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),h=c.get("roundCap"),v=h?fv:gr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];v_(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x<a.length;x++){var b=Math.min(Math.max(a[x][0],0),1);f=u+m*b;var w=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:a[x][1]}),w.setStyle(p.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),M(S,function(A){return s.add(A)});var T=function(A){if(A<=0)return a[0][1];var C;for(C=0;C<a.length;C++)if(a[C][0]>=A&&(C===0?0:a[C-1][0])<A)return a[C][1];return a[C-1][1]};this._renderTicks(e,n,i,T,o,u,f,l,g),this._renderTitleAndDetail(e,n,i,T,o),this._renderAnchor(e,o),this._renderPointer(e,n,i,T,o,u,f,l,g)},t.prototype._renderTicks=function(e,n,i,a,o,s,l,u,f){for(var c=this.group,h=o.cx,v=o.cy,d=o.r,p=+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=rt(y.get("length"),d),w=rt(m.get("length"),d),T=s,A=(l-s)/S,C=A/x,D=y.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),P,E,O=0;O<=S;O++){if(P=Math.cos(T),E=Math.sin(T),y.get("show")){var V=L?L+f:f,N=new Ee({shape:{x1:P*(d-V)+h,y1:E*(d-V)+v,x2:P*(d-b-V)+h,y2:E*(d-b-V)+v},style:D,silent:!0});D.stroke==="auto"&&N.setStyle({stroke:a(O/S)}),c.add(N)}if(_.get("show")){var V=_.get("distance")+L,G=Nc(ce(O/S*(g-p)+p),_.get("formatter")),$=a(O/S),q=P*(d-b-V)+h,Q=E*(d-b-V)+v,ct=_.get("rotate"),ht=0;ct==="radial"?(ht=-T+2*Math.PI,ht>Math.PI/2&&(ht+=Math.PI)):ct==="tangential"?ht=-T-Math.PI/2:Ft(ct)&&(ht=ct*Math.PI/180),ht===0?c.add(new Gt({style:Qt(_,{text:G,x:q,y:Q,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:$}),silent:!0})):c.add(new Gt({style:Qt(_,{text:G,x:q,y:Q,verticalAlign:"middle",align:"center"},{inheritColor:$}),silent:!0,originX:q,originY:Q,rotation:ht}))}if(m.get("show")&&O!==S){var V=m.get("distance");V=V?V+f:f;for(var gt=0;gt<=x;gt++){P=Math.cos(T),E=Math.sin(T);var Et=new Ee({shape:{x1:P*(d-V)+h,y1:E*(d-V)+v,x2:P*(d-w-V)+h,y2:E*(d-w-V)+v},silent:!0,style:I});I.stroke==="auto"&&Et.setStyle({stroke:a((O+gt/x)/S)}),c.add(Et),T+=C}T-=C}else T+=A}},t.prototype._renderPointer=function(e,n,i,a,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,d=[],p=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 T(C,D){var I=m.getItemModel(C),L=I.getModel("pointer"),P=rt(L.get("width"),o.r),E=rt(L.get("length"),o.r),O=e.get(["pointer","icon"]),V=L.get("offsetCenter"),N=rt(V[0],o.r),G=rt(V[1],o.r),$=L.get("keepAspect"),q;return O?q=me(O,N-P/2,G-E,P,E,null,$):q=new EZ({shape:{angle:-Math.PI/2,width:P,r:E,x:N,y:G}}),q.rotation=-(D+Math.PI/2),q.x=o.cx,q.y=o.cy,q}function A(C,D){var I=g.get("roundCap"),L=I?fv:gr,P=g.get("overlap"),E=P?g.get("width"):f/m.count(),O=P?o.r-E:o.r-(C+1)*E,V=P?o.r:o.r-C*E,N=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:V}});return P&&(N.z2=Ut(m.get(_,C),[S,x],[100,0],!0)),N}(y||p)&&(m.diff(h).add(function(C){var D=m.get(_,C);if(p){var I=T(C,s);oe(I,{rotation:-((isNaN(+D)?w[0]:Ut(D,b,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(C,I)}if(y){var L=A(C,s),P=g.get("clip");oe(L,{shape:{endAngle:Ut(D,b,w,P)}},e),c.add(L),um(e.seriesIndex,m.dataType,C,L),d[C]=L}}).update(function(C,D){var I=m.get(_,C);if(p){var L=h.getItemGraphicEl(D),P=L?L.rotation:s,E=T(C,P);E.rotation=P,Ht(E,{rotation:-((isNaN(+I)?w[0]:Ut(I,b,w,!0))+Math.PI/2)},e),c.add(E),m.setItemGraphicEl(C,E)}if(y){var O=v[D],V=O?O.shape.endAngle:s,N=A(C,V),G=g.get("clip");Ht(N,{shape:{endAngle:Ut(I,b,w,G)}},e),c.add(N),um(e.seriesIndex,m.dataType,C,N),d[C]=N}}).execute(),m.each(function(C){var D=m.getItemModel(C),I=D.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),E=I.get("disabled");if(p){var O=m.getItemGraphicEl(C),V=m.getItemVisual(C,"style"),N=V.fill;if(O instanceof We){var G=O.style;O.useStyle(F({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},V))}else O.useStyle(V),O.type!=="pointer"&&O.setColor(N);O.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",a(Ut(m.get(_,C),b,[0,1],!0))),O.z2EmphasisLift=0,Fe(O,D),ue(O,L,P,E)}if(y){var $=d[C];$.useStyle(m.getItemVisual(C,"style")),$.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),$.z2EmphasisLift=0,Fe($,D),ue($,L,P,E)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,n){var i=e.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),f=me(s,n.cx-o/2+rt(l[0],n.r),n.cy-o/2+rt(l[1],n.r),o,o,null,u);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,i,a,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),h=new _t,v=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Gt({silent:!0}),d[y]=new Gt({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new _t,x=a(Ut(_,[f,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),T=o.cx+rt(w[0],o.r),A=o.cy+rt(w[1],o.r),C=v[y];C.attr({z2:g?0:2,style:Qt(b,{x:T,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(C)}var D=m.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+rt(I[0],o.r),P=o.cy+rt(I[1],o.r),E=rt(D.get("width"),o.r),O=rt(D.get("height"),o.r),V=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,C=d[y],N=D.get("formatter");C.attr({z2:g?0:2,style:Qt(D,{x:L,y:P,text:Nc(_,N),width:isNaN(E)?null:E,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:V})}),PP(C,{normal:D},_,function($){return Nc($,N)}),p&&RP(C,y,l,e,{getFormattedLabel:function($,q,Q,ct,ht,gt){return Nc(gt?gt.interpolatedValue:_,N)}}),S.add(C)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=d},t.type="gauge",t}(ee);const NZ=OZ;var VZ=function(r){B(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,n){return vl(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,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,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:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(le);const BZ=VZ;function zZ(r){r.registerChartView(NZ),r.registerSeriesModel(BZ)}var GZ=["itemStyle","opacity"],FZ=function(r){B(t,r);function t(e,n){var i=r.call(this)||this,a=i,o=new mr,s=new Gt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return t.prototype.updateData=function(e,n,i){var a=this,o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(GZ);f=f==null?1:f,i||gn(a),a.useStyle(e.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,oe(a,{style:{opacity:f}},o,n)):Ht(a,{style:{opacity:f},shape:{points:l.points}},o,n),Fe(a,s),this._updateLabel(e,n),ue(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=e.hostModel,l=e.getItemModel(n),u=e.getItemLayout(n),f=u.label,c=e.getItemVisual(n,"style"),h=c.fill;He(o,De(l),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:e.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:h,outsideFill:h});var v=f.linePoints;a.setShape({points:v}),i.textGuideLineConfig={anchor:v?new Ct(v[0][0],v[0][1]):null},Ht(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),r1(i,n1(l),{stroke:h})},t}(yr),HZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new FZ(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,l),s.add(f),a.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Ku(u,e,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(ee);const WZ=HZ;var $Z=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Vf(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return vl(this,{coordDimensions:["value"],encodeDefaulter:bt(R_,this)})},t.prototype._defaultLabelLine=function(e){Mo(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),i=r.prototype.getDataParams.call(this,e),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(le);const UZ=$Z;function YZ(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ZZ(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(l){return l}),i=[],a=t==="ascending",o=0,s=r.count();o<s;o++)i[o]=o;return vt(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function XZ(r){var t=r.hostModel,e=t.get("orient");r.each(function(n){var i=r.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,v,d;if(f)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[h,v],[h,v]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,h=y-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,h=y+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,v=m-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,v=m+5,c="center"):o==="rightTop"?(p=e==="horizontal"?u[3][0]:u[1][0],g=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(m=g-_,v=m-5,c="center"):(y=p+_,h=y+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],e==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p+_,h=y+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(m=g-_,v=m-5,c="center"):(y=p-_,h=y-5,c="right")):o==="leftBottom"?(p=e==="horizontal"?u[1][0]:u[3][0],g=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p-_,h=y-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p+_,h=y+5,c="left")),e==="horizontal"?(y=p,h=y):(m=g,v=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:h,y:v,verticalAlign:"middle",textAlign:c,inside:f}})}function qZ(r,t){r.eachSeriesByType("funnel",function(e){var n=e.getData(),i=n.mapDimension("value"),a=e.get("sort"),o=YZ(e,t),s=e.get("orient"),l=o.width,u=o.height,f=ZZ(n,a),c=o.x,h=o.y,v=s==="horizontal"?[rt(e.get("minSize"),u),rt(e.get("maxSize"),u)]:[rt(e.get("minSize"),l),rt(e.get("maxSize"),l)],d=n.getDataExtent(i),p=e.get("min"),g=e.get("max");p==null&&(p=Math.min(d[0],0)),g==null&&(g=d[1]);var y=e.get("funnelAlign"),m=e.get("gap"),_=s==="horizontal"?l:u,S=(_-m*(n.count()-1))/n.count(),x=function(P,E){if(s==="horizontal"){var O=n.get(i,P)||0,V=Ut(O,[p,g],v,!0),N=void 0;switch(y){case"top":N=h;break;case"center":N=h+(u-V)/2;break;case"bottom":N=h+(u-V);break}return[[E,N],[E,N+V]]}var G=n.get(i,P)||0,$=Ut(G,[p,g],v,!0),q;switch(y){case"left":q=c;break;case"center":q=c+(l-$)/2;break;case"right":q=c+l-$;break}return[[q,E],[q+$,E]]};a==="ascending"&&(S=-S,m=-m,s==="horizontal"?c+=l:h+=u,f=f.reverse());for(var b=0;b<f.length;b++){var w=f[b],T=f[b+1],A=n.getItemModel(w);if(s==="horizontal"){var C=A.get(["itemStyle","width"]);C==null?C=S:(C=rt(C,l),a==="ascending"&&(C=-C));var D=x(w,c),I=x(T,c+C);c+=C+m,n.setItemLayout(w,{points:D.concat(I.slice().reverse())})}else{var L=A.get(["itemStyle","height"]);L==null?L=S:(L=rt(L,u),a==="ascending"&&(L=-L));var D=x(w,h),I=x(T,h+L);h+=L+m,n.setItemLayout(w,{points:D.concat(I.slice().reverse())})}}XZ(n)})}function KZ(r){r.registerChartView(WZ),r.registerSeriesModel(UZ),r.registerLayout(qZ),r.registerProcessor(Nf("funnel"))}var jZ=.3,JZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new _t,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,n,i,a){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.dimensions,c=YA(e);s.diff(l).add(h).update(v).remove(d).execute();function h(g){var y=UA(s,o,g,f,u);Og(y,s,g,c)}function v(g,y){var m=l.getItemGraphicEl(y),_=ck(s,g,f,u);s.setItemGraphicEl(g,m),Ht(m,{shape:{points:_}},e,g),gn(m),Og(m,s,g,c)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=QZ(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(e,n,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,n,i){for(var a=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=YA(n),u=this._progressiveEls=[],f=e.start;f<e.end;f++){var c=UA(a,this._dataGroup,f,s,o);c.incremental=!0,Og(c,a,f,l),u.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(ee);function QZ(r,t,e){var n=r.model,i=r.getRect(),a=new Vt({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=n.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),oe(a,{shape:{width:i.width,height:i.height}},t,e),a}function ck(r,t,e,n){for(var i=[],a=0;a<e.length;a++){var o=e[a],s=r.get(r.mapDimension(o),t);tX(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function UA(r,t,e,n,i){var a=ck(r,e,n,i),o=new mr({shape:{points:a},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function YA(r){var t=r.get("smooth",!0);return t===!0&&(t=jZ),t=yi(t),Gu(t)&&(t=0),{smooth:t}}function Og(r,t,e,n){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var i=t.getItemModel(e),a=i.getModel("emphasis");Fe(r,i,"lineStyle"),ue(r,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function tX(r,t){return t==="category"?r==null:r==null||isNaN(r)}const eX=JZ;var rX=function(r){B(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,n){return Ai(null,this,{useEncodeDefaulter:at(nX,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var n=this.coordinateSystem,i=this.getData(),a=[];return n.eachActiveState(i,function(o,s){e===o&&a.push(i.getRawIndex(s))}),a},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:500,smooth:!1,animationEasing:"linear"},t}(le);function nX(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return M(t.dimensions,function(n){var i=iX(n);e[n]=i}),e}}function iX(r){return+r.replace("dim","")}const aX=rX;var oX=["lineStyle","opacity"],sX={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(i,a){e.eachActiveState(a,function(o,s){var l=n[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(oX,!0);u!=null&&(l=u)}var f=a.ensureUniqueItemVisual(s,"style");f.opacity=l},i.start,i.end)}}}};const lX=sX;function uX(r){fX(r),cX(r)}function fX(r){if(!r.parallel){var t=!1;M(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function cX(r){var t=Zt(r.parallelAxis);M(t,function(e){if(yt(e)){var n=e.parallelIndex||0,i=Zt(r.parallel)[n];i&&i.parallelAxisDefault&&Tt(e,i.parallelAxisDefault,!1)}})}var hX=5,vX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this._model=e,this._api=i,this._handlers||(this._handlers={},M(dX,function(a,o){i.getZr().on(o,this._handlers[o]=at(a,this))},this)),fl(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,n){tf(this,"_throttledDispatchExpand"),M(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(F({type:"parallelAxisExpand"},e))},t.type="parallel",t}(fe),dX={mousedown:function(r){Ng(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(Ng(this,"click")&&t){var e=[r.offsetX,r.offsetY],n=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(n>hX)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Ng(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Ng(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const pX=vX;var gX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Tt(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var i=e.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],i=$t(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);M(i,function(a){e.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",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}(Bt);const yX=gX;var mX=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(mn);const _X=mX;function Wo(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=ls(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=ls(s,[0,o]),i=a=ls(s,[i,a]),n=0}t[0]=ls(t[0],e),t[1]=ls(t[1],e);var l=Vg(t,n);t[n]+=r;var u=i||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=ls(t[n],f);var c;return c=Vg(t,n),i!=null&&(c.sign!==l.sign||c.span<i)&&(t[1-n]=t[n]+l.sign*i),c=Vg(t,n),a!=null&&c.span>a&&(t[1-n]=t[n]+c.sign*a),t}function Vg(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 ls(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Bg=M,hk=Math.min,vk=Math.max,ZA=Math.floor,SX=Math.ceil,XA=ce,xX=Math.PI,bX=function(){function r(t,e,n){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var i=t.dimensions,a=t.parallelAxisIndex;Bg(i,function(o,s){var l=a[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new _X(o,wd(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,a=e.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+e.axisLength&&s>=i&&s<=i+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();Bg(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Us(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=be(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=e[i[o]],l=[0,s],u=this.dimensions.length,f=Vc(t.get("axisExpandWidth"),l),c=Vc(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=Vc(v[1]-v[0],l),v[1]=v[0]+d;else{d=Vc(f*(c-1),l);var p=t.get("axisExpandCenter")||ZA(u/2);v=[f*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[ZA(XA(v[0]/f,1))+1,SX(XA(v[1]/f,1))-1],m=g/f*v[0];return{layout:a,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[i[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;e.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Bg(n,function(o,s){var l=(i.axisExpandable?TX:wX)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:xX/2,vertical:0},c=[u[a].x+t.x,u[a].y+t.y],h=f[a],v=Cr();Oo(v,v,h),$n(v,v,c),this._axesLayout[o]={position:c,rotation:h,transform:v,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,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<i;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=t.getValues(s,f),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(h[v]);if(p==="inactive"){c="inactive";break}}}e(c,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)e.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return cn([t,0],n.transform)},r.prototype.getAxisLayout=function(t){return mt(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(f)h&&f&&s<a*c[0]?(u="jump",l=s-a*c[2]):h&&f&&s>a*(1-c[0])?(u="jump",l=s-a*(1-c[2])):(l=s-a*c[1])>=0&&(l=s-a*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Wo(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[vk(0,d-v/2)],i[1]=hk(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},r}();function Vc(r,t){return hk(vk(r,t[0]),t[1])}function wX(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function TX(r,t){var e=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,f;return r<o[0]?(s=r*a,f=a):r<=o[1]?(s=t.axisExpandWindow0Pos+r*n-t.axisExpandWindow[0],l=n,u=!0):(s=e-(i-1-r)*a,f=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const AX=bX;function CX(r,t){var e=[];return r.eachComponent("parallel",function(n,i){var a=new AX(n,r,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,e.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",ye).models[0];n.coordinateSystem=i.coordinateSystem}}),e}var MX={create:CX};const DX=MX;var dk=function(r){B(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 Io([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var n=this.activeIntervals=mt(e);if(n)for(var i=n.length-1;i>=0;i--)$r(n[i])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=e&&e<=n[a][1])return"active";return"inactive"},t}(Bt);_e(dk,Pf);const qA=dk;var Ro=!0,hf=Math.min,Xs=Math.max,IX=Math.pow,LX=1e4,PX=6,RX=6,KA="globalPan",EX={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},kX={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},jA={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},OX=0,NX=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new _t,n._uid="brushController_"+OX++,M(WX,function(i,a){this._handlers[a]=at(i,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||YY(n,KA,this._uid),M(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=Tt(mt(jA),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;ZY(e,KA,this._uid),M(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};M(e,function(i){n[i.panelId]=mt(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Z(e,function(h){return Tt(mt(jA),h,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new Si(i,e,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=e[h];if(v!=null&&i[v]===s)a[h]=i[v];else{var p=a[h]=v!=null?(i[v].__brushOption=d,i[v]):gk(o,pk(o,d));C1(o,p)}}function c(h){i[h]!==s&&o.group.remove(i[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Jm(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Zr);function pk(r,t){var e=Id[t.brushType].createCover(r,t);return e.__brushOption=t,mk(e,t),r.group.add(e),e}function gk(r,t){var e=M1(t);return e.endCreating&&(e.endCreating(r,t),mk(t,t.__brushOption)),t}function yk(r,t){var e=t.__brushOption;M1(t).updateCoverShape(r,t,e.range,e)}function mk(r,t){var e=t.z;e==null&&(e=LX),r.traverse(function(n){n.z=e,n.z2=e})}function C1(r,t){M1(t).updateCommon(r,t),yk(r,t)}function M1(r){return Id[r.__brushOption.brushType]}function D1(r,t,e){var n=r._panels;if(!n)return Ro;var i,a=r._transform;return M(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function _k(r,t){var e=r._panels;if(!e)return Ro;var n=t.__brushOption.panelId;return n!=null?e[n]:Ro}function Jm(r){var t=r._covers,e=t.length;return M(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function Eo(r,t){var e=Z(r._covers,function(n){var i=n.__brushOption,a=mt(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function VX(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=IX(i*i+a*a,.5);return o>PX}function Sk(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function xk(r,t,e,n){var i=new _t;return i.add(new Vt({name:"main",style:I1(e),silent:!0,draggable:!0,cursor:"move",drift:bt(JA,r,t,i,["n","s","w","e"]),ondragend:bt(Eo,t,{isEnd:!0})})),M(n,function(a){i.add(new Vt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:bt(JA,r,t,i,a),ondragend:bt(Eo,t,{isEnd:!0})}))}),i}function bk(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=Xs(i,RX),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,f=e[0][1],c=e[1][1],h=f-a+i/2,v=c-a+i/2,d=f-o,p=c-s,g=d+i,y=p+i;ti(r,t,"main",o,s,d,p),n.transformable&&(ti(r,t,"w",l,u,a,y),ti(r,t,"e",h,u,a,y),ti(r,t,"n",l,u,g,a),ti(r,t,"s",l,v,g,a),ti(r,t,"nw",l,u,a,a),ti(r,t,"ne",h,u,a,a),ti(r,t,"sw",l,v,a,a),ti(r,t,"se",h,v,a,a))}function Qm(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(I1(e)),i.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?t0(r,a[0]):zX(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?kX[s]+"-resize":null})})}function ti(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(FX(L1(r,t,[[n,i],[n+a,i+o]])))}function I1(r){return pt({strokeNoScale:!0},r.brushStyle)}function wk(r,t,e,n){var i=[hf(r,e),hf(t,n)],a=[Xs(r,e),Xs(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function BX(r){return bo(r.group)}function t0(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=sd(e[t],BX(r));return n[i]}function zX(r,t){var e=[t0(r,t[0]),t0(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function JA(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=Tk(t,i,a);M(n,function(u){var f=EX[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(wk(s[0][0],s[1][0],s[0][1],s[1][1])),C1(t,e),Eo(t,{isEnd:!1})}function GX(r,t,e,n){var i=t.__brushOption.range,a=Tk(r,e,n);M(i,function(o){o[0]+=a[0],o[1]+=a[1]}),C1(r,t),Eo(r,{isEnd:!1})}function Tk(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function L1(r,t,e){var n=_k(r,t);return n&&n!==Ro?n.clipPath(e,r._transform):mt(e)}function FX(r){var t=hf(r[0][0],r[1][0]),e=hf(r[0][1],r[1][1]),n=Xs(r[0][0],r[1][0]),i=Xs(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function HX(r,t,e){if(!(!r._brushType||$X(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=D1(r,t,e);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Ro||s.panelId===a.panelId)&&Id[s.brushType].contain(i[o],e[0],e[1]))return}a&&n.setCursorStyle("crosshair")}}function e0(r){var t=r.event;t.preventDefault&&t.preventDefault()}function r0(r,t,e){return r.childOfName("main").contain(t,e)}function Ak(r,t,e,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),VX(r)||i){if(a&&!i){o.brushMode==="single"&&Jm(r);var l=mt(o);l.brushType=QA(l.brushType,a),l.panelId=a===Ro?null:a.panelId,i=r._creatingCover=pk(r,l),r._covers.push(i)}if(i){var u=Id[QA(r._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(L1(r,i,r._track)),n&&(gk(r,i),u.updateCommon(r,i)),yk(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&D1(r,t,e)&&Jm(r)&&(s={isEnd:n,removeOnClick:!0});return s}function QA(r,t){return r==="auto"?t.defaultBrushType:r}var WX={mousedown:function(r){if(this._dragging)tC(this,r);else if(!r.target||!r.target.draggable){e0(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=D1(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(HX(this,r,n),this._dragging){e0(r);var i=Ak(this,r,n,!1);i&&Eo(this,i)}},mouseup:function(r){tC(this,r)}};function tC(r,t){if(r._dragging){e0(t);var e=t.offsetX,n=t.offsetY,i=r.group.transformCoordToLocal(e,n),a=Ak(r,t,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&Eo(r,a)}}function $X(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Id={lineX:eC(0),lineY:eC(1),rect:{createCover:function(r,t){function e(n){return n}return xk({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Sk(r);return wk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){bk(r,t,e,n)},updateCommon:Qm,contain:r0},polygon:{createCover:function(r,t){var e=new _t;return e.add(new mr({name:"main",style:I1(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new yr({name:"main",draggable:!0,drift:bt(GX,r,t),ondragend:bt(Eo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:L1(r,t,e)})},updateCommon:Qm,contain:r0}};function eC(r){return{createCover:function(t,e){return xk({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Sk(t),n=hf(e[0][r],e[1][r]),i=Xs(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=_k(t,e);if(o!==Ro&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),bk(t,e,l,i)},updateCommon:Qm,contain:r0}}const P1=NX;function Ck(r){return r=R1(r),function(t){return DP(t,r)}}function Mk(r,t){return r=R1(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function Dk(r,t,e){var n=R1(r);return function(i,a){return n.contain(a[0],a[1])&&!Ad(i,t,e)}}function R1(r){return Mt.create(r)}var UX=["axisLine","axisTickLabel","axisName"],YX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new P1(n.getZr())).on("brush",at(this._onBrush,this))},t.prototype.render=function(e,n,i,a){if(!ZX(e,n,a)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var s=qX(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,h=l.getAxisLayout(c),v=F({strokeContainThreshold:f},h),d=new xi(e,v);M(UX,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,e,s,f,i),Cf(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=Mt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Ck(c),isTargetByCursor:Dk(c,s,a),getLinearBrushOtherExtent:Mk(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(XX(i))},t.prototype._onBrush=function(e){var n=e.areas,i=this.axisModel,a=i.axis,o=Z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(fe);function ZX(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function XX(r){var t=r.axis;return Z(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function qX(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const KX=YX;var jX={type:"axisAreaSelect",event:"axisAreaSelected"};function JX(r){r.registerAction(jX,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var QX={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ik(r){r.registerComponentView(pX),r.registerComponentModel(yX),r.registerCoordinateSystem("parallel",DX),r.registerPreprocessor(uX),r.registerComponentModel(qA),r.registerComponentView(KX),Zs(r,"parallel",qA,QX),JX(r)}function tq(r){Lt(Ik),r.registerChartView(eX),r.registerSeriesModel(aX),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,lX)}var eq=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}(),rq=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new eq},t.prototype.buildPath=function(e,n){var i=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+i,n.y2),e.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(e.lineTo(n.x2,n.y2+i),e.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),e.closePath()},t.prototype.highlight=function(){mi(this)},t.prototype.downplay=function(){_i(this)},t}(Pt),nq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,i){var a=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,f=l.height,c=e.getData(),h=e.getData("edge"),v=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new rq,g=St(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),x=d.node1.getModel(),b=x.get("localX"),w=x.get("localY"),T=d.node2.getLayout(),A=d.node2.getModel(),C=A.get("localX"),D=A.get("localY"),I=d.getLayout(),L,P,E,O,V,N,G,$;p.shape.extent=Math.max(1,I.dy),p.shape.orient=v,v==="vertical"?(L=(b!=null?b*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,E=(C!=null?C*u:T.x)+I.ty,O=D!=null?D*f:T.y,V=L,N=P*(1-_)+O*_,G=E,$=P*_+O*(1-_)):(L=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,E=C!=null?C*u:T.x,O=(D!=null?D*f:T.y)+I.ty,V=L*(1-_)+E*_,N=P,G=L*_+E*(1-_),$=O),p.setShape({x1:L,y1:P,x2:E,y2:O,cpx1:V,cpy1:N,cpx2:G,cpy2:$}),p.useStyle(m.getItemStyle()),rC(p.style,v,d);var q=""+y.get("value"),Q=De(y,"edgeLabel");He(p,Q,{labelFetcher:{getFormattedLabel:function(gt,Et,U,K,H,tt){return e.getFormattedLabel(gt,Et,"edge",K,zn(H,Q.normal&&Q.normal.get("formatter"),q),tt)}},labelDataIndex:d.dataIndex,defaultText:q}),p.setTextConfig({position:"inside"});var ct=y.getModel("emphasis");Fe(p,y,"lineStyle",function(gt){var Et=gt.getItemStyle();return rC(Et,v,d),Et}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var ht=ct.get("focus");ue(p,ht==="adjacency"?d.getAdjacentDataIndices():ht==="trajectory"?d.getTrajectoryDataIndices():ht,ct.get("blurScope"),ct.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,x=new Vt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});He(x,De(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),x.disableLabelAnimation=!0,x.setStyle("fill",d.getVisual("color")),x.setStyle("decal",d.getVisual("style").decal),Fe(x,g),s.add(x),c.setItemGraphicEl(d.dataIndex,x),St(x).dataType="node";var b=_.get("focus");ue(x,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(d,p){var g=c.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){a._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(iq(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(ee);function rC(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 n=e.node1.getVisual("color"),i=e.node2.getVisual("color");nt(n)&&nt(i)&&(r.fill=new Af(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function iq(r,t,e){var n=new Vt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return oe(n,{shape:{width:r.width+20}},t,e),n}const aq=nq;var oq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var i=e.edges||e.links||[],a=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 te(o[l],this,n));var u=fk(a,i,this,!0,f);return u.data;function f(c,h){c.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(e,n){var i=this.option.data||this.option.nodes,a=i[e];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,i){function a(v){return isNaN(v)||v==null}if(i==="edge"){var o=this.getDataParams(e,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Ie("nameValue",{name:u,value:l,noValue:a(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,h=this.getDataParams(e,i).data.name;return Ie("nameValue",{name:h!=null?h+"":null,value:c,noValue:a(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var i=r.prototype.getDataParams.call(this,e,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(e),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(le);const sq=oq;function lq(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),a=uq(e,t);e.layoutInfo=a;var o=a.width,s=a.height,l=e.getGraph(),u=l.nodes,f=l.edges;cq(u);var c=$t(u,function(p){return p.getLayout().value===0}),h=c.length!==0?0:e.get("layoutIterations"),v=e.get("orient"),d=e.get("nodeAlign");fq(u,f,n,i,o,s,h,v,d)})}function uq(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function fq(r,t,e,n,i,a,o,s,l){hq(r,t,e,i,a,s,l),gq(r,t,a,i,n,o,s),Aq(r,s)}function cq(r){M(r,function(t){var e=na(t.outEdges,gv),n=na(t.inEdges,gv),i=t.getValue()||0,a=Math.max(e,n,i);t.setLayout({value:a},!0)})}function hq(r,t,e,n,i,a,o){for(var s=[],l=[],u=[],f=[],c=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 v=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>v&&(v=g.depth),p.setLayout({depth:y?g.depth:c},!0),a==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=t.indexOf(_);s[S]=0;var x=_.node2,b=r.indexOf(x);--l[b]===0&&f.indexOf(x)<0&&f.push(x)}}++c,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=v>c-1?v:c-1;o&&o!=="left"&&vq(r,o,a,w);var T=a==="vertical"?(i-e)/w:(n-e)/w;pq(r,T,a)}function Lk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function vq(r,t,e,n){if(t==="right"){for(var i=[],a=r,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];i.indexOf(f.node1)<0&&i.push(f.node1)}}a=i,i=[],++o}M(r,function(c){Lk(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else t==="justify"&&dq(r,n)}function dq(r,t){M(r,function(e){!Lk(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function pq(r,t,e){M(r,function(n){var i=n.getLayout().depth*t;e==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function gq(r,t,e,n,i,a,o){var s=yq(r,o);mq(s,t,e,n,i,o),zg(s,i,e,n,o);for(var l=1;a>0;a--)l*=.99,_q(s,l,o),zg(s,i,e,n,o),Tq(s,l,o),zg(s,i,e,n,o)}function yq(r,t){var e=[],n=t==="vertical"?"y":"x",i=am(r,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),M(i.keys,function(a){e.push(i.buckets.get(a))}),e}function mq(r,t,e,n,i,a){var o=1/0;M(r,function(s){var l=s.length,u=0;M(s,function(c){u+=c.getLayout().value});var f=a==="vertical"?(n-(l-1)*i)/u:(e-(l-1)*i)/u;f<o&&(o=f)}),M(r,function(s){M(s,function(l,u){var f=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),M(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function zg(r,t,e,n,i){var a=i==="vertical"?"x":"y";M(r,function(o){o.sort(function(p,g){return p.getLayout()[a]-g.getLayout()[a]});for(var s,l,u,f=0,c=o.length,h=i==="vertical"?"dx":"dy",v=0;v<c;v++)l=o[v],u=f-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[a]+l.getLayout()[h]+t;var d=i==="vertical"?n:e;if(u=f-t-d,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=c-2;v>=0;--v)l=o[v],u=l.getLayout()[a]+l.getLayout()[h]+t-f,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[a]}})}function _q(r,t,e){M(r.slice().reverse(),function(n){M(n,function(i){if(i.outEdges.length){var a=na(i.outEdges,Sq,e)/na(i.outEdges,gv);if(isNaN(a)){var o=i.outEdges.length;a=o?na(i.outEdges,xq,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(a-ca(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-ca(i,e))*t;i.setLayout({y:l},!0)}}})})}function Sq(r,t){return ca(r.node2,t)*r.getValue()}function xq(r,t){return ca(r.node2,t)}function bq(r,t){return ca(r.node1,t)*r.getValue()}function wq(r,t){return ca(r.node1,t)}function ca(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function gv(r){return r.getValue()}function na(r,t,e){for(var n=0,i=r.length,a=-1;++a<i;){var o=+t(r[a],e);isNaN(o)||(n+=o)}return n}function Tq(r,t,e){M(r,function(n){M(n,function(i){if(i.inEdges.length){var a=na(i.inEdges,bq,e)/na(i.inEdges,gv);if(isNaN(a)){var o=i.inEdges.length;a=o?na(i.inEdges,wq,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(a-ca(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-ca(i,e))*t;i.setLayout({y:l},!0)}}})})}function Aq(r,t){var e=t==="vertical"?"x":"y";M(r,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[e]-a.node2.getLayout()[e]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[e]-a.node1.getLayout()[e]})}),M(r,function(n){var i=0,a=0;M(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),M(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function Cq(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var a=1/0,o=-1/0;M(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),M(n,function(s){var l=new Ge({type:"color",mappingMethod:"linear",dataExtent:[a,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}))})}i.length&&M(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Mq(r){r.registerChartView(aq),r.registerSeriesModel(sq),r.registerLayout(lq),r.registerVisual(Cq),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var Pk=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 n,i=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[i,a],d=v[f].get("type"),p=v[1-f].get("type"),g=t.data;if(g&&l){var y=[];M(g,function(S,x){var b;Y(S)?(b=S.slice(),S.unshift(x)):Y(S.value)?(b=F({},S),b.value=b.value.slice(),S.value.unshift(x)):b=S,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:iv(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:iv(p),dimsDef:m.slice()}];return vl(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:bt(t2,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),Rk=function(r){B(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.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(le);_e(Rk,Pk,!0);const Dq=Rk;var Iq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var f=a.getItemLayout(u),c=nC(f,a,u,l,!0);a.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!a.hasValue(u)){o.remove(c);return}var h=a.getItemLayout(u);c?(gn(c),Ek(h,c,a,u)):c=nC(h,a,u,l),o.add(c),a.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=a},t.prototype.remove=function(e){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(ee),Lq=function(){function r(){}return r}(),Pq=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Lq},t.prototype.buildPath=function(e,n){var i=n.points,a=0;for(e.moveTo(i[a][0],i[a][1]),a++;a<4;a++)e.lineTo(i[a][0],i[a][1]);for(e.closePath();a<i.length;a++)e.moveTo(i[a][0],i[a][1]),a++,e.lineTo(i[a][0],i[a][1])},t}(Pt);function nC(r,t,e,n,i){var a=r.ends,o=new Pq({shape:{points:i?Rq(a,n,r):a}});return Ek(r,o,t,e,i),o}function Ek(r,t,e,n,i){var a=e.hostModel,o=Vo[i?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},a,n),t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(n),l=s.getModel("emphasis");Fe(t,s),ue(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Rq(r,t,e){return Z(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}const Eq=Iq;var Ru=M;function kq(r){var t=Oq(r);Ru(t,function(e){var n=e.seriesModels;n.length&&(Nq(e),Ru(n,function(i,a){Vq(i,e.boxOffsetList[a],e.boxWidthList[a])}))})}function Oq(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=Dt(e,i);a<0&&(a=e.length,e[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function Nq(r){var t=r.axis,e=r.seriesModels,n=e.length,i=r.boxWidthList=[],a=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Ru(e,function(d){l=Math.max(l,d.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Ru(e,function(d){var p=d.get("boxWidth");Y(p)||(p=[p,p]),o.push([rt(p[0],s)||0,rt(p[1],s)||0])});var f=s*.8-2,c=f/n*.3,h=(f-c*(n-1))/n,v=h/2-f/2;Ru(e,function(d,p){a.push(v),v+=c+h,i.push(Math.min(Math.max(h,o[p][0]),o[p][1]))})}function Vq(r,t,e){var n=r.coordinateSystem,i=r.getData(),a=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),f=i.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<i.count();c++){var h=i.get(u,c),v=_(h,f[2],c),d=_(h,f[0],c),p=_(h,f[1],c),g=_(h,f[3],c),y=_(h,f[4],c),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),x(m,d),x(m,y),x(m,v),i.setItemLayout(c,{initBaseline:v[s],ends:m})}function _(b,w,T){var A=i.get(w,T),C=[];C[o]=b,C[s]=A;var D;return isNaN(b)||isNaN(A)?D=[NaN,NaN]:(D=n.dataToPoint(C),D[o]+=t),D}function S(b,w,T){var A=w.slice(),C=w.slice();A[o]+=a,C[o]-=a,T?b.push(A,C):b.push(C,A)}function x(b,w){var T=w.slice(),A=w.slice();T[o]-=a,A[o]+=a,b.push(T,A)}}function Bq(r,t){t=t||{};for(var e=[],n=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<r.length;o++){var s=$r(r[o].slice()),l=dp(s,.25),u=dp(s,.5),f=dp(s,.75),c=s[0],h=s[s.length-1],v=(i==null?1.5:i)*(f-l),d=a?c:Math.max(c,l-v),p=a?h:Math.min(h,f+v),g=t.itemNameFormatter,y=vt(g)?g({value:o}):nt(g)?g.replace("{value}",o+""):o+"";e.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:e,outliers:n}}var zq={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==je){var n="";Wt(n)}var i=Bq(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Gq(r){r.registerSeriesModel(Dq),r.registerChartView(Eq),r.registerLayout(kq),r.registerTransform(zq)}var Fq=["itemStyle","borderColor"],Hq=["itemStyle","borderColor0"],Wq=["itemStyle","borderColorDoji"],$q=["itemStyle","color"],Uq=["itemStyle","color0"];function E1(r,t){return t.get(r>0?$q:Uq)}function k1(r,t){return t.get(r===0?Wq:r>0?Fq:Hq)}var Yq={seriesType:"candlestick",plan:ul(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(n,i){for(var a;(a=n.next())!=null;){var o=i.getItemModel(a),s=i.getItemLayout(a).sign,l=o.getItemStyle();l.fill=E1(s,o),l.stroke=k1(s,o)||l.fill;var u=i.ensureUniqueItemVisual(a,"style");F(u,l)}}}}}};const Zq=Yq;var Xq=["color","borderColor"],qq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){ga(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&iC(u,c))return;var h=Gg(c,f,!0);oe(h,{shape:{points:c.ends}},e,f),Fg(h,n,f,o),a.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=i.getItemGraphicEl(c);if(!n.hasValue(f)){a.remove(h);return}var v=n.getItemLayout(f);if(s&&iC(u,v)){a.remove(h);return}h?(Ht(h,{shape:{points:v.ends}},e,f),gn(h)):h=Gg(v),Fg(h,n,f,o),a.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=i.getItemGraphicEl(f);c&&a.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),aC(e,this.group);var n=e.get("clip",!0)?kf(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),l=Gg(s);Fg(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){aC(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(ee),Kq=function(){function r(){}return r}(),jq=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Kq},t.prototype.buildPath=function(e,n){var i=n.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t}(Pt);function Gg(r,t,e){var n=r.ends;return new jq({shape:{points:e?Jq(n,r):n},z2:100})}function iC(r,t){for(var e=!0,n=0;n<t.ends.length;n++)if(r.contain(t.ends[n][0],t.ends[n][1])){e=!1;break}return e}function Fg(r,t,e,n){var i=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,Fe(r,i);var a=t.getItemLayout(e).sign;M(r.states,function(s,l){var u=i.getModel(l),f=E1(a,u),c=k1(a,u)||f,h=s.style||(s.style={});f&&(h.fill=f),c&&(h.stroke=c)});var o=i.getModel("emphasis");ue(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Jq(r,t){return Z(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var Qq=function(){function r(){}return r}(),Hg=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Qq},t.prototype.buildPath=function(e,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];e.moveTo(o,i[a++]),e.lineTo(o,i[a++])}else a+=3},t}(Pt);function aC(r,t,e,n){var i=r.getData(),a=i.getLayout("largePoints"),o=new Hg({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Hg({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Hg({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),Wg(1,o,r),Wg(-1,s,r),Wg(0,l,r),n&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function Wg(r,t,e,n){var i=k1(r,e)||E1(r,e),a=e.getModel("itemStyle").getItemStyle(Xq);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const tK=qq;var kk=function(r){B(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,n,i){var a=n.getItemLayout(e);return a&&i.rect(a.brushRect)},t.type="series.candlestick",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}(le);_e(kk,Pk,!0);const eK=kk;function rK(r){!r||!Y(r.series)||M(r.series,function(t){yt(t)&&t.type==="k"&&(t.type="candlestick")})}var nK={seriesType:"candlestick",plan:ul(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=iK(r,e),i=0,a=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[i])),l=Z(e.mapDimensionsAll(o[a]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),x=m.get(f,y),b=m.get(c,y),w=m.get(h,y),T=Math.min(S,x),A=Math.max(S,x),C=V(T,_),D=V(A,_),I=V(b,_),L=V(w,_),P=[];N(P,D,0),N(P,C,1),P.push($(L),$(D),$(I),$(C));var E=g.getItemModel(y),O=!!E.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:oC(m,y,S,x,f,O),initBaseline:S>x?D[a]:C[a],ends:P,brushRect:G(b,w,_)})}function V(q,Q){var ct=[];return ct[i]=Q,ct[a]=q,isNaN(Q)||isNaN(q)?[NaN,NaN]:t.dataToPoint(ct)}function N(q,Q,ct){var ht=Q.slice(),gt=Q.slice();ht[i]=ch(ht[i]+n/2,1,!1),gt[i]=ch(gt[i]-n/2,1,!0),ct?q.push(ht,gt):q.push(gt,ht)}function G(q,Q,ct){var ht=V(q,ct),gt=V(Q,ct);return ht[i]-=n/2,gt[i]-=n/2,{x:ht[0],y:ht[1],width:n,height:gt[1]-ht[1]}}function $(q){return q[i]=ch(q[i],1),q}}function d(p,g){for(var y=Vn(p.count*4),m=0,_,S=[],x=[],b,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var A=w.get(s,b),C=w.get(u,b),D=w.get(f,b),I=w.get(c,b),L=w.get(h,b);if(isNaN(A)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=oC(w,b,C,D,f,T),S[i]=A,S[a]=I,_=t.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[a]=L,_=t.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function oC(r,t,e,n,i,a){var o;return e>n?o=-1:e<n?o=1:o=a?0:t>0?r.get(i,t-1)<=n?1:-1:1,o}function iK(r,t){var e=r.getBaseAxis(),n,i=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=rt(xt(r.get("barMaxWidth"),i),i),o=rt(xt(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?rt(s,i):Math.max(Math.min(i/2,a),o)}const aK=nK;function oK(r){r.registerChartView(tK),r.registerSeriesModel(eK),r.registerPreprocessor(rK),r.registerVisual(Zq),r.registerLayout(aK)}function sC(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var sK=function(r){B(t,r);function t(e,n){var i=r.call(this)||this,a=new Rf(e,n),o=new _t;return i.add(a),i.add(o),i.updateData(e,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,i=e.color,a=e.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=me(n,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*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)}sC(o,e)},t.prototype.updateEffectAnimation=function(e){for(var n=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(n[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}sC(i,e)},t.prototype.highlight=function(){mi(this)},t.prototype.downplay=function(){_i(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,n){var i=this,a=e.hostModel;this.childAt(0).updateData(e,n);var o=this.childAt(1),s=e.getItemModel(n),l=e.getItemVisual(n,"symbol"),u=cl(e.getItemVisual(n,"symbolSize")),f=e.getItemVisual(n,"style"),c=f&&f.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var v=zo(e.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var d=e.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=a.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/e.count(),p.z=a.getShallow("z")||0,p.zlevel=a.getShallow("zlevel")||0,p.symbolType=l,p.color=c,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&i.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=p,ue(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(_t);const lK=sK;var uK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new Ef(lK)},t.prototype.render=function(e,n,i){var a=e.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,i=n&&n.getArea&&n.getArea();return e.get("clip",!0)?i:null},t.prototype.updateTransform=function(e,n,i){var a=e.getData();this.group.dirty();var o=Of("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var n=e.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=B5(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(ee);const fK=uK;var cK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,n,i){return i.point(n.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}(le);const hK=cK;function vK(r){r.registerChartView(fK),r.registerSeriesModel(hK),r.registerLayout(Of("effectScatter"))}var dK=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;return a.add(a.createLine(e,n,i)),a._updateEffectSymbol(e,n),a}return t.prototype.createLine=function(e,n,i){return new T1(e,n,i)},t.prototype._updateEffectSymbol=function(e,n){var i=e.getItemModel(n),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");Y(o)||(o=[o,o]);var l=e.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=me(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(a.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,a,n))},t.prototype._updateEffectAnimation=function(e,n,i){var a=this.childAt(1);if(a){var o=e.getItemLayout(i),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=Re(n.get("delay"),function(v){return v/e.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),f>0&&(s=this._getLineLength(a)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;vt(c)?h=c(i):h=c,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,n,i,a,o){if(n>0){e.__t=0;var s=this,l=e.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(e)});a||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return Ui(e.__p1,e.__cp1)+Ui(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,i){this.childAt(0).updateData(e,n,i),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,i=e.__p2,a=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Le,f=$y;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var c=e.__t<1?f(n[0],a[0],i[0],o):f(i[0],a[0],n[0],1-o),h=e.__t<1?f(n[1],a[1],i[1],o):f(i[1],a[1],n[1],1-o);e.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=Ui(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*Ui(n,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,n){this.childAt(0).updateLayout(e,n);var i=e.getItemModel(n).getModel("effect");this._updateEffectAnimation(e,i,n)},t}(_t);const Ok=dK;var pK=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;return a._createPolyline(e,n,i),a}return t.prototype._createPolyline=function(e,n,i){var a=e.getItemLayout(n),o=new mr({shape:{points:a}});this.add(o),this._updateCommonStl(e,n,i)},t.prototype.updateData=function(e,n,i){var a=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(n)}};Ht(o,s,a,n),this._updateCommonStl(e,n,i)},t.prototype._updateCommonStl=function(e,n,i){var a=this.childAt(0),o=e.getItemModel(n),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,f=i&&i.emphasisDisabled;if(!i||e.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}a.useStyle(e.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var h=a.ensureState("emphasis");h.style=s,ue(this,l,u,f)},t.prototype.updateLayout=function(e,n){var i=this.childAt(0);i.setShape("points",e.getItemLayout(n))},t}(_t);const Nk=pK;var gK=function(r){B(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,n,i){return new Nk(e,n,i)},t.prototype._updateAnimationPoints=function(e,n){this._points=n;for(var i=[0],a=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];a+=Ui(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var n=e.__t<1?e.__t:2-e.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-a[l])/(a[l+1]-a[l]),c=i[l],h=i[l+1];e.x=c[0]*(1-f)+f*h[0],e.y=c[1]*(1-f)+f*h[1];var v=e.__t<1?h[0]-c[0]:c[0]-h[0],d=e.__t<1?h[1]-c[1]:c[1]-h[1];e.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,e.ignore=!1}},t}(Ok);const yK=gK;var mK=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),_K=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new mK},t.prototype.buildPath=function(e,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){e.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)e.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],f=i[o++],c=i[o++],h=i[o++];if(e.moveTo(u,f),a>0){var v=(u+c)/2-(f-h)*a,d=(f+h)/2-(c-u)*a;e.quadraticCurveTo(v,d,c,h)}else e.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var f=a[u++];if(f>0)for(var c=a[u++],h=a[u++],v=1;v<f;v++){var d=a[u++],p=a[u++];if(Wi(c,h,d,p,s,e,n))return l}l++}else for(var l=0,u=0;u<a.length;){var c=a[u++],h=a[u++],d=a[u++],p=a[u++];if(o>0){var g=(c+d)/2-(h-p)*o,y=(h+p)/2-(d-c)*o;if(FL(c,h,g,y,d,p,s,e,n))return l}else if(Wi(c,h,d,p,s,e,n))return l;l++}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var f=i[u++],c=i[u++];a=Math.min(f,a),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}e=this._rect=new Mt(a,o,s,l)}return e},t}(Pt),SK=function(){function r(){this.group=new _t}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){var n=this._newAdded[0],i=e.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,e),l.__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 _K({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=e.getVisual("style");a&&a.stroke&&t.setStyle("stroke",a.stroke),t.setStyle("fill",null);var o=St(t);o.seriesIndex=i.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}();const xK=SK;var bK={seriesType:"lines",plan:ul(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(e){for(var u=0,f=i.start;f<i.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],f=i.start;f<i.end;f++){var v=r.getLineCoords(f,o);e&&(s[c++]=v);for(var d=0;d<v;d++)h=t.dataToPoint(o[d],!1,h),s[c++]=h[0],s[c++]=h[1]}a.setLayout("linesPoints",s)}else for(var f=i.start;f<i.end;f++){var p=a.getItemModel(f),v=r.getLineCoords(f,o),g=[];if(e)for(var y=0;y<v;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=p.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])}a.setItemLayout(f,g)}}}}}};const Vk=bK;var wK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._updateLineDraw(a,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=i.getZr(),f=u.painter.getType()==="svg";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(a);var c=e.get("clip",!0)&&kf(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateLineDraw(a,e);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,i){var a=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Vk.reset(e,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new xK:new A1(o?a?yK:Nk:a?Ok:T1),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(ee);const TK=wK;var AK=typeof Uint32Array=="undefined"?Array:Uint32Array,CK=typeof Float64Array=="undefined"?Array:Float64Array;function lC(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Z(t,function(e){var n=[e[0].coord,e[1].coord],i={coords:n};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),J0([i,e[0],e[1]])}))}var MK=function(r){B(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||[],lC(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(lC(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Fu(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Fu(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],a=this._flatCoordsOffset[e*2+1],o=0;o<a;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[i+o*2],n[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Ft(e[0])){for(var i=e.length,a=new AK(i),o=new CK(i),s=0,l=0,u=0,f=0;f<i;){u++;var c=e[f++];a[l++]=s+n,a[l++]=c;for(var h=0;h<c;h++){var v=e[f++],d=e[f++];o[s++]=v,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,n){var i=new sr(["value"],this);return i.hasItemOption=!1,i.initData(e.data,[],function(a,o,s,l){if(a instanceof Array)return NaN;i.hasItemOption=!0;var u=a.value;if(u!=null)return u instanceof Array?u[l]:u}),i},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=a.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Ie("nameValue",{name:f.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},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}(le);const DK=MK;function Bc(r){return r instanceof Array||(r=[r,r]),r}var IK={seriesType:"lines",reset:function(r){var t=Bc(r.get("symbol")),e=Bc(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function i(a,o){var s=a.getItemModel(o),l=Bc(s.getShallow("symbol",!0)),u=Bc(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const LK=IK;function PK(r){r.registerChartView(TK),r.registerSeriesModel(DK),r.registerLayout(Vk),r.registerVisual(LK)}var RK=256,EK=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=aa.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=t.length;c.width=e,c.height=n;for(var d=0;d<v;++d){var p=t[d],g=p[0],y=p[1],m=p[2],_=i(m);h.globalAlpha=_,h.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),x=S.data,b=0,w=x.length,T=this.minOpacity,A=this.maxOpacity,C=A-T;b<w;){var _=x[b+3]/256,D=Math.floor(_*(RK-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*C+T),x[b++]=I[D],x[b++]=I[D+1],x[b++]=I[D+2],x[b++]=I[D+3]*_*256}else b+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=aa.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},r}();const kK=EK;function OK(r,t,e){var n=r[1]-r[0];t=Z(t,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&e[s]}}function NK(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(n){return n>=t[0]&&n<=t[1]}}function uC(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var VK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):uC(o)&&this._renderOnGeo(o,e,a,i)},t.prototype.incrementalPrepareRender=function(e,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,i,a){var o=n.coordinateSystem;o&&(uC(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){ga(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,i,a,o){var s=e.coordinateSystem,l=Fo(s,"cartesian2d"),u,f,c,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,f=d.getBandWidth()+.5,c=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=this.group,g=e.getData(),y=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),S=e.get(["itemStyle","borderRadius"]),x=De(e),b=e.getModel("emphasis"),w=b.get("focus"),T=b.get("blurScope"),A=b.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=i;D<a;D++){var I=void 0,L=g.getItemVisual(D,"style");if(l){var P=g.get(C[0],D),E=g.get(C[1],D);if(isNaN(g.get(C[2],D))||isNaN(P)||isNaN(E)||P<c[0]||P>c[1]||E<h[0]||E>h[1])continue;var O=s.dataToPoint([P,E]);I=new Vt({shape:{x:O[0]-u/2,y:O[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(g.get(C[1],D)))continue;I=new Vt({z2:1,shape:s.dataToRect([g.get(C[0],D)]).contentShape,style:L})}if(g.hasItemOption){var V=g.getItemModel(D),N=V.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),m=V.getModel(["blur","itemStyle"]).getItemStyle(),_=V.getModel(["select","itemStyle"]).getItemStyle(),S=V.get(["itemStyle","borderRadius"]),w=N.get("focus"),T=N.get("blurScope"),A=N.get("disabled"),x=De(V)}I.shape.r=S;var G=e.getRawValue(D),$="-";G&&G[2]!=null&&($=G[2]+""),He(I,x,{labelFetcher:e,labelDataIndex:D,defaultOpacity:L.opacity,defaultText:$}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,ue(I,w,T,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(D,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new kK;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,a.getWidth()),p=Math.min(f.height+f.y,a.getHeight()),g=d-h,y=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,A){var C=e.dataToPoint([w,T]);return C[0]-=h,C[1]-=v,C.push(A),C}),S=i.getExtent(),x=i.type==="visualMap.continuous"?NK(S,i.option.range):OK(S,i.getPieceList(),i.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new We({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(ee);const BK=VK;var zK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Df.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"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(le);const GK=zK;function FK(r){r.registerChartView(BK),r.registerSeriesModel(GK)}var HK=["itemStyle","borderWidth"],fC=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],$g=new pa,WK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:fC[+f],categoryDim:fC[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=hC(o,d),g=cC(o,d,p,h),y=vC(o,h,g);o.setItemGraphicEl(d,y),a.add(y),pC(y,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){a.remove(g);return}var y=hC(o,d),m=cC(o,d,y,h),_=Wk(o,m);g&&_!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(d,null),g=null),g?KK(g,h,m):g=vC(o,h,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,a.add(g),pC(g,h,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&dC(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?kf(e.coordinateSystem,!1,e):null;return v?a.setClipPath(v):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var i=this.group,a=this._data;e.get("animation")?a&&a.eachItemGraphicEl(function(o){dC(a,St(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t}(ee);function cC(r,t,e,n){var i=r.getItemLayout(t),a=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,c=e.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};$K(e,a,i,n,h),UK(r,t,i,a,o,h.boundingLength,h.pxSign,f,n,h),YK(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=zo(e.get("symbolOffset"),v);return ZK(e,v,i,a,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function $K(r,t,e,n,i){var a=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[a.wh]<=0),f;if(Y(o)){var c=[Ug(s,o[0])-l,Ug(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=Ug(s,o)-l:t?f=n.coordSysExtent[a.index][u]-l:f=e[a.wh];i.boundingLength=f,t&&(i.repeatCutLength=e[a.wh]);var h=a.xy==="x",v=s.inverse;i.pxSign=h&&!v||!h&&v?f>=0?1:-1:f>0?1:-1}function Ug(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function UK(r,t,e,n,i,a,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(e[c.wh]),v=r.getItemVisual(t,"symbolSize"),d;Y(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[c.index]=rt(d[c.index],h),d[f.index]=rt(d[f.index],n?h:Math.abs(a)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function YK(r,t,e,n,i){var a=r.get(HK)||0;a&&($g.attr({scaleX:t[0],scaleY:t[1],rotation:e}),$g.updateTransform(),a/=$g.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function ZK(r,t,e,n,i,a,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,d=c.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var y=Math.abs(l),m=Re(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=rt(m,t[v.index]),x=Math.max(p+S*2,0),b=_?0:S*2,w=ML(n),T=w?n:gC((y+b)/x),A=y-T*p;S=A/2/(_?T:Math.max(T-1,1)),x=p+S*2,b=_?0:S*2,!w&&n!=="fixed"&&(T=u?gC((Math.abs(u)+b)/x):0),g=T*x-b,c.repeatTimes=T,c.symbolMargin=S}var C=d*(g/2),D=c.pathPosition=[];D[h.index]=e[h.wh]/2,D[v.index]=o==="start"?C:o==="end"?l-C:l/2,a&&(D[0]+=a[0],D[1]+=a[1]);var I=c.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=c.barRectShape=F({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(D[v.index]+C)),L[h.wh]=e[h.wh];var P=c.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=f.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Bk(r){var t=r.symbolPatternSize,e=me(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function zk(r,t,e,n){var i=r.__pictorialBundle,a=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=a[t.valueDim.index]+o+e.symbolMargin*2;for(O1(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?Os(p,null,d(f),e,n):Os(p,null,{scaleX:0,scaleY:0},e,n,function(){i.remove(p)}),f++});f<u;f++){var h=Bk(e);h.__pictorialAnimationIndex=f,h.__pictorialRepeatTimes=u,i.add(h);var v=d(f);Os(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},e,n)}function d(p){var g=s.slice(),y=e.pxSign,m=p;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=c*(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 Gk(r,t,e,n){var i=r.__pictorialBundle,a=r.__pictorialMainPath;a?Os(a,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(a=r.__pictorialMainPath=Bk(e),i.add(a),Os(a,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function Fk(r,t,e){var n=F({},t.barRectShape),i=r.__pictorialBarRect;i?Os(i,null,{shape:n},t,e):(i=r.__pictorialBarRect=new Vt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function Hk(r,t,e,n){if(e.symbolClip){var i=r.__pictorialClipPath,a=F({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(i)Ht(i,{shape:a},s,l);else{a[o.wh]=0,i=new Vt({shape:a}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=e.clipShape[o.wh],Vo[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function hC(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=XK,e.isAnimationEnabled=qK,e}function XK(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function qK(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function vC(r,t,e,n){var i=new _t,a=new _t;return i.add(a),i.__pictorialBundle=a,a.x=e.bundlePosition[0],a.y=e.bundlePosition[1],e.symbolRepeat?zk(i,t,e):Gk(i,t,e),Fk(i,e,n),Hk(i,t,e,n),i.__pictorialShapeStr=Wk(r,e),i.__pictorialSymbolMeta=e,i}function KK(r,t,e){var n=e.animationModel,i=e.dataIndex,a=r.__pictorialBundle;Ht(a,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,i),e.symbolRepeat?zk(r,t,e,!0):Gk(r,t,e,!0),Fk(r,e,!0),Hk(r,t,e,!0)}function dC(r,t,e,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];O1(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),M(a,function(o){sa(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function Wk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function O1(r,t,e){M(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Os(r,t,e,n,i,a){t&&r.attr(t),n.symbolClip&&!i?e&&r.attr(e):e&&Vo[i?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,a)}function pC(r,t,e){var n=e.dataIndex,i=e.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),f=a.get("focus"),c=a.get("blurScope"),h=a.get("scale");O1(r,function(p){if(p instanceof We){var g=p.style;p.useStyle(F({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,h&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,He(d,De(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Ys(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),ue(r,f,c,a.get("disabled"))}function gC(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const jK=WK;var JK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=ya(uv.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(uv);const QK=JK;function tj(r){r.registerChartView(jK),r.registerSeriesModel(QK),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(xR,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bR("pictorialBar"))}var ej=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=a.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function h(g){return g.name}var v=new Si(this._layersSeries||[],l,h,h),d=[];v.add(at(p,this,"add")).update(at(p,this,"update")).remove(at(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,T=0;T<w.length;T++){var A=a.getItemLayout(w[T]),C=A.x,D=A.y0,I=A.y;S.push(C,D),x.push(C,D+I),b=a.getItemVisual(w[T],"style")}var L,P=a.getItemLayout(w[0]),E=e.getModel("label"),O=E.get("margin"),V=e.getModel("emphasis");if(g==="add"){var N=d[y]=new _t;L=new hE({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),N.add(L),s.add(N),e.isAnimationEnabled()&&L.setClipPath(rj(L.getBoundingRect(),e,function(){L.removeClipPath()}))}else{var N=_[m];L=N.childAt(0),s.add(N),d[y]=N,Ht(L,{shape:{points:S,stackedOnPoints:x}},e),gn(L)}He(L,De(e),{labelDataIndex:w[T-1],defaultText:a.getName(w[T-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var G=L.getTextContent();G&&(G.x=P.x-O,G.y=P.y0+P.y/2),L.useStyle(b),a.setItemGraphicEl(y,L),Fe(L,e),ue(L,V.get("focus"),V.get("blurScope"),V.get("disabled"))}this._layersSeries=l,this._layers=d},t.type="themeRiver",t}(ee);function rj(r,t,e){var n=new Vt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return oe(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),n}const nj=ej;var Yg=2,ij=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Vf(at(this.getData,this),at(this.getRawData,this))},t.prototype.fixData=function(e){var n=e.length,i={},a=am(e,function(h){return i.hasOwnProperty(h[0]+"")||(i[h[0]+""]=-1),h[2]}),o=[];a.buckets.each(function(h,v){o.push({name:v,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 c=o[l].dataList[f][0]+"";i[c]=l}for(var c in i)i.hasOwnProperty(c)&&i[c]!==l&&(i[c]=l,e[n]=[c,0,u],n++)}return e},t.prototype.getInitialData=function(e,n){for(var i=this.getReferringComponents("singleAxis",ye).models[0],a=i.get("type"),o=$t(e.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ft(),f=0,c=0;c<s.length;++c)l.push(s[c][Yg]),u.get(s[c][Yg])||(u.set(s[c][Yg],f),f++);var h=Lf(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:iv(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new sr(h,this);return v.initData(s),v},t.prototype.getLayerSeries=function(){for(var e=this.getData(),n=e.count(),i=[],a=0;a<n;++a)i[a]=a;var o=e.mapDimension("single"),s=am(i,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,h){return e.get(o,c)-e.get(o,h)}),l.push({name:f,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,n,i){Y(e)||(e=e?[e]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,h=-1,v=o[f].indices.length,d=0;d<v;++d){var p=a.get(e[0],o[f].indices[d]),g=Math.abs(p-n);g<=c&&(u=p,c=g,h=o[f].indices[d])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=a.getName(e),s=a.get(a.mapDimension("value"),e);return Ie("nameValue",{name:o,value:s})},t.type="series.themeRiver",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}(le);const aj=ij;function oj(r,t){r.eachSeriesByType("themeRiver",function(e){var n=e.getData(),i=e.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=e.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=rt(s[0],o.height),s[1]=rt(s[1],o.height);var u=o.height-s[0]-s[1];yC(n,e,u)}else{s[0]=rt(s[0],o.width),s[1]=rt(s[1],o.width);var f=o.width-s[0]-s[1];yC(n,e,f)}n.setLayout("layoutInfo",a)})}function yC(r,t,e){if(r.count())for(var n=t.coordinateSystem,i=t.getLayerSeries(),a=r.mapDimension("single"),o=r.mapDimension("value"),s=Z(i,function(g){return Z(g.indices,function(y){var m=n.dataToPoint(r.get(a,y));return m[1]=r.get(o,y),m})}),l=sj(s),u=l.y0,f=e/l.max,c=i.length,h=i[0].indices.length,v,d=0;d<h;++d){v=u[d]*f,r.setItemLayout(i[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:v,y:s[0][d][1]*f});for(var p=1;p<c;++p)v+=s[p-1][d][1]*f,r.setItemLayout(i[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:v,y:s[p][d][1]*f})}}function sj(r){for(var t=r.length,e=r[0].length,n=[],i=[],a=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>a&&(a=s),n.push(s)}for(var u=0;u<e;++u)i[u]=(a-n[u])/2;a=0;for(var f=0;f<e;++f){var c=n[f]+i[f];c>a&&(a=c)}return{y0:i,max:a}}function lj(r){r.registerChartView(nj),r.registerSeriesModel(aj),r.registerLayout(oj),r.registerProcessor(Nf("themeRiver"))}var uj=2,fj=4,cj=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this)||this;o.z2=uj,o.textConfig={inside:!0},St(o).seriesIndex=n.seriesIndex;var s=new Gt({z2:fj,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,n,i,a),o}return t.prototype.updateData=function(e,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;St(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=F({},f);c.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=$s(v,o));var d=ho(l.getModel("itemStyle"),c,!0);F(c,d),M(ur,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=ho(S,c);x&&(_.shape=x)}),e?(s.setShape(c),s.shape.r=f.r0,oe(s,{shape:{r:f.r}},i,n.dataIndex)):(Ht(s,{shape:c},i),gn(s)),s.useStyle(h),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),y=g==="relative"?Fu(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;ue(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,i=this.node.getModel(),a=i.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),c=this,h=c.getTextContent(),v=this.node.dataIndex,d=a.get("minAngle")/180*Math.PI,p=a.get("show")&&!(d!=null&&Math.abs(s)<d);h.ignore=!p,M(Xu,function(y){var m=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),_=y==="normal",S=_?h:h.ensureState(y),x=e.getFormattedLabel(v,y);_&&(x=x||n.node.name),S.style=Qt(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"),T=_?c:c.states[y],A=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?A:null,inside:w!=="outside"};var C,D=g(m,"distance")||0,I=g(m,"align"),L=g(m,"rotate"),P=Math.PI*.5,E=Math.PI*1.5,O=Tr(L==="tangential"?Math.PI/2-l:l),V=O>P&&!Uu(O-P)&&O<E;w==="outside"?(C=o.r+D,I=V?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?C=0:C=(o.r+o.r0)/2,I="center"):I==="left"?(C=o.r0+D,I=V?"right":"left"):I==="right"&&(C=o.r-D,I=V?"left":"right"),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=C*u+o.cx,S.y=C*f+o.cy;var N=0;L==="radial"?N=Tr(-l)+(V?Math.PI:0):L==="tangential"?N=Tr(Math.PI/2-l)+(V?Math.PI:0):Ft(L)&&(N=L*Math.PI/180),S.rotation=Tr(N)});function g(y,m){var _=y.get(m);return _==null?a.get(m):_}h.dirtyStyle()},t}(gr);const mC=cj;var n0="sunburstRootToNode",_C="sunburstHighlight",hj="sunburstUnhighlight";function vj(r){r.registerAction({type:n0,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=lf(t,[n0],i);if(o){var s=i.getViewRoot();s&&(t.direction=m1(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),r.registerAction({type:_C,update:"none"},function(t,e,n){t=F({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=lf(t,[_C],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(F(t,{type:"highlight"}))}),r.registerAction({type:hj,update:"updateView"},function(t,e,n){t=F({},t),n.dispatchAction(F(t,{type:"downplay"}))})}var dj=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){var o=this;this.seriesModel=e,this.api=i,this.ecModel=n;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),f=this.group,c=e.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var v=this._oldChildren||[];d(h,v),y(l,u),this._initEvents(),this._oldChildren=h;function d(m,_){if(m.length===0&&_.length===0)return;new Si(_,m,S,S).add(x).update(x).remove(bt(x,null)).execute();function S(b){return b.getId()}function x(b,w){var T=b==null?null:m[b],A=w==null?null:_[w];p(T,A)}}function p(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,e,n,i),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new mC(m,e,n,i);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,n,i):(o.virtualPiece=new mC(m,e,n,i),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(n){var i=!1,a=e.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.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";Kh(u,f)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:n0,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(ee);const pj=dj;var gj=function(r){B(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,n){var i={name:e.name,children:e.data};$k(i);var a=this._levelModels=Z(e.levels||[],function(l){return new te(l,this,n)},this),o=y1.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),h=a[c.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Md(i,this),n},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 n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){XE(this)},t.type="series.sunburst",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}(le);function $k(r){var t=0;M(r.children,function(n){$k(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var e=r.value;Y(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Y(r.value)?r.value[0]=e:r.value=e}const yj=gj;var SC=Math.PI/180;function mj(r,t,e){t.eachSeriesByType(r,function(n){var i=n.get("center"),a=n.get("radius");Y(a)||(a=[0,a]),Y(i)||(i=[i,i]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=rt(i[0],o),f=rt(i[1],s),c=rt(a[0],l/2),h=rt(a[1],l/2),v=-n.get("startAngle")*SC,d=n.get("minAngle")*SC,p=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&Uk(g,m);var _=0;M(g.children,function(O){!isNaN(O.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(h-c)/(w||1),A=n.get("clockwise"),C=n.get("stillShowZeroSum"),D=A?1:-1,I=function(O,V){if(O){var N=V;if(O!==p){var G=O.getValue(),$=S===0&&C?x:G*x;$<d&&($=d),N=V+D*$;var q=O.depth-y-(b?-1:1),Q=c+T*q,ct=c+T*(q+1),ht=n.getLevelModel(O);if(ht){var gt=ht.get("r0",!0),Et=ht.get("r",!0),U=ht.get("radius",!0);U!=null&&(gt=U[0],Et=U[1]),gt!=null&&(Q=rt(gt,l/2)),Et!=null&&(ct=rt(Et,l/2))}O.setLayout({angle:$,startAngle:V,endAngle:N,clockwise:A,cx:u,cy:f,r0:Q,r:ct})}if(O.children&&O.children.length){var K=0;M(O.children,function(H){K+=I(H,V+K)})}return N-V}};if(b){var L=c,P=c+T,E=Math.PI*2;p.setLayout({angle:E,startAngle:v,endAngle:v+E,clockwise:A,cx:u,cy:f,r0:L,r:P})}I(g,v)})}function Uk(r,t){var e=r.children||[];r.children=_j(e,t),e.length&&M(r.children,function(n){Uk(n,t)})}function _j(r,t){if(vt(t)){var e=Z(r,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return e.sort(function(i,a){return t(i.params,a.params)}),Z(e,function(i){return r[i.index]})}else{var n=t==="asc";return r.sort(function(i,a){var o=(i.getValue()-a.getValue())*(n?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(n?-1:1):o})}}function Sj(r){var t={};function e(n,i,a){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&nt(s)&&(s=Zy(s,(n.depth-1)/(a-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");F(u,l)})})}function xj(r){r.registerChartView(pj),r.registerSeriesModel(yj),r.registerLayout(bt(mj,"sunburst")),r.registerProcessor(bt(Nf,"sunburst")),r.registerVisual(Sj),vj(r)}var xC={color:"fill",borderColor:"stroke"},bj={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},hi=Nt(),wj=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return Ai(null,this)},t.prototype.getDataParams=function(e,n,i){var a=r.prototype.getDataParams.call(this,e,n);return i&&(a.info=hi(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(le);const Tj=wj;function Aj(r,t){return t=t||[0,0],Z(["x","y"],function(e,n){var i=this.getAxis(e),a=t[n],o=r[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function Cj(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:at(Aj,r)}}}function Mj(r,t){return t=t||[0,0],Z([0,1],function(e){var n=t[e],i=r[e]/2,a=[],o=[];return a[e]=n-i,o[e]=n+i,a[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(a)[e]-this.dataToPoint(o)[e])},this)}function Dj(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:at(Mj,r)}}}function Ij(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,i=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-i)-e.dataToCoord(n+i))}function Lj(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:at(Ij,r)}}}function Pj(r,t){return t=t||[0,0],Z(["Radius","Angle"],function(e,n){var i="get"+e+"Axis",a=this[i](),o=t[n],s=r[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function Rj(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),s=r.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:at(Pj,r)}}}function Ej(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(n,i){return r.dataToPoint(n,i)}}}}function Yk(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||lt(r,"text")))}function Zk(r,t,e){var n=r,i,a,o;if(t==="text")o=n;else{o={},lt(n,"text")&&(o.text=n.text),lt(n,"rich")&&(o.rich=n.rich),lt(n,"textFill")&&(o.fill=n.textFill),lt(n,"textStroke")&&(o.stroke=n.textStroke),lt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),lt(n,"fontSize")&&(o.fontSize=n.fontSize),lt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),lt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=lt(n,"textPosition");e?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),lt(n,"textPosition")&&(i.position=n.textPosition),lt(n,"textOffset")&&(i.offset=n.textOffset),lt(n,"textRotation")&&(i.rotation=n.textRotation),lt(n,"textDistance")&&(i.distance=n.textDistance)}return bC(o,r),M(o.rich,function(l){bC(l,l)}),{textConfig:i,textContent:a}}function bC(r,t){t&&(t.font=t.textFont||t.font,lt(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),lt(t,"textAlign")&&(r.align=t.textAlign),lt(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),lt(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),lt(t,"textWidth")&&(r.width=t.textWidth),lt(t,"textHeight")&&(r.height=t.textHeight),lt(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),lt(t,"textPadding")&&(r.padding=t.textPadding),lt(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),lt(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),lt(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),lt(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),lt(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),lt(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),lt(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function wC(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var i=n.textPosition.indexOf("inside")>=0,a=r.fill||"#000";TC(n,t);var o=n.textFill==null;return i?o&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,M(t.rich,function(s){TC(s,s)}),n}function TC(r,t){t&&(lt(t,"fill")&&(r.textFill=t.fill),lt(t,"stroke")&&(r.textStroke=t.fill),lt(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),lt(t,"font")&&(r.font=t.font),lt(t,"fontStyle")&&(r.fontStyle=t.fontStyle),lt(t,"fontWeight")&&(r.fontWeight=t.fontWeight),lt(t,"fontSize")&&(r.fontSize=t.fontSize),lt(t,"fontFamily")&&(r.fontFamily=t.fontFamily),lt(t,"align")&&(r.textAlign=t.align),lt(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),lt(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),lt(t,"width")&&(r.textWidth=t.width),lt(t,"height")&&(r.textHeight=t.height),lt(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),lt(t,"padding")&&(r.textPadding=t.padding),lt(t,"borderColor")&&(r.textBorderColor=t.borderColor),lt(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),lt(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),lt(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),lt(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),lt(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),lt(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),lt(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),lt(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),lt(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),lt(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Xk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},AC=kt(Xk);Wn(Un,function(r,t){return r[t]=1,r},{});Un.join(", ");var yv=["","style","shape","extra"],qs=Nt();function N1(r,t,e,n,i){var a=r+"Animation",o=rl(r,n,i)||{},s=qs(t).userDuring;return o.duration>0&&(o.during=s?at(Bj,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,e[a]),o}function yh(r,t,e,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=qs(r),u=t.style;l.userDuring=t.during;var f={},c={};if(Gj(r,t,c),MC("shape",t,c),MC("extra",t,c),!a&&s&&(zj(r,t,f),CC("shape",r,t,f),CC("extra",r,t,f),Fj(r,t,u,f)),c.style=u,kj(r,c,o),Nj(r,t),s)if(a){var h={};M(yv,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),F(d?h[d]:h,p.enterFrom))});var v=N1("enter",r,t,e,i);v.duration>0&&r.animateFrom(h,v)}else Oj(r,t,i||0,e,f);qk(r,t),u?r.dirty():r.markRedraw()}function qk(r,t){for(var e=qs(r).leaveToProps,n=0;n<yv.length;n++){var i=yv[n],a=i?t[i]:t;a&&a.leaveTo&&(e||(e=qs(r).leaveToProps={}),i&&(e[i]=e[i]||{}),F(i?e[i]:e,a.leaveTo))}}function Ld(r,t,e,n){if(r){var i=r.parent,a=qs(r).leaveToProps;if(a){var o=N1("update",r,t,e,0);o.done=function(){i.remove(r),n&&n()},r.animateTo(a,o)}else i.remove(r),n&&n()}}function Co(r){return r==="all"}function kj(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var i=r.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function Oj(r,t,e,n,i){if(i){var a=N1("update",r,t,n,e);a.duration>0&&r.animateFrom(i,a)}}function Nj(r,t){lt(t,"silent")&&(r.silent=t.silent),lt(t,"ignore")&&(r.ignore=t.ignore),r instanceof Yr&<(t,"invisible")&&(r.invisible=t.invisible),r instanceof Pt&<(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Cn={},Vj={setTransform:function(r,t){return Cn.el[r]=t,this},getTransform:function(r){return Cn.el[r]},setShape:function(r,t){var e=Cn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Cn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Cn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Cn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Cn.el.extra||(Cn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Cn.el.extra;if(t)return t[r]}};function Bj(){var r=this,t=r.el;if(t){var e=qs(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}Cn.el=t,n(Vj)}}function CC(r,t,e,n){var i=e[r];if(i){var a=t[r],o;if(a){var s=e.transition,l=i.transition;if(l)if(!o&&(o=n[r]={}),Co(l))F(o,a);else for(var u=Zt(l),f=0;f<u.length;f++){var c=u[f],h=a[c];o[c]=h}else if(Co(s)||Dt(s,r)>=0){!o&&(o=n[r]={});for(var v=kt(a),f=0;f<v.length;f++){var c=v[f],h=a[c];Hj(i[c],h)&&(o[c]=h)}}}}}function MC(r,t,e){var n=t[r];if(n)for(var i=e[r]={},a=kt(n),o=0;o<a.length;o++){var s=a[o];i[s]=Su(n[s])}}function zj(r,t,e){for(var n=t.transition,i=Co(n)?Un:Zt(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function Gj(r,t,e){for(var n=0;n<AC.length;n++){var i=AC[n],a=Xk[i],o=t[i];o&&(e[a[0]]=o[0],e[a[1]]=o[1])}for(var n=0;n<Un.length;n++){var s=Un[n];t[s]!=null&&(e[s]=t[s])}}function Fj(r,t,e,n){if(e){var i=r.style,a;if(i){var o=e.transition,s=t.transition;if(o&&!Co(o)){var l=Zt(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=i[f];a[f]=c}}else if(r.getAnimationStyleProps&&(Co(s)||Co(o)||Dt(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!a&&(a=n.style={});for(var d=kt(e),u=0;u<d.length;u++){var f=d[u];if(v[f]){var c=i[f];a[f]=c}}}}}}}function Hj(r,t){return Ke(r)?r!==t:r!=null&&isFinite(r)}var Kk=Nt(),Wj=["percent","easing","shape","style","extra"];function jk(r){r.stopAnimation("keyframe"),r.attr(Kk(r))}function mv(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(Y(t)){M(t,function(s){mv(r,s,e)});return}var n=t.keyframes,i=t.duration;if(e&&i==null){var a=rl("enter",e,0);i=a&&a.duration}if(!(!n||!i)){var o=Kk(r);M(yv,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),M(n,function(u){var f=r.animators,c=s?u[s]:u;if(c){var h=kt(c);if(s||(h=$t(h,function(p){return Dt(Wj,p)<0})),!!h.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;M(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(i*u.percent,c,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var vi="emphasis",Ji="normal",V1="blur",B1="select",ha=[Ji,vi,V1,B1],Zg={normal:["itemStyle"],emphasis:[vi,"itemStyle"],blur:[V1,"itemStyle"],select:[B1,"itemStyle"]},Xg={normal:["label"],emphasis:[vi,"label"],blur:[V1,"label"],select:[B1,"label"]},$j=["x","y"],Uj="e\0\0",Er={normal:{},emphasis:{},blur:{},select:{}},Yj={cartesian2d:Cj,geo:Dj,single:Lj,polar:Rj,calendar:Ej};function i0(r){return r instanceof Pt}function a0(r){return r instanceof Yr}function Zj(r,t){t.copyTransform(r),a0(t)&&a0(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,i0(t)&&i0(r)&&t.setShape(r.shape))}var Xj=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=DC(e,s,n,i);o||l.removeAll(),s.diff(o).add(function(c){qg(i,null,c,u(c,a),e,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&Ld(h,hi(h).option,e)}).update(function(c,h){var v=o.getItemGraphicEl(h);qg(i,v,c,u(c,a),e,l,s)}).execute();var f=e.get("clip",!0)?kf(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,n,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,n,i,a,o){var s=n.getData(),l=DC(n,s,i,a),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var h=qg(null,null,c,l(c,o),n,this.group,s);h&&(h.traverse(f),u.push(h))}},t.prototype.eachRendered=function(e){ga(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t}(ee);const qj=Xj;function z1(r){var t=r.type,e;if(t==="path"){var n=r.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=tO(n);e=od(a,null,i,n.layout||"center"),hi(e).customPathData=a}else if(t==="image")e=new We({}),hi(e).customImagePath=r.style.image;else if(t==="text")e=new Gt({});else if(t==="group")e=new _t;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=T_(t);if(!o){var s="";Wt(s)}e=new o}return hi(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function G1(r,t,e,n,i,a,o){jk(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=$j);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;lt(u,"textFill")&&(u.fill=u.textFill),lt(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=i0(t)?l.decal:null;r&&c&&(c.dirty=!0,f=$s(c,r)),l.__decalPattern=f}if(a0(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}yh(t,n,a,{dataIndex:e,isInit:o,clearStyle:!0}),mv(t,n.keyframeAnimation,a)}function Jk(r,t,e,n,i){var a=t.isGroup?null:t,o=i&&i[r].cfg;if(a){var s=a.ensureState(r);if(n===!1){var l=a.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Lo(a)}}function Kj(r,t,e){if(!r.isGroup){var n=r,i=e.currentZ,a=e.currentZLevel;n.z=i,n.zlevel=a;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<ha.length;s++)jj(n,t,ha[s])}}function jj(r,t,e){var n=e===Ji,i=n?t:_v(t,e),a=i?i.z2:null,o;a!=null&&(o=n?r:r.ensureState(e),o.z2=a||0)}function DC(r,t,e,n){var i=r.get("renderItem"),a=r.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):Yj[a.type](a));for(var s=pt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:b,ordinalRawValue:x,styleEmphasis:w,visual:C,barLayout:D,currentSeriesIndices:I,font:L},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:Jj(r.getData())},u,f,c={},h={},v={},d={},p=0;p<ha.length;p++){var g=ha[p];v[g]=r.getModel(Zg[g]),d[g]=r.getModel(Xg[g])}function y(P){return P===u?f||(f=t.getItemModel(P)):t.getItemModel(P)}function m(P,E){return t.hasItemOption?P===u?c[E]||(c[E]=y(P).getModel(Zg[E])):y(P).getModel(Zg[E]):v[E]}function _(P,E){return t.hasItemOption?P===u?h[E]||(h[E]=y(P).getModel(Xg[E])):y(P).getModel(Xg[E]):d[E]}return function(P,E){return u=P,f=null,c={},h={},i&&i(pt({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:E?E.type:null},l),s)};function S(P,E){return E==null&&(E=u),t.getStore().get(t.getDimensionIndex(P||0),E)}function x(P,E){E==null&&(E=u),P=P||0;var O=t.getDimensionInfo(P);if(!O){var V=t.getDimensionIndex(P);return V>=0?t.getStore().get(V,E):void 0}var N=t.get(O.name,E),G=O&&O.ordinalMeta;return G?G.categories[N]:N}function b(P,E){E==null&&(E=u);var O=t.getItemVisual(E,"style"),V=O&&O.fill,N=O&&O.opacity,G=m(E,Ji).getItemStyle();V!=null&&(G.fill=V),N!=null&&(G.opacity=N);var $={inheritColor:nt(V)?V:"#000"},q=_(E,Ji),Q=Qt(q,null,$,!1,!0);Q.text=q.getShallow("show")?xt(r.getFormattedLabel(E,Ji),Ys(t,E)):null;var ct=Xh(q,$,!1);return A(P,G),G=wC(G,Q,ct),P&&T(G,P),G.legacy=!0,G}function w(P,E){E==null&&(E=u);var O=m(E,vi).getItemStyle(),V=_(E,vi),N=Qt(V,null,null,!0,!0);N.text=V.getShallow("show")?zn(r.getFormattedLabel(E,vi),r.getFormattedLabel(E,Ji),Ys(t,E)):null;var G=Xh(V,null,!0);return A(P,O),O=wC(O,N,G),P&&T(O,P),O.legacy=!0,O}function T(P,E){for(var O in E)lt(E,O)&&(P[O]=E[O])}function A(P,E){P&&(P.textFill&&(E.textFill=P.textFill),P.textPosition&&(E.textPosition=P.textPosition))}function C(P,E){if(E==null&&(E=u),lt(xC,P)){var O=t.getItemVisual(E,"style");return O?O[xC[P]]:null}if(lt(bj,P))return t.getItemVisual(E,P)}function D(P){if(a.type==="cartesian2d"){var E=a.getBaseAxis();return J$(pt({axis:E},P))}}function I(){return e.getCurrentSeriesIndices()}function L(P){return A_(P,e)}}function Jj(r){var t={};return M(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function qg(r,t,e,n,i,a,o){if(!n){a.remove(t);return}var s=F1(r,t,e,n,i,a);return s&&o.setItemGraphicEl(e,s),s&&ue(s,n.focus,n.blurScope,n.emphasisDisabled),s}function F1(r,t,e,n,i,a){var o=-1,s=t;t&&Qk(t,n,i)&&(o=Dt(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=z1(n),s&&Zj(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Er.normal.cfg=Er.normal.conOpt=Er.emphasis.cfg=Er.emphasis.conOpt=Er.blur.cfg=Er.blur.conOpt=Er.select.cfg=Er.select.conOpt=null,Er.isLegacy=!1,tJ(u,e,n,i,l,Er),Qj(u,e,n,i,l),G1(r,u,e,n,Er,i,l),lt(n,"info")&&(hi(u).info=n.info);for(var f=0;f<ha.length;f++){var c=ha[f];if(c!==Ji){var h=_v(n,c),v=H1(n,h,c);Jk(c,u,h,v,Er)}}return Kj(u,n,i),n.type==="group"&&eJ(r,u,e,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function Qk(r,t,e){var n=hi(r),i=t.type,a=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&aJ(a)&&tO(a)!==n.customPathData||i==="image"&<(o,"image")&&o.image!==n.customImagePath}function Qj(r,t,e,n,i){var a=e.clipPath;if(a===!1)r&&r.getClipPath()&&r.removeClipPath();else if(a){var o=r.getClipPath();o&&Qk(o,a,n)&&(o=null),o||(o=z1(a),r.setClipPath(o)),G1(null,o,t,a,null,n,i)}}function tJ(r,t,e,n,i,a){if(!r.isGroup){IC(e,null,a),IC(e,vi,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=z1(o),r.setTextContent(f)),G1(null,f,t,o,null,n,i);for(var c=o&&o.style,h=0;h<ha.length;h++){var v=ha[h];if(v!==Ji){var d=a[v].conOpt;Jk(v,f,d,H1(o,d,v),null)}}c?f.dirty():f.markRedraw()}}}}function IC(r,t,e){var n=t?_v(r,t):r,i=t?H1(r,n,vi):r.style,a=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?t?_v(s,t):s:null;if(i&&(e.isLegacy||Yk(i,a,!!o,!!l))){e.isLegacy=!0;var u=Zk(i,a,!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 c=t?e[t]:e.normal;c.cfg=o,c.conOpt=l}function _v(r,t){return t?r?r[t]:null:r}function H1(r,t,e){var n=t&&t.style;return n==null&&e===vi&&r&&(n=r.styleEmphasis),n}function eJ(r,t,e,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){nJ({api:r,oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,seriesModel:i,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=a[f],h=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),F1(r,h,e,c,i,t)):h.ignore=!0}for(var v=t.childCount()-1;v>=f;v--){var d=t.childAt(v);rJ(t,d,i)}}}function rJ(r,t,e){t&&Ld(t,hi(r).option,e)}function nJ(r){new Si(r.oldChildren,r.newChildren,LC,LC,r).add(PC).update(PC).remove(iJ).execute()}function LC(r,t){var e=r&&r.name;return e!=null?e:Uj+t}function PC(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;F1(e.api,i,e.dataIndex,n,e.seriesModel,e.group)}function iJ(r){var t=this.context,e=t.oldChildren[r];e&&Ld(e,hi(e).option,t.seriesModel)}function tO(r){return r&&(r.pathData||r.d)}function aJ(r){return r&&(lt(r,"pathData")||lt(r,"d"))}function oJ(r){r.registerChartView(qj),r.registerSeriesModel(Tj)}var eo=Nt(),RC=mt,Kg=at,sJ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new _t,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var h=bt(EC,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}OC(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=f1(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=eo(t).pointerEl=new Vo[a.type](RC(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=eo(t).labelEl=new Gt(RC(e.label));t.add(a),kC(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=eo(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=eo(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),kC(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Mf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){gi(u.event)},onmousedown:Kg(this._onHandleDragMove,this,0,0),drift:Kg(this._onHandleDragMove,this),ondragend:Kg(this._onHandleDragEnd,this)}),n.add(i)),OC(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,fl(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){EC(this._axisPointerModel,!e&&this._moveAnimation,this._handle,jg(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(jg(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(jg(i)),eo(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),tf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function EC(r,t,e,n){eO(eo(e).lastProp,n)||(eo(e).lastProp=n,t?Ht(e,n,r):(e.stopAnimation(),e.attr(n)))}function eO(r,t){if(yt(r)&&yt(t)){var e=!0;return M(t,function(n,i){e=e&&eO(r[i],n)}),!!e}else return r===t}function kC(r,t){r[t.get(["label","show"])?"show":"hide"]()}function jg(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function OC(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const W1=sJ;function $1(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function rO(r,t,e,n,i){var a=e.get("value"),o=nO(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=al(s.get("padding")||0),u=s.getFont(),f=bf(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),lJ(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Qt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function lJ(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function nO(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:t1(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),nt(o)?a=o.replace("{value}",a):vt(o)&&(a=o(s))}return a}function U1(r,t,e){var n=Cr();return Oo(n,n,e.rotation),$n(n,n,e.position),cn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function iO(r,t,e,n,i,a){var o=xi.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),rO(t,n,i,a,{position:U1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Y1(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function aO(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function NC(r,t,e,n,i,a){return{cx:r,cy:t,r0:e,r:n,startAngle:i,endAngle:a,clockwise:!0}}var uJ=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=VC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=$1(a),v=fJ[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Fm(l.model,i);iO(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=Fm(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=U1(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=VC(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(W1);function VC(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var fJ={line:function(r,t,e){var n=Y1([t,e[0]],[t,e[1]],BC(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:aO([t-n/2,e[0]],[n,i],BC(r))}}};function BC(r){return r.dim==="x"?0:1}const cJ=uJ;var hJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Bt);const vJ=hJ;var li=Nt(),dJ=M;function oO(r,t,e){if(!zt.node){var n=t.getZr();li(n).records||(li(n).records={}),pJ(n,t);var i=li(n).records[r]||(li(n).records[r]={});i.handler=e}}function pJ(r,t){if(li(r).initialized)return;li(r).initialized=!0,e("click",bt(zC,"click")),e("mousemove",bt(zC,"mousemove")),e("globalout",yJ);function e(n,i){r.on(n,function(a){var o=mJ(t);dJ(li(r).records,function(s){s&&i(s,a,o.dispatchAction)}),gJ(o.pendings,t)})}}function gJ(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function yJ(r,t,e){r.handler("leave",null,e)}function zC(r,t,e,n){t.handler(r,e,n)}function mJ(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function o0(r,t){if(!zt.node){var e=t.getZr(),n=(li(e).records||{})[r];n&&(li(e).records[r]=null)}}var _J=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";oO("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){o0("axisPointer",n)},t.prototype.dispose=function(e,n){o0("axisPointer",n)},t.type="axisPointer",t}(fe);const SJ=_J;function sO(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Do(a,r);if(o==null||o<0||Y(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(a.getValues(Z(l.dimensions,function(y){return a.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 GC=Nt();function xJ(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||at(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){mh(i)&&(i=sO({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=mh(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||mh(i),h={},v={},d={list:[],map:{}},p={showPointer:bt(wJ,v),showTooltip:bt(TJ,d)};M(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);M(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=DJ(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&FC(S,T,p,!1,h)}})});var g={};return M(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,x){var b=v[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,HC(S),HC(y)))),g[y.key]=w}})}),M(g,function(y,m){FC(f[m],y,p,!0,h)}),AJ(v,f,h),CJ(d,i,r,o),MJ(f,o,e),h}}function FC(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=bJ(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function bJ(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=c,a.length=0),M(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function wJ(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function TJ(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=sf(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function AJ(r,t,e){var n=e.axesInfo=[];M(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function CJ(r,t,e,n){if(mh(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function MJ(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=GC(n)[i]||{},o=GC(n)[i]={};M(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&M(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];M(a,function(u,f){!o[f]&&l.push(u)}),M(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function DJ(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function HC(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function mh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Gf(r){Ho.registerAxisPointerClass("CartesianAxisPointer",cJ),r.registerComponentModel(vJ),r.registerComponentView(SJ),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=pY(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},xJ)}function IJ(r){Lt(EE),Lt(Gf)}var LJ=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var v=$1(a),d=RJ[h](s,l,c,f);d.style=v,e.graphicKey=d.type,e.pointer=d}var p=a.get(["label","margin"]),g=PJ(n,i,a,l,p);rO(e,i,a,o,g)},t}(W1);function PJ(r,t,e,n,i){var a=t.axis,o=a.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(a.dim==="radius"){var h=Cr();Oo(h,h,s),$n(h,h,[n.cx,n.cy]),u=cn([o,-i],h);var v=t.getModel("axisLabel").get("rotate")||0,d=xi.innerTextLayout(s,v*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+i,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var RJ={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:Y1(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,n){var i=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:NC(t.cx,t.cy,n[0],n[1],(-e-i/2)*a,(-e+i/2)*a)}:{type:"Sector",shape:NC(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}};const EJ=LJ;var kJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,i=this.ecModel;return i.eachComponent(e,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Bt);const OJ=kJ;var Z1=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ye).models[0]},t.type="polarAxis",t}(Bt);_e(Z1,Pf);var NJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(Z1),VJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(Z1),X1=function(r){B(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(mn);X1.prototype.dataToRadius=mn.prototype.dataToCoord;X1.prototype.radiusToData=mn.prototype.coordToData;const BJ=X1;var zJ=Nt(),q1=function(r){B(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=bf(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),h=c/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=zJ(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(mn);q1.prototype.dataToAngle=mn.prototype.dataToCoord;q1.prototype.angleToData=mn.prototype.coordToData;const GJ=q1;var lO=["radius","angle"],FJ=function(){function r(t){this.dimensions=lO,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new BJ,this._angleAxis=new GJ,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=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),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){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+n*n);e/=l,n/=l;for(var u=Math.atan2(-n,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,a=-Math.sin(n)*e+this.cy;return[i,a]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,h=this.r,v=this.r0;return h!==v&&c-o<=h*h&&c+o>=v*v}}},r.prototype.convertToPixel=function(t,e,n){var i=WC(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=WC(e);return i===this?this.pointToData(n):null},r}();function WC(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const HJ=FJ;function WJ(r,t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight();r.cx=rt(n[0],i),r.cy=rt(n[1],a);var o=r.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Y(l)||(l=[0,l]);var u=[rt(l[0],s),rt(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function $J(r,t){var e=this,n=e.getAngleAxis(),i=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();M(av(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),M(av(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Us(n.scale,n.model),Us(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function UJ(r){return r.mainType==="angleAxis"}function $C(r,t){var e;if(r.type=t.get("type"),r.scale=wd(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),UJ(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,i)}t.axis=r,r.model=t}var YJ={dimensions:lO,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,i){var a=new HJ(i+"");a.update=$J;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");$C(o,l),$C(s,u),WJ(a,n,t),e.push(a),n.coordinateSystem=a,a.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",ye).models[0];n.coordinateSystem=i.coordinateSystem}}),e}};const ZJ=YJ;var XJ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function zc(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Gc(r){var t=r.getRadiusAxis();return t.inverse?0:1}function UC(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 qJ=function(r){B(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,n){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Z(i.getViewLabels(),function(f){f=mt(f);var c=i.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(h),f});UC(u),UC(s),M(XJ,function(f){e.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&KJ[f](this.group,e,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Ho),KJ={axisLine:function(r,t,e,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Gc(e),c=f?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[c]===0?h=new Vo[v]({shape:{cx:e.cx,cy:e.cy,r:a[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new id({shape:{cx:e.cx,cy:e.cy,r:a[f],r0:a[c]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Gc(e)],u=Z(n,function(f){return new Ee({shape:zc(e,[l,l+s],f.coord)})});r.add(Hr(u,{style:pt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Gc(e)],f=[],c=0;c<i.length;c++)for(var h=0;h<i[c].length;h++)f.push(new Ee({shape:zc(e,[u,u+l],i[c][h].coord)}));r.add(Hr(f,{style:pt(s.getModel("lineStyle").getLineStyle(),pt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");M(o,function(c,h){var v=l,d=c.tickValue,p=a[Gc(e)],g=e.coordToPoint([p+u,c.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var x=s[d];yt(x)&&x.textStyle&&(v=new te(x.textStyle,l,l.ecModel))}var b=new Gt({silent:xi.isLabelSilent(t),style:Qt(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),f){var w=xi.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,St(b).eventData=w}},this)},splitLine:function(r,t,e,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Ee({shape:zc(e,a,n[c].coord)}))}for(var c=0;c<f.length;c++)r.add(Hr(f[c],{style:pt({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var f=0;f<i[u].length;f++)l.push(new Ee({shape:zc(e,a,i[u][f].coord)}));r.add(Hr(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,i,a){if(n.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=[],c=Math.PI/180,h=-n[0].coord*c,v=Math.min(a[0],a[1]),d=Math.max(a[0],a[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new gr({shape:{cx:e.cx,cy:e.cy,r0:v,r:d,startAngle:h,endAngle:-m*c,clockwise:p},silent:!0})),h=-m*c}for(var g=0;g<f.length;g++)r.add(Hr(f[g],{style:pt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const jJ=qJ;var JJ=["axisLine","axisTickLabel","axisName"],QJ=["splitLine","splitArea","minorSplitLine"],tQ=function(r){B(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,n){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,a=this._axisGroup=new _t;this.group.add(a);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),c=l.getExtent()[0],h=o.getExtent(),v=rQ(s,e,c),d=new xi(e,v);M(JJ,d.add,d),a.add(d.getGroup()),Cf(i,a,e),M(QJ,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&eQ[p](this.group,e,s,c,h,u,f)},this)}},t.type="radiusAxis",t}(Ho),eQ={splitLine:function(r,t,e,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=e.getAngleAxis(),c=Math.PI/180,h=f.getExtent(),v=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<a.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new Vo[v]({shape:{cx:e.cx,cy:e.cy,r:Math.max(a[p].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)r.add(Hr(d[p],{style:pt({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new pa({shape:{cx:e.cx,cy:e.cy,r:o[f][c].coord}}));r.add(Hr(u,{style:pt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,i,a){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=[],c=a[0].coord,h=1;h<a.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new gr({shape:{cx:e.cx,cy:e.cy,r0:c,r:a[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=a[h].coord}for(var h=0;h<f.length;h++)r.add(Hr(f[h],{style:pt({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}}const nQ=tQ;function uO(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function fO(r,t){return t.dim+r.model.componentIndex}function iQ(r,t,e){var n={},i=aQ($t(t.getSeriesByType(r),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=fO(s,l),f=uO(a),c=i[u][f],h=c.offset,v=c.width,d=s.getOtherAxis(l),p=a.coordinateSystem.cx,g=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),x=ua(o,_),b=l.dim!=="radius"||!a.get("roundCap",!0),w=d.model,T=w.get("startValue"),A=d.dataToCoord(T||0),C=0,D=o.count();C<D;C++){var I=o.get(_,C),L=o.get(S,C),P=I>=0?"p":"n",E=A;x&&(n[f][L]||(n[f][L]={p:A,n:A}),E=n[f][L][P]);var O=void 0,V=void 0,N=void 0,G=void 0;if(d.dim==="radius"){var $=d.dataToCoord(I)-A,q=l.dataToCoord(L);Math.abs($)<y&&($=($<0?-1:1)*y),O=E,V=E+$,N=q-h,G=N-v,x&&(n[f][L][P]=V)}else{var Q=d.dataToCoord(I,b)-A,ct=l.dataToCoord(L);Math.abs(Q)<m&&(Q=(Q<0?-1:1)*m),O=ct+h,V=O+v,N=E,G=E+Q,x&&(n[f][L][P]=G)}o.setItemLayout(C,{cx:p,cy:g,r0:O,r:V,startAngle:-N*Math.PI/180,endAngle:-G*Math.PI/180,clockwise:N>=G})}}})}function aQ(r){var t={};M(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=fO(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;t[l]=c;var v=uO(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=rt(n.get("barWidth"),f),p=rt(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(c.remainedWidth,d),h[v].width=d,c.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var e={};return M(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=rt(n.categoryGap,o),l=rt(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),M(a,function(p,g){var y=p.maxWidth;y&&y<c&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),c=(u-s)/(f+(f-1)*l),c=Math.max(c,0);var h=0,v;M(a,function(p,g){p.width||(p.width=c),v=p,h+=p.width*(1+l)}),v&&(h-=v.width*l);var d=-h/2;M(a,function(p,g){e[i][g]=e[i][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var oQ={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},sQ={splitNumber:5},lQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(fe);function uQ(r){Lt(Gf),Ho.registerAxisPointerClass("PolarAxisPointer",EJ),r.registerCoordinateSystem("polar",ZJ),r.registerComponentModel(OJ),r.registerComponentView(lQ),Zs(r,"angle",NJ,oQ),Zs(r,"radius",VJ,sQ),r.registerComponentView(jJ),r.registerComponentView(nQ),r.registerLayout(bt(iQ,"bar"))}function s0(r,t){t=t||{};var e=r.coordinateSystem,n=r.axis,i={},a=n.position,o=n.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]}};i.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var f={horizontal:0,vertical:1};i.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=c[a],r.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Re(t.labelInside,r.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var h=t.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-h:h,i.z2=1,i}var fQ=["axisLine","axisTickLabel","axisName"],cQ=["splitArea","splitLine"],hQ=function(r){B(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,n,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new _t;var l=s0(e),u=new xi(e,l);M(fQ,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),M(cQ,function(f){e.get([f,"show"])&&vQ[f](this,this.group,this._axisGroup,e)},this),Cf(s,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)},t.prototype.remove=function(){LE(this)},t.type="singleAxis",t}(Ho),vQ={splitLine:function(r,t,e,n){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),f=i.isHorizontal(),c=[],h=0,v=i.getTicksCoords({tickModel:a}),d=[],p=[],g=0;g<v.length;++g){var y=i.toGlobalCoord(v[g].coord);f?(d[0]=y,d[1]=u.y,p[0]=y,p[1]=u.y+u.height):(d[0]=u.x,d[1]=y,p[0]=u.x+u.width,p[1]=y);var m=new Ee({shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},silent:!0});Hs(m.shape,l);var _=h++%s.length;c[_]=c[_]||[],c[_].push(m)}for(var S=o.getLineStyle(["color"]),g=0;g<c.length;++g)t.add(Hr(c[g],{style:pt({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(r,t,e,n){IE(r,e,n,n)}};const dQ=hQ;var cO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",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}}},t}(Bt);_e(cO,Pf.prototype);const Jg=cO;var pQ=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,n){return this.coordinateSystem.pointToData(e)[0]},t}(mn);const gQ=pQ;var hO=["single"],yQ=function(){function r(t,e,n){this.type="single",this.dimension="single",this.dimensions=hO,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var i=this.dimension,a=new gQ(i,wd(t),[0,0],t.get("type"),t.get("position")),o=a.type==="category";a.onBand=o&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},r.prototype.update=function(t,e){t.eachSeries(function(n){if(n.coordinateSystem===this){var i=n.getData();M(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),Us(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=be({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],a=e.inverse?1:0;e.setExtent(i[a],i[1-a]),this._updateAxisTransform(e,n?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],a=t.isHorizontal();t.toGlobalCoord=a?function(o){return o+e}:function(o){return i-o+e},t.toLocalCoord=a?function(o){return o-e}:function(o){return i-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(),n=this.getAxis(),i=n.orient;return i==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],a=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},r.prototype.convertToPixel=function(t,e,n){var i=YC(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=YC(e);return i===this?this.pointToData(n):null},r}();function YC(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function mQ(r,t){var e=[];return r.eachComponent("singleAxis",function(n,i){var a=new yQ(n,r,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,e.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",ye).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),e}var _Q={create:mQ,dimensions:hO};const SQ=_Q;var ZC=["x","y"],xQ=["width","height"],bQ=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=Qg(l,1-Sv(s)),f=l.dataToPoint(n)[0],c=a.get("type");if(c&&c!=="none"){var h=$1(a),v=wQ[c](s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=s0(i);iO(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=s0(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=U1(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.coordinateSystem,l=Sv(o),u=Qg(s,l),f=[e.x,e.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=Qg(s,1-l),h=(c[1]+c[0])/2,v=[h,h];return v[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(W1),wQ={line:function(r,t,e){var n=Y1([t,e[0]],[t,e[1]],Sv(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),i=e[1]-e[0];return{type:"Rect",shape:aO([t-n/2,e[0]],[n,i],Sv(r))}}};function Sv(r){return r.isHorizontal()?0:1}function Qg(r,t){var e=r.getRect();return[e[ZC[t]],e[ZC[t]]+e[xQ[t]]]}const TQ=bQ;var AQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(fe);function CQ(r){Lt(Gf),Ho.registerAxisPointerClass("SingleAxisPointer",TQ),r.registerComponentView(AQ),r.registerComponentView(dQ),r.registerComponentModel(Jg),Zs(r,"single",Jg,Jg.defaultOption),r.registerCoordinateSystem("single",SQ)}var MQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,i){var a=ol(e);r.prototype.init.apply(this,arguments),XC(e,a)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),XC(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Bt);function XC(r,t){var e=r.cellSize,n;Y(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return RH(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});la(r,t,{type:"box",ignoreSize:i})}const DQ=MQ;var IQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group;a.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(e,s,a),this._renderLines(e,s,l,a),this._renderYearText(e,s,l,a),this._renderMonthText(e,u,l,a),this._renderWeekText(e,u,s,l,a)},t.prototype._renderDayRect=function(e,n,i){for(var a=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var f=a.dataToRect([u],!1).tl,c=new Vt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});i.add(c)}},t.prototype._renderLines=function(e,n,i,a){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 c=n.start,h=0;c.time<=n.end.time;h++){d(c.formatedDate),h===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,i),l,a)},t.prototype._getEdgesPoints=function(e,n,i){var a=[e[0].slice(),e[e.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(e,n,i){var a=new mr({z2:20,shape:{points:e},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(e,n,i){for(var a=e.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),f=a.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?IH(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(a==="left"||a==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,n,i,a){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Gt({z2:30,style:Qt(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,v[l],i,l,s)),a.add(m)}},t.prototype._monthTextPositionControl=function(e,n,i,a,o){var s="left",l="top",u=e[0],f=e[1];return i==="horizontal"?(f=f+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,n,i,a){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"),c=[this._tlpoints,this._blpoints];(!s||nt(s))&&(s&&(n=ym(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<c[h].length-1;g++){var y=c[h][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[v]=(_[v]+c[0][g+1][v])/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),T=new Gt({z2:30,style:F(Qt(o,{text:w}),this._monthTextPositionControl(y,d,i,u,l)),silent:p});a.add(T)}}},t.prototype._weekTextPositionControl=function(e,n,i,a,o){var s="center",l="middle",u=e[0],f=e[1],c=i==="start";return n==="horizontal"?(u=u+a+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+a+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,n,i,a,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||nt(f)){f&&(n=ym(f)||n);var v=n.get(["time","dayOfWeekShort"]);f=v||Z(n.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(i.end.time,7-i.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=rt(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(i.start.time,-(7+i.fweek)).time,c=-c);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToRect([m.time],!1).center,S=y;S=Math.abs((y+h)%7);var x=new Gt({z2:30,style:F(Qt(s,{text:f[S]}),this._weekTextPositionControl(_,a,u,c,p)),silent:g});o.add(x)}}},t.type="calendar",t}(fe);const LQ=IQ;var ty=864e5,PQ=function(){function r(t,e,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}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=Yn(t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+i+"-"+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 n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];M([0,1],function(c){f(a,c)&&(o[i[c]]=a[c]*s[c])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=be(o,l);M([0,1],function(c){f(a,c)||(a[c]=u[i[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=a[0],this._sh=a[1]},r.prototype.dataToPoint=function(t,e){Y(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+ty))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},r.prototype.convertToPixel=function(t,e,n){var i=qC(e);return i===this?i.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=qC(e);return i===this?i.pointToData(n):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(Y(t)&&t.length===1&&(t=t[0]),Y(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}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])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var i=Math.floor(e[1].time/ty)-Math.floor(e[0].time/ty)+1,a=new Date(e[0].time),o=a.getDate(),s=e[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-e[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-e[1].time)*u>0;)i-=u,a.setDate(l-u);var f=Math.floor((i+e[0].day+6)/7),c=n?-f+1:f-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var a=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(i){var a=new r(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function qC(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}const RQ=PQ;function EQ(r){r.registerComponentModel(DQ),r.registerComponentView(LQ),r.registerCoordinateSystem("calendar",RQ)}function kQ(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function KC(r,t){var e;return M(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function OQ(r,t,e){var n=F({},e),i=r[t],a=e.$action||"merge";a==="merge"?i?(Tt(i,n,!0),la(i,n,{ignoreSize:!0}),qP(e,i),Fc(e,i),Fc(e,i,"shape"),Fc(e,i,"style"),Fc(e,i,"extra"),e.clipPath=i.clipPath):r[t]=n:a==="replace"?r[t]=n:a==="remove"&&i&&(r[t]=null)}var vO=["transition","enterFrom","leaveTo"],NQ=vO.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Fc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?vO:NQ,i=0;i<n.length;i++){var a=n[i];r[a]==null&&t[a]!=null&&(r[a]=t[a])}}function VQ(r,t){if(r&&(r.hv=t.hv=[KC(t,["left","right"]),KC(t,["top","bottom"])],r.type==="group")){var e=r,n=t;e.width==null&&(e.width=n.width=0),e.height==null&&(e.height=n.height=0)}}var BQ=function(r){B(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,n){var i=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,n),this.option.elements=i},t.prototype.optionUpdated=function(e,n){var i=this.option,a=(n?i:e).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=RL(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(f,c){var h=f.newOption;h&&(u.push(h),kQ(f,h),OQ(o,c,h),VQ(o[c],h))},this),i.elements=$t(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,n,i){M(e,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Bt),jC={path:null,compoundPath:null,group:_t,image:We,text:Gt},Br=Nt(),zQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=ft()},t.prototype.render=function(e,n,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},t.prototype._updateElements=function(e){var n=e.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=e.get("z"),s=e.get("zlevel");M(n,function(l){var u=xe(l.id,null),f=u!=null?i.get(u):null,c=xe(l.parentId,null),h=c!=null?i.get(c):a,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&Yk(d,v,!!g,!!p)){var y=Zk(d,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=GQ(l),_=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var b=!f,w=f;b?w=JC(u,h,l.type,i):(w&&(Br(w).isNew=!1),jk(w)),w&&(yh(w,m,e,{isInit:b}),QC(w,l,o,s))}else if(x){_h(f,l,i,e);var T=JC(u,h,l.type,i);T&&(yh(T,m,e,{isInit:!0}),QC(T,l,o,s))}else _==="remove"&&(qk(f,l),_h(f,l,i,e));var A=i.get(u);if(A&&p)if(S){var C=A.getTextContent();C?C.attr(p):A.setTextContent(new Gt(p))}else x&&A.setTextContent(new Gt(p));if(A){var D=l.clipPath;if(D){var I=D.type,L=void 0,b=!1;if(S){var P=A.getClipPath();b=!P||Br(P).type!==I,L=b?l0(I):P}else x&&(b=!0,L=l0(I));A.setClipPath(L),yh(L,D,e,{isInit:b}),mv(L,D.keyframeAnimation,e)}var E=Br(A);A.setTextConfig(g),E.option=l,FQ(A,e,l),No({el:A,componentModel:e,itemName:A.name,itemTooltipOption:l.tooltip}),mv(A,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,n){for(var i=e.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<i.length;f++){var c=i[f],h=xe(c.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===a,g=Br(v),y=Br(d);g.width=rt(g.option.width,p?s:y.width)||0,g.height=rt(g.option.height,p?l:y.height)||0}}for(var f=i.length-1;f>=0;f--){var c=i[f],h=xe(c.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,y=Br(d),m=d===a?{width:s,height:l}:{width:y.width,height:y.height},_={},S=dd(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Br(v).isNew&&S){for(var x=c.transition,b={},w=0;w<u.length;w++){var T=u[w],A=_[T];x&&(Co(x)||Dt(x,T)>=0)?b[T]=A:v[T]=A}Ht(v,b,e,0)}else v.attr(_)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(i){_h(i,Br(i).option,n,e._lastGraphicModel)}),this._elMap=ft()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(fe);function l0(r){var t=lt(jC,r)?jC[r]:T_(r),e=new t({});return Br(e).type=r,e}function JC(r,t,e,n){var i=l0(e);return t.add(i),n.set(r,i),Br(i).id=r,Br(i).isNew=!0,i}function _h(r,t,e,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){_h(a,t,e,n)}),Ld(r,t,n),e.removeKey(Br(r).id))}function QC(r,t,e,n){r.isGroup||M([["cursor",Yr.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(i){var a=i[0];lt(t,a)?r[a]=xt(t[a],i[1]):r[a]==null&&(r[a]=i[1])}),M(kt(t),function(i){if(i.indexOf("on")===0){var a=t[i];r[i]=vt(a)?a:null}}),lt(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function GQ(r){return r=F({},r),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(XP),function(t){delete r[t]}),r}function FQ(r,t,e){var n=St(r).eventData;!r.silent&&!r.ignore&&!n&&(n=St(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function HQ(r){r.registerComponentModel(BQ),r.registerComponentView(zQ),r.registerPreprocessor(function(t){var e=t.graphic;Y(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var tM=["x","y","radius","angle","single"],WQ=["cartesian2d","polar","singleAxis"];function $Q(r){var t=r.get("coordinateSystem");return Dt(WQ,t)>=0}function Qi(r){return r+"Axis"}function UQ(r,t){var e=ft(),n=[],i=ft();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}function dO(r){var t=r.ecModel,e={infoList:[],infoMap:ft()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(Qi(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(a)}}}),e}var ey=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}(),YQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=eM(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=eM(e);Tt(this.option,e,!0),Tt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ft(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return M(tM,function(i){var a=this.getReferringComponents(Qi(i),uF);if(a.specified){n=!0;var o=new ey;M(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new ey;if(h.add(c.componentIndex),e.set(f,h),a=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",ye).models[0];v&&M(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",ye).models[0]&&h.add(d.componentIndex)})}}}a&&M(tM,function(u){if(a){var f=i.findComponents({mainType:Qi(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new ey;c.add(f[0].componentIndex),e.set(u,c),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(Qi(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){M(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(Qi(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;M(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return 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}(Bt);function eM(r){var t={};return M(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const vf=YQ;var ZQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(vf);const XQ=ZQ;var qQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.dataZoomModel=e,this.ecModel=n,this.api=i},t.type="dataZoom",t}(fe);const K1=qQ;var KQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(K1);const jQ=KQ;var ms=M,rM=$r,JQ=function(){function r(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if($Q(e)){var n=Qi(this._dimName),i=e.getReferringComponents(n,ye).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return mt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;ms(["start","end"],function(h,v){var d=t[h],p=t[h+"Value"];a[v]==="percent"?(d==null&&(d=o[v]),p=i.parse(Ut(d,o,e))):(u=!0,p=p==null?e[v]:i.parse(p),d=Ut(p,e,o)),l[v]=p==null||isNaN(p)?e[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),rM(l),rM(s);var f=this._minMaxSpan;u?c(l,s,e,o,!1):c(s,l,o,e,!0);function c(h,v,d,p,g){var y=g?"Span":"ValueSpan";Wo(0,h,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=Ut(h[m],d,p,!0),g&&(v[m]=i.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=QQ(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;ms(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(a==="weakFilter"){var c=u.getStore(),h=Z(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,y=0;y<f.length;y++){var m=c.get(h[y],v),_=!isNaN(m),S=m<o[0],x=m>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else ms(f,function(v){if(a==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});ms(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ms(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Ut(n[0]+o,n,[0,100],!0):a!=null&&(o=Ut(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=TL(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function QQ(r,t,e){var n=[1/0,-1/0];ms(e,function(o){xU(n,o.getData(),t)});var i=r.getAxisModel(),a=DR(i.axis.scale,i,n).calculate();return[a.min,a.max]}const ttt=JQ;var ett={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(Qi(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new ttt(i,a,s,r),e.push(o.__dzAxisProxy))});var n=ft();return M(e,function(i){M(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const rtt=ett;function ntt(r){r.registerAction("dataZoom",function(t,e){var n=UQ(e,t);M(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var nM=!1;function j1(r){nM||(nM=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,rtt),ntt(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function itt(r){r.registerComponentModel(XQ),r.registerComponentView(jQ),j1(r)}var Fr=function(){function r(){}return r}(),pO={};function _s(r,t){pO[r]=t}function gO(r){return pO[r]}var att=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;M(this.option.feature,function(n,i){var a=gO(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),Tt(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Bt);const ott=att;function stt(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=be(n,a,i);wo(t.get("orient"),r,t.get("itemGap"),o.width,o.height),dd(r,n,a,i)}function yO(r,t){var e=al(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Vt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var ltt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];M(u,function(d,p){c.push(p)}),new Si(this._featureNames||[],c).add(h).update(h).remove(bt(h,null)).execute(),this._featureNames=c;function h(d,p){var g=c[d],y=c[p],m=u[g],_=new te(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(utt(g))S={onclick:_.option.onclick,featureName:g};else{var x=gO(g);if(!x)return;S=new x}f[g]=S}else if(S=f[y],!S)return;S.uid=il("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var b=S instanceof Fr;if(!g&&y){b&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}v(_,S,g),_.setIconStatus=function(w,T){var A=this.option,C=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=T,C[w]&&(T==="emphasis"?mi:_i)(C[w])},S instanceof Fr&&S.render&&S.render(_,n,i,a)}function v(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof Fr&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},x,b;nt(_)?(x={},x[g]=_):x=_,nt(S)?(b={},b[g]=S):b=S;var w=d.iconPaths={};M(x,function(T,A){var C=Mf(T,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var D=C.ensureState("emphasis");D.style=m.getItemStyle();var I=new Gt({style:{text:b[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:A_({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});C.setTextContent(I),No({el:C,componentModel:e,itemName:A,formatterParamsExtra:{title:b[A]}}),C.__title=b[A],C.on("mouseover",function(){var L=m.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),C.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?mi:_i)(C),o.add(C),C.on("click",at(p.onclick,p,n,i,A)),w[A]=C})}stt(o,e,i),o.add(yO(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!vt(_)&&p){var S=_.style||(_.style={}),x=bf(p,Gt.makeFont(S)),b=d.x+o.x,w=d.y+o.y+s,T=!1;w+x.height>i.getHeight()&&(y.position="top",T=!0);var A=T?-5-x.height:s+10;b+x.width/2>i.getWidth()?(y.position=["100%",A],S.align="right"):b-x.width/2<0&&(y.position=[0,A],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){M(this._features,function(o){o instanceof Fr&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){M(this._features,function(i){i instanceof Fr&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){M(this._features,function(i){i instanceof Fr&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(fe);function utt(r){return r.indexOf("my")===0}const ftt=ltt;var ctt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=zt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=i.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=a}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Fr);const htt=ctt;var iM="__ec_magicType_stack__",vtt=[["line","bar"],["stack"]],dtt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return M(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(aM[i]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=aM[i](h,v,c,a);d&&(pt(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,ye).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=i==="bar"}}};M(vtt,function(c){Dt(c,i)>=0&&M(c,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=Tt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Fr),aM={line:function(r,t,e,n){if(r==="bar")return Tt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Tt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===iM;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Tt({id:t,stack:i?"":iM},n.get(["option","stack"])||{},!0)}};qn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const ptt=dtt;var Pd=new Array(60).join("-"),Ks=" ";function gtt(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function ytt(r){var t=[];return M(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(Z(e.series,function(v){return v.name})),l=[i.model.getCategories()];M(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Ks)],f=0;f<l[0].length;f++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][f]);u.push(c.join(Ks))}t.push(u.join(` |
|
`))}),t.join(` |
|
|
|
`+Pd+` |
|
|
|
`)}function mtt(r){return Z(r,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=e.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+Ks:"")+i.join(Ks))}),n.join(` |
|
`)}).join(` |
|
|
|
`+Pd+` |
|
|
|
`)}function _tt(r){var t=gtt(r);return{value:$t([ytt(t.seriesGroupByCategoryAxis),mtt(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(` |
|
|
|
`+Pd+` |
|
|
|
`),meta:t.meta}}function xv(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Stt(r){var t=r.slice(0,r.indexOf(` |
|
`));if(t.indexOf(Ks)>=0)return!0}var u0=new RegExp("["+Ks+"]+","g");function xtt(r){for(var t=r.split(/\n+/g),e=xv(t.shift()).split(u0),n=[],i=Z(e,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=xv(t[a]).split(u0);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function btt(r){for(var t=r.split(/\n+/g),e=xv(t.shift()),n=[],i=0;i<t.length;i++){var a=xv(t[i]);if(a){var o=a.split(u0),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:e,data:n}}function wtt(r,t){var e=r.split(new RegExp(` |
|
*`+Pd+` |
|
*`,"g")),n={series:[]};return M(e,function(i,a){if(Stt(i)){var o=xtt(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=btt(i);n.series.push(o)}}),n}var Ttt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=a.get("optionToContent"),h=a.get("contentToOption"),v=_tt(e);if(vt(c)){var d=c(n.getOption());nt(d)?u.innerHTML=d:Fs(d)&&u.appendChild(d)}else{f.readOnly=a.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=a.get("textColor"),p.borderColor=a.get("textareaBorderColor"),p.backgroundColor=a.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var x=this;function b(){i.removeChild(o),x._dom=null}Hy(_,"click",b),Hy(S,"click",function(){if(h==null&&c!=null||h!=null&&c==null){b();return}var w;try{vt(h)?w=h(u,n.getOption()):w=wtt(f.value,g)}catch(T){throw b(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),b()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Fr);function Att(r,t){return Z(r,function(e,n){var i=t&&t[n];if(yt(i)&&!Y(i)){var a=yt(e)&&!Y(e);a||(e={value:e});var o=i.name!=null&&e.name==null;return e=pt(e,i),o&&delete e.name,e}else return e})}qn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];M(r.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)e.push(F({type:"scatter"},n));else{var a=i.get("data");e.push({name:n.name,data:Att(n.data,a)})}}),t.mergeOption(pt({series:e},r.newOption))});const Ctt=Ttt;var mO=M,_O=Nt();function Mtt(r,t){var e=J1(r);mO(t,function(n,i){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();e[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),e.push(t)}function Dtt(r){var t=J1(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return mO(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function Itt(r){_O(r).snapshots=null}function Ltt(r){return J1(r).length}function J1(r){var t=_O(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Ptt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Itt(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Fr);qn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const Rtt=Ptt;var Ett=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ktt=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=oM(e,t);M(Ott,function(o,s){(!n||!n.include||Dt(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=ry[n.brushType](0,a,i);n.__rangeOffset={offset:fM[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){M(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&M(a.coordSyses,function(o){var s=ry[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){M(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=ry[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?fM[n.brushType](a.values,o.offset,Ntt(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return Z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Ck(i),isTargetByCursor:Dk(i,t,n.coordSysModel),getLinearBrushOtherExtent:Mk(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&Dt(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=oM(e,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<sM.length;l++)if(sM[l](i,o))return o}return!0},r}();function f0(r){return r[0]>r[1]&&r.reverse(),r}function oM(r,t){return bu(r,t,{includeMainTypes:Ett})}var Ott={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=ft(),o={},s={};!e&&!n&&!i||(M(e,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),M(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];M(u.getCartesians(),function(c,h){(Dt(e,c.getAxis("x").model)>=0||Dt(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:lM.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){M(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:lM.geo})})}},sM=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],lM={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(bo(r)),t}},ry={lineX:bt(uM,0),lineY:bt(uM,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[f0([i[0],a[0]]),f0([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Z(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function uM(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=f0(Z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var fM={lineX:bt(cM,0),lineY:bt(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 Z(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function cM(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function Ntt(r,t){var e=hM(r),n=hM(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function hM(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const Q1=ktt;var c0=M,Vtt=iF("toolbox-dataZoom_"),Btt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new P1(i.getZr()),this._brushController.on("brush",at(this._onBrush,this)).mount()),Ftt(e,n,this,a,i),Gtt(e,n)},t.prototype.onclick=function(e,n,i){ztt[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new Q1(tS(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),Mtt(a,i),this._dispatchZoomAction(i);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,a),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Wo(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];c0(e,function(i,a){n.push(mt(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Fr),ztt={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Dtt(this.ecModel))}};function tS(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 Gtt(r,t){r.setIconStatus("back",Ltt(t)>1?"emphasis":"normal")}function Ftt(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new Q1(tS(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}BH("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=tS(n),o=bu(r,a);c0(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),c0(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Vtt+u+c};h[f]=c,i.push(h)}return i});const Htt=Btt;function Wtt(r){r.registerComponentModel(ott),r.registerComponentView(ftt),_s("saveAsImage",htt),_s("magicType",ptt),_s("dataView",Ctt),_s("dataZoom",Htt),_s("restore",Rtt),Lt(itt)}var $tt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Bt);const Utt=$tt;function SO(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function xO(r){if(zt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var bO=xO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ytt=xO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function wO(r,t){if(!r)return t;t=YP(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function Ztt(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var Xtt=wO(Ytt,"transition"),eS=wO(bO,"transform"),qtt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(zt.transform3dSupported?"will-change:transform;":"");function Ktt(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function jtt(r,t,e){if(!nt(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=Po(t);var a=Ktt(e),o=Math.max(Math.round(i)*1.5,6),s="",l=eS+":",u;Dt(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function Jtt(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=zt.transformSupported?","+eS+n:",left"+n+",top"+n),Xtt+":"+i}function vM(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!zt.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=zt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+eS+":"+o+";":[["top",0],["left",0],[bO,o]]}function Qtt(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var i=xt(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),M(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function tet(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=D2(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(Jtt(i,e)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,p=YP(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Qtt(f)),c!=null&&n.push("padding:"+al(c).join("px ")+"px"),n.join(";")+";"}function dM(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&M5(r,o,e,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var eet=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,zt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(nt(a)?document.querySelector(a):Fs(a)?a:vt(a)&&a(t.getDom()));dM(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Or(f,l,!0),u.dispatch("mousemove",l)}},n.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(),n=Ztt(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=qtt+tet(t,!this._firstShow,this._longHide)+vM(a[0],a[1],!0)+("border-color:"+Po(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(nt(a)&&n.get("trigger")==="item"&&!SO(n)&&(s=jtt(n,i,a)),nt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l<t.length;l++)Fs(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 n=this._styleCoord;if(dM(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=vM(n[0],n[1]);M(a,function(o){i[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",zt.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(at(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.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}();const ret=eet;var net=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),gM(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,n,i,a){var o=this;yt(t)&&Wt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Gt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:D2(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=pM(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;gM(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=Gi(a.borderWidth||0),s=pM(a);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(at(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Gi(r){return Math.max(0,r)}function pM(r){var t=Gi(r.shadowBlur||0),e=Gi(r.shadowOffsetX||0),n=Gi(r.shadowOffsetY||0);return{left:Gi(t-e),right:Gi(t+e),top:Gi(t-n),bottom:Gi(t+n)}}function gM(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const iet=net;var aet=new Vt({shape:{x:-1,y:-1,width:2,height:2}}),oet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!(zt.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=cF(i.get("renderMode"));this._tooltipContent=a==="richText"?new iet(n):new ret(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,n,i){if(!(zt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?fl(this,"_updatePosition",50,"fixRate"):tf(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");oO("itemTooltip",this._api,at(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||zt.node||!i.getDom())){var o=yM(a,i);this._ticket="";var s=a.dataByCoordSys,l=cet(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=aet;f.x=a.x,f.y=a.y,f.update(),St(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var c=sO(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(yM(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=$l([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=St(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;uo(i,function(f){if(St(f).dataIndex!=null)return l=f,!0;if(St(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=at(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=$l([n.tooltipOption],a),l=this._renderMode,u=[],f=Ie("section",{blocks:[],noHeader:!0}),c=[],h=new Gp;M(e,function(m){M(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=nO(x,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Ie("section",{header:b,noHeader:!an(b),sortBlocks:!0,blocks:[]});f.blocks.push(w),M(_.seriesDataIndices,function(T){var A=i.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,D=A.getDataParams(C);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=t1(S.axis,{value:x}),D.axisValueLabel=b,D.marker=h.makeTooltipMarker("item",Po(D.color),l);var I=ew(A.formatTooltip(C,!0,null)),L=I.frag;if(L){var P=$l([A],a).get("valueFormatter");w.blocks.push(P?F({valueFormatter:P},L):L)}I.text&&c.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=sw(f,h,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` |
|
|
|
`:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=St(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=$l([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new Gp;y.marker=m.makeTooltipMarker("item",Po(y.color),v);var _=ew(u.formatTooltip(f,!1,c)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?sw(x?F({valueFormatter:x},b):b,m,v,S,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=this._renderMode==="html",o=St(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(nt(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=mt(l),l.content=qe(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=e.positionDefault,d=$l(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",y=new Gp;this._showOrMove(d,function(){var m=mt(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(nt(h)){var g=e.ecModel.get("useUTC"),y=Y(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=ud(y.axisValue,v,g)),v=ZP(v,i,!0)}else if(vt(h)){var _=at(function(S,x){S===this._ticket&&(c.setContent(x,f,e,p,l),this._updatePosition(e,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||Y(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Y(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),vt(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),Y(n))i=rt(n[0],u),a=rt(n[1],f);else if(yt(n)){var p=n;p.width=c[0],p.height=c[1];var g=be(p,{width:u,height:f});i=g.x,a=g.y,h=null,v=null}else if(nt(n)&&l){var y=fet(n,d,c,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=set(i,a,o,u,f,h?null:20,v?null:20);i=y[0],a=y[1]}if(h&&(i-=mM(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=mM(v)?c[1]/2:v==="bottom"?c[1]:0),SO(e)){var y=uet(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&M(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&M(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&M(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&M(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){zt.node||!n.getDom()||(tf(this,"_updatePosition"),this._tooltipContent.dispose(),o0("itemTooltip",n))},t.type="tooltip",t}(fe);function $l(r,t,e){var n=t.ecModel,i;e?(i=new te(e,n,n),i=new te(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof te&&(o=o.get("tooltip",!0)),nt(o)&&(o={formatter:o}),o&&(i=new te(o,i,n)))}return i}function yM(r,t){return r.dispatchAction||at(t.dispatchAction,t)}function set(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function uet(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function fet(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function mM(r){return r==="center"||r==="middle"}function cet(r,t,e){var n=f_(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=wf(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=St(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const het=oet;function vet(r){Lt(Gf),r.registerComponentModel(Utt),r.registerComponentView(het),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},pe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},pe)}var det=["rect","polygon","keep","clear"];function pet(r,t){var e=Zt(r?r.brush:[]);if(e.length){var n=[];M(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=r&&r.toolbox;Y(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),get(s),t&&!s.length&&s.push.apply(s,det)}}function get(r){var t={};M(r,function(e){t[e]=1}),r.length=0,M(t,function(e,n){r.push(n)})}var _M=M;function SM(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function h0(r,t,e){var n={};return _M(t,function(a){var o=n[a]=i();_M(r[a],function(s,l){if(Ge.isValidType(l)){var u={type:l,visual:s};e&&e(u,a),o[l]=new Ge(u),l==="opacity"&&(u=mt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ge(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function TO(r,t,e){var n;M(e,function(i){t.hasOwnProperty(i)&&SM(t[i])&&(n=!0)}),n&&M(e,function(i){t.hasOwnProperty(i)&&SM(t[i])?r[i]=mt(t[i]):delete r[i]})}function yet(r,t,e,n,i,a){var o={};M(r,function(c){var h=Ge.prepareVisualTypes(t[c]);o[c]=h});var s;function l(c){return H_(e,s,c)}function u(c,h){B2(e,s,c,h)}a==null?e.each(f):e.each([a],f);function f(c,h){s=a==null?c:h;var v=e.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(i,c),p=t[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(c,l,u)}}}function met(r,t,e,n){var i={};return M(r,function(a){var o=Ge.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return H_(s,c,x)}function f(x,b){B2(s,c,x,b)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=n!=null?h.get(l,c):c,p=e(d),g=t[p],y=i[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function _et(r){var t=r.brushType,e={point:function(n){return xM[t].point(n,e,r)},rect:function(n){return xM[t].rect(n,e,r)}};return e}var xM={lineX:bM(0),lineY:bM(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])&&Qa(e.range,r[0],r[1])},rect:function(r,t,e){var n=e.range;if(!r||n.length<=1)return!1;var i=r.x,a=r.y,o=r.width,s=r.height,l=n[0];if(Qa(n,i,a)||Qa(n,i+o,a)||Qa(n,i,a+s)||Qa(n,i+o,a+s)||Mt.create(r).contain(l[0],l[1])||ru(i,a,i+o,a,n)||ru(i,a,i,a+s,n)||ru(i+o,a,i+o,a+s,n)||ru(i,a+s,i+o,a+s,n))return!0}}};function bM(r){var t=["x","y"],e=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[r];return Ul(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[t[r]],n[t[r]]+n[e[r]]];return s[1]<s[0]&&s.reverse(),Ul(s[0],o)||Ul(s[1],o)||Ul(o[0],s)||Ul(o[1],s)}}}}function Ul(r,t){return t[0]<=r&&r<=t[1]}var wM=["inBrush","outOfBrush"],ny="__ecBrushSelect",v0="__ecInBrushSelectEvent";function AO(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new Q1(t.option,r);e.setInputRanges(t.areas,r)})}function xet(r,t,e){var n=[],i,a;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),AO(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:mt(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],h=[],v=[],d=!1;s||(i=u.throttleType,a=u.throttleDelay);var p=Z(o.areas,function(x){var b=Aet[x.brushType],w=pt({boundingRect:b?b(x):void 0},x);return w.selectors=_et(w),w}),g=h0(o.option,wM,function(x){x.mappingMethod="fixed"});Y(f)&&M(f,function(x){c[x]=1});function y(x){return f==="all"||!!c[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=v[b]=[];x.subType==="parallel"?_(x,b):S(x,b,w)});function _(x,b){var w=x.coordinateSystem;d=d||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(T,A){T==="active"&&(h[A]=1)})}function S(x,b,w){if(!(!x.brushSelector||Tet(o,b))&&(M(p,function(A){o.brushTargetManager.controlSeries(A,x,r)&&w.push(A),d=d||m(w)}),y(b)&&m(w))){var T=x.getData();T.each(function(A){TM(x,w,T,A)&&(h[A]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);var T=v[b],A=x.getData(),C=y(b)?function(D){return h[D]?(w.dataIndex.push(A.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return TM(x,T,A,D)?(w.dataIndex.push(A.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(b)?d:m(T))&&yet(wM,g,A,C)})}),bet(t,i,a,n,e)}function bet(r,t,e,n,i){if(i){var a=r.getZr();if(!a[v0]){a[ny]||(a[ny]=wet);var o=fl(a,ny,e,t);o(r,n)}}}function wet(r,t){if(!r.isDisposed()){var e=r.getZr();e[v0]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[v0]=!1}}function TM(r,t,e,n){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(r.brushSelector(n,e,o.selectors,o))return!0}}function Tet(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(Y(e)?Dt(e,t)<0:t!==e)}var Aet={rect:function(r){return AM(r.range)},polygon:function(r){for(var t,e=r.range,n=0,i=e.length;n<i;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=e[n];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&AM(t)}};function AM(r){return new Mt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Cet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new P1(n.getZr())).on("brush",at(this._onBrush,this)).mount()},t.prototype.render=function(e,n,i,a){this.model=e,this._updateController(e,n,i,a)},t.prototype.updateTransform=function(e,n,i,a){AO(n),this._updateController(e,n,i,a)},t.prototype.updateVisual=function(e,n,i,a){this.updateTransform(e,n,i,a)},t.prototype.updateView=function(e,n,i,a){this._updateController(e,n,i,a)},t.prototype._updateController=function(e,n,i,a){(!a||a.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:mt(i),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:mt(i),$from:n})},t.type="brush",t}(fe);const Met=Cet;var Det="#ddd",Iet=function(r){B(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,n){var i=this.option;!n&&TO(i,e,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:Det},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Z(e,function(n){return CM(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=CM(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:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Bt);function CM(r,t){return Tt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new te(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const Let=Iet;var Pet=["rect","polygon","lineX","lineY","keep","clear"],Ret=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,M(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,i){this.render(e,n,i)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return M(e.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(e,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var n={show:!0,type:Pet.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 n},t}(Fr);const Eet=Ret;function ket(r){r.registerComponentView(Met),r.registerComponentModel(Let),r.registerPreprocessor(pet),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,xet),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},pe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},pe),_s("brush",Eet)}var Oet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Bt),Net=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=xt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Gt({style:Qt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Gt({style:Qt(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Kh(d,"_"+e.get("target"))}),p&&v.on("click",function(){Kh(p,"_"+e.get("subtarget"))}),St(f).eventData=St(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),h&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=be(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var x=_.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var w=new Vt({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(fe);function Vet(r){r.registerComponentModel(Oet),r.registerComponentView(Net)}var Bet=function(r){B(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,n,i){this.mergeDefaultAndTheme(e,i),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 n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-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,n=e.data||[],i=e.axisType,a=this._names=[],o;i==="category"?(o=[],M(n,function(u,f){var c=xe(tl(u),""),h;yt(u)?(h=mt(u),h.value=f):h=f,o.push(h),a.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new sr([{name:"value",type:s}],this);l.initData(o,a)},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:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Bt);const MM=Bet;var CO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=ya(MM.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(MM);_e(CO,gd.prototype);const zet=CO;var Get=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(fe);const Fet=Get;var Het=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this,e,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(mn);const Wet=Het;var iy=Math.PI,DM=Nt(),$et=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,i){if(this.model=e,this.api=i,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Ie("nameValue",{noName:!0,value:f})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,e)},this),this._renderAxisLabel(a,s,l,e),this._position(a,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,n){var i=e.get(["label","position"]),a=e.get("orient"),o=Yet(e,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":nt(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:iy/2},c=a==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*iy/180;var m,_,S,x=h.get("position",!0),b=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),A=0,C=c;x==="left"||x==="bottom"?(b&&(m=[0,0],A+=g),w&&(_=[A,0],A+=g),T&&(S=[C-d,0],C-=g)):(b&&(m=[C-d,0],C-=g),w&&(_=[0,0],A+=g),T&&(S=[C-d,0],C-=g));var D=[A,C];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:c,orient:a,rotation:f[a],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},t.prototype._position=function(e,n){var i=this._mainGroup,a=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Cr(),l=o.x,u=o.y+o.height;$n(s,s,[-l,-u]),Oo(s,s,-iy/2),$n(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(i.getBoundingRect()),h=m(a.getBoundingRect()),v=[i.x,i.y],d=[a.x,a.y];d[0]=v[0]=f[0][0];var p=e.labelPosOpt;if(p==null||nt(p)){var g=p==="+"?0:1;_(v,c,f,1,g),_(d,h,f,1,1-g)}else{var g=p>=0?0:1;_(v,c,f,1,g),d[1]=v[1]+p}i.setPosition(v),a.setPosition(d),i.rotation=a.rotation=e.rotation,y(i),y(a);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},t.prototype._createAxis=function(e,n){var i=n.getData(),a=n.get("axisType"),o=Uet(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Wet("value",o,e.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new _t;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Ee({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:F({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Ee({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:pt({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(e,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],M(l,function(u){var f=i.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),v=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:at(o._changeTimeline,o,u.value)},g=IM(c,h,n,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),xo(g);var y=St(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],M(u,function(f){var c=f.tickValue,h=l.getItemModel(c),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),g=i.dataToCoord(f.tickValue),y=new Gt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:at(o._changeTimeline,o,c),silent:!1,style:Qt(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Qt(d),y.ensureState("progress").style=Qt(p),n.add(y),xo(y),DM(y).dataIndex=c,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,n,i,a){var o=e.controlSize,s=e.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),f=a.getPlayState(),c=a.get("inverse",!0);h(e.nextBtnPosition,"next",at(this._changeTimeline,this,c?"-":"+")),h(e.prevBtnPosition,"prev",at(this._changeTimeline,this,c?"+":"-")),h(e.playPosition,f?"stop":"play",at(this._handlePlayClick,this,!f),!0);function h(v,d,p,g){if(v){var y=pn(xt(a.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=Zet(a,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),xo(_)}}},t.prototype._renderCurrentPointer=function(e,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=at(u._handlePointerDrag,u),c.ondragend=at(u._handlePointerDragend,u),LM(c,u._progressLine,s,i,a,!0)},onUpdate:function(c){LM(c,u._progressLine,s,i,a)}};this._currentPointer=IM(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,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var i=this._toAxisCoord(e)[0],a=this._axis,o=$r(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||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 n=e.model;e._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var n=this._mainGroup.getLocalTransform();return cn(e,n,!0)},t.prototype._findNearestTick=function(e){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<i&&(i=f,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var n=this.model.getCurrentIndex();e==="+"?e=n+1:e==="-"&&(e=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<e);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",DM(i[a]).dataIndex<=e)},t.type="timeline.slider",t}(Fet);function Uet(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new K_({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new CR({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new fa}}function Yet(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function Zet(r,t,e,n){var i=n.style,a=Mf(r.get(["controlStyle",t]),n||{},new Mt(e[0],e[1],e[2],e[3]));return i&&a.setStyle(i),a}function IM(r,t,e,n,i,a){var o=t.get("color");if(i)i.setColor(o),e.add(i),a&&a.onUpdate(i);else{var s=r.get("symbol");i=me(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),e.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=Tt({rectHover:!0,z2:100},n,!0);var u=cl(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=zo(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=r.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function LM(r,t,e,n,i,a){if(!r.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",e));if(a||!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)}}}const Xet=$et;function qet(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),pt({currentIndex:i.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function Ket(r){var t=r&&r.timeline;Y(t)||(t=t?[t]:[]),M(t,function(e){e&&jet(e)})}function jet(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),PM(r),ro(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});ro(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!ro(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}M(r.data||[],function(i){yt(i)&&!Y(i)&&(!ro(i,"value")&&ro(i,"name")&&(i.value=i.name),PM(i))})}function PM(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),n=r.label||r.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};M(n,function(o,s){!a[s]&&!ro(i,s)&&(i[s]=o)}),e.label&&!ro(n,"emphasis")&&(n.emphasis=e.label,delete e.label)}function ro(r,t){return r.hasOwnProperty(t)}function Jet(r){r.registerComponentModel(zet),r.registerComponentView(Xet),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),qet(r),r.registerPreprocessor(Ket)}function rS(r,t){if(!r)return!1;for(var e=Y(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function Hc(r){Mo(r,"label",["show"])}var Wc=Nt(),MO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(zt.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,n){this._mergeOption(e,n,!1,!1)},t.prototype._mergeOption=function(e,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Wc(s)[o];if(!l||!l.data){Wc(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&Hc(l),M(l.data,function(f){f instanceof Array?(Hc(f[0]),Hc(f[1])):Hc(f)}),u=this.createMarkerModelFromSeries(l,this,n),F(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Wc(s)[o]=u},this)},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return Ie("section",{header:this.name,blocks:[Ie("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,n){var i=gd.prototype.getDataParams.call(this,e,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(e,n){return Wc(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Bt);_e(MO,gd.prototype);const va=MO;var Qet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},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);const trt=Qet;function d0(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function ert(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function $c(r,t,e,n,i,a){var o=[],s=ua(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=nS(t,l,r),f=t.indicesOfNearest(l,u)[0];o[i]=t.get(e,f),o[a]=t.get(l,f);var c=t.get(n,f),h=On(t.get(n,f));return h=Math.min(h,20),h>=0&&(o[a]=+o[a].toFixed(h)),[o,c]}var ay={min:bt($c,"min"),max:bt($c,"max"),average:bt($c,"average"),median:bt($c,"median")};function df(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!ert(t)&&!Y(t.coord)&&Y(i)){var a=DO(t,e,n,r);if(t=mt(t),t.type&&ay[t.type]&&a.baseAxis&&a.valueAxis){var o=Dt(i,a.baseAxis.dim),s=Dt(i,a.valueAxis.dim),l=ay[t.type](e,a.baseDataDim,a.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||!Y(i))t.coord=[];else for(var u=t.coord,f=0;f<2;f++)ay[u[f]]&&(u[f]=nS(e,e.mapDimension(i[f]),u[f]));return t}}function DO(r,t,e,n){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(rrt(n,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function rrt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function pf(r,t){return r&&r.containData&&t.coord&&!d0(t)?r.containData(t.coord):!0}function nrt(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!d0(t)&&!d0(e)?r.containZone(t.coord,e.coord):!0}function IO(r,t){return r?function(e,n,i,a){var o=a<2?e.coord&&e.coord[a]:e.value;return ra(o,t[a])}:function(e,n,i,a){return ra(e.value,t[a])}}function nS(r,t,e){if(e==="average"){var n=0,i=0;return r.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var oy=Nt(),irt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ft()},t.prototype.render=function(e,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){oy(s).keep=!1}),n.eachSeries(function(s){var l=va.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!oy(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(e){oy(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var i=this;M(e,function(a){var o=va.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?eP(l):y_(l))})}})},t.type="marker",t}(fe);const iS=irt;function RM(r,t,e){var n=t.coordinateSystem;r.each(function(i){var a=r.getItemModel(i),o,s=rt(a.get("x"),e.getWidth()),l=rt(a.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,i));else if(n){var u=r.get(n.dimensions[0],i),f=r.get(n.dimensions[1],i);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var art=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=va.getMarkerModelFromSeries(a,"markPoint");o&&(RM(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Ef),c=ort(o,e,n);n.setData(c),RM(n.getData(),e,a),c.each(function(h){var v=c.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(vt(d)||vt(p)||vt(g)||vt(y)){var _=n.getRawValue(h),S=n.getDataParams(h);vt(d)&&(d=d(_,S)),vt(p)&&(p=p(_,S)),vt(g)&&(g=g(_,S)),vt(y)&&(y=y(_,S))}var x=v.getModel("itemStyle").getItemStyle(),b=If(l,"color");x.fill||(x.fill=b),c.setItemVisual(h,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){St(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(iS);function ort(r,t,e){var n;r?n=Z(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return F(F({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sr(n,e),a=Z(e.get("data"),bt(df,t));r&&(a=$t(a,bt(pf,r)));var o=IO(!!r,n);return i.initData(a,null,o),i}const srt=art;function lrt(r){r.registerComponentModel(trt),r.registerComponentView(srt),r.registerPreprocessor(function(t){rS(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var urt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},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);const frt=urt;var Uc=Nt(),crt=function(r,t,e,n){var i=r.getData(),a;if(Y(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Re(n.yAxis,n.xAxis);else{var u=DO(n,i,t,r);s=u.valueAxis;var f=hR(i,u.valueDataDim);l=nS(i,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=mt(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=e.get("precision");p>=0&&Ft(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[c]=d.coord[c]=l,a=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[df(r,a[0]),df(r,a[1]),F({},a[2])];return g[2].type=g[2].type||null,Tt(g[2],g[0]),Tt(g[2],g[1]),g};function bv(r){return!isNaN(r)&&!isFinite(r)}function EM(r,t,e,n){var i=1-r,a=n.dimensions[r];return bv(t[i])&&bv(e[i])&&t[r]===e[r]&&n.getAxis(a).containData(t[r])}function hrt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(EM(1,e,n,r)||EM(0,e,n,r)))return!0}return pf(r,t[0])&&pf(r,t[1])}function sy(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=rt(o.get("x"),i.getWidth()),u=rt(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=a.dimensions,c=r.get(f[0],t),h=r.get(f[1],t);s=a.dataToPoint([c,h])}if(Fo(a,"cartesian2d")){var v=a.getAxis("x"),d=a.getAxis("y"),f=a.dimensions;bv(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):bv(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var vrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=va.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Uc(o).from,u=Uc(o).to;l.each(function(f){sy(l,f,!0,a,i),sy(u,f,!1,a,i)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new A1);this.group.add(f.group);var c=drt(o,e,n),h=c.from,v=c.to,d=c.line;Uc(n).from=h,Uc(n).to=v,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");Y(p)||(p=[p,p]),Y(g)||(g=[g,g]),Y(y)||(y=[y,y]),Y(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),d.each(function(S){var x=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),x.stroke==null&&(x.stroke=h.getItemVisual(S,"style").fill),d.setItemVisual(S,{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:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:x})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){St(S).dataModel=n,S.traverse(function(x){St(x).dataModel=n})});function _(S,x,b){var w=S.getItemModel(x);sy(S,x,b,e,a);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=If(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:xt(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:xt(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:xt(w.get("symbolSize"),g[b?0:1]),symbol:xt(w.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(iS);function drt(r,t,e){var n;r?n=Z(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return F(F({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sr(n,e),a=new sr(n,e),o=new sr([],e),s=Z(e.get("data"),bt(crt,t,r,e));r&&(s=$t(s,bt(hrt,r)));var l=IO(!!r,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const prt=vrt;function grt(r){r.registerComponentModel(frt),r.registerComponentView(prt),r.registerPreprocessor(function(t){rS(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var yrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},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);const mrt=yrt;var Yc=Nt(),_rt=function(r,t,e,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=df(r,i),s=df(r,a),l=o.coord,u=s.coord;l[0]=Re(l[0],-1/0),l[1]=Re(l[1],-1/0),u[0]=Re(u[0],1/0),u[1]=Re(u[1],1/0);var f=J0([{},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 wv(r){return!isNaN(r)&&!isFinite(r)}function kM(r,t,e,n){var i=1-r;return wv(t[i])&&wv(e[i])}function Srt(r,t){var e=t.coord[0],n=t.coord[1],i={coord:e,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Fo(r,"cartesian2d")?e&&n&&(kM(1,e,n)||kM(0,e,n))?!0:nrt(r,i,a):pf(r,i)||pf(r,a)}function OM(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=rt(o.get(e[0]),i.getWidth()),u=rt(o.get(e[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],t),c=r.getValues(["x1","y1"],t),h=a.clampData(f),v=a.clampData(c),d=[];e[0]==="x0"?d[0]=h[0]>v[0]?c[0]:f[0]:d[0]=h[0]>v[0]?f[0]:c[0],e[1]==="y0"?d[1]=h[1]>v[1]?c[1]:f[1]:d[1]=h[1]>v[1]?f[1]:c[1],s=n.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(Fo(a,"cartesian2d")){var m=a.getAxis("x"),_=a.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);wv(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):wv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var NM=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],xrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=va.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(NM,function(c){return OM(s,l,c,a,i)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new _t});this.group.add(f.group),this.markKeep(f);var c=brt(o,e,n);n.setData(c),c.each(function(h){var v=Z(NM,function(T){return OM(c,h,T,e,a)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",h)),d.parse(c.get("x1",h))],_=[p.parse(c.get("y0",h)),p.parse(c.get("y1",h))];$r(m),$r(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;c.setItemLayout(h,{points:v,allClipped:x});var b=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=If(l,"color");b.fill||(b.fill=w,nt(b.fill)&&(b.fill=Bh(b.fill,.4))),b.stroke||(b.stroke=w),c.setItemVisual(h,"style",b)}),c.diff(Yc(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var d=new yr({shape:{points:v.points}});c.setItemGraphicEl(h,d),f.group.add(d)}}).update(function(h,v){var d=Yc(f).data.getItemGraphicEl(v),p=c.getItemLayout(h);p.allClipped?d&&f.group.remove(d):(d?Ht(d,{shape:{points:p.points}},n,h):d=new yr({shape:{points:p.points}}),c.setItemGraphicEl(h,d),f.group.add(d))}).remove(function(h){var v=Yc(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var d=c.getItemModel(v),p=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),He(h,De(d),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:nt(p.fill)?Bh(p.fill,1):"#000"}),Fe(h,d),ue(h,null,null,d.get(["emphasis","disabled"])),St(h).dataModel=n}),Yc(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(iS);function brt(r,t,e){var n,i,a=["x0","y0","x1","y1"];if(r){var o=Z(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return F(F({},c),{name:u,ordinalMeta:null})});i=Z(a,function(u,f){return{name:u,type:o[f%2].type}}),n=new sr(i,e)}else i=[{name:"value",type:"float"}],n=new sr(i,e);var s=Z(e.get("data"),bt(_rt,t,r,e));r&&(s=$t(s,bt(Srt,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return ra(v,i[h])}:function(u,f,c,h){return ra(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const wrt=xrt;function Trt(r){r.registerComponentModel(mrt),r.registerComponentView(wrt),r.registerPreprocessor(function(t){rS(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Art=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"])}},Crt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),Y(n)&&M(n,function(a,o){nt(a)&&(a={type:a}),n[o]=Tt(a,Art(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&u_(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ft(),s=Z(a,function(l){return(nt(l)||Ft(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new te(l,this,this.ecModel))},this);this._data=$t(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;M(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;M(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;M(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&Dt(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Bt);const p0=Crt;var us=bt,g0=M,Zc=_t,Mrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Zc),this.group.add(this._selectorGroup=new Zc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,l,s,u);var f=e.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=e.get("padding"),v=be(f,c,h),d=this.layoutInner(e,o,v,a,l,u),p=be(pt({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yO(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=ft(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),g0(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` |
|
`)){var g=new Zc;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),x=m.getVisual("style"),b=this._createItem(y,p,d,v,n,e,_,x,S,c,a);b.on("click",us(VM,p,null,a,h)).on("mouseover",us(y0,y.name,null,a,h)).on("mouseout",us(m0,y.name,null,a,h)),i.ssr&&b.eachChild(function(w){var T=St(w);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(w){if(!f.get(p)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),C=T.getItemVisual(A,"style"),D=T.getItemVisual(A,"legendIcon"),I=Mr(C.fill);I&&I[3]===0&&(I[3]=.2,C=F(F({},C),{fill:ci(I,"rgba")}));var L=this._createItem(w,p,d,v,n,e,{},C,D,c,a);L.on("click",us(VM,null,p,a,h)).on("mouseover",us(y0,null,p,a,h)).on("mouseout",us(m0,null,p,a,h)),i.ssr&&L.eachChild(function(P){var E=St(P);E.seriesIndex=w.seriesIndex,E.dataIndex=d,E.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();g0(e,function(u){var f=u.type,c=new Gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);He(c,{normal:h,emphasis:v},{defaultText:u.title}),xo(c)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=Drt(f,a,l,u,v,g,h),x=new Zc,b=a.getModel("textStyle");if(vt(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,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(Irt({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,A=s,C=o.get("formatter"),D=n;nt(C)&&C?D=C.replace("{name}",n!=null?n:""):vt(C)&&(D=C(n));var I=g?b.getTextColor():a.get("inactiveColor");x.add(new Gt({style:Qt(b,{text:D,x:T,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new Vt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&No({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(E){E.silent=!0}),L.silent=!c,this.getContentGroup().add(x),xo(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wo(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){wo("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(fe);function Drt(r,t,e,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),g0(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:$s(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Irt(r){var t=r.icon||"roundRect",e=me(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function VM(r,t,e,n){m0(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),y0(r,t,e,n)}function LO(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function y0(r,t,e,n){LO(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function m0(r,t,e,n){LO(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}const PO=Mrt;function Lrt(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function Yl(r,t,e){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){n?s[r]():s[r](t.name),BM(s,i),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){M(i,function(l,u){s[l?"select":"unSelect"](u)}),BM(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function BM(r,t){var e=t||{};return M(r.getData(),function(n){var i=n.get("name");if(!(i===` |
|
`||i==="")){var a=r.isSelected(i);lt(e,i)?e[i]=e[i]&&a:e[i]=a}}),e}function Prt(r){r.registerAction("legendToggleSelect","legendselectchanged",bt(Yl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",bt(Yl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",bt(Yl,"inverseSelect")),r.registerAction("legendSelect","legendselected",bt(Yl,"select")),r.registerAction("legendUnSelect","legendunselected",bt(Yl,"unSelect"))}function RO(r){r.registerComponentModel(p0),r.registerComponentView(PO),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Lrt),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Prt(r)}var Rrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,i){var a=ol(e);r.prototype.init.call(this,e,n,i),zM(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),zM(this,this.option,e)},t.type="legend.scroll",t.defaultOption=ya(p0.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(p0);function zM(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,la(t,e,{type:"box",ignoreSize:!!i})}const Ert=Rrt;var GM=_t,ly=["width","height"],uy=["x","y"],krt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new GM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GM)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=Y(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Gt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Mf(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:at(u._pageGo,u,y,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=ly[u],c=uy[u],h=ly[1-u],v=uy[1-u];o&&wo("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=mt(i);o&&(y[f]=i[f]-p[f]-d);var m=this._layoutContentAndController(e,a,y,u,f,h,v,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;wo(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),wo("horizontal",h,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>i[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=xt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var x={x:0,y:0};if(x[o]=p?i[o]:v[o],x[s]=Math.max(v[s],d[s]),x[l]=Math.min(0,d[l]+m[1-a]),c.__rectSize=i[o],p){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=x[s],c.setClipPath(new Vt({shape:b})),c.__rectSize=b[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Ht(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",nt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=ly[o],l=uy[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(b){if(b){var w=b.getBoundingRect(),T=w[l]+b[l];return{s:T,e:T+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(PO);const Ort=krt;function Nrt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Vrt(r){Lt(RO),r.registerComponentModel(Ert),r.registerComponentView(Ort),Nrt(r)}function Brt(r){Lt(RO),Lt(Vrt)}var zrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=ya(vf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(vf);const Grt=zrt;var aS=Nt();function Frt(r,t,e){aS(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function Hrt(r,t){for(var e=aS(r).coordSysRecordMap,n=e.keys(),i=0;i<n.length;i++){var a=n[i],o=e.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||EO(e,o))}}}function EO(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function Wrt(r,t){var e={model:t,containsPoint:bt(Urt,t),dispatchAction:bt($rt,r),dataZoomInfoMap:null,controller:null},n=e.controller=new Bf(r.getZr());return M(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function $rt(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Urt(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function Yrt(r){var t,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[e+s]>n[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Zrt(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=aS(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=ft());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=dO(a);M(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,Wrt(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=ft());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){EO(i,a);return}var f=Yrt(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),fl(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Xrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Frt(i,e,{pan:at(fy.pan,this),zoom:at(fy.zoom,this),scrollMove:at(fy.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Hrt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(K1),fy={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=cy[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Wo(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:FM(function(r,t,e,n,i,a){var o=cy[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:FM(function(r,t,e,n,i,a){var o=cy[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function FM(r){return function(t,e,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,i);if(Wo(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var cy={grid:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,n,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const qrt=Xrt;function kO(r){j1(r),r.registerComponentModel(Grt),r.registerComponentView(qrt),Zrt(r)}var Krt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ya(vf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(vf);const jrt=Krt;var Zl=Vt,HM=7,Jrt=1,hy=30,Qrt=7,Xl="horizontal",WM="vertical",tnt=5,ent=["line","bar","candlestick","scatter"],rnt={easing:"cubicOut",duration:100,delay:0},nnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=at(this._onBrush,this),this._onBrushEnd=at(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,a){if(r.prototype.render.apply(this,arguments),fl(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){tf(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new _t;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),a=i?Qrt:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Xl?{right:s.width-o.x-o.width,top:s.height-hy-HM-a,width:o.width,height:hy}:{right:HM,top:o.y,width:hy,height:o.height},u=ol(e.option);M(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var f=be(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===WM&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Xl&&!o?{scaleY:l?1:-1,scaleX:1}:i===Xl&&o?{scaleY:l?1:-1,scaleX:-1}:i===WM&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=n.x-u.x,e.y=n.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new Zl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Zl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:at(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var v=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(A,C){if(_>0&&C%_){m+=y;return}var D=A==null||isNaN(A)||A==="",I=D?0:Ut(A,c,v,!0);D&&!S&&C?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,I]),g.push([m,I]),m+=y,S=D}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function b(A){var C=x.getModel(A?"selectedDataBackground":"dataBackground"),D=new _t,I=new yr({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new mr({shape:{points:f},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(I),D.add(L),D}for(var w=0;w<3;w++){var T=b(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!i&&!(n!==!0&&Dt(ent,u.get("type"))<0)){var f=a.getComponent(Qi(o),s).axis,c=int(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c),i={thisAxis:f,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=n.filler=new Zl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Zl({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:Jrt,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!Qh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=me(S,-1,0,2,2,null,!0);x.attr({cursor:$M(this._orient),draggable:!0,drift:at(this._onDragMove,this,_),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=rt(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(),xo(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(i[_]=x);var A=l.getModel("textStyle"),C=l.get("handleLabel")||{},D=C.show||!1;e.add(a[_]=new Gt({silent:!0,invisible:!D,style:Qt(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var v=h;if(c){var d=rt(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Vt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=me(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Vt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:$M(this._orient),drift:at(this._onDragMove,this,"all"),ondragstart:at(this._showDataInfo,this,!0),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ut(e[0],[0,100],n,!0),Ut(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Wo(n,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?Ut(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ut(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=$r([Ut(a[0],o,l,!0),Ut(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,a=$r(i.slice()),o=this._size;M([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var c=l[f],h=c.getClipPath();h||(h=new Vt,c.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 n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,c=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=$r(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=bo(i.handles[d].parent,this.group),g=sd(d===0?"right":"left",p),y=this._handleWidth/2+tnt,m=cn([h[d]+(d===0?-y:y),this._size[1]/2],p);a[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Xl?"middle":g,align:o===Xl?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=e==null||isNaN(e)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return vt(a)?a(e,s):nt(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var n=this.dataZoomModel.get("handleLabel")||{},i=n.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=e||this._dragging?o:i,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._onDragMove=function(e,n,i,a){this._dragging=!0,gi(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=cn([n,i],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new Ct(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=$r([Ut(i.x,o,s,!0),Ut(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(gi(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Zl({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?rnt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=dO(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(K1);function int(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function $M(r){return r==="vertical"?"ns-resize":"ew-resize"}const ant=nnt;function OO(r){r.registerComponentModel(jrt),r.registerComponentView(ant),j1(r)}function ont(r){Lt(kO),Lt(OO)}var snt={get:function(r,t,e){var n=mt((lnt[r]||{})[t]);return e&&Y(n)?n[n.length-1]:n}},lnt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const NO=snt;var UM=Ge.mapVisual,unt=Ge.eachVisual,fnt=Y,YM=M,cnt=$r,hnt=Ut,vnt=function(r){B(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,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,n){var i=this.option;!n&&TO(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=at(e,this),this.controllerVisuals=h0(this.option.controller,n,e),this.targetVisuals=h0(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Zt(e),n},t.prototype.eachTargetSeries=function(e,n){M(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&e.call(n,a)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(i){i===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Y(e)&&(e=e.slice(),u=!0);var f=n?e:u?[c(e[0]),c(e[1])]:c(e);if(nt(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(vt(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?i[0]+" "+f[1]:e[1]===s[1]?i[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,n=cnt([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var i=e.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Tt(a,i),Tt(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(c){fnt(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,h,v){var d=c[h],p=c[v];d&&!p&&(p=c[v]={},YM(d,function(g,y){if(Ge.isValidType(y)){var m=NO.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";YM(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&mt(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&mt(v)||(s?m[0]:[m[0],m[0]])),_.symbol=UM(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;unt(S,function(b){b>x&&(x=b)}),_.symbolSize=UM(S,function(b){return hnt(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,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Bt);const Tv=vnt;var ZM=[20,140],dnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.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]=ZM[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=ZM[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=$r((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]<e[0]&&(n[0]=e[0]),n[1]<e[0]&&(n[1]=e[0]),n},t.prototype.getValueState=function(e){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=e)&&(n[1]>=i[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(e){var n=XM(this,"outOfRange",this.getExtent()),i=XM(this,"inRange",this.option.range.slice()),a=[];function o(v,d){a.push({value:v,color:e(v,d)})}for(var s=0,l=0,u=i.length,f=n.length;l<f&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var c=1;l<f;l++)(!i.length||i[i.length-1]<n[l])&&(c&&(a.length&&o(a[a.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=ya(Tv.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(Tv);function XM(r,t,e){if(e[0]===e[1])return e.slice();for(var n=200,i=(e[1]-e[0])/n,a=e[0],o=[],s=0;s<=n&&a<e[1];s++)o.push(a),a+=i;return o.push(e[1]),o}const pnt=dnt;var gnt=function(r){B(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,n){this.ecModel=e,this.api=n},t.prototype.render=function(e,n,i,a){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,n,i,a)},t.prototype.renderBackground=function(e){var n=this.visualMapModel,i=al(n.get("padding")||0),a=e.getBoundingRect();e.add(new Vt({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var c=o.controllerVisuals[a||o.getValueState(e)],h=Ge.prepareVisualTypes(c);return M(h,function(v){var d=c[v];i.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),Ge.dependsOn(v,n)&&d&&d.applyVisual(e,u,f)}),s[n]},t.prototype.positionGroup=function(e){var n=this.visualMapModel,i=this.api;dd(e,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(e,n,i,a){},t.type="visualMap",t}(fe);const VO=gnt;var qM=[["left","right","width"],["top","bottom","height"]];function BO(r,t,e){var n=r.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=qM[o],l=[0,null,10],u={},f=0;f<3;f++)u[qM[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],h=be(u,a,n.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<a[c[1]]*.5?0:1]}function Sh(r,t){return M(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var Mn=Ut,ynt=M,KM=Math.min,vy=Math.max,mnt=12,_nt=6,Snt=function(r){B(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,n){r.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=at(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=at(this._hideIndicator,this)},t.prototype.doRender=function(e,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,n=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(n);var i=e.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(e,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),c=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Gt({style:Qt(v,{x:f[0],y:f[1],verticalAlign:h==="horizontal"?"middle":c,align:h==="horizontal"?c:"center",text:a})}))}},t.prototype._renderBar=function(e){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=BO(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),f=new _t;u.add(f),f.add(i.outOfRange=jM()),f.add(i.inRange=jM(null,s?QM(this._orient):null,at(this._dragHandle,this,"all",!1),at(this._dragHandle,this,"all",!0))),f.setClipPath(new Vt({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),h=vy(c.width,c.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,h,o),this._createHandle(n,u,1,a,h,o)),this._createIndicator(n,u,a,h,o),e.add(u)},t.prototype._createHandle=function(e,n,i,a,o,s){var l=at(this._dragHandle,this,i,!1),u=at(this._dragHandle,this,i,!0),f=pn(e.get("handleSize"),a[0]),c=me(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=QM(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){gi(y.event)}}),c.x=a[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),so(c,!0),n.add(c);var v=this.visualMapModel.textStyleModel,d=new Gt({cursor:h,draggable:!0,drift:l,onmousemove:function(y){gi(y.event)},ondragend:u,style:Qt(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[i]=c,g.handleLabelPoints[i]=p,g.handleLabels[i]=d},t.prototype._createIndicator=function(e,n,i,a,o){var s=pn(e.get("indicatorSize"),i[0]),l=me(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof We){var f=l.style;l.useStyle(F({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,h=new Gt({silent:!0,invisible:!0,style:Qt(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?a/2:_nt)+i[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():JM(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,n=this._dataInterval=e.getSelected(),i=e.getExtent(),a=[0,e.itemSize[1]];this._handleEnds=[Mn(n[0],i,a,!0),Mn(n[1],i,a,!0)]},t.prototype._updateInterval=function(e,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Wo(n,a,o,e,0);var s=i.getExtent();this._dataInterval=[Mn(a[0],o,s,!0),Mn(a[1],o,s,!0)]},t.prototype._updateView=function(e){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Af(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,n){var i=100,a=[],o=(e[1]-e[0])/i;a.push({color:this.getControllerVisual(e[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=e[0]+o*s;if(l>e[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(e,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,i=this.visualMapModel.get("inverse");return new _t(n==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),f=this._applyTransform("left",i.mainGroup);ynt([0,1],function(c){var h=o[c];h.setStyle("fill",n.handlesColor[c]),h.y=e[c];var v=Mn(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=cn(i.handleLabelPoints[c],bo(h,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",h),d=this.getControllerVisual(e,"symbolSize"),p=Mn(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=cn(f.indicatorLabelPoint,bo(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:p,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,A),_.animateTo(T,A)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var D=0;D<C.length;D++)this.api.enterBlur(C[D])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(n){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,a=e._applyTransform([n.offsetX,n.offsetY],e._shapes.mainGroup,!0,!0);a[1]=KM(vy(0,a[1]),i[1]),e._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[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,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();e=KM(vy(o[0],e),o[1]);var l=xnt(i,s,o),u=[e-l,e+l],f=Mn(e,o,s,!0),c=[Mn(u[0],o,s,!0),Mn(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||JM(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var d=sF(h,v);this._dispatchHighDown("downplay",Sh(d[0],i)),this._dispatchHighDown("highlight",Sh(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(uo(e.target,function(l){var u=St(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.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 n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Sh(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,n,i,a){var o=bo(n,a?null:this.group);return Y(e)?cn(e,o,i):sd(e,o,i)},t.prototype._dispatchHighDown=function(e,n){n&&n.length&&this.api.dispatchAction({type:e,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(VO);function jM(r,t,e,n){return new yr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(i){gi(i.event)},ondragend:n})}function xnt(r,t,e){var n=mnt/2,i=r.get("hoverLinkDataSize");return i&&(n=Mn(i,t,e,!0)/2),n}function JM(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function QM(r){return r==="vertical"?"ns-resize":"ew-resize"}const bnt=Snt;var wnt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Tnt=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},Ant=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(n){var i=r.pipelineContext;!n.isTargetSeries(r)||i&&i.large||e.push(met(n.stateList,n.targetVisuals,at(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var a=i.getVisualMeta(at(Cnt,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(e);o>=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function Cnt(r,t,e,n){for(var i=t.targetVisuals[n],a=Ge.prepareVisualTypes(i),o={color:If(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],f=i[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var tD=M;function Mnt(r){var t=r&&r.visualMap;Y(t)||(t=t?[t]:[]),tD(t,function(e){if(e){fs(e,"splitList")&&!fs(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var n=e.pieces;n&&Y(n)&&tD(n,function(i){yt(i)&&(fs(i,"start")&&!fs(i,"min")&&(i.min=i.start),fs(i,"end")&&!fs(i,"max")&&(i.max=i.end))})}})}function fs(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var eD=!1;function zO(r){eD||(eD=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(wnt,Tnt),M(Ant,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Mnt))}function GO(r){r.registerComponentModel(pnt),r.registerComponentView(bnt),zO(r)}var Dnt=function(r){B(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,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Int[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=mt(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=mt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},i=Ge.listVisualTypes(),a=this.isCategory();M(e.pieces,function(s){M(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),M(n,function(s,l){var u=!1;M(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&M(this.stateList,function(f){(e[f]||(e[f]={}))[l]=NO.get(l,f==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var i=this.option,a=this._pieceList,o=(n?i:e).selected||{};if(i.selected=o,M(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;M(a,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=mt(e)},t.prototype.getValueState=function(e){var n=Ge.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ge.findPieceIndex(l,i);f===e&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var i=e.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(f,c){var h=a.getRepresentValue({interval:f});c||(c=a.getValueState(h));var v=e(h,c);f[0]===-1/0?i[0]=v:f[1]===1/0?i[1]=v:n.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=ya(Tv.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}(Tv),Int={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(e)!==a&&e<5;)e++;t.precision=e,a=+a.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),Zx(r),M(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;M(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),rD(t,r)},pieces:function(r){var t=this.option;M(t.pieces,function(e,n){yt(e)||(e={value:e});var i={text:"",index:n};if(e.label!=null&&(i.text=e.label),e.hasOwnProperty("value")){var a=i.value=e.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=e[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}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]&&(i.value=o[0])}i.visual=Ge.retrieveVisuals(e),r.push(i)},this),rD(t,r),Zx(r),M(r,function(e){var n=e.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function rD(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const Lnt=Dnt;var Pnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),c=f.endsText,h=Re(n.get("showLabel",!0),!c),v=!n.get("selectedMode");c&&this._renderEndsText(e,c[0],u,h,l),M(f.viewPieceList,function(d){var p=d.piece,g=new _t;g.onclick=at(this._onItemClick,this,p),this._enableHoverLink(g,d.indexInModelPieceList);var y=n.getRepresentValue(p);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],v),h){var m=this.visualMapModel.getValueState(y);g.add(new Gt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:v}))}e.add(g)},this),c&&this._renderEndsText(e,c[1],u,h,l),wo(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var i=this;e.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Sh(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return BO(e,this.api,e.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,n,i,a,o){if(n){var s=new _t,l=this.visualMapModel.textStyleModel;s.add(new Gt({style:Qt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Z(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=e.get("text"),a=e.get("orient"),o=e.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(e,n,i,a){var o=me(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,e.add(o)},t.prototype._onItemClick=function(e){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=mt(i.selected),s=n.getSelectedMapKey(e);a==="single"||a===!0?(o[s]=!0,M(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}(VO);const Rnt=Pnt;function FO(r){r.registerComponentModel(Lnt),r.registerComponentView(Rnt),zO(r)}function Ent(r){Lt(GO),Lt(FO)}var knt={label:{enabled:!0},decal:{show:!1}},nD=Nt(),Ont={};function Nnt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(knt);Tt(n.label,r.getLocaleModel().get("aria"),!1),Tt(e.option,n,!1),i(),a();function i(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=ft();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),nD(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(vt(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=Sm(h.ecModel,h.name,Ont,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=h.getRawData(),p={},g=nD(h).scope;v.each(function(x){var b=v.getRawIndex(x);p[b]=x});var y=d.count();d.each(function(x){var b=p[x],w=d.getName(x)||x+"",T=Sm(h.ecModel,w,g,y),A=v.getItemVisual(b,"decal");v.setItemVisual(b,"decal",S(A,T))})}function S(x,b){var w=x?F(F({},b),x):b;return w.dirty=!0,w}})}}function a(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=pt(c.option,f),!!c.get("enabled")){if(u.setAttribute("role","img"),c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,A){if(A<p){var C=void 0,D=T.get("name"),I=D?"withName":"withoutName";C=h>1?c.get(["series","multiple",I]):c.get(["series","single",I]),C=o(C,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);C+=o(P,{displayCnt:v})}else C+=c.get(["data","allData"]);for(var E=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),V=c.get(["data","excludeDimensionId"]),N=[],G=0;G<L.count();G++)if(G<v){var $=L.getName(G),q=V?$t(L.getValues(G),function(ct,ht){return Dt(V,ht)===-1}):L.getValues(G),Q=c.get(["data",$?"withName":"withoutName"]);N.push(o(Q,{name:$,value:q.join(E)}))}C+=N.join(E)+O,_.push(C)}});var x=c.getModel(["series","multiple","separator"]),b=x.get("middle"),w=x.get("end");g+=_.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!nt(u))return u;var c=u;return M(f,function(h,v){c=c.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),c}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function Vnt(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},M(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function Bnt(r){r.registerPreprocessor(Vnt),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Nnt)}var iD={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},znt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):g5(t)?t:null;if(e==null){var n="";Wt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Ft(e)?this._condVal.test(t+""):!1},r}(),Gnt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Fnt=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}(),Hnt=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}(),Wnt=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),$nt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},r}();function oS(r,t){if(r===!0||r===!1){var e=new Gnt;return e.value=r,e}var n="";return HO(r)||Wt(n),r.and?aD("and",r,t):r.or?aD("or",r,t):r.not?Unt(r,t):Ynt(r,t)}function aD(r,t,e){var n=t[r],i="";Y(n)||Wt(i),n.length||Wt(i);var a=r==="and"?new Fnt:new Hnt;return a.children=Z(n,function(o){return oS(o,e)}),a.children.length||Wt(i),a}function Unt(r,t){var e=r.not,n="";HO(e)||Wt(n);var i=new Wnt;return i.child=oS(e,t),i.child||Wt(n),i}function Ynt(r,t){for(var e="",n=t.prepareGetValue(r),i=[],a=kt(r),o=r.parser,s=o?p2(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=lt(iD,u)?iD[u]:u,c=r[u],h=s?s(c):c,v=b4(f,h)||f==="reg"&&new znt(h);v||Wt(e),i.push(v)}}i.length||Wt(e);var d=new $nt;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function HO(r){return yt(r)&&!Ke(r)}var Znt=function(){function r(t,e){this._cond=oS(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function Xnt(r,t){return new Znt(r,t)}var qnt={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=Xnt(r.config,{valueGetterAttrMap:ft({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;lt(s,"dimension")||Wt(l);var f=t.getDimensionInfo(u);return f||Wt(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)e=t.getRawDataItem(a),n.evaluate()&&i.push(e);return{data:i}}},Knt={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",i=Zt(e);i.length||Wt(n);var a=[];M(i,function(f){var c=f.dimension,h=f.order,v=f.parser,d=f.incomparable;if(c==null&&Wt(n),h!=="asc"&&h!=="desc"&&Wt(n),d&&d!=="min"&&d!=="max"){var p="";Wt(p)}if(h!=="asc"&&h!=="desc"){var g="";Wt(g)}var y=t.getDimensionInfo(c);y||Wt(n);var m=v?p2(v):null;v&&!m&&Wt(n),a.push({dimIdx:y.index,parser:m,comparator:new y2(h,d)})});var o=t.sourceFormat;o!==je&&o!==qr&&Wt(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var h=0;h<a.length;h++){var v=a[h],d=t.retrieveValueFromItem(f,v.dimIdx),p=t.retrieveValueFromItem(c,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function jnt(r){r.registerTransform(qnt),r.registerTransform(Knt)}var Jnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,i){r.prototype.init.call(this,e,n,i),this._sourceManager=new x2(this),aw(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),aw(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Gn},t}(Bt),Qnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(fe);function tit(r){r.registerComponentModel(Jnt),r.registerComponentView(Qnt)}var An=Zn.CMD;function ws(r,t){return Math.abs(r-t)<1e-5}function _0(r){var t=r.data,e=r.len(),n=[],i,a=0,o=0,s=0,l=0;function u(L,P){i&&i.length>2&&n.push(i),i=[L,P]}function f(L,P,E,O){ws(L,E)&&ws(P,O)||i.push(L,P,E,O,E,O)}function c(L,P,E,O,V,N){var G=Math.abs(P-L),$=Math.tan(G/4)*4/3,q=P<L?-1:1,Q=Math.cos(L),ct=Math.sin(L),ht=Math.cos(P),gt=Math.sin(P),Et=Q*V+E,U=ct*N+O,K=ht*V+E,H=gt*N+O,tt=V*$*q,j=N*$*q;i.push(Et-tt*ct,U+j*Q,K+tt*gt,H-j*ht,K,H)}for(var h,v,d,p,g=0;g<e;){var y=t[g++],m=g===1;switch(m&&(a=t[g],o=t[g+1],s=a,l=o,(y===An.L||y===An.C||y===An.Q)&&(i=[s,l])),y){case An.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case An.L:h=t[g++],v=t[g++],f(a,o,h,v),a=h,o=v;break;case An.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case An.Q:h=t[g++],v=t[g++],d=t[g++],p=t[g++],i.push(a+2/3*(h-a),o+2/3*(v-o),d+2/3*(h-d),p+2/3*(v-p),d,p),a=d,o=p;break;case An.A:var _=t[g++],S=t[g++],x=t[g++],b=t[g++],w=t[g++],T=t[g++]+w;g+=1;var A=!t[g++];h=Math.cos(w)*x+_,v=Math.sin(w)*b+S,m?(s=h,l=v,u(s,l)):f(a,o,h,v),a=Math.cos(T)*x+_,o=Math.sin(T)*b+S;for(var C=(A?-1:1)*Math.PI/2,D=w;A?D>T:D<T;D+=C){var I=A?Math.max(D+C,T):Math.min(D+C,T);c(D,I,_,S,x,b)}break;case An.R:s=a=t[g++],l=o=t[g++],h=s+t[g++],v=l+t[g++],u(h,l),f(h,l,h,v),f(h,v,s,v),f(s,v,s,l),f(s,l,h,l);break;case An.Z:i&&f(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function S0(r,t,e,n,i,a,o,s,l,u){if(ws(r,e)&&ws(t,n)&&ws(i,o)&&ws(a,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-t,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=e-r,g=n-t,y=i-o,m=a-s,_=p*p+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var x=h*p+v*g,b=-h*y-v*m,w=_-x*x,T=S-b*b;if(w<c&&x>=0&&T<c&&b>=0){l.push(o,s);return}var A=[],C=[];oa(r,e,i,o,.5,A),oa(t,n,a,s,.5,C),S0(A[0],C[0],A[1],C[1],A[2],C[2],A[3],C[3],l,u),S0(A[4],C[4],A[5],C[5],A[6],C[6],A[7],C[7],l,u)}function eit(r,t){var e=_0(r),n=[];t=t||1;for(var i=0;i<e.length;i++){var a=e[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var f=a[u++],c=a[u++],h=a[u++],v=a[u++],d=a[u++],p=a[u++];S0(s,l,f,c,h,v,d,p,o,t),s=d,l=p}n.push(o)}return n}function WO(r,t,e){var n=r[t],i=r[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=e-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function oD(r,t,e){for(var n=r.r0,i=r.r,a=r.startAngle,o=r.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,f=l>Math.abs(u),c=WO([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;v<c.length;v++)for(var d=(f?u:s)/c[v],p=0;p<c[v];p++){var g={};f?(g.startAngle=a+h*v,g.endAngle=a+h*(v+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=a+d*p,g.endAngle=a+d*(p+1),g.r0=n+h*v,g.r=n+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function rit(r,t,e){for(var n=r.width,i=r.height,a=n>i,o=WO([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",f=a?"y":"x",c=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],d=0;d<o[h];d++){var p={};p[u]=h*c,p[f]=d*v,p[s]=c,p[l]=v,p.x+=r.x,p.y+=r.y,e.push(p)}}function sD(r,t,e,n){return r*n-e*t}function nit(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,c=s-a,h=sD(f,c,l,u);if(Math.abs(h)<1e-6)return null;var v=r-i,d=t-a,p=sD(v,d,f,c)/h;return p<0||p>1?null:new Ct(p*l+r,p*u+t)}function iit(r,t,e){var n=new Ct;Ct.sub(n,e,t),n.normalize();var i=new Ct;Ct.sub(i,r,t);var a=i.dot(n);return a}function cs(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function ait(r,t,e){for(var n=r.length,i=[],a=0;a<n;a++){var o=r[a],s=r[(a+1)%n],l=nit(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&i.push({projPt:iit(l,t,e),pt:l,idx:a})}if(i.length<2)return[{points:r},{points:r}];i.sort(function(g,y){return g.projPt-y.projPt});var u=i[0],f=i[i.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var h=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[h],p=[v],a=u.idx+1;a<=f.idx;a++)cs(d,r[a].slice());cs(d,v),cs(d,h);for(var a=f.idx+1;a<=u.idx+n;a++)cs(p,r[a%n].slice());return cs(p,h),cs(p,v),[{points:d},{points:p}]}function lD(r){var t=r.points,e=[],n=[];ed(t,e,n);var i=new Mt(e[0],e[1],n[0]-e[0],n[1]-e[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Ct,f=new Ct;return a>o?(u.x=f.x=s+a/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+a),ait(t,u,f)}function Av(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);Av(r,a[0],i,n),Av(r,a[1],e-i,n)}return n}function oit(r,t){for(var e=[],n=0;n<t;n++)e.push(__(r));return e}function sit(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function lit(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function uit(r,t){var e=[],n=r.shape,i;switch(r.type){case"rect":rit(n,t,e),i=Vt;break;case"sector":oD(n,t,e),i=gr;break;case"circle":oD({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),i=gr;break;default:var a=r.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Z(eit(r.getUpdatedPathProxy(),o),function(y){return lit(y)}),l=s.length;if(l===0)Av(lD,{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,c=Z(s,function(y){var m=[],_=[];ed(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var h=t,u=0;u<l;u++){var v=c[u];if(h<=0)break;var d=u===l-1?h:Math.ceil(v.area/f*t);d<0||(Av(lD,{points:v.poly},d,e),h-=d)}}i=yr;break}if(!i)return oit(r,t);for(var p=[],u=0;u<e.length;u++){var g=new i;g.setShape(e[u]),sit(r,g),p.push(g)}return p}function fit(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var i=[],a=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],x=o[v++];if(h<=0){c.push(g,y,m,_,S,x);continue}for(var b=Math.min(h,f-1)+1,w=1;w<=b;w++){var T=w/b;oa(d,g,m,S,T,i),oa(p,y,_,x,T,a),d=i[3],p=a[3],c.push(i[1],a[1],i[2],a[2],d,p),g=i[5],y=a[5],m=i[6],_=a[6]}h-=b-1}return o===r?[c,t]:[r,c]}function uD(r,t){for(var e=r.length,n=r[e-2],i=r[e-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function cit(r,t){for(var e,n,i,a=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,c=void 0;l?u?(e=fit(l,u),f=e[0],c=e[1],n=f,i=c):(c=uD(i||l,l),f=l):(f=uD(n||u,u),c=u),a.push(f),o.push(c)}return[a,o]}function fD(r){for(var t=0,e=0,n=0,i=r.length,a=0,o=i-2;a<i;o=a,a+=2){var s=r[o],l=r[o+1],u=r[a],f=r[a+1],c=s*f-u*l;t+=c,e+=(s+u)*c,n+=(l+f)*c}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function hit(r,t,e,n){for(var i=(r.length-2)/6,a=1/0,o=0,s=r.length,l=s-2,u=0;u<i;u++){for(var f=u*6,c=0,h=0;h<s;h+=2){var v=h===0?f:(f+h-2)%l+2,d=r[v]-e[0],p=r[v+1]-e[1],g=t[h]-n[0],y=t[h+1]-n[1],m=g-d,_=y-p;c+=m*m+_*_}c<a&&(a=c,o=u)}return o}function vit(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function dit(r,t,e,n){for(var i=[],a,o=0;o<r.length;o++){var s=r[o],l=t[o],u=fD(s),f=fD(l);a==null&&(a=u[2]<0!=f[2]<0);var c=[],h=[],v=0,d=1/0,p=[],g=s.length;a&&(s=vit(s));for(var y=hit(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}if(c[0]=s[y]-u[0],c[1]=s[y+1]-u[1],e>0)for(var x=n/e,b=-n/2;b<=n/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),A=0,_=0;_<s.length;_+=2){var C=c[_],D=c[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*w,E=I*w+L*T;p[_]=P,p[_+1]=E;var O=P-C,V=E-D;A+=O*O+V*V}if(A<d){d=A,v=b;for(var N=0;N<p.length;N++)h[N]=p[N]}}else for(var G=0;G<g;G+=2)h[G]=l[G]-f[0],h[G+1]=l[G+1]-f[1];i.push({from:c,to:h,fromCp:u,toCp:f,rotation:-v})}return i}function Cv(r){return r.__isCombineMorphing}var $O="__mOriginal_";function Mv(r,t,e){var n=$O+t,i=r[n]||r[t];r[n]||(r[n]=r[t]);var a=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Eu(r,t){var e=$O+t;r[e]&&(r[t]=r[e],r[e]=null)}function cD(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function UO(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=cit(_0(e),_0(n)),a=i[0],o=i[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&cD(a,s),l&&cD(o,l),Mv(t,"updateTransform",{replace:u}),t.transform=null;var f=dit(a,o,10,Math.PI),c=[];Mv(t,"buildPath",{replace:function(h){for(var v=t.__morphT,d=1-v,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*v,x=y.fromCp,b=y.toCp,w=Math.sin(S),T=Math.cos(S);rh(p,x,b,v);for(var A=0;A<m.length;A+=2){var C=m[A],D=m[A+1],I=_[A],L=_[A+1],P=C*d+I*v,E=D*d+L*v;c[A]=P*T-E*w+p[0],c[A+1]=P*w+E*T+p[1]}var O=c[0],V=c[1];h.moveTo(O,V);for(var A=2;A<m.length;){var I=c[A++],L=c[A++],N=c[A++],G=c[A++],$=c[A++],q=c[A++];O===I&&V===L&&N===$&&G===q?h.lineTo($,q):h.bezierCurveTo(I,L,N,G,$,q),O=$,V=q}}}})}function sS(r,t,e){if(!r||!t)return t;var n=e.done,i=e.during;UO(r,t),t.__morphT=0;function a(){Eu(t,"buildPath"),Eu(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},pt({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},e)),t}function pit(r,t,e,n,i,a){var o=16;r=i===e?0:Math.round(32767*(r-e)/(i-e)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Dv(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=Z(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(c,e),n=Math.max(f,n),i=Math.max(c,i),[f,c]}),o=Z(a,function(s,l){return{cp:s,z:pit(s[0],s[1],t,e,n,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function YO(r){return uit(r.path,r.count)}function x0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function git(r,t,e){var n=[];function i(x){for(var b=0;b<x.length;b++){var w=x[b];Cv(w)?i(w.childrenRef()):w instanceof Pt&&n.push(w)}}i(r);var a=n.length;if(!a)return x0();var o=e.dividePath||YO,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),x0();n=Dv(n),s=Dv(s);for(var l=e.done,u=e.during,f=e.individualDelay,c=new si,h=0;h<a;h++){var v=n[h],d=s[h];d.parent=t,d.copyTransform(c),f||UO(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}Mv(t,"addSelfToZr",{after:function(x){p(x)}}),Mv(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,Eu(t,"addSelfToZr"),Eu(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?pt({delay:(e.delay||0)+f(h,y,n[h],s[h]),done:_},e):e;sS(n[h],s[h],S)}else t.__morphT=0,t.animateTo({__morphT:1},pt({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++)Eu(r[x],"updateTransform");l&&l()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function yit(r,t,e){var n=t.length,i=[],a=e.dividePath||YO;function o(v){for(var d=0;d<v.length;d++){var p=v[d];Cv(p)?o(p.childrenRef()):p instanceof Pt&&i.push(p)}}if(Cv(r)){o(r.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(__(i[l++%s]));i.length=n}else{i=a({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(f);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),x0()}i=Dv(i),t=Dv(t);for(var c=e.individualDelay,u=0;u<n;u++){var h=c?pt({delay:(e.delay||0)+c(u,n,i[u],t[u])},e):e;sS(i[u],t[u],h)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function hD(r){return Y(r[0])}function vD(r,t){for(var e=[],n=r.length,i=0;i<n;i++)e.push({one:r[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)e[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var a=l.length,u=Math.ceil(a/2);e[i].many=l.slice(u,a),e[s].many=l.slice(0,u),s++}return e}var mit={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var i=__(r.path);i.setStyle("opacity",e),t.push(i)}return t},split:null};function dy(r,t,e,n,i,a){if(!r.length||!t.length)return;var o=rl("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;hD(r)&&(u=r,f=t),hD(t)&&(u=t,f=r);function c(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,A=m?w:b[0];if(Cv(T))c({many:[T],one:A},!0,_,S,!0);else{var C=s?pt({delay:s(_,S)},l):l;sS(T,A,C),a(T,A,T,A,C)}}else for(var D=pt({dividePath:mit[e],individualDelay:s&&function(V,N,G,$){return s(V+_,S)}},l),I=m?git(b,w,D):yit(w,b,D),L=I.fromIndividuals,P=I.toIndividuals,E=L.length,O=0;O<E;O++){var C=s?pt({delay:s(O,E)},l):l;a(L[O],P[O],m?b[O]:y.one,m?y.one:b[O],C)}}for(var h=u?u===r:r.length>t.length,v=u?vD(f,u):vD(h?t:r,[h?r:t]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)c(v[p],h,g,d),g+=v[p].many.length}function Ka(r){if(!r)return[];if(Y(r)){for(var t=[],e=0;e<r.length;e++)t.push(Ka(r[e]));return t}var n=[];return r.traverse(function(i){i instanceof Pt&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var ZO=1e4,_it=0,dD=1,pD=2,Sit=Nt();function xit(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var i=r.getDimensionInfo(e[n]);if(i&&i.otherDims[t]===0)return e[n]}}function bit(r,t,e){var n=r.getDimensionInfo(e),i=n&&n.ordinalMeta;if(n){var a=r.get(n.name,t);return i&&i.categories[a]||a+""}}function gD(r,t,e,n){var i=n?"itemChildGroupId":"itemGroupId",a=xit(r,i);if(a){var o=bit(r,t,a);return o}var s=r.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return e||r.getId(t)}function yD(r){var t=[];return M(r,function(e){var n=e.data,i=e.dataGroupId;if(!(n.count()>ZO))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:gD(n,o,i,!1),childGroupId:gD(n,o,i,!0),divide:e.divide,dataIndex:o})}),t}function py(r,t,e){r.traverse(function(n){n instanceof Pt&&oe(n,{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 hs(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function wit(r,t,e){var n=rl("update",e,t);n&&r.traverse(function(i){if(i instanceof Yr){var a=eH(i);a&&i.animateFrom({style:a},n)}})}function Tit(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var i=r[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function XO(r,t,e){var n=yD(r),i=yD(t);function a(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?F(F({},x.style),_.style):_.style},w)}var o=!1,s=_it,l=ft(),u=ft();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<i.length;f++){var c=i[f].groupId;if(u.get(c)){s=dD;break}var h=i[f].childGroupId;if(h&&l.get(h)){s=pD;break}}function v(_,S){return function(x){var b=x.data,w=x.dataIndex;return S?b.getId(w):_?s===dD?x.childGroupId:x.groupId:s===pD?x.childGroupId:x.groupId}}var d=Tit(n,i),p={};if(!d)for(var f=0;f<i.length;f++){var g=i[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var x=n[S],b=i[_],w=b.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),A=b.data.getItemGraphicEl(b.dataIndex);if(T===A){A&&wit(A,b.dataIndex,w);return}T&&p[T.id]||A&&(hs(A),T?(hs(T),gy(T),o=!0,dy(Ka(T),Ka(A),b.divide,w,_,a)):py(A,w,_))}new Si(n,i,v(!0,d),v(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var x=i[_],b=x.data,w=b.hostModel,T=b.getItemGraphicEl(x.dataIndex),A=$t(Z(S,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==T&&!p[C.id]});T&&(hs(T),A.length?(M(A,function(C){hs(C),gy(C)}),o=!0,dy(Ka(A),Ka(T),x.divide,w,_,a)):py(T,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=n[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&p[b.id])){var w=$t(Z(_,function(A){return i[A].data.getItemGraphicEl(i[A].dataIndex)}),function(A){return A&&A!==b}),T=i[_[0]].data.hostModel;w.length&&(M(w,function(A){return hs(A)}),b?(hs(b),gy(b),o=!0,dy(Ka(b),Ka(w),x.divide,T,_[0],a)):M(w,function(A){return py(A,T,_[0])}))}}).updateManyToMany(function(_,S){new Si(S,_,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return i[x].data.getId(i[x].dataIndex)}).update(function(x,b){m(_[x],S[b])}).execute()}).execute(),o&&M(t,function(_){var S=_.data,x=S.hostModel,b=x&&e.getViewOfSeriesModel(x),w=rl("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(T){T instanceof Pt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function mD(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function _D(r){return Y(r)?r.sort().join(","):r}function $i(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Ait(r,t){var e=ft(),n=ft(),i=ft();return M(r.oldSeries,function(a,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=mD(a),f=_D(u);n.set(f,{dataGroupId:s,data:l}),Y(u)&&M(u,function(c){i.set(c,{key:f,dataGroupId:s,data:l})})}),M(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=mD(a),u=_D(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:$i(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:$i(s),data:s}]});else if(Y(l)){var c=[];M(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:$i(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:$i(s)}]})}else{var h=i.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:$i(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:$i(s)})}}}}),e}function SD(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function Cit(r,t,e,n){var i=[],a=[];M(Zt(r.from),function(o){var s=SD(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:$i(t.oldData[s]),groupIdDim:o.dimension})}),M(Zt(r.to),function(o){var s=SD(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:$i(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&XO(i,a,n)}function Mit(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){M(Zt(n.seriesTransition),function(i){M(Zt(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][dh]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var i=Sit(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)M(Zt(a),function(v){Cit(v,i,n,e)});else{var o=Ait(i,n);M(o.keys(),function(v){var d=o.get(v);XO(d.oldSeries,d.newSeries,e)})}M(n.updatedSeries,function(v){v[dh]&&(v[dh]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],f=i.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<ZO&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(h))}})}Lt([G6]);Lt([E6]);Lt([f8,D8,F8,DY,UY,z7,g9,rZ,LZ,zZ,KZ,tq,Mq,Gq,oK,vK,PK,FK,tj,lj,xj,oJ]);Lt(IJ);Lt(uQ);Lt(WE);Lt(CQ);Lt(Ik);Lt(EQ);Lt(HQ);Lt(Wtt);Lt(vet);Lt(Gf);Lt(ket);Lt(Vet);Lt(Jet);Lt(lrt);Lt(grt);Lt(Trt);Lt(Brt);Lt(ont);Lt(kO);Lt(OO);Lt(Ent);Lt(GO);Lt(FO);Lt(Bnt);Lt(jnt);Lt(tit);Lt(Mit);Lt(jU);const xD=["z-index:2147483647!important","pointer-events:none"].join(";");let bD=!1;function Dit(){bD||(bD=!0,Z_(r=>{b0(r)}))}function b0(r,t=new WeakSet){if(!(!r||typeof r!="object")&&!t.has(r)){if(t.add(r),Array.isArray(r)){r.forEach(e=>b0(e,t));return}r.tooltip&&typeof r.tooltip=="object"&&(r.tooltip=Iit(r.tooltip)),Object.keys(r).forEach(e=>{const n=r[e];!n||typeof n!="object"||b0(n,t)})}}function Iit(r){var t,e;return dS(vS({},r),{appendToBody:(t=r.appendToBody)!=null?t:!0,confine:(e=r.confine)!=null?e:!1,extraCssText:Lit(r.extraCssText)})}function Lit(r=""){const t=String(r||"").trim();return t?/z-index\s*:/i.test(t)?t:`${t.replace(/;$/,"")};${xD}`:xD}Dit();let Pit=PB(Qz);Pit.use(GI).mount("#app");export{E0 as A,UV as B,Ih as C,Vit as D,jit as E,zr as F,U0 as G,$it as H,Kit as I,A0 as J,kN as K,Af as L,Bv as M,Uit as N,KV as O,V0 as P,Oit as Q,TI as R,Eit as S,Nit as T,Jit as U,ke as V,F_ as W,Kz as _,xI as a,Pe as b,Git as c,qc as d,Zit as e,Yit as f,nn as g,lV as h,un as i,Hit as j,Yz as k,qit as l,Xit as m,C0 as n,Mh as o,Kc as p,aV as q,zit as r,kit as s,hN as t,go as u,Wit as v,jc as w,YN as x,Bit as y,Fit as z};
|