mirror of
https://github.com/snowykami/server-status-server.git
synced 2025-06-06 07:05:22 +00:00
102 lines
1.3 MiB
102 lines
1.3 MiB
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const A of i.addedNodes)A.tagName==="LINK"&&A.rel==="modulepreload"&&n(A)}).observe(document,{childList:!0,subtree:!0});function e(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=e(a);fetch(a.href,i)}})();/**
|
||
* @vue/shared v3.5.10
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**//*! #__NO_SIDE_EFFECTS__ */function fB(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const he={},ms=[],sa=()=>{},rk=()=>!1,_d=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),cB=r=>r.startsWith("onUpdate:"),Ze=Object.assign,hB=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},nk=Object.prototype.hasOwnProperty,re=(r,t)=>nk.call(r,t),Ot=Array.isArray,ws=r=>Cd(r)==="[object Map]",qD=r=>Cd(r)==="[object Set]",kt=r=>typeof r=="function",Qe=r=>typeof r=="string",ji=r=>typeof r=="symbol",ge=r=>r!==null&&typeof r=="object",jD=r=>(ge(r)||kt(r))&&kt(r.then)&&kt(r.catch),tQ=Object.prototype.toString,Cd=r=>tQ.call(r),ak=r=>Cd(r).slice(8,-1),eQ=r=>Cd(r)==="[object Object]",vB=r=>Qe(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,du=fB(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Sd=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},ik=/-(\w)/g,pn=Sd(r=>r.replace(ik,(t,e)=>e?e.toUpperCase():"")),Ak=/\B([A-Z])/g,wo=Sd(r=>r.replace(Ak,"-$1").toLowerCase()),xd=Sd(r=>r.charAt(0).toUpperCase()+r.slice(1)),Qp=Sd(r=>r?`on${xd(r)}`:""),Gi=(r,t)=>!Object.is(r,t),Lp=(r,...t)=>{for(let e=0;e<r.length;e++)r[e](...t)},rQ=(r,t,e,n=!1)=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},ok=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let jC;const nQ=()=>jC||(jC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ga(r){if(Ot(r)){const t={};for(let e=0;e<r.length;e++){const n=r[e],a=Qe(n)?fk(n):Ga(n);if(a)for(const i in a)t[i]=a[i]}return t}else if(Qe(r)||ge(r))return r}const sk=/;(?![^(]*\))/g,lk=/:([^]+)/,uk=/\/\*[^]*?\*\//g;function fk(r){const t={};return r.replace(uk,"").split(sk).forEach(e=>{if(e){const n=e.split(lk);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function dB(r){let t="";if(Qe(r))t=r;else if(Ot(r))for(let e=0;e<r.length;e++){const n=dB(r[e]);n&&(t+=n+" ")}else if(ge(r))for(const e in r)r[e]&&(t+=e+" ");return t.trim()}const ck="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hk=fB(ck);function aQ(r){return!!r||r===""}const iQ=r=>!!(r&&r.__v_isRef===!0),Ce=r=>Qe(r)?r:r==null?"":Ot(r)||ge(r)&&(r.toString===tQ||!kt(r.toString))?iQ(r)?Ce(r.value):JSON.stringify(r,AQ,2):String(r),AQ=(r,t)=>iQ(t)?AQ(r,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[Mp(n,i)+" =>"]=a,e),{})}:qD(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Mp(e))}:ji(t)?Mp(t):ge(t)&&!Ot(t)&&!eQ(t)?String(t):t,Mp=(r,t="")=>{var e;return ji(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/**
|
||
* @vue/reactivity v3.5.10
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Vr;class vk{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Vr,!t&&Vr&&(this.index=(Vr.scopes||(Vr.scopes=[])).push(this)-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=Vr;try{return Vr=this,t()}finally{Vr=e}}}on(){Vr=this}off(){Vr=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function dk(){return Vr}let ce;const Up=new WeakSet;class oQ{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,Vr&&Vr.active&&Vr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Up.has(this)&&(Up.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||lQ(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,t1(this),uQ(this);const t=ce,e=Ln;ce=this,Ln=!0;try{return this.fn()}finally{fQ(this),ce=t,Ln=e,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)yB(t);this.deps=this.depsTail=void 0,t1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Up.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Rm(this)&&this.run()}get dirty(){return Rm(this)}}let sQ=0,hs;function lQ(r){r.flags|=8,r.next=hs,hs=r}function pB(){sQ++}function gB(){if(--sQ>0)return;let r;for(;hs;){let t=hs,e;for(;t;)t.flags&1||(t.flags&=-9),t=t.next;for(t=hs,hs=void 0;t;){if(e=t.next,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 uQ(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fQ(r){let t,e=r.depsTail,n=e;for(;n;){const a=n.prevDep;n.version===-1?(n===e&&(e=a),yB(n),pk(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}r.deps=t,r.depsTail=e}function Rm(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(cQ(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function cQ(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===Gu))return;r.globalVersion=Gu;const t=r.dep;if(r.flags|=2,t.version>0&&!r.isSSR&&r.deps&&!Rm(r)){r.flags&=-3;return}const e=ce,n=Ln;ce=r,Ln=!0;try{uQ(r);const a=r.fn(r._value);(t.version===0||Gi(a,r._value))&&(r._value=a,t.version++)}catch(a){throw t.version++,a}finally{ce=e,Ln=n,fQ(r),r.flags&=-3}}function yB(r,t=!1){const{dep:e,prevSub:n,nextSub:a}=r;if(n&&(n.nextSub=a,r.prevSub=void 0),a&&(a.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n),!e.subs&&e.computed){e.computed.flags&=-5;for(let i=e.computed.deps;i;i=i.nextDep)yB(i,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function pk(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 hQ=[];function tA(){hQ.push(Ln),Ln=!1}function eA(){const r=hQ.pop();Ln=r===void 0?!0:r}function t1(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=ce;ce=void 0;try{t()}finally{ce=e}}}let Gu=0;class gk{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 mB{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ce||!Ln||ce===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==ce)e=this.activeLink=new gk(ce,this),ce.deps?(e.prevDep=ce.depsTail,ce.depsTail.nextDep=e,ce.depsTail=e):ce.deps=ce.depsTail=e,vQ(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=ce.depsTail,e.nextDep=void 0,ce.depsTail.nextDep=e,ce.depsTail=e,ce.deps===e&&(ce.deps=n)}return e}trigger(t){this.version++,Gu++,this.notify(t)}notify(t){pB();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{gB()}}}function vQ(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)vQ(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const Hm=new WeakMap,qA=Symbol(""),Om=Symbol(""),Ku=Symbol("");function or(r,t,e){if(Ln&&ce){let n=Hm.get(r);n||Hm.set(r,n=new Map);let a=n.get(e);a||(n.set(e,a=new mB),a.target=r,a.map=n,a.key=e),a.track()}}function Ua(r,t,e,n,a,i){const A=Hm.get(r);if(!A){Gu++;return}const o=s=>{s&&s.trigger()};if(pB(),t==="clear")A.forEach(o);else{const s=Ot(r),l=s&&vB(e);if(s&&e==="length"){const u=Number(n);A.forEach((f,c)=>{(c==="length"||c===Ku||!ji(c)&&c>=u)&&o(f)})}else switch(e!==void 0&&o(A.get(e)),l&&o(A.get(Ku)),t){case"add":s?l&&o(A.get("length")):(o(A.get(qA)),ws(r)&&o(A.get(Om)));break;case"delete":s||(o(A.get(qA)),ws(r)&&o(A.get(Om)));break;case"set":ws(r)&&o(A.get(qA));break}}gB()}function Eo(r){const t=ne(r);return t===r?t:(or(t,"iterate",Ku),vn(r)?t:t.map(ar))}function bd(r){return or(r=ne(r),"iterate",Ku),r}const yk={__proto__:null,[Symbol.iterator](){return Pp(this,Symbol.iterator,ar)},concat(...r){return Eo(this).concat(...r.map(t=>Ot(t)?Eo(t):t))},entries(){return Pp(this,"entries",r=>(r[1]=ar(r[1]),r))},every(r,t){return Ca(this,"every",r,t,void 0,arguments)},filter(r,t){return Ca(this,"filter",r,t,e=>e.map(ar),arguments)},find(r,t){return Ca(this,"find",r,t,ar,arguments)},findIndex(r,t){return Ca(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return Ca(this,"findLast",r,t,ar,arguments)},findLastIndex(r,t){return Ca(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return Ca(this,"forEach",r,t,void 0,arguments)},includes(...r){return Rp(this,"includes",r)},indexOf(...r){return Rp(this,"indexOf",r)},join(r){return Eo(this).join(r)},lastIndexOf(...r){return Rp(this,"lastIndexOf",r)},map(r,t){return Ca(this,"map",r,t,void 0,arguments)},pop(){return cl(this,"pop")},push(...r){return cl(this,"push",r)},reduce(r,...t){return e1(this,"reduce",r,t)},reduceRight(r,...t){return e1(this,"reduceRight",r,t)},shift(){return cl(this,"shift")},some(r,t){return Ca(this,"some",r,t,void 0,arguments)},splice(...r){return cl(this,"splice",r)},toReversed(){return Eo(this).toReversed()},toSorted(r){return Eo(this).toSorted(r)},toSpliced(...r){return Eo(this).toSpliced(...r)},unshift(...r){return cl(this,"unshift",r)},values(){return Pp(this,"values",ar)}};function Pp(r,t,e){const n=bd(r),a=n[t]();return n!==r&&!vn(r)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.value&&(i.value=e(i.value)),i}),a}const mk=Array.prototype;function Ca(r,t,e,n,a,i){const A=bd(r),o=A!==r&&!vn(r),s=A[t];if(s!==mk[t]){const f=s.apply(r,i);return o?ar(f):f}let l=e;A!==r&&(o?l=function(f,c){return e.call(this,ar(f),c,r)}:e.length>2&&(l=function(f,c){return e.call(this,f,c,r)}));const u=s.call(A,l,n);return o&&a?a(u):u}function e1(r,t,e,n){const a=bd(r);let i=e;return a!==r&&(vn(r)?e.length>3&&(i=function(A,o,s){return e.call(this,A,o,s,r)}):i=function(A,o,s){return e.call(this,A,ar(o),s,r)}),a[t](i,...n)}function Rp(r,t,e){const n=ne(r);or(n,"iterate",Ku);const a=n[t](...e);return(a===-1||a===!1)&&CB(e[0])?(e[0]=ne(e[0]),n[t](...e)):a}function cl(r,t,e=[]){tA(),pB();const n=ne(r)[t].apply(r,e);return gB(),eA(),n}const wk=fB("__proto__,__v_isRef,__isVue"),dQ=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(ji));function Bk(r){ji(r)||(r=String(r));const t=ne(this);return or(t,"has",r),t.hasOwnProperty(r)}class pQ{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const a=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!a;if(e==="__v_isReadonly")return a;if(e==="__v_isShallow")return i;if(e==="__v_raw")return n===(a?i?Mk:wQ:i?mQ:yQ).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const A=Ot(t);if(!a){let s;if(A&&(s=yk[e]))return s;if(e==="hasOwnProperty")return Bk}const o=Reflect.get(t,e,Ar(t)?t:n);return(ji(e)?dQ.has(e):wk(e))||(a||or(t,"get",e),i)?o:Ar(o)?A&&vB(e)?o:o.value:ge(o)?a?_Q(o):Id(o):o}}class gQ extends pQ{constructor(t=!1){super(!1,t)}set(t,e,n,a){let i=t[e];if(!this._isShallow){const s=uo(i);if(!vn(n)&&!uo(n)&&(i=ne(i),n=ne(n)),!Ot(t)&&Ar(i)&&!Ar(n))return s?!1:(i.value=n,!0)}const A=Ot(t)&&vB(e)?Number(e)<t.length:re(t,e),o=Reflect.set(t,e,n,Ar(t)?t:a);return t===ne(a)&&(A?Gi(n,i)&&Ua(t,"set",e,n):Ua(t,"add",e,n)),o}deleteProperty(t,e){const n=re(t,e);t[e];const a=Reflect.deleteProperty(t,e);return a&&n&&Ua(t,"delete",e,void 0),a}has(t,e){const n=Reflect.has(t,e);return(!ji(e)||!dQ.has(e))&&or(t,"has",e),n}ownKeys(t){return or(t,"iterate",Ot(t)?"length":qA),Reflect.ownKeys(t)}}class _k extends pQ{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const Ck=new gQ,Sk=new _k,xk=new gQ(!0);const wB=r=>r,Td=r=>Reflect.getPrototypeOf(r);function tc(r,t,e=!1,n=!1){r=r.__v_raw;const a=ne(r),i=ne(t);e||(Gi(t,i)&&or(a,"get",t),or(a,"get",i));const{has:A}=Td(a),o=n?wB:e?SB:ar;if(A.call(a,t))return o(r.get(t));if(A.call(a,i))return o(r.get(i));r!==a&&r.get(t)}function ec(r,t=!1){const e=this.__v_raw,n=ne(e),a=ne(r);return t||(Gi(r,a)&&or(n,"has",r),or(n,"has",a)),r===a?e.has(r):e.has(r)||e.has(a)}function rc(r,t=!1){return r=r.__v_raw,!t&&or(ne(r),"iterate",qA),Reflect.get(r,"size",r)}function r1(r,t=!1){!t&&!vn(r)&&!uo(r)&&(r=ne(r));const e=ne(this);return Td(e).has.call(e,r)||(e.add(r),Ua(e,"add",r,r)),this}function n1(r,t,e=!1){!e&&!vn(t)&&!uo(t)&&(t=ne(t));const n=ne(this),{has:a,get:i}=Td(n);let A=a.call(n,r);A||(r=ne(r),A=a.call(n,r));const o=i.call(n,r);return n.set(r,t),A?Gi(t,o)&&Ua(n,"set",r,t):Ua(n,"add",r,t),this}function a1(r){const t=ne(this),{has:e,get:n}=Td(t);let a=e.call(t,r);a||(r=ne(r),a=e.call(t,r)),n&&n.call(t,r);const i=t.delete(r);return a&&Ua(t,"delete",r,void 0),i}function i1(){const r=ne(this),t=r.size!==0,e=r.clear();return t&&Ua(r,"clear",void 0,void 0),e}function nc(r,t){return function(n,a){const i=this,A=i.__v_raw,o=ne(A),s=t?wB:r?SB:ar;return!r&&or(o,"iterate",qA),A.forEach((l,u)=>n.call(a,s(l),s(u),i))}}function ac(r,t,e){return function(...n){const a=this.__v_raw,i=ne(a),A=ws(i),o=r==="entries"||r===Symbol.iterator&&A,s=r==="keys"&&A,l=a[r](...n),u=e?wB:t?SB:ar;return!t&&or(i,"iterate",s?Om:qA),{next(){const{value:f,done:c}=l.next();return c?{value:f,done:c}:{value:o?[u(f[0]),u(f[1])]:u(f),done:c}},[Symbol.iterator](){return this}}}}function ni(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function bk(){const r={get(i){return tc(this,i)},get size(){return rc(this)},has:ec,add:r1,set:n1,delete:a1,clear:i1,forEach:nc(!1,!1)},t={get(i){return tc(this,i,!1,!0)},get size(){return rc(this)},has:ec,add(i){return r1.call(this,i,!0)},set(i,A){return n1.call(this,i,A,!0)},delete:a1,clear:i1,forEach:nc(!1,!0)},e={get(i){return tc(this,i,!0)},get size(){return rc(this,!0)},has(i){return ec.call(this,i,!0)},add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear"),forEach:nc(!0,!1)},n={get(i){return tc(this,i,!0,!0)},get size(){return rc(this,!0)},has(i){return ec.call(this,i,!0)},add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear"),forEach:nc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=ac(i,!1,!1),e[i]=ac(i,!0,!1),t[i]=ac(i,!1,!0),n[i]=ac(i,!0,!0)}),[r,e,t,n]}const[Tk,Ik,Fk,Ek]=bk();function BB(r,t){const e=t?r?Ek:Fk:r?Ik:Tk;return(n,a,i)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(re(e,a)&&a in n?e:n,a,i)}const Dk={get:BB(!1,!1)},Qk={get:BB(!1,!0)},Lk={get:BB(!0,!1)};const yQ=new WeakMap,mQ=new WeakMap,wQ=new WeakMap,Mk=new WeakMap;function Uk(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pk(r){return r.__v_skip||!Object.isExtensible(r)?0:Uk(ak(r))}function Id(r){return uo(r)?r:_B(r,!1,Ck,Dk,yQ)}function BQ(r){return _B(r,!1,xk,Qk,mQ)}function _Q(r){return _B(r,!0,Sk,Lk,wQ)}function _B(r,t,e,n,a){if(!ge(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const i=a.get(r);if(i)return i;const A=Pk(r);if(A===0)return r;const o=new Proxy(r,A===2?n:e);return a.set(r,o),o}function Bs(r){return uo(r)?Bs(r.__v_raw):!!(r&&r.__v_isReactive)}function uo(r){return!!(r&&r.__v_isReadonly)}function vn(r){return!!(r&&r.__v_isShallow)}function CB(r){return r?!!r.__v_raw:!1}function ne(r){const t=r&&r.__v_raw;return t?ne(t):r}function Rk(r){return!re(r,"__v_skip")&&Object.isExtensible(r)&&rQ(r,"__v_skip",!0),r}const ar=r=>ge(r)?Id(r):r,SB=r=>ge(r)?_Q(r):r;function Ar(r){return r?r.__v_isRef===!0:!1}function jn(r){return CQ(r,!1)}function Hk(r){return CQ(r,!0)}function CQ(r,t){return Ar(r)?r:new Ok(r,t)}class Ok{constructor(t,e){this.dep=new mB,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:ne(t),this._value=e?t:ar(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||vn(t)||uo(t);t=n?t:ne(t),Gi(t,e)&&(this._rawValue=t,this._value=n?t:ar(t),this.dep.trigger())}}function la(r){return Ar(r)?r.value:r}const kk={get:(r,t,e)=>t==="__v_raw"?r:la(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const a=r[t];return Ar(a)&&!Ar(e)?(a.value=e,!0):Reflect.set(r,t,e,n)}};function SQ(r){return Bs(r)?r:new Proxy(r,kk)}class Nk{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new mB(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ce!==this)return lQ(this),!0}get value(){const t=this.dep.track();return cQ(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vk(r,t,e=!1){let n,a;return kt(r)?n=r:(n=r.get,a=r.set),new Nk(n,a,e)}const ic={},fv=new WeakMap;let DA;function Gk(r,t=!1,e=DA){if(e){let n=fv.get(e);n||fv.set(e,n=[]),n.push(r)}}function Kk(r,t,e=he){const{immediate:n,deep:a,once:i,scheduler:A,augmentJob:o,call:s}=e,l=w=>a?w:vn(w)||a===!1||a===0?Si(w,1):Si(w);let u,f,c,h,v=!1,d=!1;if(Ar(r)?(f=()=>r.value,v=vn(r)):Bs(r)?(f=()=>l(r),v=!0):Ot(r)?(d=!0,v=r.some(w=>Bs(w)||vn(w)),f=()=>r.map(w=>{if(Ar(w))return w.value;if(Bs(w))return l(w);if(kt(w))return s?s(w,2):w()})):kt(r)?t?f=s?()=>s(r,2):r:f=()=>{if(c){tA();try{c()}finally{eA()}}const w=DA;DA=u;try{return s?s(r,3,[h]):r(h)}finally{DA=w}}:f=sa,t&&a){const w=f,_=a===!0?1/0:a;f=()=>Si(w(),_)}const p=dk(),g=()=>{u.stop(),p&&hB(p.effects,u)};if(i&&t){const w=t;t=(..._)=>{w(..._),g()}}let y=d?new Array(r.length).fill(ic):ic;const m=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(t){const _=u.run();if(a||v||(d?_.some((B,C)=>Gi(B,y[C])):Gi(_,y))){c&&c();const B=DA;DA=u;try{const C=[_,y===ic?void 0:d&&y[0]===ic?[]:y,h];s?s(t,3,C):t(...C),y=_}finally{DA=B}}}else u.run()};return o&&o(m),u=new oQ(f),u.scheduler=A?()=>A(m,!1):m,h=w=>Gk(w,!1,u),c=u.onStop=()=>{const w=fv.get(u);if(w){if(s)s(w,4);else for(const _ of w)_();fv.delete(u)}},t?n?m(!0):y=u.run():A?A(m.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function Si(r,t=1/0,e){if(t<=0||!ge(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),t--,Ar(r))Si(r.value,t,e);else if(Ot(r))for(let n=0;n<r.length;n++)Si(r[n],t,e);else if(qD(r)||ws(r))r.forEach(n=>{Si(n,t,e)});else if(eQ(r)){for(const n in r)Si(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&Si(r[n],t,e)}return r}/**
|
||
* @vue/runtime-core v3.5.10
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function If(r,t,e,n){try{return n?r(...n):r()}catch(a){Fd(a,t,e)}}function ca(r,t,e,n){if(kt(r)){const a=If(r,t,e,n);return a&&jD(a)&&a.catch(i=>{Fd(i,t,e)}),a}if(Ot(r)){const a=[];for(let i=0;i<r.length;i++)a.push(ca(r[i],t,e,n));return a}}function Fd(r,t,e,n=!0){const a=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:A}=t&&t.appContext.config||he;if(t){let o=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${e}`;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](r,s,l)===!1)return}o=o.parent}if(i){tA(),If(i,null,10,[r,s,l]),eA();return}}zk(r,e,a,n,A)}function zk(r,t,e,n=!0,a=!1){if(a)throw r;console.error(r)}let zu=!1,km=!1;const gr=[];let qn=0;const _s=[];let yi=null,as=0;const xQ=Promise.resolve();let xB=null;function bQ(r){const t=xB||xQ;return r?t.then(this?r.bind(this):r):t}function Wk(r){let t=zu?qn+1:0,e=gr.length;for(;t<e;){const n=t+e>>>1,a=gr[n],i=Wu(a);i<r||i===r&&a.flags&2?t=n+1:e=n}return t}function bB(r){if(!(r.flags&1)){const t=Wu(r),e=gr[gr.length-1];!e||!(r.flags&2)&&t>=Wu(e)?gr.push(r):gr.splice(Wk(t),0,r),r.flags|=1,TQ()}}function TQ(){!zu&&!km&&(km=!0,xB=xQ.then(FQ))}function Xk(r){Ot(r)?_s.push(...r):yi&&r.id===-1?yi.splice(as+1,0,r):r.flags&1||(_s.push(r),r.flags|=1),TQ()}function A1(r,t,e=zu?qn+1:0){for(;e<gr.length;e++){const n=gr[e];if(n&&n.flags&2){if(r&&n.id!==r.uid)continue;gr.splice(e,1),e--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function IQ(r){if(_s.length){const t=[...new Set(_s)].sort((e,n)=>Wu(e)-Wu(n));if(_s.length=0,yi){yi.push(...t);return}for(yi=t,as=0;as<yi.length;as++){const e=yi[as];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}yi=null,as=0}}const Wu=r=>r.id==null?r.flags&2?-1:1/0:r.id;function FQ(r){km=!1,zu=!0;try{for(qn=0;qn<gr.length;qn++){const t=gr[qn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),If(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;qn<gr.length;qn++){const t=gr[qn];t&&(t.flags&=-2)}qn=0,gr.length=0,IQ(),zu=!1,xB=null,(gr.length||_s.length)&&FQ()}}let En=null,EQ=null;function cv(r){const t=En;return En=r,EQ=r&&r.type.__scopeId||null,t}function Yk(r,t=En,e){if(!t||r._n)return r;const n=(...a)=>{n._d&&d1(-1);const i=cv(t);let A;try{A=r(...a)}finally{cv(i),n._d&&d1(1)}return A};return n._n=!0,n._c=!0,n._d=!0,n}function aA(r,t,e,n){const a=r.dirs,i=t&&t.dirs;for(let A=0;A<a.length;A++){const o=a[A];i&&(o.oldValue=i[A].value);let s=o.dir[n];s&&(tA(),ca(s,e,8,[r.el,o,r,t]),eA())}}const Zk=Symbol("_vte"),$k=r=>r.__isTeleport;function TB(r,t){r.shapeFlag&6&&r.component?(r.transition=t,TB(r.component.subTree,t)):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Bo(r,t){return kt(r)?Ze({name:r.name},t,{setup:r}):r}function DQ(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function Nm(r,t,e,n,a=!1){if(Ot(r)){r.forEach((v,d)=>Nm(v,t&&(Ot(t)?t[d]:t),e,n,a));return}if(pu(n)&&!a)return;const i=n.shapeFlag&4?MB(n.component):n.el,A=a?null:i,{i:o,r:s}=r,l=t&&t.r,u=o.refs===he?o.refs={}:o.refs,f=o.setupState,c=ne(f),h=f===he?()=>!1:v=>re(c,v);if(l!=null&&l!==s&&(Qe(l)?(u[l]=null,h(l)&&(f[l]=null)):Ar(l)&&(l.value=null)),kt(s))If(s,o,12,[A,u]);else{const v=Qe(s),d=Ar(s);if(v||d){const p=()=>{if(r.f){const g=v?h(s)?f[s]:u[s]:s.value;a?Ot(g)&&hB(g,i):Ot(g)?g.includes(i)||g.push(i):v?(u[s]=[i],h(s)&&(f[s]=u[s])):(s.value=[i],r.k&&(u[r.k]=s.value))}else v?(u[s]=A,h(s)&&(f[s]=A)):d&&(s.value=A,r.k&&(u[r.k]=A))};A?(p.id=-1,Nr(p,e)):p()}}}const pu=r=>!!r.type.__asyncLoader,QQ=r=>r.type.__isKeepAlive;function Jk(r,t){LQ(r,"a",t)}function qk(r,t){LQ(r,"da",t)}function LQ(r,t,e=ir){const n=r.__wdc||(r.__wdc=()=>{let a=e;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(Ed(t,n,e),e){let a=e.parent;for(;a&&a.parent;)QQ(a.parent.vnode)&&jk(n,t,e,a),a=a.parent}}function jk(r,t,e,n){const a=Ed(t,r,n,!0);FB(()=>{hB(n[t],a)},e)}function Ed(r,t,e=ir,n=!1){if(e){const a=e[r]||(e[r]=[]),i=t.__weh||(t.__weh=(...A)=>{tA();const o=Ff(e),s=ca(t,e,r,A);return o(),eA(),s});return n?a.unshift(i):a.push(i),i}}const ja=r=>(t,e=ir)=>{(!Ld||r==="sp")&&Ed(r,(...n)=>t(...n),e)},tN=ja("bm"),IB=ja("m"),eN=ja("bu"),rN=ja("u"),nN=ja("bum"),FB=ja("um"),aN=ja("sp"),iN=ja("rtg"),AN=ja("rtc");function oN(r,t=ir){Ed("ec",r,t)}const sN="components";function lN(r,t){return fN(sN,r,!0,t)||r}const uN=Symbol.for("v-ndc");function fN(r,t,e=!0,n=!1){const a=En||ir;if(a){const i=a.type;{const o=JN(i,!1);if(o&&(o===t||o===pn(t)||o===xd(pn(t))))return i}const A=o1(a[r]||i[r],t)||o1(a.appContext[r],t);return!A&&n?i:A}}function o1(r,t){return r&&(r[t]||r[pn(t)]||r[xd(pn(t))])}function Vm(r,t,e,n){let a;const i=e,A=Ot(r);if(A||Qe(r)){const o=A&&Bs(r);let s=!1;o&&(s=!vn(r),r=bd(r)),a=new Array(r.length);for(let l=0,u=r.length;l<u;l++)a[l]=t(s?ar(r[l]):r[l],l,void 0,i)}else if(typeof r=="number"){a=new Array(r);for(let o=0;o<r;o++)a[o]=t(o+1,o,void 0,i)}else if(ge(r))if(r[Symbol.iterator])a=Array.from(r,(o,s)=>t(o,s,void 0,i));else{const o=Object.keys(r);a=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];a[s]=t(r[u],u,s,i)}}else a=[];return a}const Gm=r=>r?tL(r)?MB(r):Gm(r.parent):null,gu=Ze(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=>Gm(r.parent),$root:r=>Gm(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>EB(r),$forceUpdate:r=>r.f||(r.f=()=>{bB(r.update)}),$nextTick:r=>r.n||(r.n=bQ.bind(r.proxy)),$watch:r=>QN.bind(r)}),Hp=(r,t)=>r!==he&&!r.__isScriptSetup&&re(r,t),cN={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:a,props:i,accessCache:A,type:o,appContext:s}=r;let l;if(t[0]!=="$"){const h=A[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return a[t];case 4:return e[t];case 3:return i[t]}else{if(Hp(n,t))return A[t]=1,n[t];if(a!==he&&re(a,t))return A[t]=2,a[t];if((l=r.propsOptions[0])&&re(l,t))return A[t]=3,i[t];if(e!==he&&re(e,t))return A[t]=4,e[t];Km&&(A[t]=0)}}const u=gu[t];let f,c;if(u)return t==="$attrs"&&or(r.attrs,"get",""),u(r);if((f=o.__cssModules)&&(f=f[t]))return f;if(e!==he&&re(e,t))return A[t]=4,e[t];if(c=s.config.globalProperties,re(c,t))return c[t]},set({_:r},t,e){const{data:n,setupState:a,ctx:i}=r;return Hp(a,t)?(a[t]=e,!0):n!==he&&re(n,t)?(n[t]=e,!0):re(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(i[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:a,propsOptions:i}},A){let o;return!!e[A]||r!==he&&re(r,A)||Hp(t,A)||(o=i[0])&&re(o,A)||re(n,A)||re(gu,A)||re(a.config.globalProperties,A)},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:re(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function s1(r){return Ot(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let Km=!0;function hN(r){const t=EB(r),e=r.proxy,n=r.ctx;Km=!1,t.beforeCreate&&l1(t.beforeCreate,r,"bc");const{data:a,computed:i,methods:A,watch:o,provide:s,inject:l,created:u,beforeMount:f,mounted:c,beforeUpdate:h,updated:v,activated:d,deactivated:p,beforeDestroy:g,beforeUnmount:y,destroyed:m,unmounted:w,render:_,renderTracked:B,renderTriggered:C,errorCaptured:S,serverPrefetch:x,expose:b,inheritAttrs:I,components:F,directives:E,filters:D}=t;if(l&&vN(l,n,null),A)for(const R in A){const P=A[R];kt(P)&&(n[R]=P.bind(e))}if(a){const R=a.call(e,e);ge(R)&&(r.data=Id(R))}if(Km=!0,i)for(const R in i){const P=i[R],O=kt(P)?P.bind(e,e):kt(P.get)?P.get.bind(e,e):sa,G=!kt(P)&&kt(P.set)?P.set.bind(e):sa,X=be({get:O,set:G});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>X.value,set:J=>X.value=J})}if(o)for(const R in o)MQ(o[R],n,e,R);if(s){const R=kt(s)?s.call(e):s;Reflect.ownKeys(R).forEach(P=>{Mh(P,R[P])})}u&&l1(u,r,"c");function M(R,P){Ot(P)?P.forEach(O=>R(O.bind(e))):P&&R(P.bind(e))}if(M(tN,f),M(IB,c),M(eN,h),M(rN,v),M(Jk,d),M(qk,p),M(oN,S),M(AN,B),M(iN,C),M(nN,y),M(FB,w),M(aN,x),Ot(b))if(b.length){const R=r.exposed||(r.exposed={});b.forEach(P=>{Object.defineProperty(R,P,{get:()=>e[P],set:O=>e[P]=O})})}else r.exposed||(r.exposed={});_&&r.render===sa&&(r.render=_),I!=null&&(r.inheritAttrs=I),F&&(r.components=F),E&&(r.directives=E),x&&DQ(r)}function vN(r,t,e=sa){Ot(r)&&(r=zm(r));for(const n in r){const a=r[n];let i;ge(a)?"default"in a?i=Pa(a.from||n,a.default,!0):i=Pa(a.from||n):i=Pa(a),Ar(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:A=>i.value=A}):t[n]=i}}function l1(r,t,e){ca(Ot(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function MQ(r,t,e,n){let a=n.includes(".")?YQ(e,n):()=>e[n];if(Qe(r)){const i=t[r];kt(i)&&yu(a,i)}else if(kt(r))yu(a,r.bind(e));else if(ge(r))if(Ot(r))r.forEach(i=>MQ(i,t,e,n));else{const i=kt(r.handler)?r.handler.bind(e):t[r.handler];kt(i)&&yu(a,i,r)}}function EB(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:A}}=r.appContext,o=i.get(t);let s;return o?s=o:!a.length&&!e&&!n?s=t:(s={},a.length&&a.forEach(l=>hv(s,l,A,!0)),hv(s,t,A)),ge(t)&&i.set(t,s),s}function hv(r,t,e,n=!1){const{mixins:a,extends:i}=t;i&&hv(r,i,e,!0),a&&a.forEach(A=>hv(r,A,e,!0));for(const A in t)if(!(n&&A==="expose")){const o=dN[A]||e&&e[A];r[A]=o?o(r[A],t[A]):t[A]}return r}const dN={data:u1,props:f1,emits:f1,methods:Zl,computed:Zl,beforeCreate:fr,created:fr,beforeMount:fr,mounted:fr,beforeUpdate:fr,updated:fr,beforeDestroy:fr,beforeUnmount:fr,destroyed:fr,unmounted:fr,activated:fr,deactivated:fr,errorCaptured:fr,serverPrefetch:fr,components:Zl,directives:Zl,watch:gN,provide:u1,inject:pN};function u1(r,t){return t?r?function(){return Ze(kt(r)?r.call(this,this):r,kt(t)?t.call(this,this):t)}:t:r}function pN(r,t){return Zl(zm(r),zm(t))}function zm(r){if(Ot(r)){const t={};for(let e=0;e<r.length;e++)t[r[e]]=r[e];return t}return r}function fr(r,t){return r?[...new Set([].concat(r,t))]:t}function Zl(r,t){return r?Ze(Object.create(null),r,t):t}function f1(r,t){return r?Ot(r)&&Ot(t)?[...new Set([...r,...t])]:Ze(Object.create(null),s1(r),s1(t??{})):t}function gN(r,t){if(!r)return t;if(!t)return r;const e=Ze(Object.create(null),r);for(const n in t)e[n]=fr(r[n],t[n]);return e}function UQ(){return{app:null,config:{isNativeTag:rk,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 yN=0;function mN(r,t){return function(n,a=null){kt(n)||(n=Ze({},n)),a!=null&&!ge(a)&&(a=null);const i=UQ(),A=new WeakSet,o=[];let s=!1;const l=i.app={_uid:yN++,_component:n,_props:a,_container:null,_context:i,_instance:null,version:jN,get config(){return i.config},set config(u){},use(u,...f){return A.has(u)||(u&&kt(u.install)?(A.add(u),u.install(l,...f)):kt(u)&&(A.add(u),u(l,...f))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,f){return f?(i.components[u]=f,l):i.components[u]},directive(u,f){return f?(i.directives[u]=f,l):i.directives[u]},mount(u,f,c){if(!s){const h=l._ceVNode||yr(n,a);return h.appContext=i,c===!0?c="svg":c===!1&&(c=void 0),f&&t?t(h,u):r(h,u,c),s=!0,l._container=u,u.__vue_app__=l,MB(h.component)}},onUnmount(u){o.push(u)},unmount(){s&&(ca(o,l._instance,16),r(null,l._container),delete l._container.__vue_app__)},provide(u,f){return i.provides[u]=f,l},runWithContext(u){const f=Cs;Cs=l;try{return u()}finally{Cs=f}}};return l}}let Cs=null;function Mh(r,t){if(ir){let e=ir.provides;const n=ir.parent&&ir.parent.provides;n===e&&(e=ir.provides=Object.create(n)),e[r]=t}}function Pa(r,t,e=!1){const n=ir||En;if(n||Cs){const a=Cs?Cs._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(a&&r in a)return a[r];if(arguments.length>1)return e&&kt(t)?t.call(n&&n.proxy):t}}const PQ={},RQ=()=>Object.create(PQ),HQ=r=>Object.getPrototypeOf(r)===PQ;function wN(r,t,e,n=!1){const a={},i=RQ();r.propsDefaults=Object.create(null),OQ(r,t,a,i);for(const A in r.propsOptions[0])A in a||(a[A]=void 0);e?r.props=n?a:BQ(a):r.type.props?r.props=a:r.props=i,r.attrs=i}function BN(r,t,e,n){const{props:a,attrs:i,vnode:{patchFlag:A}}=r,o=ne(a),[s]=r.propsOptions;let l=!1;if((n||A>0)&&!(A&16)){if(A&8){const u=r.vnode.dynamicProps;for(let f=0;f<u.length;f++){let c=u[f];if(Dd(r.emitsOptions,c))continue;const h=t[c];if(s)if(re(i,c))h!==i[c]&&(i[c]=h,l=!0);else{const v=pn(c);a[v]=Wm(s,o,v,h,r,!1)}else h!==i[c]&&(i[c]=h,l=!0)}}}else{OQ(r,t,a,i)&&(l=!0);let u;for(const f in o)(!t||!re(t,f)&&((u=wo(f))===f||!re(t,u)))&&(s?e&&(e[f]!==void 0||e[u]!==void 0)&&(a[f]=Wm(s,o,f,void 0,r,!0)):delete a[f]);if(i!==o)for(const f in i)(!t||!re(t,f))&&(delete i[f],l=!0)}l&&Ua(r.attrs,"set","")}function OQ(r,t,e,n){const[a,i]=r.propsOptions;let A=!1,o;if(t)for(let s in t){if(du(s))continue;const l=t[s];let u;a&&re(a,u=pn(s))?!i||!i.includes(u)?e[u]=l:(o||(o={}))[u]=l:Dd(r.emitsOptions,s)||(!(s in n)||l!==n[s])&&(n[s]=l,A=!0)}if(i){const s=ne(e),l=o||he;for(let u=0;u<i.length;u++){const f=i[u];e[f]=Wm(a,s,f,l[f],r,!re(l,f))}}return A}function Wm(r,t,e,n,a,i){const A=r[e];if(A!=null){const o=re(A,"default");if(o&&n===void 0){const s=A.default;if(A.type!==Function&&!A.skipFactory&&kt(s)){const{propsDefaults:l}=a;if(e in l)n=l[e];else{const u=Ff(a);n=l[e]=s.call(null,t),u()}}else n=s;a.ce&&a.ce._setProp(e,n)}A[0]&&(i&&!o?n=!1:A[1]&&(n===""||n===wo(e))&&(n=!0))}return n}const _N=new WeakMap;function kQ(r,t,e=!1){const n=e?_N:t.propsCache,a=n.get(r);if(a)return a;const i=r.props,A={},o=[];let s=!1;if(!kt(r)){const u=f=>{s=!0;const[c,h]=kQ(f,t,!0);Ze(A,c),h&&o.push(...h)};!e&&t.mixins.length&&t.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}if(!i&&!s)return ge(r)&&n.set(r,ms),ms;if(Ot(i))for(let u=0;u<i.length;u++){const f=pn(i[u]);c1(f)&&(A[f]=he)}else if(i)for(const u in i){const f=pn(u);if(c1(f)){const c=i[u],h=A[f]=Ot(c)||kt(c)?{type:c}:Ze({},c),v=h.type;let d=!1,p=!0;if(Ot(v))for(let g=0;g<v.length;++g){const y=v[g],m=kt(y)&&y.name;if(m==="Boolean"){d=!0;break}else m==="String"&&(p=!1)}else d=kt(v)&&v.name==="Boolean";h[0]=d,h[1]=p,(d||re(h,"default"))&&o.push(f)}}const l=[A,o];return ge(r)&&n.set(r,l),l}function c1(r){return r[0]!=="$"&&!du(r)}const NQ=r=>r[0]==="_"||r==="$stable",DB=r=>Ot(r)?r.map(ea):[ea(r)],CN=(r,t,e)=>{if(t._n)return t;const n=Yk((...a)=>DB(t(...a)),e);return n._c=!1,n},VQ=(r,t,e)=>{const n=r._ctx;for(const a in r){if(NQ(a))continue;const i=r[a];if(kt(i))t[a]=CN(a,i,n);else if(i!=null){const A=DB(i);t[a]=()=>A}}},GQ=(r,t)=>{const e=DB(t);r.slots.default=()=>e},KQ=(r,t,e)=>{for(const n in t)(e||n!=="_")&&(r[n]=t[n])},SN=(r,t,e)=>{const n=r.slots=RQ();if(r.vnode.shapeFlag&32){const a=t._;a?(KQ(n,t,e),e&&rQ(n,"_",a,!0)):VQ(t,n)}else t&&GQ(r,t)},xN=(r,t,e)=>{const{vnode:n,slots:a}=r;let i=!0,A=he;if(n.shapeFlag&32){const o=t._;o?e&&o===1?i=!1:KQ(a,t,e):(i=!t.$stable,VQ(t,a)),A=t}else t&&(GQ(r,t),A={default:1});if(i)for(const o in a)!NQ(o)&&A[o]==null&&delete a[o]},Nr=ON;function bN(r){return TN(r)}function TN(r,t){const e=nQ();e.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:A,createText:o,createComment:s,setText:l,setElementText:u,parentNode:f,nextSibling:c,setScopeId:h=sa,insertStaticContent:v}=r,d=(L,U,k,Z=null,W=null,tt=null,ot=void 0,ut=null,at=!!U.dynamicChildren)=>{if(L===U)return;L&&!hl(L,U)&&(Z=N(L),J(L,W,tt,!0),L=null),U.patchFlag===-2&&(at=!1,U.dynamicChildren=null);const{type:rt,ref:Ft,shapeFlag:dt}=U;switch(rt){case Qd:p(L,U,k,Z);break;case fo:g(L,U,k,Z);break;case Np:L==null&&y(U,k,Z,ot);break;case Fr:F(L,U,k,Z,W,tt,ot,ut,at);break;default:dt&1?_(L,U,k,Z,W,tt,ot,ut,at):dt&6?E(L,U,k,Z,W,tt,ot,ut,at):(dt&64||dt&128)&&rt.process(L,U,k,Z,W,tt,ot,ut,at,q)}Ft!=null&&W&&Nm(Ft,L&&L.ref,tt,U||L,!U)},p=(L,U,k,Z)=>{if(L==null)n(U.el=o(U.children),k,Z);else{const W=U.el=L.el;U.children!==L.children&&l(W,U.children)}},g=(L,U,k,Z)=>{L==null?n(U.el=s(U.children||""),k,Z):U.el=L.el},y=(L,U,k,Z)=>{[L.el,L.anchor]=v(L.children,U,k,Z,L.el,L.anchor)},m=({el:L,anchor:U},k,Z)=>{let W;for(;L&&L!==U;)W=c(L),n(L,k,Z),L=W;n(U,k,Z)},w=({el:L,anchor:U})=>{let k;for(;L&&L!==U;)k=c(L),a(L),L=k;a(U)},_=(L,U,k,Z,W,tt,ot,ut,at)=>{U.type==="svg"?ot="svg":U.type==="math"&&(ot="mathml"),L==null?B(U,k,Z,W,tt,ot,ut,at):x(L,U,W,tt,ot,ut,at)},B=(L,U,k,Z,W,tt,ot,ut)=>{let at,rt;const{props:Ft,shapeFlag:dt,transition:Tt,dirs:Pt}=L;if(at=L.el=A(L.type,tt,Ft&&Ft.is,Ft),dt&8?u(at,L.children):dt&16&&S(L.children,at,null,Z,W,Op(L,tt),ot,ut),Pt&&aA(L,null,Z,"created"),C(at,L,L.scopeId,ot,Z),Ft){for(const fe in Ft)fe!=="value"&&!du(fe)&&i(at,fe,null,Ft[fe],tt,Z);"value"in Ft&&i(at,"value",null,Ft.value,tt),(rt=Ft.onVnodeBeforeMount)&&Gn(rt,Z,L)}Pt&&aA(L,null,Z,"beforeMount");const Zt=IN(W,Tt);Zt&&Tt.beforeEnter(at),n(at,U,k),((rt=Ft&&Ft.onVnodeMounted)||Zt||Pt)&&Nr(()=>{rt&&Gn(rt,Z,L),Zt&&Tt.enter(at),Pt&&aA(L,null,Z,"mounted")},W)},C=(L,U,k,Z,W)=>{if(k&&h(L,k),Z)for(let tt=0;tt<Z.length;tt++)h(L,Z[tt]);if(W){let tt=W.subTree;if(U===tt||$Q(tt.type)&&(tt.ssContent===U||tt.ssFallback===U)){const ot=W.vnode;C(L,ot,ot.scopeId,ot.slotScopeIds,W.parent)}}},S=(L,U,k,Z,W,tt,ot,ut,at=0)=>{for(let rt=at;rt<L.length;rt++){const Ft=L[rt]=ut?mi(L[rt]):ea(L[rt]);d(null,Ft,U,k,Z,W,tt,ot,ut)}},x=(L,U,k,Z,W,tt,ot)=>{const ut=U.el=L.el;let{patchFlag:at,dynamicChildren:rt,dirs:Ft}=U;at|=L.patchFlag&16;const dt=L.props||he,Tt=U.props||he;let Pt;if(k&&iA(k,!1),(Pt=Tt.onVnodeBeforeUpdate)&&Gn(Pt,k,U,L),Ft&&aA(U,L,k,"beforeUpdate"),k&&iA(k,!0),(dt.innerHTML&&Tt.innerHTML==null||dt.textContent&&Tt.textContent==null)&&u(ut,""),rt?b(L.dynamicChildren,rt,ut,k,Z,Op(U,W),tt):ot||P(L,U,ut,null,k,Z,Op(U,W),tt,!1),at>0){if(at&16)I(ut,dt,Tt,k,W);else if(at&2&&dt.class!==Tt.class&&i(ut,"class",null,Tt.class,W),at&4&&i(ut,"style",dt.style,Tt.style,W),at&8){const Zt=U.dynamicProps;for(let fe=0;fe<Zt.length;fe++){const ae=Zt[fe],Pr=dt[ae],qe=Tt[ae];(qe!==Pr||ae==="value")&&i(ut,ae,Pr,qe,W,k)}}at&1&&L.children!==U.children&&u(ut,U.children)}else!ot&&rt==null&&I(ut,dt,Tt,k,W);((Pt=Tt.onVnodeUpdated)||Ft)&&Nr(()=>{Pt&&Gn(Pt,k,U,L),Ft&&aA(U,L,k,"updated")},Z)},b=(L,U,k,Z,W,tt,ot)=>{for(let ut=0;ut<U.length;ut++){const at=L[ut],rt=U[ut],Ft=at.el&&(at.type===Fr||!hl(at,rt)||at.shapeFlag&70)?f(at.el):k;d(at,rt,Ft,null,Z,W,tt,ot,!0)}},I=(L,U,k,Z,W)=>{if(U!==k){if(U!==he)for(const tt in U)!du(tt)&&!(tt in k)&&i(L,tt,U[tt],null,W,Z);for(const tt in k){if(du(tt))continue;const ot=k[tt],ut=U[tt];ot!==ut&&tt!=="value"&&i(L,tt,ut,ot,W,Z)}"value"in k&&i(L,"value",U.value,k.value,W)}},F=(L,U,k,Z,W,tt,ot,ut,at)=>{const rt=U.el=L?L.el:o(""),Ft=U.anchor=L?L.anchor:o("");let{patchFlag:dt,dynamicChildren:Tt,slotScopeIds:Pt}=U;Pt&&(ut=ut?ut.concat(Pt):Pt),L==null?(n(rt,k,Z),n(Ft,k,Z),S(U.children||[],k,Ft,W,tt,ot,ut,at)):dt>0&&dt&64&&Tt&&L.dynamicChildren?(b(L.dynamicChildren,Tt,k,W,tt,ot,ut),(U.key!=null||W&&U===W.subTree)&&zQ(L,U,!0)):P(L,U,k,Ft,W,tt,ot,ut,at)},E=(L,U,k,Z,W,tt,ot,ut,at)=>{U.slotScopeIds=ut,L==null?U.shapeFlag&512?W.ctx.activate(U,k,Z,ot,at):D(U,k,Z,W,tt,ot,at):Q(L,U,at)},D=(L,U,k,Z,W,tt,ot)=>{const ut=L.component=WN(L,Z,W);if(QQ(L)&&(ut.ctx.renderer=q),XN(ut,!1,ot),ut.asyncDep){if(W&&W.registerDep(ut,M,ot),!L.el){const at=ut.subTree=yr(fo);g(null,at,U,k)}}else M(ut,L,U,k,W,tt,ot)},Q=(L,U,k)=>{const Z=U.component=L.component;if(RN(L,U,k))if(Z.asyncDep&&!Z.asyncResolved){R(Z,U,k);return}else Z.next=U,Z.update();else U.el=L.el,Z.vnode=U},M=(L,U,k,Z,W,tt,ot)=>{const ut=()=>{if(L.isMounted){let{next:dt,bu:Tt,u:Pt,parent:Zt,vnode:fe}=L;{const Rr=WQ(L);if(Rr){dt&&(dt.el=fe.el,R(L,dt,ot)),Rr.asyncDep.then(()=>{L.isUnmounted||ut()});return}}let ae=dt,Pr;iA(L,!1),dt?(dt.el=fe.el,R(L,dt,ot)):dt=fe,Tt&&Lp(Tt),(Pr=dt.props&&dt.props.onVnodeBeforeUpdate)&&Gn(Pr,Zt,dt,fe),iA(L,!0);const qe=kp(L),Bn=L.subTree;L.subTree=qe,d(Bn,qe,f(Bn.el),N(Bn),L,W,tt),dt.el=qe.el,ae===null&&HN(L,qe.el),Pt&&Nr(Pt,W),(Pr=dt.props&&dt.props.onVnodeUpdated)&&Nr(()=>Gn(Pr,Zt,dt,fe),W)}else{let dt;const{el:Tt,props:Pt}=U,{bm:Zt,m:fe,parent:ae,root:Pr,type:qe}=L,Bn=pu(U);if(iA(L,!1),Zt&&Lp(Zt),!Bn&&(dt=Pt&&Pt.onVnodeBeforeMount)&&Gn(dt,ae,U),iA(L,!0),Tt&&ct){const Rr=()=>{L.subTree=kp(L),ct(Tt,L.subTree,L,W,null)};Bn&&qe.__asyncHydrate?qe.__asyncHydrate(Tt,L,Rr):Rr()}else{Pr.ce&&Pr.ce._injectChildStyle(qe);const Rr=L.subTree=kp(L);d(null,Rr,k,Z,L,W,tt),U.el=Rr.el}if(fe&&Nr(fe,W),!Bn&&(dt=Pt&&Pt.onVnodeMounted)){const Rr=U;Nr(()=>Gn(dt,ae,Rr),W)}(U.shapeFlag&256||ae&&pu(ae.vnode)&&ae.vnode.shapeFlag&256)&&L.a&&Nr(L.a,W),L.isMounted=!0,U=k=Z=null}};L.scope.on();const at=L.effect=new oQ(ut);L.scope.off();const rt=L.update=at.run.bind(at),Ft=L.job=at.runIfDirty.bind(at);Ft.i=L,Ft.id=L.uid,at.scheduler=()=>bB(Ft),iA(L,!0),rt()},R=(L,U,k)=>{U.component=L;const Z=L.vnode.props;L.vnode=U,L.next=null,BN(L,U.props,Z,k),xN(L,U.children,k),tA(),A1(L),eA()},P=(L,U,k,Z,W,tt,ot,ut,at=!1)=>{const rt=L&&L.children,Ft=L?L.shapeFlag:0,dt=U.children,{patchFlag:Tt,shapeFlag:Pt}=U;if(Tt>0){if(Tt&128){G(rt,dt,k,Z,W,tt,ot,ut,at);return}else if(Tt&256){O(rt,dt,k,Z,W,tt,ot,ut,at);return}}Pt&8?(Ft&16&&Bt(rt,W,tt),dt!==rt&&u(k,dt)):Ft&16?Pt&16?G(rt,dt,k,Z,W,tt,ot,ut,at):Bt(rt,W,tt,!0):(Ft&8&&u(k,""),Pt&16&&S(dt,k,Z,W,tt,ot,ut,at))},O=(L,U,k,Z,W,tt,ot,ut,at)=>{L=L||ms,U=U||ms;const rt=L.length,Ft=U.length,dt=Math.min(rt,Ft);let Tt;for(Tt=0;Tt<dt;Tt++){const Pt=U[Tt]=at?mi(U[Tt]):ea(U[Tt]);d(L[Tt],Pt,k,null,W,tt,ot,ut,at)}rt>Ft?Bt(L,W,tt,!0,!1,dt):S(U,k,Z,W,tt,ot,ut,at,dt)},G=(L,U,k,Z,W,tt,ot,ut,at)=>{let rt=0;const Ft=U.length;let dt=L.length-1,Tt=Ft-1;for(;rt<=dt&&rt<=Tt;){const Pt=L[rt],Zt=U[rt]=at?mi(U[rt]):ea(U[rt]);if(hl(Pt,Zt))d(Pt,Zt,k,null,W,tt,ot,ut,at);else break;rt++}for(;rt<=dt&&rt<=Tt;){const Pt=L[dt],Zt=U[Tt]=at?mi(U[Tt]):ea(U[Tt]);if(hl(Pt,Zt))d(Pt,Zt,k,null,W,tt,ot,ut,at);else break;dt--,Tt--}if(rt>dt){if(rt<=Tt){const Pt=Tt+1,Zt=Pt<Ft?U[Pt].el:Z;for(;rt<=Tt;)d(null,U[rt]=at?mi(U[rt]):ea(U[rt]),k,Zt,W,tt,ot,ut,at),rt++}}else if(rt>Tt)for(;rt<=dt;)J(L[rt],W,tt,!0),rt++;else{const Pt=rt,Zt=rt,fe=new Map;for(rt=Zt;rt<=Tt;rt++){const Hr=U[rt]=at?mi(U[rt]):ea(U[rt]);Hr.key!=null&&fe.set(Hr.key,rt)}let ae,Pr=0;const qe=Tt-Zt+1;let Bn=!1,Rr=0;const fl=new Array(qe);for(rt=0;rt<qe;rt++)fl[rt]=0;for(rt=Pt;rt<=dt;rt++){const Hr=L[rt];if(Pr>=qe){J(Hr,W,tt,!0);continue}let Vn;if(Hr.key!=null)Vn=fe.get(Hr.key);else for(ae=Zt;ae<=Tt;ae++)if(fl[ae-Zt]===0&&hl(Hr,U[ae])){Vn=ae;break}Vn===void 0?J(Hr,W,tt,!0):(fl[Vn-Zt]=rt+1,Vn>=Rr?Rr=Vn:Bn=!0,d(Hr,U[Vn],k,null,W,tt,ot,ut,at),Pr++)}const JC=Bn?FN(fl):ms;for(ae=JC.length-1,rt=qe-1;rt>=0;rt--){const Hr=Zt+rt,Vn=U[Hr],qC=Hr+1<Ft?U[Hr+1].el:Z;fl[rt]===0?d(null,Vn,k,qC,W,tt,ot,ut,at):Bn&&(ae<0||rt!==JC[ae]?X(Vn,k,qC,2):ae--)}}},X=(L,U,k,Z,W=null)=>{const{el:tt,type:ot,transition:ut,children:at,shapeFlag:rt}=L;if(rt&6){X(L.component.subTree,U,k,Z);return}if(rt&128){L.suspense.move(U,k,Z);return}if(rt&64){ot.move(L,U,k,q);return}if(ot===Fr){n(tt,U,k);for(let dt=0;dt<at.length;dt++)X(at[dt],U,k,Z);n(L.anchor,U,k);return}if(ot===Np){m(L,U,k);return}if(Z!==2&&rt&1&&ut)if(Z===0)ut.beforeEnter(tt),n(tt,U,k),Nr(()=>ut.enter(tt),W);else{const{leave:dt,delayLeave:Tt,afterLeave:Pt}=ut,Zt=()=>n(tt,U,k),fe=()=>{dt(tt,()=>{Zt(),Pt&&Pt()})};Tt?Tt(tt,Zt,fe):fe()}else n(tt,U,k)},J=(L,U,k,Z=!1,W=!1)=>{const{type:tt,props:ot,ref:ut,children:at,dynamicChildren:rt,shapeFlag:Ft,patchFlag:dt,dirs:Tt,cacheIndex:Pt}=L;if(dt===-2&&(W=!1),ut!=null&&Nm(ut,null,k,L,!0),Pt!=null&&(U.renderCache[Pt]=void 0),Ft&256){U.ctx.deactivate(L);return}const Zt=Ft&1&&Tt,fe=!pu(L);let ae;if(fe&&(ae=ot&&ot.onVnodeBeforeUnmount)&&Gn(ae,U,L),Ft&6)wt(L.component,k,Z);else{if(Ft&128){L.suspense.unmount(k,Z);return}Zt&&aA(L,null,U,"beforeUnmount"),Ft&64?L.type.remove(L,U,k,q,Z):rt&&!rt.hasOnce&&(tt!==Fr||dt>0&&dt&64)?Bt(rt,U,k,!1,!0):(tt===Fr&&dt&384||!W&&Ft&16)&&Bt(at,U,k),Z&&At(L)}(fe&&(ae=ot&&ot.onVnodeUnmounted)||Zt)&&Nr(()=>{ae&&Gn(ae,U,L),Zt&&aA(L,null,U,"unmounted")},k)},At=L=>{const{type:U,el:k,anchor:Z,transition:W}=L;if(U===Fr){lt(k,Z);return}if(U===Np){w(L);return}const tt=()=>{a(k),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(L.shapeFlag&1&&W&&!W.persisted){const{leave:ot,delayLeave:ut}=W,at=()=>ot(k,tt);ut?ut(L.el,tt,at):at()}else tt()},lt=(L,U)=>{let k;for(;L!==U;)k=c(L),a(L),L=k;a(U)},wt=(L,U,k)=>{const{bum:Z,scope:W,job:tt,subTree:ot,um:ut,m:at,a:rt}=L;h1(at),h1(rt),Z&&Lp(Z),W.stop(),tt&&(tt.flags|=8,J(ot,L,U,k)),ut&&Nr(ut,U),Nr(()=>{L.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},Bt=(L,U,k,Z=!1,W=!1,tt=0)=>{for(let ot=tt;ot<L.length;ot++)J(L[ot],U,k,Z,W)},N=L=>{if(L.shapeFlag&6)return N(L.component.subTree);if(L.shapeFlag&128)return L.suspense.next();const U=c(L.anchor||L.el),k=U&&U[Zk];return k?c(k):U};let z=!1;const $=(L,U,k)=>{L==null?U._vnode&&J(U._vnode,null,null,!0):d(U._vnode||null,L,U,null,null,null,k),U._vnode=L,z||(z=!0,A1(),IQ(),z=!1)},q={p:d,um:J,m:X,r:At,mt:D,mc:S,pc:P,pbc:b,n:N,o:r};let j,ct;return{render:$,hydrate:j,createApp:mN($,j)}}function Op({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 iA({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function IN(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function zQ(r,t,e=!1){const n=r.children,a=t.children;if(Ot(n)&&Ot(a))for(let i=0;i<n.length;i++){const A=n[i];let o=a[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=a[i]=mi(a[i]),o.el=A.el),!e&&o.patchFlag!==-2&&zQ(A,o)),o.type===Qd&&(o.el=A.el)}}function FN(r){const t=r.slice(),e=[0];let n,a,i,A,o;const s=r.length;for(n=0;n<s;n++){const l=r[n];if(l!==0){if(a=e[e.length-1],r[a]<l){t[n]=a,e.push(n);continue}for(i=0,A=e.length-1;i<A;)o=i+A>>1,r[e[o]]<l?i=o+1:A=o;l<r[e[i]]&&(i>0&&(t[n]=e[i-1]),e[i]=n)}}for(i=e.length,A=e[i-1];i-- >0;)e[i]=A,A=t[A];return e}function WQ(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:WQ(t)}function h1(r){if(r)for(let t=0;t<r.length;t++)r[t].flags|=8}const EN=Symbol.for("v-scx"),DN=()=>Pa(EN);function yu(r,t,e){return XQ(r,t,e)}function XQ(r,t,e=he){const{immediate:n,deep:a,flush:i,once:A}=e,o=Ze({},e);let s;if(Ld)if(i==="sync"){const c=DN();s=c.__watcherHandles||(c.__watcherHandles=[])}else if(!t||n)o.once=!0;else{const c=()=>{};return c.stop=sa,c.resume=sa,c.pause=sa,c}const l=ir;o.call=(c,h,v)=>ca(c,l,h,v);let u=!1;i==="post"?o.scheduler=c=>{Nr(c,l&&l.suspense)}:i!=="sync"&&(u=!0,o.scheduler=(c,h)=>{h?c():bB(c)}),o.augmentJob=c=>{t&&(c.flags|=4),u&&(c.flags|=2,l&&(c.id=l.uid,c.i=l))};const f=Kk(r,t,o);return s&&s.push(f),f}function QN(r,t,e){const n=this.proxy,a=Qe(r)?r.includes(".")?YQ(n,r):()=>n[r]:r.bind(n,n);let i;kt(t)?i=t:(i=t.handler,e=t);const A=Ff(this),o=XQ(a,i.bind(n),e);return A(),o}function YQ(r,t){const e=t.split(".");return()=>{let n=r;for(let a=0;a<e.length&&n;a++)n=n[e[a]];return n}}const LN=(r,t)=>t==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${pn(t)}Modifiers`]||r[`${wo(t)}Modifiers`];function MN(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||he;let a=e;const i=t.startsWith("update:"),A=i&&LN(n,t.slice(7));A&&(A.trim&&(a=e.map(u=>Qe(u)?u.trim():u)),A.number&&(a=e.map(ok)));let o,s=n[o=Qp(t)]||n[o=Qp(pn(t))];!s&&i&&(s=n[o=Qp(wo(t))]),s&&ca(s,r,6,a);const l=n[o+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[o])return;r.emitted[o]=!0,ca(l,r,6,a)}}function ZQ(r,t,e=!1){const n=t.emitsCache,a=n.get(r);if(a!==void 0)return a;const i=r.emits;let A={},o=!1;if(!kt(r)){const s=l=>{const u=ZQ(l,t,!0);u&&(o=!0,Ze(A,u))};!e&&t.mixins.length&&t.mixins.forEach(s),r.extends&&s(r.extends),r.mixins&&r.mixins.forEach(s)}return!i&&!o?(ge(r)&&n.set(r,null),null):(Ot(i)?i.forEach(s=>A[s]=null):Ze(A,i),ge(r)&&n.set(r,A),A)}function Dd(r,t){return!r||!_d(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(r,t[0].toLowerCase()+t.slice(1))||re(r,wo(t))||re(r,t))}function kp(r){const{type:t,vnode:e,proxy:n,withProxy:a,propsOptions:[i],slots:A,attrs:o,emit:s,render:l,renderCache:u,props:f,data:c,setupState:h,ctx:v,inheritAttrs:d}=r,p=cv(r);let g,y;try{if(e.shapeFlag&4){const w=a||n,_=w;g=ea(l.call(_,w,u,f,h,c,v)),y=o}else{const w=t;g=ea(w.length>1?w(f,{attrs:o,slots:A,emit:s}):w(f,null)),y=t.props?o:UN(o)}}catch(w){mu.length=0,Fd(w,r,1),g=yr(fo)}let m=g;if(y&&d!==!1){const w=Object.keys(y),{shapeFlag:_}=m;w.length&&_&7&&(i&&w.some(cB)&&(y=PN(y,i)),m=Ds(m,y,!1,!0))}return e.dirs&&(m=Ds(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(e.dirs):e.dirs),e.transition&&TB(m,e.transition),g=m,cv(p),g}const UN=r=>{let t;for(const e in r)(e==="class"||e==="style"||_d(e))&&((t||(t={}))[e]=r[e]);return t},PN=(r,t)=>{const e={};for(const n in r)(!cB(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function RN(r,t,e){const{props:n,children:a,component:i}=r,{props:A,children:o,patchFlag:s}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&s>=0){if(s&1024)return!0;if(s&16)return n?v1(n,A,l):!!A;if(s&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const c=u[f];if(A[c]!==n[c]&&!Dd(l,c))return!0}}}else return(a||o)&&(!o||!o.$stable)?!0:n===A?!1:n?A?v1(n,A,l):!0:!!A;return!1}function v1(r,t,e){const n=Object.keys(t);if(n.length!==Object.keys(r).length)return!0;for(let a=0;a<n.length;a++){const i=n[a];if(t[i]!==r[i]&&!Dd(e,i))return!0}return!1}function HN({vnode:r,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===r&&(n.el=r.el),n===r)(r=t.vnode).el=e,t=t.parent;else break}}const $Q=r=>r.__isSuspense;function ON(r,t){t&&t.pendingBranch?Ot(r)?t.effects.push(...r):t.effects.push(r):Xk(r)}const Fr=Symbol.for("v-fgt"),Qd=Symbol.for("v-txt"),fo=Symbol.for("v-cmt"),Np=Symbol.for("v-stc"),mu=[];let Kr=null;function Er(r=!1){mu.push(Kr=r?null:[])}function kN(){mu.pop(),Kr=mu[mu.length-1]||null}let Xu=1;function d1(r){Xu+=r,r<0&&Kr&&(Kr.hasOnce=!0)}function JQ(r){return r.dynamicChildren=Xu>0?Kr||ms:null,kN(),Xu>0&&Kr&&Kr.push(r),r}function Fn(r,t,e,n,a,i){return JQ(St(r,t,e,n,a,i,!0))}function QB(r,t,e,n,a){return JQ(yr(r,t,e,n,a,!0))}function vv(r){return r?r.__v_isVNode===!0:!1}function hl(r,t){return r.type===t.type&&r.key===t.key}const qQ=({key:r})=>r??null,Uh=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?Qe(r)||Ar(r)||kt(r)?{i:En,r,k:t,f:!!e}:r:null);function St(r,t=null,e=null,n=0,a=null,i=r===Fr?0:1,A=!1,o=!1){const s={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&qQ(t),ref:t&&Uh(t),scopeId:EQ,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:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:En};return o?(LB(s,e),i&128&&r.normalize(s)):e&&(s.shapeFlag|=Qe(e)?8:16),Xu>0&&!A&&Kr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Kr.push(s),s}const yr=NN;function NN(r,t=null,e=null,n=0,a=null,i=!1){if((!r||r===uN)&&(r=fo),vv(r)){const o=Ds(r,t,!0);return e&&LB(o,e),Xu>0&&!i&&Kr&&(o.shapeFlag&6?Kr[Kr.indexOf(r)]=o:Kr.push(o)),o.patchFlag=-2,o}if(qN(r)&&(r=r.__vccOpts),t){t=VN(t);let{class:o,style:s}=t;o&&!Qe(o)&&(t.class=dB(o)),ge(s)&&(CB(s)&&!Ot(s)&&(s=Ze({},s)),t.style=Ga(s))}const A=Qe(r)?1:$Q(r)?128:$k(r)?64:ge(r)?4:kt(r)?2:0;return St(r,t,e,n,a,A,i,!0)}function VN(r){return r?CB(r)||HQ(r)?Ze({},r):r:null}function Ds(r,t,e=!1,n=!1){const{props:a,ref:i,patchFlag:A,children:o,transition:s}=r,l=t?GN(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:r.type,props:l,key:l&&qQ(l),ref:t&&t.ref?e&&i?Ot(i)?i.concat(Uh(t)):[i,Uh(t)]:Uh(t):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:o,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==Fr?A===-1?16:A|16:A,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:s,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Ds(r.ssContent),ssFallback:r.ssFallback&&Ds(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return s&&n&&TB(u,s.clone(u)),u}function dv(r=" ",t=0){return yr(Qd,null,r,t)}function jQ(r="",t=!1){return t?(Er(),QB(fo,null,r)):yr(fo,null,r)}function ea(r){return r==null||typeof r=="boolean"?yr(fo):Ot(r)?yr(Fr,null,r.slice()):vv(r)?mi(r):yr(Qd,null,String(r))}function mi(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Ds(r)}function LB(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(Ot(t))e=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),LB(r,a()),a._c&&(a._d=!0));return}else{e=32;const a=t._;!a&&!HQ(t)?t._ctx=En:a===3&&En&&(En.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else kt(t)?(t={default:t,_ctx:En},e=32):(t=String(t),n&64?(e=16,t=[dv(t)]):e=8);r.children=t,r.shapeFlag|=e}function GN(...r){const t={};for(let e=0;e<r.length;e++){const n=r[e];for(const a in n)if(a==="class")t.class!==n.class&&(t.class=dB([t.class,n.class]));else if(a==="style")t.style=Ga([t.style,n.style]);else if(_d(a)){const i=t[a],A=n[a];A&&i!==A&&!(Ot(i)&&i.includes(A))&&(t[a]=i?[].concat(i,A):A)}else a!==""&&(t[a]=n[a])}return t}function Gn(r,t,e,n=null){ca(r,t,7,[e,n])}const KN=UQ();let zN=0;function WN(r,t,e){const n=r.type,a=(t?t.appContext:r.appContext)||KN,i={uid:zN++,vnode:r,type:n,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new vk(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:kQ(n,a),emitsOptions:ZQ(n,a),emit:null,emitted:null,propsDefaults:he,inheritAttrs:n.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=MN.bind(null,i),r.ce&&r.ce(i),i}let ir=null,pv,Xm;{const r=nQ(),t=(e,n)=>{let a;return(a=r[e])||(a=r[e]=[]),a.push(n),i=>{a.length>1?a.forEach(A=>A(i)):a[0](i)}};pv=t("__VUE_INSTANCE_SETTERS__",e=>ir=e),Xm=t("__VUE_SSR_SETTERS__",e=>Ld=e)}const Ff=r=>{const t=ir;return pv(r),r.scope.on(),()=>{r.scope.off(),pv(t)}},p1=()=>{ir&&ir.scope.off(),pv(null)};function tL(r){return r.vnode.shapeFlag&4}let Ld=!1;function XN(r,t=!1,e=!1){t&&Xm(t);const{props:n,children:a}=r.vnode,i=tL(r);wN(r,n,i,t),SN(r,a,e);const A=i?YN(r,t):void 0;return t&&Xm(!1),A}function YN(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,cN);const{setup:n}=e;if(n){const a=r.setupContext=n.length>1?$N(r):null,i=Ff(r);tA();const A=If(n,r,0,[r.props,a]);if(eA(),i(),jD(A)){if(pu(r)||DQ(r),A.then(p1,p1),t)return A.then(o=>{g1(r,o,t)}).catch(o=>{Fd(o,r,0)});r.asyncDep=A}else g1(r,A,t)}else eL(r,t)}function g1(r,t,e){kt(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:ge(t)&&(r.setupState=SQ(t)),eL(r,e)}let y1;function eL(r,t,e){const n=r.type;if(!r.render){if(!t&&y1&&!n.render){const a=n.template||EB(r).template;if(a){const{isCustomElement:i,compilerOptions:A}=r.appContext.config,{delimiters:o,compilerOptions:s}=n,l=Ze(Ze({isCustomElement:i,delimiters:o},A),s);n.render=y1(a,l)}}r.render=n.render||sa}{const a=Ff(r);tA();try{hN(r)}finally{eA(),a()}}}const ZN={get(r,t){return or(r,"get",""),r[t]}};function $N(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,ZN),slots:r.slots,emit:r.emit,expose:t}}function MB(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(SQ(Rk(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in gu)return gu[e](r)},has(t,e){return e in t||e in gu}})):r.proxy}function JN(r,t=!0){return kt(r)?r.displayName||r.name:r.name||t&&r.__name}function qN(r){return kt(r)&&"__vccOpts"in r}const be=(r,t)=>Vk(r,t,Ld);function rL(r,t,e){const n=arguments.length;return n===2?ge(t)&&!Ot(t)?vv(t)?yr(r,null,[t]):yr(r,t):yr(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&vv(e)&&(e=[e]),yr(r,t,e))}const jN="3.5.10";/**
|
||
* @vue/runtime-dom v3.5.10
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Ym;const m1=typeof window<"u"&&window.trustedTypes;if(m1)try{Ym=m1.createPolicy("vue",{createHTML:r=>r})}catch{}const nL=Ym?r=>Ym.createHTML(r):r=>r,t4="http://www.w3.org/2000/svg",e4="http://www.w3.org/1998/Math/MathML",Ea=typeof document<"u"?document:null,w1=Ea&&Ea.createElement("template"),r4={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 a=t==="svg"?Ea.createElementNS(t4,r):t==="mathml"?Ea.createElementNS(e4,r):e?Ea.createElement(r,{is:e}):Ea.createElement(r);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>Ea.createTextNode(r),createComment:r=>Ea.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Ea.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,a,i){const A=e?e.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),e),!(a===i||!(a=a.nextSibling)););else{w1.innerHTML=nL(n==="svg"?`<svg>${r}</svg>`:n==="mathml"?`<math>${r}</math>`:r);const o=w1.content;if(n==="svg"||n==="mathml"){const s=o.firstChild;for(;s.firstChild;)o.appendChild(s.firstChild);o.removeChild(s)}t.insertBefore(o,e)}return[A?A.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},n4=Symbol("_vtc");function a4(r,t,e){const n=r[n4];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const B1=Symbol("_vod"),i4=Symbol("_vsh"),A4=Symbol(""),o4=/(^|;)\s*display\s*:/;function s4(r,t,e){const n=r.style,a=Qe(e);let i=!1;if(e&&!a){if(t)if(Qe(t))for(const A of t.split(";")){const o=A.slice(0,A.indexOf(":")).trim();e[o]==null&&Ph(n,o,"")}else for(const A in t)e[A]==null&&Ph(n,A,"");for(const A in e)A==="display"&&(i=!0),Ph(n,A,e[A])}else if(a){if(t!==e){const A=n[A4];A&&(e+=";"+A),n.cssText=e,i=o4.test(e)}}else t&&r.removeAttribute("style");B1 in r&&(r[B1]=i?n.display:"",r[i4]&&(n.display="none"))}const _1=/\s*!important$/;function Ph(r,t,e){if(Ot(e))e.forEach(n=>Ph(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=l4(r,t);_1.test(e)?r.setProperty(wo(n),e.replace(_1,""),"important"):r[n]=e}}const C1=["Webkit","Moz","ms"],Vp={};function l4(r,t){const e=Vp[t];if(e)return e;let n=pn(t);if(n!=="filter"&&n in r)return Vp[t]=n;n=xd(n);for(let a=0;a<C1.length;a++){const i=C1[a]+n;if(i in r)return Vp[t]=i}return t}const S1="http://www.w3.org/1999/xlink";function x1(r,t,e,n,a,i=hk(t)){n&&t.startsWith("xlink:")?e==null?r.removeAttributeNS(S1,t.slice(6,t.length)):r.setAttributeNS(S1,t,e):e==null||i&&!aQ(e)?r.removeAttribute(t):r.setAttribute(t,i?"":ji(e)?String(e):e)}function b1(r,t,e,n){if(t==="innerHTML"||t==="textContent"){e!=null&&(r[t]=t==="innerHTML"?nL(e):e);return}const a=r.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const A=a==="OPTION"?r.getAttribute("value")||"":r.value,o=e==null?r.type==="checkbox"?"on":"":String(e);(A!==o||!("_value"in r))&&(r.value=o),e==null&&r.removeAttribute(t),r._value=e;return}let i=!1;if(e===""||e==null){const A=typeof r[t];A==="boolean"?e=aQ(e):e==null&&A==="string"?(e="",i=!0):A==="number"&&(e=0,i=!0)}try{r[t]=e}catch{}i&&r.removeAttribute(t)}function u4(r,t,e,n){r.addEventListener(t,e,n)}function f4(r,t,e,n){r.removeEventListener(t,e,n)}const T1=Symbol("_vei");function c4(r,t,e,n,a=null){const i=r[T1]||(r[T1]={}),A=i[t];if(n&&A)A.value=n;else{const[o,s]=h4(t);if(n){const l=i[t]=p4(n,a);u4(r,o,l,s)}else A&&(f4(r,o,A,s),i[t]=void 0)}}const I1=/(?:Once|Passive|Capture)$/;function h4(r){let t;if(I1.test(r)){t={};let n;for(;n=r.match(I1);)r=r.slice(0,r.length-n[0].length),t[n[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):wo(r.slice(2)),t]}let Gp=0;const v4=Promise.resolve(),d4=()=>Gp||(v4.then(()=>Gp=0),Gp=Date.now());function p4(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;ca(g4(n,e.value),t,5,[n])};return e.value=r,e.attached=d4(),e}function g4(r,t){if(Ot(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const F1=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,y4=(r,t,e,n,a,i)=>{const A=a==="svg";t==="class"?a4(r,n,A):t==="style"?s4(r,e,n):_d(t)?cB(t)||c4(r,t,e,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):m4(r,t,n,A))?(b1(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&x1(r,t,n,A,i,t!=="value")):r._isVueCE&&(/[A-Z]/.test(t)||!Qe(n))?b1(r,pn(t),n):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),x1(r,t,n,A))};function m4(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&F1(t)&&kt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return F1(t)&&Qe(e)?!1:t in r}const w4=Ze({patchProp:y4},r4);let E1;function B4(){return E1||(E1=bN(w4))}const _4=(...r)=>{const t=B4().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=S4(n);if(!a)return;const i=t._component;!kt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const A=e(a,!1,C4(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),A},t};function C4(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function S4(r){return Qe(r)?document.querySelector(r):r}const x4=Bo({__name:"App",setup(r){console.log("App.vue");const t=new Date().getFullYear();return(e,n)=>{const a=lN("router-view");return Er(),Fn(Fr,null,[n[4]||(n[4]=St("h1",{style:{"text-align":"center"}},"Server Status",-1)),yr(a),St("footer",null,[n[0]||(n[0]=St("a",{href:"https://github.com/snowykami/server-status-server"},"Server status dashboard",-1)),n[1]||(n[1]=St("br",null,null,-1)),dv(" © Copyright 2024-"+Ce(la(t))+" ",1),n[2]||(n[2]=St("a",{href:"https://sfkm.me",target:"_blank"},"Snowykami",-1)),n[3]||(n[3]=dv(" All Rights Reserved "))])],64)}}}),Ws=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},b4=Ws(x4,[["__scopeId","data-v-49c835b0"]]);/*!
|
||
* vue-router v4.4.5
|
||
* (c) 2024 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const is=typeof document<"u";function aL(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function T4(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&aL(r.default)}const ie=Object.assign;function Kp(r,t){const e={};for(const n in t){const a=t[n];e[n]=Pn(a)?a.map(r):r(a)}return e}const wu=()=>{},Pn=Array.isArray,iL=/#/g,I4=/&/g,F4=/\//g,E4=/=/g,D4=/\?/g,AL=/\+/g,Q4=/%5B/g,L4=/%5D/g,oL=/%5E/g,M4=/%60/g,sL=/%7B/g,U4=/%7C/g,lL=/%7D/g,P4=/%20/g;function UB(r){return encodeURI(""+r).replace(U4,"|").replace(Q4,"[").replace(L4,"]")}function R4(r){return UB(r).replace(sL,"{").replace(lL,"}").replace(oL,"^")}function Zm(r){return UB(r).replace(AL,"%2B").replace(P4,"+").replace(iL,"%23").replace(I4,"%26").replace(M4,"`").replace(sL,"{").replace(lL,"}").replace(oL,"^")}function H4(r){return Zm(r).replace(E4,"%3D")}function O4(r){return UB(r).replace(iL,"%23").replace(D4,"%3F")}function k4(r){return r==null?"":O4(r).replace(F4,"%2F")}function Yu(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const N4=/\/$/,V4=r=>r.replace(N4,"");function zp(r,t,e="/"){let n,a={},i="",A="";const o=t.indexOf("#");let s=t.indexOf("?");return o<s&&o>=0&&(s=-1),s>-1&&(n=t.slice(0,s),i=t.slice(s+1,o>-1?o:t.length),a=r(i)),o>-1&&(n=n||t.slice(0,o),A=t.slice(o,t.length)),n=W4(n??t,e),{fullPath:n+(i&&"?")+i+A,path:n,query:a,hash:Yu(A)}}function G4(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function D1(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function K4(r,t,e){const n=t.matched.length-1,a=e.matched.length-1;return n>-1&&n===a&&Qs(t.matched[n],e.matched[a])&&uL(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Qs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function uL(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!z4(r[e],t[e]))return!1;return!0}function z4(r,t){return Pn(r)?Q1(r,t):Pn(t)?Q1(t,r):r===t}function Q1(r,t){return Pn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function W4(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let i=e.length-1,A,o;for(A=0;A<n.length;A++)if(o=n[A],o!==".")if(o==="..")i>1&&i--;else break;return e.slice(0,i).join("/")+"/"+n.slice(A).join("/")}const ai={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Zu;(function(r){r.pop="pop",r.push="push"})(Zu||(Zu={}));var Bu;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Bu||(Bu={}));function X4(r){if(!r)if(is){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),V4(r)}const Y4=/^[^#]+#/;function Z4(r,t){return r.replace(Y4,"#")+t}function $4(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 Md=()=>({left:window.scrollX,top:window.scrollY});function J4(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),a=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!a)return;t=$4(a,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 L1(r,t){return(history.state?history.state.position-t:-1)+r}const $m=new Map;function q4(r,t){$m.set(r,t)}function j4(r){const t=$m.get(r);return $m.delete(r),t}let tV=()=>location.protocol+"//"+location.host;function fL(r,t){const{pathname:e,search:n,hash:a}=t,i=r.indexOf("#");if(i>-1){let o=a.includes(r.slice(i))?r.slice(i).length:1,s=a.slice(o);return s[0]!=="/"&&(s="/"+s),D1(s,"")}return D1(e,r)+n+a}function eV(r,t,e,n){let a=[],i=[],A=null;const o=({state:c})=>{const h=fL(r,location),v=e.value,d=t.value;let p=0;if(c){if(e.value=h,t.value=c,A&&A===v){A=null;return}p=d?c.position-d.position:0}else n(h);a.forEach(g=>{g(e.value,v,{delta:p,type:Zu.pop,direction:p?p>0?Bu.forward:Bu.back:Bu.unknown})})};function s(){A=e.value}function l(c){a.push(c);const h=()=>{const v=a.indexOf(c);v>-1&&a.splice(v,1)};return i.push(h),h}function u(){const{history:c}=window;c.state&&c.replaceState(ie({},c.state,{scroll:Md()}),"")}function f(){for(const c of i)c();i=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:s,listen:l,destroy:f}}function M1(r,t,e,n=!1,a=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:a?Md():null}}function rV(r){const{history:t,location:e}=window,n={value:fL(r,e)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,l,u){const f=r.indexOf("#"),c=f>-1?(e.host&&document.querySelector("base")?r:r.slice(f))+s:tV()+r+s;try{t[u?"replaceState":"pushState"](l,"",c),a.value=l}catch(h){console.error(h),e[u?"replace":"assign"](c)}}function A(s,l){const u=ie({},t.state,M1(a.value.back,s,a.value.forward,!0),l,{position:a.value.position});i(s,u,!0),n.value=s}function o(s,l){const u=ie({},a.value,t.state,{forward:s,scroll:Md()});i(u.current,u,!0);const f=ie({},M1(n.value,s,null),{position:u.position+1},l);i(s,f,!1),n.value=s}return{location:n,state:a,push:o,replace:A}}function nV(r){r=X4(r);const t=rV(r),e=eV(r,t.state,t.location,t.replace);function n(i,A=!0){A||e.pauseListeners(),history.go(i)}const a=ie({location:"",base:r,go:n,createHref:Z4.bind(null,r)},t,e);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function aV(r){return typeof r=="string"||r&&typeof r=="object"}function cL(r){return typeof r=="string"||typeof r=="symbol"}const hL=Symbol("");var U1;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(U1||(U1={}));function Ls(r,t){return ie(new Error,{type:r,[hL]:!0},t)}function Sa(r,t){return r instanceof Error&&hL in r&&(t==null||!!(r.type&t))}const P1="[^/]+?",iV={sensitive:!1,strict:!1,start:!0,end:!0},AV=/[.+*?^${}()[\]/\\]/g;function oV(r,t){const e=ie({},iV,t),n=[];let a=e.start?"^":"";const i=[];for(const l of r){const u=l.length?[]:[90];e.strict&&!l.length&&(a+="/");for(let f=0;f<l.length;f++){const c=l[f];let h=40+(e.sensitive?.25:0);if(c.type===0)f||(a+="/"),a+=c.value.replace(AV,"\\$&"),h+=40;else if(c.type===1){const{value:v,repeatable:d,optional:p,regexp:g}=c;i.push({name:v,repeatable:d,optional:p});const y=g||P1;if(y!==P1){h+=10;try{new RegExp(`(${y})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${y}): `+w.message)}}let m=d?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(m=p&&l.length<2?`(?:/${m})`:"/"+m),p&&(m+="?"),a+=m,h+=20,p&&(h+=-8),d&&(h+=-20),y===".*"&&(h+=-50)}u.push(h)}n.push(u)}if(e.strict&&e.end){const l=n.length-1;n[l][n[l].length-1]+=.7000000000000001}e.strict||(a+="/?"),e.end?a+="$":e.strict&&(a+="(?:/|$)");const A=new RegExp(a,e.sensitive?"":"i");function o(l){const u=l.match(A),f={};if(!u)return null;for(let c=1;c<u.length;c++){const h=u[c]||"",v=i[c-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function s(l){let u="",f=!1;for(const c of r){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const h of c)if(h.type===0)u+=h.value;else if(h.type===1){const{value:v,repeatable:d,optional:p}=h,g=v in l?l[v]:"";if(Pn(g)&&!d)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const y=Pn(g)?g.join("/"):g;if(!y)if(p)c.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);u+=y}}return u||"/"}return{re:A,score:n,keys:i,parse:o,stringify:s}}function sV(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]===80?-1:1:r.length>t.length?t.length===1&&t[0]===80?1:-1:0}function vL(r,t){let e=0;const n=r.score,a=t.score;for(;e<n.length&&e<a.length;){const i=sV(n[e],a[e]);if(i)return i;e++}if(Math.abs(a.length-n.length)===1){if(R1(n))return 1;if(R1(a))return-1}return a.length-n.length}function R1(r){const t=r[r.length-1];return r.length>0&&t[t.length-1]<0}const lV={type:0,value:""},uV=/[a-zA-Z0-9_]/;function fV(r){if(!r)return[[]];if(r==="/")return[[lV]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(h){throw new Error(`ERR (${e})/"${l}": ${h}`)}let e=0,n=e;const a=[];let i;function A(){i&&a.push(i),i=[]}let o=0,s,l="",u="";function f(){l&&(e===0?i.push({type:0,value:l}):e===1||e===2||e===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=s}for(;o<r.length;){if(s=r[o++],s==="\\"&&e!==2){n=e,e=4;continue}switch(e){case 0:s==="/"?(l&&f(),A()):s===":"?(f(),e=1):c();break;case 4:c(),e=n;break;case 1:s==="("?e=2:uV.test(s)?c():(f(),e=0,s!=="*"&&s!=="?"&&s!=="+"&&o--);break;case 2:s===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+s:e=3:u+=s;break;case 3:f(),e=0,s!=="*"&&s!=="?"&&s!=="+"&&o--,u="";break;default:t("Unknown state");break}}return e===2&&t(`Unfinished custom RegExp for param "${l}"`),f(),A(),a}function cV(r,t,e){const n=oV(fV(r.path),e),a=ie(n,{record:r,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function hV(r,t){const e=[],n=new Map;t=N1({strict:!1,end:!0,sensitive:!1},t);function a(f){return n.get(f)}function i(f,c,h){const v=!h,d=O1(f);d.aliasOf=h&&h.record;const p=N1(t,f),g=[d];if("alias"in f){const w=typeof f.alias=="string"?[f.alias]:f.alias;for(const _ of w)g.push(O1(ie({},d,{components:h?h.record.components:d.components,path:_,aliasOf:h?h.record:d})))}let y,m;for(const w of g){const{path:_}=w;if(c&&_[0]!=="/"){const B=c.record.path,C=B[B.length-1]==="/"?"":"/";w.path=c.record.path+(_&&C+_)}if(y=cV(w,c,p),h?h.alias.push(y):(m=m||y,m!==y&&m.alias.push(y),v&&f.name&&!k1(y)&&A(f.name)),dL(y)&&s(y),d.children){const B=d.children;for(let C=0;C<B.length;C++)i(B[C],y,h&&h.children[C])}h=h||y}return m?()=>{A(m)}:wu}function A(f){if(cL(f)){const c=n.get(f);c&&(n.delete(f),e.splice(e.indexOf(c),1),c.children.forEach(A),c.alias.forEach(A))}else{const c=e.indexOf(f);c>-1&&(e.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(A),f.alias.forEach(A))}}function o(){return e}function s(f){const c=pV(f,e);e.splice(c,0,f),f.record.name&&!k1(f)&&n.set(f.record.name,f)}function l(f,c){let h,v={},d,p;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw Ls(1,{location:f});p=h.record.name,v=ie(H1(c.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&H1(f.params,h.keys.map(m=>m.name))),d=h.stringify(v)}else if(f.path!=null)d=f.path,h=e.find(m=>m.re.test(d)),h&&(v=h.parse(d),p=h.record.name);else{if(h=c.name?n.get(c.name):e.find(m=>m.re.test(c.path)),!h)throw Ls(1,{location:f,currentLocation:c});p=h.record.name,v=ie({},c.params,f.params),d=h.stringify(v)}const g=[];let y=h;for(;y;)g.unshift(y.record),y=y.parent;return{name:p,path:d,params:v,matched:g,meta:dV(g)}}r.forEach(f=>i(f));function u(){e.length=0,n.clear()}return{addRoute:i,resolve:l,removeRoute:A,clearRoutes:u,getRoutes:o,getRecordMatcher:a}}function H1(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function O1(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:vV(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 vV(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 k1(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function dV(r){return r.reduce((t,e)=>ie(t,e.meta),{})}function N1(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}function pV(r,t){let e=0,n=t.length;for(;e!==n;){const i=e+n>>1;vL(r,t[i])<0?n=i:e=i+1}const a=gV(r);return a&&(n=t.lastIndexOf(a,n-1)),n}function gV(r){let t=r;for(;t=t.parent;)if(dL(t)&&vL(r,t)===0)return t}function dL({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function yV(r){const t={};if(r===""||r==="?")return t;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let a=0;a<n.length;++a){const i=n[a].replace(AL," "),A=i.indexOf("="),o=Yu(A<0?i:i.slice(0,A)),s=A<0?null:Yu(i.slice(A+1));if(o in t){let l=t[o];Pn(l)||(l=t[o]=[l]),l.push(s)}else t[o]=s}return t}function V1(r){let t="";for(let e in r){const n=r[e];if(e=H4(e),n==null){n!==void 0&&(t+=(t.length?"&":"")+e);continue}(Pn(n)?n.map(i=>i&&Zm(i)):[n&&Zm(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function mV(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=Pn(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const wV=Symbol(""),G1=Symbol(""),PB=Symbol(""),pL=Symbol(""),Jm=Symbol("");function vl(){let r=[];function t(n){return r.push(n),()=>{const a=r.indexOf(n);a>-1&&r.splice(a,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function wi(r,t,e,n,a,i=A=>A()){const A=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(Ls(4,{from:e,to:t})):c instanceof Error?s(c):aV(c)?s(Ls(2,{from:t,to:c})):(A&&n.enterCallbacks[a]===A&&typeof c=="function"&&A.push(c),o())},u=i(()=>r.call(n&&n.instances[a],t,e,l));let f=Promise.resolve(u);r.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function Wp(r,t,e,n,a=i=>i()){const i=[];for(const A of r)for(const o in A.components){let s=A.components[o];if(!(t!=="beforeRouteEnter"&&!A.instances[o]))if(aL(s)){const u=(s.__vccOpts||s)[t];u&&i.push(wi(u,e,n,A,o,a))}else{let l=s();i.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${o}" at "${A.path}"`);const f=T4(u)?u.default:u;A.mods[o]=u,A.components[o]=f;const h=(f.__vccOpts||f)[t];return h&&wi(h,e,n,A,o,a)()}))}}return i}function K1(r){const t=Pa(PB),e=Pa(pL),n=be(()=>{const s=la(r.to);return t.resolve(s)}),a=be(()=>{const{matched:s}=n.value,{length:l}=s,u=s[l-1],f=e.matched;if(!u||!f.length)return-1;const c=f.findIndex(Qs.bind(null,u));if(c>-1)return c;const h=z1(s[l-2]);return l>1&&z1(u)===h&&f[f.length-1].path!==h?f.findIndex(Qs.bind(null,s[l-2])):c}),i=be(()=>a.value>-1&&SV(e.params,n.value.params)),A=be(()=>a.value>-1&&a.value===e.matched.length-1&&uL(e.params,n.value.params));function o(s={}){return CV(s)?t[la(r.replace)?"replace":"push"](la(r.to)).catch(wu):Promise.resolve()}return{route:n,href:be(()=>n.value.href),isActive:i,isExactActive:A,navigate:o}}const BV=Bo({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"}},useLink:K1,setup(r,{slots:t}){const e=Id(K1(r)),{options:n}=Pa(PB),a=be(()=>({[W1(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[W1(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const i=t.default&&t.default(e);return r.custom?i:rL("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:a.value},i)}}}),_V=BV;function CV(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 SV(r,t){for(const e in t){const n=t[e],a=r[e];if(typeof n=="string"){if(n!==a)return!1}else if(!Pn(a)||a.length!==n.length||n.some((i,A)=>i!==a[A]))return!1}return!0}function z1(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const W1=(r,t,e)=>r??t??e,xV=Bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=Pa(Jm),a=be(()=>r.route||n.value),i=Pa(G1,0),A=be(()=>{let l=la(i);const{matched:u}=a.value;let f;for(;(f=u[l])&&!f.components;)l++;return l}),o=be(()=>a.value.matched[A.value]);Mh(G1,be(()=>A.value+1)),Mh(wV,o),Mh(Jm,a);const s=jn();return yu(()=>[s.value,o.value,r.name],([l,u,f],[c,h,v])=>{u&&(u.instances[f]=l,h&&h!==u&&l&&l===c&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),l&&u&&(!h||!Qs(u,h)||!c)&&(u.enterCallbacks[f]||[]).forEach(d=>d(l))},{flush:"post"}),()=>{const l=a.value,u=r.name,f=o.value,c=f&&f.components[u];if(!c)return X1(e.default,{Component:c,route:l});const h=f.props[u],v=h?h===!0?l.params:typeof h=="function"?h(l):h:null,p=rL(c,ie({},v,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[u]=null)},ref:s}));return X1(e.default,{Component:p,route:l})||p}}});function X1(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const bV=xV;function TV(r){const t=hV(r.routes,r),e=r.parseQuery||yV,n=r.stringifyQuery||V1,a=r.history,i=vl(),A=vl(),o=vl(),s=Hk(ai);let l=ai;is&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Kp.bind(null,N=>""+N),f=Kp.bind(null,k4),c=Kp.bind(null,Yu);function h(N,z){let $,q;return cL(N)?($=t.getRecordMatcher(N),q=z):q=N,t.addRoute(q,$)}function v(N){const z=t.getRecordMatcher(N);z&&t.removeRoute(z)}function d(){return t.getRoutes().map(N=>N.record)}function p(N){return!!t.getRecordMatcher(N)}function g(N,z){if(z=ie({},z||s.value),typeof N=="string"){const U=zp(e,N,z.path),k=t.resolve({path:U.path},z),Z=a.createHref(U.fullPath);return ie(U,k,{params:c(k.params),hash:Yu(U.hash),redirectedFrom:void 0,href:Z})}let $;if(N.path!=null)$=ie({},N,{path:zp(e,N.path,z.path).path});else{const U=ie({},N.params);for(const k in U)U[k]==null&&delete U[k];$=ie({},N,{params:f(U)}),z.params=f(z.params)}const q=t.resolve($,z),j=N.hash||"";q.params=u(c(q.params));const ct=G4(n,ie({},N,{hash:R4(j),path:q.path})),L=a.createHref(ct);return ie({fullPath:ct,hash:j,query:n===V1?mV(N.query):N.query||{}},q,{redirectedFrom:void 0,href:L})}function y(N){return typeof N=="string"?zp(e,N,s.value.path):ie({},N)}function m(N,z){if(l!==N)return Ls(8,{from:z,to:N})}function w(N){return C(N)}function _(N){return w(ie(y(N),{replace:!0}))}function B(N){const z=N.matched[N.matched.length-1];if(z&&z.redirect){const{redirect:$}=z;let q=typeof $=="function"?$(N):$;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=y(q):{path:q},q.params={}),ie({query:N.query,hash:N.hash,params:q.path!=null?{}:N.params},q)}}function C(N,z){const $=l=g(N),q=s.value,j=N.state,ct=N.force,L=N.replace===!0,U=B($);if(U)return C(ie(y(U),{state:typeof U=="object"?ie({},j,U.state):j,force:ct,replace:L}),z||$);const k=$;k.redirectedFrom=z;let Z;return!ct&&K4(n,q,$)&&(Z=Ls(16,{to:k,from:q}),X(q,q,!0,!1)),(Z?Promise.resolve(Z):b(k,q)).catch(W=>Sa(W)?Sa(W,2)?W:G(W):P(W,k,q)).then(W=>{if(W){if(Sa(W,2))return C(ie({replace:L},y(W.to),{state:typeof W.to=="object"?ie({},j,W.to.state):j,force:ct}),z||k)}else W=F(k,q,!0,L,j);return I(k,q,W),W})}function S(N,z){const $=m(N,z);return $?Promise.reject($):Promise.resolve()}function x(N){const z=lt.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(N):N()}function b(N,z){let $;const[q,j,ct]=IV(N,z);$=Wp(q.reverse(),"beforeRouteLeave",N,z);for(const U of q)U.leaveGuards.forEach(k=>{$.push(wi(k,N,z))});const L=S.bind(null,N,z);return $.push(L),Bt($).then(()=>{$=[];for(const U of i.list())$.push(wi(U,N,z));return $.push(L),Bt($)}).then(()=>{$=Wp(j,"beforeRouteUpdate",N,z);for(const U of j)U.updateGuards.forEach(k=>{$.push(wi(k,N,z))});return $.push(L),Bt($)}).then(()=>{$=[];for(const U of ct)if(U.beforeEnter)if(Pn(U.beforeEnter))for(const k of U.beforeEnter)$.push(wi(k,N,z));else $.push(wi(U.beforeEnter,N,z));return $.push(L),Bt($)}).then(()=>(N.matched.forEach(U=>U.enterCallbacks={}),$=Wp(ct,"beforeRouteEnter",N,z,x),$.push(L),Bt($))).then(()=>{$=[];for(const U of A.list())$.push(wi(U,N,z));return $.push(L),Bt($)}).catch(U=>Sa(U,8)?U:Promise.reject(U))}function I(N,z,$){o.list().forEach(q=>x(()=>q(N,z,$)))}function F(N,z,$,q,j){const ct=m(N,z);if(ct)return ct;const L=z===ai,U=is?history.state:{};$&&(q||L?a.replace(N.fullPath,ie({scroll:L&&U&&U.scroll},j)):a.push(N.fullPath,j)),s.value=N,X(N,z,$,L),G()}let E;function D(){E||(E=a.listen((N,z,$)=>{if(!wt.listening)return;const q=g(N),j=B(q);if(j){C(ie(j,{replace:!0}),q).catch(wu);return}l=q;const ct=s.value;is&&q4(L1(ct.fullPath,$.delta),Md()),b(q,ct).catch(L=>Sa(L,12)?L:Sa(L,2)?(C(L.to,q).then(U=>{Sa(U,20)&&!$.delta&&$.type===Zu.pop&&a.go(-1,!1)}).catch(wu),Promise.reject()):($.delta&&a.go(-$.delta,!1),P(L,q,ct))).then(L=>{L=L||F(q,ct,!1),L&&($.delta&&!Sa(L,8)?a.go(-$.delta,!1):$.type===Zu.pop&&Sa(L,20)&&a.go(-1,!1)),I(q,ct,L)}).catch(wu)}))}let Q=vl(),M=vl(),R;function P(N,z,$){G(N);const q=M.list();return q.length?q.forEach(j=>j(N,z,$)):console.error(N),Promise.reject(N)}function O(){return R&&s.value!==ai?Promise.resolve():new Promise((N,z)=>{Q.add([N,z])})}function G(N){return R||(R=!N,D(),Q.list().forEach(([z,$])=>N?$(N):z()),Q.reset()),N}function X(N,z,$,q){const{scrollBehavior:j}=r;if(!is||!j)return Promise.resolve();const ct=!$&&j4(L1(N.fullPath,0))||(q||!$)&&history.state&&history.state.scroll||null;return bQ().then(()=>j(N,z,ct)).then(L=>L&&J4(L)).catch(L=>P(L,N,z))}const J=N=>a.go(N);let At;const lt=new Set,wt={currentRoute:s,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:d,resolve:g,options:r,push:w,replace:_,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:A.add,afterEach:o.add,onError:M.add,isReady:O,install(N){const z=this;N.component("RouterLink",_V),N.component("RouterView",bV),N.config.globalProperties.$router=z,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>la(s)}),is&&!At&&s.value===ai&&(At=!0,w(a.location).catch(j=>{}));const $={};for(const j in ai)Object.defineProperty($,j,{get:()=>s.value[j],enumerable:!0});N.provide(PB,z),N.provide(pL,BQ($)),N.provide(Jm,s);const q=N.unmount;lt.add(N),N.unmount=function(){lt.delete(N),lt.size<1&&(l=ai,E&&E(),E=null,s.value=ai,At=!1,R=!1),q()}}};function Bt(N){return N.reduce((z,$)=>z.then(()=>x($)),Promise.resolve())}return wt}function IV(r,t){const e=[],n=[],a=[],i=Math.max(t.matched.length,r.matched.length);for(let A=0;A<i;A++){const o=t.matched[A];o&&(r.matched.find(l=>Qs(l,o))?n.push(o):e.push(o));const s=r.matched[A];s&&(t.matched.find(l=>Qs(l,s))||a.push(s))}return[e,n,a]}const FV="";async function Y1(){return(await fetch(`${FV}/api/status`)).json()}const EV="/svg/screenshots.svg",DV="/svg/timezone.svg",QV="/svg/label.svg";/*! *****************************************************************************
|
||
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 qm=function(r,t){return qm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},qm(r,t)};function H(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qm(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var LV=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),MV=function(){function r(){this.browser=new LV,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Ut=new MV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ut.wxa=!0,Ut.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ut.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Ut.node=!0,Ut.svgSupported=!0):UV(navigator.userAgent,Ut);function UV(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),A=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),A&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var o=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in o||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in o)&&!("OTransition"in o),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var RB=12,gL="sans-serif",Ki=RB+"px "+gL,PV=20,RV=100,HV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function OV(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),a=(r.charCodeAt(e)-PV)/RV;t[n]=a}return t}var kV=OV(HV),zi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var a=zi.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Ki),r.measureText(e);e=e||"",n=n||Ki;var i=/((?:\d+)?\.?\d*)px/.exec(n),A=i&&+i[1]||RB,o=0;if(n.indexOf("mono")>=0)o=A*e.length;else for(var s=0;s<e.length;s++){var l=kV[e[s]];o+=l==null?A:l*A}return{width:o}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}},yL=ha(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),mL=ha(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Xs=Object.prototype.toString,Ud=Array.prototype,NV=Ud.forEach,VV=Ud.filter,HB=Ud.slice,GV=Ud.map,Z1=(function(){}).constructor,Ac=Z1?Z1.prototype:null,OB="__proto__",KV=2311;function wL(){return KV++}function kB(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function mt(r){if(r==null||typeof r!="object")return r;var t=r,e=Xs.call(r);if(e==="[object Array]"){if(!_u(r)){t=[];for(var n=0,a=r.length;n<a;n++)t[n]=mt(r[n])}}else if(mL[e]){if(!_u(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var n=0,a=r.length;n<a;n++)t[n]=r[n]}}}else if(!yL[e]&&!_u(r)&&!Ms(r)){t={};for(var A in r)r.hasOwnProperty(A)&&A!==OB&&(t[A]=mt(r[A]))}return t}function Et(r,t,e){if(!yt(t)||!yt(r))return e?mt(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==OB){var a=r[n],i=t[n];yt(i)&&yt(a)&&!K(i)&&!K(a)&&!Ms(i)&&!Ms(a)&&!$1(i)&&!$1(a)&&!_u(i)&&!_u(a)?Et(a,i,e):(e||!(n in r))&&(r[n]=mt(t[n]))}return r}function NB(r,t){for(var e=r[0],n=1,a=r.length;n<a;n++)e=Et(e,r[n],t);return e}function V(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==OB&&(r[e]=t[e]);return r}function gt(r,t,e){for(var n=Ht(t),a=0;a<n.length;a++){var i=n[a];(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}return r}function Qt(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 zV(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function Fe(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),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else gt(r,t,e)}function sr(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function T(r,t,e){if(r&&t)if(r.forEach&&r.forEach===NV)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function Y(r,t,e){if(!r)return[];if(!t)return VB(r);if(r.map&&r.map===GV)return r.map(t,e);for(var n=[],a=0,i=r.length;a<i;a++)n.push(t.call(e,r[a],a,r));return n}function ha(r,t,e,n){if(r&&t){for(var a=0,i=r.length;a<i;a++)e=t.call(n,e,r[a],a,r);return e}}function Jt(r,t,e){if(!r)return[];if(!t)return VB(r);if(r.filter&&r.filter===VV)return r.filter(t,e);for(var n=[],a=0,i=r.length;a<i;a++)t.call(e,r[a],a,r)&&n.push(r[a]);return n}function WV(r,t,e){if(r&&t){for(var n=0,a=r.length;n<a;n++)if(t.call(e,r[n],n,r))return r[n]}}function Ht(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 XV(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(HB.call(arguments)))}}var it=Ac&&vt(Ac.bind)?Ac.call.bind(Ac.bind):XV;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(HB.call(arguments)))}}function K(r){return Array.isArray?Array.isArray(r):Xs.call(r)==="[object Array]"}function vt(r){return typeof r=="function"}function nt(r){return typeof r=="string"}function jm(r){return Xs.call(r)==="[object String]"}function Kt(r){return typeof r=="number"}function yt(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function $1(r){return!!yL[Xs.call(r)]}function Ur(r){return!!mL[Xs.call(r)]}function Ms(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Pd(r){return r.colorStops!=null}function YV(r){return r.image!=null}function ZV(r){return Xs.call(r)==="[object RegExp]"}function $u(r){return r!==r}function Ge(){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??t}function ua(r,t,e){return r??t??e}function VB(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return HB.apply(r,t)}function GB(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 Br(r,t){if(!r)throw new Error(t)}function Dn(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var BL="__ec_primitive__";function gv(r){r[BL]=!0}function _u(r){return r[BL]}var $V=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 Ht(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),_L=typeof Map=="function";function JV(){return _L?new Map:new $V}var qV=function(){function r(t){var e=K(t);this.data=JV();var n=this;t instanceof r?t.each(a):t&&T(t,a);function a(i,A){e?n.set(i,A):n.set(A,i)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,a){t.call(e,n,a)})},r.prototype.keys=function(){var t=this.data.keys();return _L?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function ft(r){return new qV(r)}function yv(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var a=r.length,n=0;n<t.length;n++)e[n+a]=t[n];return e}function Rd(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&V(e,t),e}function CL(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function st(r,t){return r.hasOwnProperty(t)}function Be(){}var Rh=180/Math.PI;function _o(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function vr(r,t){return r[0]=t[0],r[1]=t[1],r}function Ra(r){return[r[0],r[1]]}function jV(r,t,e){return r[0]=t,r[1]=e,r}function J1(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function t0(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function GA(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function e0(r){return Math.sqrt(tG(r))}function tG(r){return r[0]*r[0]+r[1]*r[1]}function Hh(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Ys(r,t){var e=e0(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function r0(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var xi=r0;function eG(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var jA=eG;function Oh(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 Ye(r,t,e){var n=t[0],a=t[1];return r[0]=e[0]*n+e[2]*a+e[4],r[1]=e[1]*n+e[3]*a+e[5],r}function bi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Ti(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Do=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),rG=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 Do(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,a=t.offsetY,i=n-this._x,A=a-this._y;this._x=n,this._y=a,e.drift(i,A,t),this.handler.dispatchToElement(new Do(e,t),"drag",t.event);var o=this.handler.findHover(n,a,e).target,s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Do(s,t),"dragleave",t.event),o&&o!==s&&this.handler.dispatchToElement(new Do(o,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Do(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Do(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),yn=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(a=n,n=e,e=null),!n||!t)return this;var A=this._$eventProcessor;e!=null&&A&&A.normalizeQuery&&(e=A.normalizeQuery(e)),i[t]||(i[t]=[]);for(var o=0;o<i[t].length;o++)if(i[t][o].h===n)return this;var s={h:n,query:e,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),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 a=[],i=0,A=n[t].length;i<A;i++)n[t][i].h!==e&&a.push(n[t][i]);n[t]=a}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 a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var A=e.length,o=a.length,s=0;s<o;s++){var l=a[s];if(!(i&&i.filter&&l.query!=null&&!i.filter(t,l.query)))switch(A){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return i&&i.afterTrigger&&i.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 a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var A=e.length,o=e[A-1],s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(A){case 0:u.h.call(o);break;case 1:u.h.call(o,e[0]);break;case 2:u.h.call(o,e[0],e[1]);break;default:u.h.apply(o,e.slice(1,A-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r}(),nG=Math.log(2);function n0(r,t,e,n,a,i){var A=n+"-"+a,o=r.length;if(i.hasOwnProperty(A))return i[A];if(t===1){var s=Math.round(Math.log((1<<o)-1&~a)/nG);return r[e][s]}for(var l=n|1<<e,u=e+1;n&1<<u;)u++;for(var f=0,c=0,h=0;c<o;c++){var v=1<<c;v&a||(f+=(h%2?-1:1)*r[e][c]*n0(r,t-1,u,l,a|v,i),h++)}return i[A]=f,f}function q1(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={},a=n0(e,8,0,0,0,n);if(a!==0){for(var i=[],A=0;A<8;A++)for(var o=0;o<8;o++)i[o]==null&&(i[o]=0),i[o]+=((A+o)%2?-1:1)*n0(e,7,A===0?1:0,1<<A,1<<o,n)/a*t[A];return function(s,l,u){var f=l*i[6]+u*i[7]+1;s[0]=(l*i[0]+u*i[1]+i[2])/f,s[1]=(l*i[3]+u*i[4]+i[5])/f}}}var j1="___zrEVENTSAVED",Xp=[];function aG(r,t,e,n,a){return a0(Xp,t,n,a,!0)&&a0(r,e,Xp[0],Xp[1])}function a0(r,t,e,n,a){if(t.getBoundingClientRect&&Ut.domSupported&&!SL(t)){var i=t[j1]||(t[j1]={}),A=iG(t,i),o=AG(A,i,a);if(o)return o(r,e,n),!0}return!1}function iG(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var A=document.createElement("div"),o=A.style,s=i%2,l=(i>>1)%2;o.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[s]+":0",a[l]+":0",n[1-s]+":auto",a[1-l]+":auto",""].join("!important;"),r.appendChild(A),e.push(A)}return e}function AG(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,A=[],o=[],s=!0,l=0;l<4;l++){var u=r[l].getBoundingClientRect(),f=2*l,c=u.left,h=u.top;A.push(c,h),s=s&&i&&c===i[f]&&h===i[f+1],o.push(r[l].offsetLeft,r[l].offsetTop)}return s&&a?a:(t.srcCoords=A,t[n]=e?q1(o,A):q1(A,o))}function SL(r){return r.nodeName.toUpperCase()==="CANVAS"}var oG=/([&<>"'])/g,sG={"&":"&","<":"<",">":">",'"':""","'":"'"};function Dr(r){return r==null?"":(r+"").replace(oG,function(t,e){return sG[e]})}var lG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yp=[],uG=Ut.browser.firefox&&+Ut.browser.version.split(".")[0]<39;function i0(r,t,e,n){return e=e||{},n?tS(r,t,e):uG&&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):tS(r,t,e),e}function tS(r,t,e){if(Ut.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(SL(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(a0(Yp,r,n,a)){e.zrX=Yp[0],e.zrY=Yp[1];return}}e.zrX=e.zrY=0}function KB(r){return r||window.event}function tn(r,t,e){if(t=KB(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var A=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];A&&i0(r,A,t,e)}else{i0(r,t,t,e);var i=fG(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&lG.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function fG(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function A0(r,t,e,n){r.addEventListener(t,e,n)}function cG(r,t,e,n){r.removeEventListener(t,e,n)}var Ka=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function eS(r){return r.which===2||r.which===3}var hG=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 a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},A=0,o=a.length;A<o;A++){var s=a[A],l=i0(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in Zp)if(Zp.hasOwnProperty(e)){var n=Zp[e](this._track,t);if(n)return n}},r}();function rS(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function vG(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Zp={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,a=(r[e-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=rS(n)/rS(a);!isFinite(i)&&(i=1),t.pinchScale=i;var A=vG(n);return t.pinchX=A[0],t.pinchY=A[1],{type:"pinch",target:r[0].target,event:t}}}}};function Wr(){return[1,0,0,1,0,0]}function Hd(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function zB(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 Ha(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],A=t[1]*e[2]+t[3]*e[3],o=t[0]*e[4]+t[2]*e[5]+t[4],s=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=A,r[4]=o,r[5]=s,r}function va(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 Co(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],A=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*(A-n[0])+u*(l-n[1])+n[0],r[5]=f*(l-n[1])-u*(A-n[0])+n[1],r}function WB(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function Zs(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],A=t[3],o=t[5],s=e*A-i*n;return s?(s=1/s,r[0]=A*s,r[1]=-i*s,r[2]=-n*s,r[3]=e*s,r[4]=(n*o-A*a)*s,r[5]=(i*a-e*o)*s,r):null}function dG(r){var t=Wr();return zB(t,r),t}var It=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,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}(),oc=Math.min,sc=Math.max,AA=new It,oA=new It,sA=new It,lA=new It,dl=new It,pl=new It,Dt=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=oc(t.x,this.x),n=oc(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=sc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=sc(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,a=t.height/e.height,i=Wr();return va(i,i,[-e.x,-e.y]),WB(i,i,[n,a]),va(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=n.x+n.width,A=n.y,o=n.y+n.height,s=t.x,l=t.x+t.width,u=t.y,f=t.y+t.height,c=!(i<s||l<a||o<u||f<A);if(e){var h=1/0,v=0,d=Math.abs(i-s),p=Math.abs(l-a),g=Math.abs(o-u),y=Math.abs(f-A),m=Math.min(d,p),w=Math.min(g,y);i<s||l<a?m>v&&(v=m,d<p?It.set(pl,-d,0):It.set(pl,p,0)):m<h&&(h=m,d<p?It.set(dl,d,0):It.set(dl,-p,0)),o<u||f<A?w>v&&(v=w,g<y?It.set(pl,0,-g):It.set(pl,0,y)):m<h&&(h=m,g<y?It.set(dl,0,g):It.set(dl,0,-y))}return e&&It.copy(e,c?dl:pl),c},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],A=n[4],o=n[5];t.x=e.x*a+A,t.y=e.y*i+o,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}AA.x=sA.x=e.x,AA.y=lA.y=e.y,oA.x=lA.x=e.x+e.width,oA.y=sA.y=e.y+e.height,AA.transform(n),lA.transform(n),oA.transform(n),sA.transform(n),t.x=oc(AA.x,oA.x,sA.x,lA.x),t.y=oc(AA.y,oA.y,sA.y,lA.y);var s=sc(AA.x,oA.x,sA.x,lA.x),l=sc(AA.y,oA.y,sA.y,lA.y);t.width=s-t.x,t.height=l-t.y},r}(),xL="silent";function pG(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:gG}}function gG(){Ka(this.event)}var yG=function(r){H(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}(yn),gl=function(){function r(t,e){this.x=t,this.y=e}return r}(),mG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$p=new Dt(0,0,0,0),bL=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this)||this;return o._hovered=new gl(0,0),o.storage=e,o.painter=n,o.painterRoot=i,o._pointerSize=A,a=a||new yG,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new rG(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(T(mG,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,a=e.zrY,i=TL(this,n,a),A=this._hovered,o=A.target;o&&!o.__zr&&(A=this.findHover(A.x,A.y),o=A.target);var s=this._hovered=i?new gl(n,a):this.findHover(n,a),l=s.target,u=this.proxy;u.setCursor&&u.setCursor(l?l.cursor:"default"),o&&l!==o&&this.dispatchToElement(A,"mouseout",e),this.dispatchToElement(s,"mousemove",e),l&&l!==o&&this.dispatchToElement(s,"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 gl(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.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,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var A="on"+n,o=pG(n,e,a);i&&(i[A]&&(o.cancelBubble=!!i[A].call(i,o)),i.trigger(n,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(n,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(s){typeof s[A]=="function"&&s[A].call(s,o),s.trigger&&s.trigger(n,o)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),A=new gl(e,n);if(nS(i,A,e,n,a),this._pointerSize&&!A.target){for(var o=[],s=this._pointerSize,l=s/2,u=new Dt(e-l,n-l,s,s),f=i.length-1;f>=0;f--){var c=i[f];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&($p.copy(c.getBoundingRect()),c.transform&&$p.applyTransform(c.transform),$p.intersect(u)&&o.push(c))}if(o.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,p=0;p<l;p+=h)for(var g=0;g<d;g+=v){var y=e+p*Math.cos(g),m=n+p*Math.sin(g);if(nS(o,A,y,m,a),A.target)return A}}return A},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new hG);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var A=i.type;e.gestureEvent=A;var o=new gl;o.target=i.target,this.dispatchToElement(o,A,i.event)}},t}(yn);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){bL.prototype[r]=function(t){var e=t.zrX,n=t.zrY,a=TL(this,e,n),i,A;if((r!=="mouseup"||!a)&&(i=this.findHover(e,n),A=i.target),r==="mousedown")this._downEl=A,this._downPoint=[t.zrX,t.zrY],this._upEl=A;else if(r==="mouseup")this._upEl=A;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||xi(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function wG(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var A=n.getClipPath();if(A&&!A.contain(t,e))return!1}n.silent&&(a=!0);var o=n.__hostTarget;n=o||n.parent}return a?xL:!0}return!1}function nS(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var A=r[i],o=void 0;if(A!==a&&!A.ignore&&(o=wG(A,e,n))&&(!t.topTarget&&(t.topTarget=A),o!==xL)){t.target=A;break}}}function TL(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var IL=32,yl=7;function BG(r){for(var t=0;r>=IL;)t|=r&1,r>>=1;return r+t}function aS(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a<e&&n(r[a],r[a-1])<0;)a++;_G(r,t,a)}else for(;a<e&&n(r[a],r[a-1])>=0;)a++;return a-t}function _G(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function iS(r,t,e,n,a){for(n===t&&n++;n<e;n++){for(var i=r[n],A=t,o=n,s;A<o;)s=A+o>>>1,a(i,r[s])<0?o=s:A=s+1;var l=n-A;switch(l){case 3:r[A+3]=r[A+2];case 2:r[A+2]=r[A+1];case 1:r[A+1]=r[A];break;default:for(;l>0;)r[A+l]=r[A+l-1],l--}r[A]=i}}function Jp(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])>0){for(o=n-a;s<o&&i(r,t[e+a+s])>0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}else{for(o=a+1;s<o&&i(r,t[e+a-s])<=0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o);var l=A;A=a-s,s=a-l}for(A++;A<s;){var u=A+(s-A>>>1);i(r,t[e+u])>0?A=u+1:s=u}return s}function qp(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])<0){for(o=a+1;s<o&&i(r,t[e+a-s])<0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o);var l=A;A=a-s,s=a-l}else{for(o=n-a;s<o&&i(r,t[e+a+s])>=0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}for(A++;A<s;){var u=A+(s-A>>>1);i(r,t[e+u])<0?s=u:A=u+1}return s}function CG(r,t){var e=yl,n,a,i=0,A=[];n=[],a=[];function o(h,v){n[i]=h,a[i]=v,i+=1}function s(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;u(h)}}function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,u(h)}}function u(h){var v=n[h],d=a[h],p=n[h+1],g=a[h+1];a[h]=d+g,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var y=qp(r[p],r,v,d,0,t);v+=y,d-=y,d!==0&&(g=Jp(r[v+d-1],r,p,g,g-1,t),g!==0&&(d<=g?f(v,d,p,g):c(v,d,p,g)))}function f(h,v,d,p){var g=0;for(g=0;g<v;g++)A[g]=r[h+g];var y=0,m=d,w=h;if(r[w++]=r[m++],--p===0){for(g=0;g<v;g++)r[w+g]=A[y+g];return}if(v===1){for(g=0;g<p;g++)r[w+g]=r[m+g];r[w+p]=A[y];return}for(var _=e,B,C,S;;){B=0,C=0,S=!1;do if(t(r[m],A[y])<0){if(r[w++]=r[m++],C++,B=0,--p===0){S=!0;break}}else if(r[w++]=A[y++],B++,C=0,--v===1){S=!0;break}while((B|C)<_);if(S)break;do{if(B=qp(r[m],A,y,v,0,t),B!==0){for(g=0;g<B;g++)r[w+g]=A[y+g];if(w+=B,y+=B,v-=B,v<=1){S=!0;break}}if(r[w++]=r[m++],--p===0){S=!0;break}if(C=Jp(A[y],r,m,p,0,t),C!==0){for(g=0;g<C;g++)r[w+g]=r[m+g];if(w+=C,m+=C,p-=C,p===0){S=!0;break}}if(r[w++]=A[y++],--v===1){S=!0;break}_--}while(B>=yl||C>=yl);if(S)break;_<0&&(_=0),_+=2}if(e=_,e<1&&(e=1),v===1){for(g=0;g<p;g++)r[w+g]=r[m+g];r[w+p]=A[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)r[w+g]=A[y+g]}}function c(h,v,d,p){var g=0;for(g=0;g<p;g++)A[g]=r[d+g];var y=h+v-1,m=p-1,w=d+p-1,_=0,B=0;if(r[w--]=r[y--],--v===0){for(_=w-(p-1),g=0;g<p;g++)r[_+g]=A[g];return}if(p===1){for(w-=v,y-=v,B=w+1,_=y+1,g=v-1;g>=0;g--)r[B+g]=r[_+g];r[w]=A[m];return}for(var C=e;;){var S=0,x=0,b=!1;do if(t(A[m],r[y])<0){if(r[w--]=r[y--],S++,x=0,--v===0){b=!0;break}}else if(r[w--]=A[m--],x++,S=0,--p===1){b=!0;break}while((S|x)<C);if(b)break;do{if(S=v-qp(A[m],r,h,v,v-1,t),S!==0){for(w-=S,y-=S,v-=S,B=w+1,_=y+1,g=S-1;g>=0;g--)r[B+g]=r[_+g];if(v===0){b=!0;break}}if(r[w--]=A[m--],--p===1){b=!0;break}if(x=p-Jp(r[y],A,0,p,p-1,t),x!==0){for(w-=x,m-=x,p-=x,B=w+1,_=m+1,g=0;g<x;g++)r[B+g]=A[_+g];if(p<=1){b=!0;break}}if(r[w--]=r[y--],--v===0){b=!0;break}C--}while(S>=yl||x>=yl);if(b)break;C<0&&(C=0),C+=2}if(e=C,e<1&&(e=1),p===1){for(w-=v,y-=v,B=w+1,_=y+1,g=v-1;g>=0;g--)r[B+g]=r[_+g];r[w]=A[m]}else{if(p===0)throw new Error;for(_=w-(p-1),g=0;g<p;g++)r[_+g]=A[g]}}return{mergeRuns:s,forceMergeRuns:l,pushRun:o}}function kh(r,t,e,n){e||(e=0),n||(n=r.length);var a=n-e;if(!(a<2)){var i=0;if(a<IL){i=aS(r,e,n,t),iS(r,e,n,e+i,t);return}var A=CG(r,t),o=BG(a);do{if(i=aS(r,e,n,t),i<o){var s=a;s>o&&(s=o),iS(r,e,e+s,e+i,t),i=s}A.pushRun(e,i),A.mergeRuns(),a-=i,e+=i}while(a!==0);A.forceMergeRuns()}}var Gr=1,$l=2,As=4,AS=!1;function jp(){AS||(AS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function oS(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var SG=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=oS}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,a=0,i=e.length;a<i;a++)this._updateAndAddDisplayable(e[a],null,t);n.length=this._displayListLen,kh(n,oS)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)e=null;else if(a){e?e=e.slice():e=[];for(var i=a,A=t;i;)i.parent=A,i.updateTransform(),e.push(i),A=i,i=i.getClipPath()}if(t.childrenRef){for(var o=t.childrenRef(),s=0;s<o.length;s++){var l=o[s];t.__dirty&&(l.__dirty|=Gr),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(jp(),u.z=0),isNaN(u.z2)&&(jp(),u.z2=0),isNaN(u.zlevel)&&(jp(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,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 a=Qt(this._roots,t);a>=0&&this._roots.splice(a,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}(),mv;mv=Ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Cu={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-Cu.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?Cu.bounceIn(r*2)*.5:Cu.bounceOut(r*2-1)*.5+.5}},lc=Math.pow,Ri=Math.sqrt,wv=1e-8,FL=1e-4,sS=Ri(3),uc=1/3,ra=_o(),An=_o(),Ss=_o();function Ii(r){return r>-wv&&r<wv}function EL(r){return r>wv||r<-wv}function Me(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function lS(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function Bv(r,t,e,n,a,i){var A=n+3*(t-e)-r,o=3*(e-t*2+r),s=3*(t-r),l=r-a,u=o*o-3*A*s,f=o*s-9*A*l,c=s*s-3*o*l,h=0;if(Ii(u)&&Ii(f))if(Ii(o))i[0]=0;else{var v=-s/o;v>=0&&v<=1&&(i[h++]=v)}else{var d=f*f-4*u*c;if(Ii(d)){var p=f/u,v=-o/A+p,g=-p/2;v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g)}else if(d>0){var y=Ri(d),m=u*o+1.5*A*(-f+y),w=u*o+1.5*A*(-f-y);m<0?m=-lc(-m,uc):m=lc(m,uc),w<0?w=-lc(-w,uc):w=lc(w,uc);var v=(-o-(m+w))/(3*A);v>=0&&v<=1&&(i[h++]=v)}else{var _=(2*u*o-3*A*f)/(2*Ri(u*u*u)),B=Math.acos(_)/3,C=Ri(u),S=Math.cos(B),v=(-o-2*C*S)/(3*A),g=(-o+C*(S+sS*Math.sin(B)))/(3*A),x=(-o+C*(S-sS*Math.sin(B)))/(3*A);v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g),x>=0&&x<=1&&(i[h++]=x)}}return h}function DL(r,t,e,n,a){var i=6*e-12*t+6*r,A=9*t+3*n-3*r-9*e,o=3*t-3*r,s=0;if(Ii(A)){if(EL(i)){var l=-o/i;l>=0&&l<=1&&(a[s++]=l)}}else{var u=i*i-4*A*o;if(Ii(u))a[0]=-i/(2*A);else if(u>0){var f=Ri(u),l=(-i+f)/(2*A),c=(-i-f)/(2*A);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function Wi(r,t,e,n,a,i){var A=(t-r)*a+r,o=(e-t)*a+t,s=(n-e)*a+e,l=(o-A)*a+A,u=(s-o)*a+o,f=(u-l)*a+l;i[0]=r,i[1]=A,i[2]=l,i[3]=f,i[4]=f,i[5]=u,i[6]=s,i[7]=n}function QL(r,t,e,n,a,i,A,o,s,l,u){var f,c=.005,h=1/0,v,d,p,g;ra[0]=s,ra[1]=l;for(var y=0;y<1;y+=.05)An[0]=Me(r,e,a,A,y),An[1]=Me(t,n,i,o,y),p=jA(ra,An),p<h&&(f=y,h=p);h=1/0;for(var m=0;m<32&&!(c<FL);m++)v=f-c,d=f+c,An[0]=Me(r,e,a,A,v),An[1]=Me(t,n,i,o,v),p=jA(An,ra),v>=0&&p<h?(f=v,h=p):(Ss[0]=Me(r,e,a,A,d),Ss[1]=Me(t,n,i,o,d),g=jA(Ss,ra),d<=1&&g<h?(f=d,h=g):c*=.5);return u&&(u[0]=Me(r,e,a,A,f),u[1]=Me(t,n,i,o,f)),Ri(h)}function xG(r,t,e,n,a,i,A,o,s){for(var l=r,u=t,f=0,c=1/s,h=1;h<=s;h++){var v=h*c,d=Me(r,e,a,A,v),p=Me(t,n,i,o,v),g=d-l,y=p-u;f+=Math.sqrt(g*g+y*y),l=d,u=p}return f}function Ve(r,t,e,n){var a=1-n;return a*(a*r+2*n*t)+n*n*e}function o0(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function bG(r,t,e,n,a){var i=r-2*t+e,A=2*(t-r),o=r-n,s=0;if(Ii(i)){if(EL(A)){var l=-o/A;l>=0&&l<=1&&(a[s++]=l)}}else{var u=A*A-4*i*o;if(Ii(u)){var l=-A/(2*i);l>=0&&l<=1&&(a[s++]=l)}else if(u>0){var f=Ri(u),l=(-A+f)/(2*i),c=(-A-f)/(2*i);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function LL(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Ju(r,t,e,n,a){var i=(t-r)*n+r,A=(e-t)*n+t,o=(A-i)*n+i;a[0]=r,a[1]=i,a[2]=o,a[3]=o,a[4]=A,a[5]=e}function ML(r,t,e,n,a,i,A,o,s){var l,u=.005,f=1/0;ra[0]=A,ra[1]=o;for(var c=0;c<1;c+=.05){An[0]=Ve(r,e,a,c),An[1]=Ve(t,n,i,c);var h=jA(ra,An);h<f&&(l=c,f=h)}f=1/0;for(var v=0;v<32&&!(u<FL);v++){var d=l-u,p=l+u;An[0]=Ve(r,e,a,d),An[1]=Ve(t,n,i,d);var h=jA(An,ra);if(d>=0&&h<f)l=d,f=h;else{Ss[0]=Ve(r,e,a,p),Ss[1]=Ve(t,n,i,p);var g=jA(Ss,ra);p<=1&&g<f?(l=p,f=g):u*=.5}}return s&&(s[0]=Ve(r,e,a,l),s[1]=Ve(t,n,i,l)),Ri(f)}function TG(r,t,e,n,a,i,A){for(var o=r,s=t,l=0,u=1/A,f=1;f<=A;f++){var c=f*u,h=Ve(r,e,a,c),v=Ve(t,n,i,c),d=h-o,p=v-s;l+=Math.sqrt(d*d+p*p),o=h,s=v}return l}var IG=/cubic-bezier\(([0-9,\.e ]+)\)/;function XB(r){var t=r&&IG.exec(r);if(t){var e=t[1].split(","),n=+Dn(e[0]),a=+Dn(e[1]),i=+Dn(e[2]),A=+Dn(e[3]);if(isNaN(n+a+i+A))return;var o=[];return function(s){return s<=0?0:s>=1?1:Bv(0,n,i,1,s,o)&&Me(0,a,A,1,o[0])}}}var FG=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||Be,this.ondestroy=t.ondestroy||Be,this.onrestart=t.onrestart||Be,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,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var A=this.easingFunc,o=A?A(i):i;if(this.onframe(o),i===1)if(this.loop){var s=a%n;this._startTime=t-s,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:Cu[t]||XB(t)},r}(),UL=function(){function r(t){this.value=t}return r}(),EG=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new UL(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}(),Ef=function(){function r(t){this._list=new EG,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var A=n.len(),o=this._lastRemovedEntry;if(A>=this._maxSize&&A>0){var s=n.head;n.remove(s),delete a[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new UL(e),o.key=t,n.insertEntry(o),a[t]=o}return i},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}(),uS={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 Mn(r){return r=Math.round(r),r<0?0:r>255?255:r}function DG(r){return r=Math.round(r),r<0?0:r>360?360:r}function qu(r){return r<0?0:r>1?1:r}function tg(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Mn(parseFloat(t)/100*255):Mn(parseInt(t,10))}function to(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?qu(parseFloat(t)/100):qu(parseFloat(t))}function eg(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 Fi(r,t,e){return r+(t-r)*e}function jr(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function s0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var PL=new Ef(20),fc=null;function Qo(r,t){fc&&s0(fc,t),fc=PL.put(r,fc||t.slice())}function Xr(r,t){if(r){t=t||[];var e=PL.get(r);if(e)return s0(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in uS)return s0(t,uS[n]),Qo(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){jr(t,0,0,0,1);return}return jr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Qo(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){jr(t,0,0,0,1);return}return jr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Qo(r,t),t}return}var A=n.indexOf("("),o=n.indexOf(")");if(A!==-1&&o+1===a){var s=n.substr(0,A),l=n.substr(A+1,o-(A+1)).split(","),u=1;switch(s){case"rgba":if(l.length!==4)return l.length===3?jr(t,+l[0],+l[1],+l[2],1):jr(t,0,0,0,1);u=to(l.pop());case"rgb":if(l.length>=3)return jr(t,tg(l[0]),tg(l[1]),tg(l[2]),l.length===3?u:to(l[3])),Qo(r,t),t;jr(t,0,0,0,1);return;case"hsla":if(l.length!==4){jr(t,0,0,0,1);return}return l[3]=to(l[3]),l0(l,t),Qo(r,t),t;case"hsl":if(l.length!==3){jr(t,0,0,0,1);return}return l0(l,t),Qo(r,t),t;default:return}}jr(t,0,0,0,1)}}function l0(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=to(r[1]),a=to(r[2]),i=a<=.5?a*(n+1):a+n-a*n,A=a*2-i;return t=t||[],jr(t,Mn(eg(A,i,e+1/3)*255),Mn(eg(A,i,e)*255),Mn(eg(A,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function QG(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),A=i-a,o=(i+a)/2,s,l;if(A===0)s=0,l=0;else{o<.5?l=A/(i+a):l=A/(2-i-a);var u=((i-t)/6+A/2)/A,f=((i-e)/6+A/2)/A,c=((i-n)/6+A/2)/A;t===i?s=c-f:e===i?s=1/3+u-c:n===i&&(s=2/3+f-u),s<0&&(s+=1),s>1&&(s-=1)}var h=[s*360,l,o];return r[3]!=null&&h.push(r[3]),h}}function u0(r,t){var e=Xr(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 Oa(e,e.length===4?"rgba":"rgb")}}function rg(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=t[a],o=t[i],s=n-a;return e[0]=Mn(Fi(A[0],o[0],s)),e[1]=Mn(Fi(A[1],o[1],s)),e[2]=Mn(Fi(A[2],o[2],s)),e[3]=qu(Fi(A[3],o[3],s)),e}}function LG(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=Xr(t[a]),o=Xr(t[i]),s=n-a,l=Oa([Mn(Fi(A[0],o[0],s)),Mn(Fi(A[1],o[1],s)),Mn(Fi(A[2],o[2],s)),qu(Fi(A[3],o[3],s))],"rgba");return e?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}function Su(r,t,e,n){var a=Xr(r);if(r)return a=QG(a),t!=null&&(a[0]=DG(t)),e!=null&&(a[1]=to(e)),n!=null&&(a[2]=to(n)),Oa(l0(a),"rgba")}function _v(r,t){var e=Xr(r);if(e&&t!=null)return e[3]=qu(t),Oa(e,"rgba")}function Oa(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 Cv(r,t){var e=Xr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var fS=new Ef(100);function f0(r){if(nt(r)){var t=fS.get(r);return t||(t=u0(r,-.1),fS.put(r,t)),t}else if(Pd(r)){var e=V({},r);return e.colorStops=Y(r.colorStops,function(n){return{offset:n.offset,color:u0(n.color,-.1)}}),e}return r}var Sv=Math.round;function ju(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Xr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var cS=1e-4;function Ei(r){return r<cS&&r>-cS}function cc(r){return Sv(r*1e3)/1e3}function c0(r){return Sv(r*1e4)/1e4}function MG(r){return"matrix("+cc(r[0])+","+cc(r[1])+","+cc(r[2])+","+cc(r[3])+","+c0(r[4])+","+c0(r[5])+")"}var UG={left:"start",right:"end",center:"middle",middle:"middle"};function PG(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function RG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function HG(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 RL(r){return r&&!!r.image}function OG(r){return r&&!!r.svgElement}function YB(r){return RL(r)||OG(r)}function HL(r){return r.type==="linear"}function OL(r){return r.type==="radial"}function kL(r){return r&&(r.type==="linear"||r.type==="radial")}function Od(r){return"url(#"+r+")"}function NL(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 VL(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Rh,a=xt(r.scaleX,1),i=xt(r.scaleY,1),A=r.skewX||0,o=r.skewY||0,s=[];return(t||e)&&s.push("translate("+t+"px,"+e+"px)"),n&&s.push("rotate("+n+")"),(a!==1||i!==1)&&s.push("scale("+a+","+i+")"),(A||o)&&s.push("skew("+Sv(A*Rh)+"deg, "+Sv(o*Rh)+"deg)"),s.join(" ")}var kG=function(){return Ut.hasGlobalWindow&&vt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),h0=Array.prototype.slice;function Da(r,t,e){return(t-r)*e+r}function ng(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=Da(t[i],e[i],n);return r}function NG(r,t,e,n){for(var a=t.length,i=a&&t[0].length,A=0;A<a;A++){r[A]||(r[A]=[]);for(var o=0;o<i;o++)r[A][o]=Da(t[A][o],e[A][o],n)}return r}function hc(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=t[i]+e[i]*n;return r}function hS(r,t,e,n){for(var a=t.length,i=a&&t[0].length,A=0;A<a;A++){r[A]||(r[A]=[]);for(var o=0;o<i;o++)r[A][o]=t[A][o]+e[A][o]*n}return r}function VG(r,t){for(var e=r.length,n=t.length,a=e>n?t:r,i=Math.min(e,n),A=a[i-1]||{color:[0,0,0,0],offset:0},o=i;o<Math.max(e,n);o++)a.push({offset:A.offset,color:A.color.slice()})}function GG(r,t,e){var n=r,a=t;if(!(!n.push||!a.push)){var i=n.length,A=a.length;if(i!==A){var o=i>A;if(o)n.length=A;else for(var s=i;s<A;s++)n.push(e===1?a[s]:h0.call(a[s]))}for(var l=n[0]&&n[0].length,s=0;s<n.length;s++)if(e===1)isNaN(n[s])&&(n[s]=a[s]);else for(var u=0;u<l;u++)isNaN(n[s][u])&&(n[s][u]=a[s][u])}}function xu(r){if(sr(r)){var t=r.length;if(sr(r[0])){for(var e=[],n=0;n<t;n++)e.push(h0.call(r[n]));return e}return h0.call(r)}return r}function Nh(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 KG(r){return sr(r&&r[0])?2:1}var vc=0,Vh=1,GL=2,Jl=3,v0=4,d0=5,vS=6;function dS(r){return r===v0||r===d0}function dc(r){return r===Vh||r===GL}var ml=[0,0,0,0],zG=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 a=this.keyframes,i=a.length,A=!1,o=vS,s=e;if(sr(e)){var l=KG(e);o=l,(l===1&&!Kt(e[0])||l===2&&!Kt(e[0][0]))&&(A=!0)}else if(Kt(e)&&!$u(e))o=vc;else if(nt(e))if(!isNaN(+e))o=vc;else{var u=Xr(e);u&&(s=u,o=Jl)}else if(Pd(e)){var f=V({},s);f.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:Xr(h.color)}}),HL(e)?o=v0:OL(e)&&(o=d0),s=f}i===0?this.valType=o:(o!==this.valType||o===vS)&&(A=!0),this.discrete=this.discrete||A;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=vt(n)?n:Cu[n]||XB(n)),a.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(d,p){return d.time-p.time});for(var a=this.valType,i=n.length,A=n[i-1],o=this.discrete,s=dc(a),l=dS(a),u=0;u<i;u++){var f=n[u],c=f.value,h=A.value;f.percent=f.time/t,o||(s&&u!==i-1?GG(c,h,a):l&&VG(c.colorStops,h.colorStops))}if(!o&&a!==d0&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var v=n[0].value,u=0;u<i;u++)a===vc?n[u].additiveValue=n[u].value-v:a===Jl?n[u].additiveValue=hc([],n[u].value,v,-1):dc(a)&&(n[u].additiveValue=a===Vh?hc([],n[u].value,v,-1):hS([],n[u].value,v,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,A=this.keyframes,o=A.length,s=this.propName,l=i===Jl,u,f=this._lastFr,c=Math.min,h,v;if(o===1)h=v=A[0];else{if(e<0)u=0;else if(e<this._lastFrP){var d=c(f+1,o-1);for(u=d;u>=0&&!(A[u].percent<=e);u--);u=c(u,o-2)}else{for(u=f;u<o&&!(A[u].percent>e);u++);u=c(u-1,o-2)}v=A[u+1],h=A[u]}if(h&&v){this._lastFr=u,this._lastFrP=e;var p=v.percent-h.percent,g=p===0?1:c((e-h.percent)/p,1);v.easingFunc&&(g=v.easingFunc(g));var y=n?this._additiveValue:l?ml:t[s];if((dc(i)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[s]=g<1?h.rawValue:v.rawValue;else if(dc(i))i===Vh?ng(y,h[a],v[a],g):NG(y,h[a],v[a],g);else if(dS(i)){var m=h[a],w=v[a],_=i===v0;t[s]={type:_?"linear":"radial",x:Da(m.x,w.x,g),y:Da(m.y,w.y,g),colorStops:Y(m.colorStops,function(C,S){var x=w.colorStops[S];return{offset:Da(C.offset,x.offset,g),color:Nh(ng([],C.color,x.color,g))}}),global:w.global},_?(t[s].x2=Da(m.x2,w.x2,g),t[s].y2=Da(m.y2,w.y2,g)):t[s].r=Da(m.r,w.r,g)}else if(l)ng(y,h[a],v[a],g),n||(t[s]=Nh(y));else{var B=Da(h[a],v[a],g);n?this._additiveValue=B:t[s]=B}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===vc?t[n]=t[n]+a:e===Jl?(Xr(t[n],ml),hc(ml,ml,a,1),t[n]=Nh(ml)):e===Vh?hc(t[n],t[n],a,1):e===GL&&hS(t[n],t[n],a,1)},r}(),ZB=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){kB("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,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,Ht(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,A=0;A<n.length;A++){var o=n[A],s=i[o];if(!s){s=i[o]=new zG(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var f=u.keyframes,c=f[f.length-1];l=c&&c.value,u.valType===Jl&&l&&(l=Nh(l))}else l=this._target[o];if(l==null)continue;t>0&&s.addKeyframe(0,xu(l),a),this._trackKeys.push(o)}s.addKeyframe(t,xu(e[o]),a)}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 a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var A=this._trackKeys[i],o=this._tracks[A],s=this._getAdditiveTrack(A),l=o.keyframes,u=l.length;if(o.prepare(a,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var f=l[u-1];f&&(e._target[o.propName]=f.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var c=new FG({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){e._started=2;var v=e._additiveAnimators;if(v){for(var d=!1,p=0;p<v.length;p++)if(v[p]._clip){d=!0;break}d||(e._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(e._target,h);var g=e._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](e._target,h)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return Y(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,a=this._trackKeys,i=0;i<t.length;i++){var A=n[t[i]];A&&!A.isFinished()&&(e?A.step(this._target,1):this._started===1&&A.step(this._target,0),A.setFinished())}for(var o=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var a=0;a<e.length;a++){var i=e[a],A=this._tracks[i];if(!(!A||A.isFinished())){var o=A.keyframes,s=o[n?0:o.length-1];s&&(t[i]=xu(s.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Ht(t);for(var n=0;n<e.length;n++){var a=e[n],i=this._tracks[a];if(i){var A=i.keyframes;if(A.length>1){var o=A.pop();i.addKeyframe(o.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function vs(){return new Date().getTime()}var WG=function(r){H(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,a=e.next;n?n.next=a:this._head=a,a?a.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=vs()-this._pausedTime,a=n-this._time,i=this._head;i;){var A=i.next,o=i.step(n,a);o&&(i.ondestroy(),this.removeClip(i)),i=A}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(mv(n),!e._paused&&e.update())}mv(n)},t.prototype.start=function(){this._running||(this._time=vs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=vs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=vs()-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 a=new ZB(e,n.loop);return this.addAnimator(a),a},t}(yn),XG=300,ag=Ut.domSupported,ig=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=Y(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),pS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},gS=!1;function p0(r){var t=r.pointerType;return t==="pen"||t==="touch"}function YG(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 Ag(r){r&&(r.zrByTouch=!0)}function ZG(r,t){return tn(r.dom,new $G(r,t),!0)}function KL(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 $G=function(){function r(t,e){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),bn={mousedown:function(r){r=tn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=tn(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=tn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=tn(this.dom,r);var t=r.toElement||r.relatedTarget;KL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){gS=!0,r=tn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){gS||(r=tn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=tn(this.dom,r),Ag(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),bn.mousemove.call(this,r),bn.mousedown.call(this,r)},touchmove:function(r){r=tn(this.dom,r),Ag(r),this.handler.processGesture(r,"change"),bn.mousemove.call(this,r)},touchend:function(r){r=tn(this.dom,r),Ag(r),this.handler.processGesture(r,"end"),bn.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<XG&&bn.click.call(this,r)},pointerdown:function(r){bn.mousedown.call(this,r)},pointermove:function(r){p0(r)||bn.mousemove.call(this,r)},pointerup:function(r){bn.mouseup.call(this,r)},pointerout:function(r){p0(r)||bn.mouseout.call(this,r)}};T(["click","dblclick","contextmenu"],function(r){bn[r]=function(t){t=tn(this.dom,t),this.trigger(r,t)}});var g0={pointermove:function(r){p0(r)||g0.mousemove.call(this,r)},pointerup:function(r){g0.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 JG(r,t){var e=t.domHandlers;Ut.pointerEventsSupported?T(ig.pointer,function(n){Gh(t,n,function(a){e[n].call(r,a)})}):(Ut.touchEventsSupported&&T(ig.touch,function(n){Gh(t,n,function(a){e[n].call(r,a),YG(t)})}),T(ig.mouse,function(n){Gh(t,n,function(a){a=KB(a),t.touching||e[n].call(r,a)})}))}function qG(r,t){Ut.pointerEventsSupported?T(pS.pointer,e):Ut.touchEventsSupported||T(pS.mouse,e);function e(n){function a(i){i=KB(i),KL(r,i.target)||(i=ZG(r,i),t.domHandlers[n].call(r,i))}Gh(t,n,a,{capture:!0})}}function Gh(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,A0(r.domTarget,t,e,n)}function og(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&cG(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var yS=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),jG=function(r){H(t,r);function t(e,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new yS(e,bn),ag&&(a._globalHandlerScope=new yS(document,g0)),JG(a,a._localHandlerScope),a}return t.prototype.dispose=function(){og(this._localHandlerScope),ag&&og(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,ag&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?qG(this,n):og(n)}},t}(yn),zL=1;Ut.hasGlobalWindow&&(zL=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xv=zL,y0=.4,m0="#333",w0="#ccc",tK="#eee",mS=Hd,wS=5e-5;function uA(r){return r>wS||r<-wS}var fA=[],Lo=[],sg=Wr(),lg=Math.abs,La=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 uA(this.rotation)||uA(this.x)||uA(this.y)||uA(this.scaleX-1)||uA(this.scaleY-1)||uA(this.skewX)||uA(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(mS(n),this.invTransform=null);return}n=n||Wr(),e?this.getLocalTransform(n):mS(n),t&&(e?Ha(n,t,n):zB(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(fA);var n=fA[0]<0?-1:1,a=fA[1]<0?-1:1,i=((fA[0]-n)*e+n)/fA[0]||0,A=((fA[1]-a)*e+a)/fA[1]||0;t[0]*=i,t[1]*=i,t[2]*=A,t[3]*=A}this.invTransform=this.invTransform||Wr(),Zs(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],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,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||Wr(),Ha(Lo,t.invTransform,e),e=Lo);var n=this.originX,a=this.originY;(n||a)&&(sg[4]=n,sg[5]=a,Ha(Lo,e,sg),Lo[4]-=n,Lo[5]-=a,e=Lo),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],a=this.invTransform;return a&&Ye(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&Ye(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&lg(t[0]-1)>1e-10&&lg(t[3]-1)>1e-10?Math.sqrt(lg(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){WL(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,A=t.scaleY,o=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,f=t.y,c=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||o||s){var v=n+o,d=a+s;e[4]=-v*i-c*d*A,e[5]=-d*A-h*v*i}else e[4]=e[5]=0;return e[0]=i,e[3]=A,e[1]=h*i,e[2]=c*A,l&&Co(e,e,l),e[4]+=n+u,e[5]+=a+f,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}(),da=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function WL(r,t){for(var e=0;e<da.length;e++){var n=da[e];r[n]=t[n]}}var BS={};function Yr(r,t){t=t||Ki;var e=BS[t];e||(e=BS[t]=new Ef(500));var n=e.get(r);return n==null&&(n=zi.measureText(r,t).width,e.put(r,n)),n}function _S(r,t,e,n){var a=Yr(r,t),i=kd(t),A=ql(0,a,e),o=os(0,i,n),s=new Dt(A,o,a,i);return s}function Df(r,t,e,n){var a=((r||"")+"").split(`
|
||
`),i=a.length;if(i===1)return _S(a[0],t,e,n);for(var A=new Dt(0,0,0,0),o=0;o<a.length;o++){var s=_S(a[o],t,e,n);o===0?A.copy(s):A.union(s)}return A}function ql(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function os(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function kd(r){return Yr("国",r)}function Rn(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function bv(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,A=e.width,o=i/2,s=e.x,l=e.y,u="left",f="top";if(n instanceof Array)s+=Rn(n[0],e.width),l+=Rn(n[1],e.height),u=null,f=null;else switch(n){case"left":s-=a,l+=o,u="right",f="middle";break;case"right":s+=a+A,l+=o,f="middle";break;case"top":s+=A/2,l-=a,u="center",f="bottom";break;case"bottom":s+=A/2,l+=i+a,u="center";break;case"inside":s+=A/2,l+=o,u="center",f="middle";break;case"insideLeft":s+=a,l+=o,f="middle";break;case"insideRight":s+=A-a,l+=o,u="right",f="middle";break;case"insideTop":s+=A/2,l+=a,u="center";break;case"insideBottom":s+=A/2,l+=i-a,u="center",f="bottom";break;case"insideTopLeft":s+=a,l+=a;break;case"insideTopRight":s+=A-a,l+=a,u="right";break;case"insideBottomLeft":s+=a,l+=i-a,f="bottom";break;case"insideBottomRight":s+=A-a,l+=i-a,u="right",f="bottom";break}return r=r||{},r.x=s,r.y=l,r.align=u,r.verticalAlign=f,r}var ug="__zr_normal__",fg=da.concat(["ignore"]),eK=ha(da,function(r,t){return r[t]=!0,r},{ignore:!1}),Mo={},rK=new Dt(0,0,0,0),Nd=function(){function r(t){this.id=wL(),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 a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[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,a=n.local,i=e.innerTransformable,A=void 0,o=void 0,s=!1;i.parent=a?this:null;var l=!1;if(i.copyTransform(e),n.position!=null){var u=rK;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),a||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mo,n,u):bv(Mo,n,u),i.x=Mo.x,i.y=Mo.y,A=Mo.align,o=Mo.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var c=void 0,h=void 0;f==="center"?(c=u.width*.5,h=u.height*.5):(c=Rn(f[0],u.width),h=Rn(f[1],u.height)),l=!0,i.originX=-i.x+c+(a?0:u.x),i.originY=-i.y+h+(a?0:u.y)}}n.rotation!=null&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],l||(i.originX=-v[0],i.originY=-v[1]));var d=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),m=!0)):(g=n.outsideFill,y=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),m=!0)),g=g||"#000",(g!==p.fill||y!==p.stroke||m!==p.autoStroke||A!==p.align||o!==p.verticalAlign)&&(s=!0,p.fill=g,p.stroke=y,p.autoStroke=m,p.align=A,p.verticalAlign=o,e.setDefaultTextStyle(p)),e.__dirty|=Gr,s&&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()?w0:m0},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Xr(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),A=0;A<3;A++)n[A]=n[A]*a+(i?0:255)*(1-a);return n[3]=1,Oa(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||{},V(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,a=Ht(n),i=0;i<a.length;i++){var A=a[i];this.attrKV(A,t[A])}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 a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==ug)){var A=a.targetName,o=A?e[A]:e;a.saveTo(o)}}},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,fg)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(ug,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===ug,A=this.hasState();if(!(!A&&i)){var o=this.currentStates,s=this.stateTransition;if(!(Qt(o,t)>=0&&(e||o.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!i){kB("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||a);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var f=this._textContent,c=this._textGuide;return f&&f.useState(t,e,n,u),c&&c.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Gr),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,A=t.length,o=A===i.length;if(o){for(var s=0;s<A;s++)if(t[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<A;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&a.push(u)}var f=a[A-1],c=!!(f&&f.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!e&&!this.__inHover&&v&&v.duration>0,v);var d=this._textContent,p=this._textGuide;d&&d.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Gr)}},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=Qt(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 a=this.currentStates.slice(),i=Qt(a,t),A=Qt(a,e)>=0;i>=0?A?a.splice(i,1):a[i]=e:n&&!A&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a<t.length;a++){var i=t[a];V(e,i),i.textConfig&&(n=n||{},V(n,i.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,a,i,A){var o=!(e&&a);e&&e.textConfig?(this.textConfig=V({},a?this.textConfig:n.textConfig),V(this.textConfig,e.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<fg.length;u++){var f=fg[u],c=i&&eK[f];e&&e[f]!=null?c?(l=!0,s[f]=e[f]):this[f]=e[f]:o&&n[f]!=null&&(c?(l=!0,s[f]=n[f]):this[f]=n[f])}if(!i)for(var u=0;u<this.animators.length;u++){var h=this.animators[u],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(e||n)[v]:e||n)}l&&this._transitionState(t,s,A)},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 La,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),V(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|=Gr;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 a=t?this[t]:this,i=new ZB(a,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(e)}).done(function(){var i=a.animators,A=Qt(i,t);A>=0&&i.splice(A,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,a=n.length,i=[],A=0;A<a;A++){var o=n[A];!t||t===o.scope?o.stop(e):i.push(o)}return this.animators=i,this},r.prototype.animateTo=function(t,e,n){cg(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){cg(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,a){for(var i=cg(this,e,n,a),A=0;A<i.length;A++)i[A].__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=Gr;function e(n,a,i,A){Object.defineProperty(t,n,{get:function(){if(!this[a]){var s=this[a]=[];o(this,s)}return this[a]},set:function(s){this[i]=s[0],this[A]=s[1],this[a]=s,o(this,s)}});function o(s,l){Object.defineProperty(l,0,{get:function(){return s[i]},set:function(u){s[i]=u}}),Object.defineProperty(l,1,{get:function(){return s[A]},set:function(u){s[A]=u}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();Fe(Nd,yn);Fe(Nd,La);function cg(r,t,e,n,a){e=e||{};var i=[];XL(r,"",r,t,e,n,i,a);var A=i.length,o=!1,s=e.done,l=e.aborted,u=function(){o=!0,A--,A<=0&&(o?s&&s():l&&l())},f=function(){A--,A<=0&&(o?s&&s():l&&l())};A||s&&s(),i.length>0&&e.during&&i[0].during(function(v,d){e.during(d)});for(var c=0;c<i.length;c++){var h=i[c];u&&h.done(u),f&&h.aborted(f),e.force&&h.duration(e.duration),h.start(e.easing)}return i}function hg(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function nK(r){return sr(r[0])}function aK(r,t,e){if(sr(t[e]))if(sr(r[e])||(r[e]=[]),Ur(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),hg(r[e],t[e],n))}else{var a=t[e],i=r[e],A=a.length;if(nK(a))for(var o=a[0].length,s=0;s<A;s++)i[s]?hg(i[s],a[s],o):i[s]=Array.prototype.slice.call(a[s]);else hg(i,a,A);i.length=a.length}else r[e]=t[e]}function iK(r,t){return r===t||sr(r)&&sr(t)&&AK(r,t)}function AK(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 XL(r,t,e,n,a,i,A,o){for(var s=Ht(n),l=a.duration,u=a.delay,f=a.additive,c=a.setToFinal,h=!yt(i),v=r.animators,d=[],p=0;p<s.length;p++){var g=s[p],y=n[g];if(y!=null&&e[g]!=null&&(h||i[g]))if(yt(y)&&!sr(y)&&!Pd(y)){if(t){o||(e[g]=y,r.updateDuringAnimation(t));continue}XL(r,g,e[g],y,a,i&&i[g],A,o)}else d.push(g);else o||(e[g]=y,r.updateDuringAnimation(t),d.push(g))}var m=d.length;if(!f&&m)for(var w=0;w<v.length;w++){var _=v[w];if(_.targetName===t){var B=_.stopTracks(d);if(B){var C=Qt(v,_);v.splice(C,1)}}}if(a.force||(d=Jt(d,function(I){return!iK(n[I],e[I])}),m=d.length),m>0||a.force&&!A.length){var S=void 0,x=void 0,b=void 0;if(o){x={},c&&(S={});for(var w=0;w<m;w++){var g=d[w];x[g]=e[g],c?S[g]=n[g]:e[g]=n[g]}}else if(c){b={};for(var w=0;w<m;w++){var g=d[w];b[g]=xu(e[g]),aK(e,n,g)}}var _=new ZB(e,!1,!1,f?Jt(v,function(F){return F.targetName===t}):null);_.targetName=t,a.scope&&(_.scope=a.scope),c&&S&&_.whenWithKeys(0,S,d),b&&_.whenWithKeys(0,b,d),_.whenWithKeys(l??500,o?x:n,d).delay(u||0),r.addAnimator(_,t),A.push(_)}}var _t=function(r){H(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,a=0;a<n.length;a++)if(n[a].name===e)return n[a]},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 a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=Qt(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var A=this.__zr;A&&i.removeSelfFromZr(A),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,a=this._children,i=Qt(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a<e.length;a++){var i=e[a];n&&i.removeSelfFromZr(n),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var a=this._children,i=0;i<a.length;i++){var A=a[i];e.call(n,A,i)}return this},t.prototype.traverse=function(e,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],A=e.call(n,i);i.isGroup&&!A&&i.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 a=this._children[n];a.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new Dt(0,0,0,0),a=e||this._children,i=[],A=null,o=0;o<a.length;o++){var s=a[o];if(!(s.ignore||s.invisible)){var l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(Dt.applyTransform(n,l,u),A=A||n.clone(),A.union(n)):(A=A||l.clone(),A.union(l))}}return A||n},t}(Nd);_t.prototype.type="group";/*!
|
||
* 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 Kh={},YL={};function oK(r){delete YL[r]}function sK(r){if(!r)return!1;if(typeof r=="string")return Cv(r,1)<y0;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,a=0;a<n;a++)e+=Cv(t[a].color,1);return e/=n,e<y0}return!1}var lK=function(){function r(t,e,n){var a=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 i=new SG,A=n.renderer||"canvas";Kh[A]||(A=Ht(Kh)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new Kh[A](e,i,n,t),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var l=!Ut.node&&!Ut.worker&&!s?new jG(o.getViewportRoot(),o.root):null,u=n.useCoarsePointer,f=u==null||u==="auto"?Ut.touchEventsSupported:!!u,c=44,h;f&&(h=xt(n.pointerSize,c)),this.handler=new bL(i,o,l,o.root,h),this.animation=new WG({stage:{update:s?null:function(){return a._flush(!0)}}}),s||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=sK(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=vs();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var a=vs();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-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,oK(this.id))},r}();function CS(r,t){var e=new lK(wL(),r,t);return YL[e.id]=e,e}function uK(r,t){Kh[r]=t}var B0;function fK(r){if(typeof B0=="function")return B0(r)}function cK(r){B0=r}var SS=1e-4,ZL=20;function hK(r){return r.replace(/^\s+|\s+$/g,"")}function $t(r,t,e,n){var a=t[0],i=t[1],A=e[0],o=e[1],s=i-a,l=o-A;if(s===0)return l===0?A:(A+o)/2;if(n)if(s>0){if(r<=a)return A;if(r>=i)return o}else{if(r>=a)return A;if(r<=i)return o}else{if(r===a)return A;if(r===i)return o}return(r-a)/s*l+A}function et(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)?hK(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function me(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),ZL),r=(+r).toFixed(t),e?r:+r}function fn(r){return r.sort(function(t,e){return t-e}),r}function aa(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 vK(r)}function vK(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),A=i<0?0:a-1-i;return Math.max(0,A-n)}function $L(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),A=Math.min(Math.max(-a+i,0),20);return isFinite(A)?A:20}function dK(r,t){var e=ha(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=Y(r,function(h){return(isNaN(h)?0:h)/e*n*100}),i=n*100,A=Y(a,function(h){return Math.floor(h)}),o=ha(A,function(h,v){return h+v},0),s=Y(a,function(h,v){return h-A[v]});o<i;){for(var l=Number.NEGATIVE_INFINITY,u=null,f=0,c=s.length;f<c;++f)s[f]>l&&(l=s[f],u=f);++A[u],s[u]=0,++o}return Y(A,function(h){return h/n})}function pK(r,t){var e=Math.max(aa(r),aa(t)),n=r+t;return e>ZL?n:me(n,e)}var xS=9007199254740991;function JL(r){var t=Math.PI*2;return(r%t+t)%t}function tf(r){return r>-SS&&r<SS}var gK=/^(?:(\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 pa(r){if(r instanceof Date)return r;if(nt(r)){var t=gK.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 yK(r){return Math.pow(10,$B(r))}function $B(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 qL(r,t){var e=$B(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function vg(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),a=+r[n-1],i=e-n;return i?a+i*(r[n]-a):a}function bS(r){r.sort(function(s,l){return o(s,l,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,A=0;A<2;A++)a[A]<=t&&(a[A]=t,i[A]=A?1:1-e),t=a[A],e=i[A];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}return r;function o(s,l,u){return s.interval[u]<l.interval[u]||s.interval[u]===l.interval[u]&&(s.close[u]-l.close[u]===(u?-1:1)||!u&&o(s,l,1))}}function za(r){var t=parseFloat(r);return t==r&&(t!==0||!nt(r)||r.indexOf("x")<=0)?t:NaN}function jL(r){return!isNaN(za(r))}function tM(){return Math.round(Math.random()*9)}function eM(r,t){return t===0?r:eM(t,r%t)}function TS(r,t){return r==null?t:t==null?r:r*t/eM(r,t)}function Xt(r){throw new Error(r)}function IS(r,t,e){return(t-r)*e+r}var rM="series\0",nM="\0_ec_\0";function qt(r){return r instanceof Array?r:r==null?[]:[r]}function co(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n<a;n++){var i=e[n];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var FS=["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 $s(r){return yt(r)&&!K(r)&&!(r instanceof Date)?r.value:r}function mK(r){return yt(r)&&!(r instanceof Array)}function aM(r,t,e){var n=e==="normalMerge",a=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var A=ft();T(t,function(s,l){if(!yt(s)){t[l]=null;return}});var o=wK(r,A,e);return(n||a)&&BK(o,r,A,t),n&&_K(o,t),n||a?CK(o,t,a):i&&SK(o,t),xK(o),o}function wK(r,t,e){var n=[];if(e==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:e==="replaceMerge"||ef(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function BK(r,t,e,n){T(n,function(a,i){if(!(!a||a.id==null)){var A=bu(a.id),o=e.get(A);if(o!=null){var s=r[o];Br(!s.newOption,'Duplicated option on id "'+A+'".'),s.newOption=a,s.existing=t[o],n[i]=null}}})}function _K(r,t){T(t,function(e,n){if(!(!e||e.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||e.id==null)&&!ef(e)&&!ef(i)&&iM("name",i,e)){r[a].newOption=e,t[n]=null;return}}})}function CK(r,t,e){T(t,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||ef(a.existing)||a.existing&&n.id!=null&&!iM("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),i++}})}function SK(r,t){T(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function xK(r){var t=ft();T(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),T(r,function(e){var n=e.newOption;Br(!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={})}),T(r,function(e,n){var a=e.existing,i=e.newOption,A=e.keyInfo;if(yt(i)){if(A.name=i.name!=null?bu(i.name):a?a.name:rM+n,a)A.id=bu(a.id);else if(i.id!=null)A.id=bu(i.id);else{var o=0;do A.id="\0"+A.name+"\0"+o++;while(t.get(A.id))}t.set(A.id,e)}})}function iM(r,t,e){var n=De(t[r],null),a=De(e[r],null);return n!=null&&a!=null&&n===a}function bu(r){return De(r,"")}function De(r,t){return r==null?t:nt(r)?r:Kt(r)||jm(r)?r+"":t}function JB(r){var t=r.name;return!!(t&&t.indexOf(rM))}function ef(r){return r&&r.id!=null&&bu(r.id).indexOf(nM)===0}function bK(r){return nM+r}function TK(r,t,e){T(r,function(n){var a=n.newOption;yt(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=IK(t,a,n.existing,e))})}function IK(r,t,e,n){var a=t.type?t.type:e?e.subType:n.determineSubType(r,t);return a}function FK(r,t){var e={},n={};return a(r||[],e),a(t||[],n,e),[i(e),i(n)];function a(A,o,s){for(var l=0,u=A.length;l<u;l++){var f=De(A[l].seriesId,null);if(f==null)return;for(var c=qt(A[l].dataIndex),h=s&&s[f],v=0,d=c.length;v<d;v++){var p=c[v];h&&h[p]?h[p]=null:(o[f]||(o[f]={}))[p]=1}}}function i(A,o){var s=[];for(var l in A)if(A.hasOwnProperty(l)&&A[l]!=null)if(o)s.push(+l);else{var u=i(A[l],!0);u.length&&s.push({seriesId:l,dataIndex:u})}return s}}function ho(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return K(t.dataIndex)?Y(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return K(t.name)?Y(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function Vt(){var r="__ec_inner_"+EK++;return function(t){return t[r]||(t[r]={})}}var EK=tM();function Tu(r,t,e){var n=qB(t,e),a=n.mainTypeSpecified,i=n.queryOptionMap,A=n.others,o=A,s=e?e.defaultMainType:null;return!a&&s&&i.set(s,{}),i.each(function(l,u){var f=Qf(r,u,l,{useDefault:s===u,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});o[u+"Models"]=f.models,o[u+"Model"]=f.models[0]}),o}function qB(r,t){var e;if(nt(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var a=ft(),i={},A=!1;return T(e,function(o,s){if(s==="dataIndex"||s==="dataIndexInside"){i[s]=o;return}var l=s.match(/^(\w+)(Index|Id|Name)$/)||[],u=l[1],f=(l[2]||"").toLowerCase();if(!(!u||!f||t&&t.includeMainTypes&&Qt(t.includeMainTypes,u)<0)){A=A||!!u;var c=a.get(u)||a.set(u,{});c[f]=o}}),{mainTypeSpecified:A,queryOptionMap:a,others:i}}var Te={useDefault:!0,enableAll:!1,enableNone:!1},DK={useDefault:!1,enableAll:!0,enableNone:!0};function Qf(r,t,e,n){n=n||Te;var a=e.index,i=e.id,A=e.name,o={models:null,specified:a!=null||i!=null||A!=null};if(!o.specified){var s=void 0;return o.models=n.useDefault&&(s=r.getComponent(t))?[s]:[],o}return a==="none"||a===!1?(Br(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),o.models=[],o):(a==="all"&&(Br(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=A=null),o.models=r.queryComponents({mainType:t,index:a,id:i,name:A}),o)}function AM(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function QK(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function LK(r){return r==="auto"?Ut.domSupported?"html":"richText":r||"html"}function _0(r,t){var e=ft(),n=[];return T(r,function(a){var i=t(a);(e.get(i)||(n.push(i),e.set(i,[]))).push(a)}),{keys:n,buckets:e}}function oM(r,t,e,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Kt(n)){var A=IS(e||0,n,a);return me(A,i?Math.max(aa(e||0),aa(n)):t)}else{if(nt(n))return a<1?e:n;for(var o=[],s=e,l=n,u=Math.max(s?s.length:0,l.length),f=0;f<u;++f){var c=r.getDimensionInfo(f);if(c&&c.type==="ordinal")o[f]=(a<1&&s?s:l)[f];else{var h=s&&s[f]?s[f]:0,v=l[f],A=IS(h,v,a);o[f]=me(A,i?Math.max(aa(h),aa(v)):t)}}return o}}var MK=".",cA="___EC__COMPONENT__CONTAINER___",sM="___EC__EXTENDED_CLASS___";function ia(r){var t={main:"",sub:""};if(r){var e=r.split(MK);t.main=e[0]||"",t.sub=e[1]||""}return t}function UK(r){Br(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function PK(r){return!!(r&&r[sM])}function jB(r,t){r.$constructor=r,r.extend=function(e){var n=this,a;return RK(n)?a=function(i){H(A,i);function A(){return i.apply(this,arguments)||this}return A}(n):(a=function(){(e.$constructor||n).apply(this,arguments)},zV(a,this)),V(a.prototype,e),a[sM]=!0,a.extend=this.extend,a.superCall=kK,a.superApply=NK,a.superClass=n,a}}function RK(r){return vt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function lM(r,t){r.extend=t.extend}var HK=Math.round(Math.random()*10);function OK(r){var t=["__\0is_clz",HK++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function kK(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 NK(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Vd(r){var t={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){UK(a),n.prototype.type=a;var i=ia(a);if(!i.sub)t[i.main]=n;else if(i.sub!==cA){var A=e(i);A[i.sub]=n}}return n},r.getClass=function(n,a,i){var A=t[n];if(A&&A[cA]&&(A=a?A[a]:null),i&&!A)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return A},r.getClassesByMainType=function(n){var a=ia(n),i=[],A=t[a.main];return A&&A[cA]?T(A,function(o,s){s!==cA&&i.push(o)}):i.push(A),i},r.hasClass=function(n){var a=ia(n);return!!t[a.main]},r.getAllClassMainTypes=function(){var n=[];return T(t,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=ia(n),i=t[a.main];return i&&i[cA]};function e(n){var a=t[n.main];return(!a||!a[cA])&&(a=t[n.main]={},a[cA]=!0),a}}function vo(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,a,i){for(var A={},o=0;o<r.length;o++){var s=r[o][1];if(!(a&&Qt(a,s)>=0||i&&Qt(i,s)<0)){var l=n.getShallow(s,t);l!=null&&(A[r[o][0]]=l)}}return A}}var VK=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],GK=vo(VK),KK=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return GK(this,t,e)},r}(),C0=new Ef(50);function zK(r){if(typeof r=="string"){var t=C0.get(r);return t&&t.image}else return r}function t_(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=C0.get(r),A={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!Gd(t)&&i.pending.push(A)):(t=zi.loadImage(r,ES,ES),t.__zrImageSrc=r,C0.put(r,t.__cachedImgObj={image:t,pending:[A]})),t}else return r;else return t}function ES(){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 Gd(r){return r&&r.width&&r.height}var dg=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function WK(r,t,e,n,a){if(!t)return"";var i=(r+"").split(`
|
||
`);a=uM(t,e,n,a);for(var A=0,o=i.length;A<o;A++)i[A]=fM(i[A],a);return i.join(`
|
||
`)}function uM(r,t,e,n){n=n||{};var a=V({},n);a.font=t,e=xt(e,"..."),a.maxIterations=xt(n.maxIterations,2);var i=a.minChar=xt(n.minChar,0);a.cnCharWidth=Yr("国",t);var A=a.ascCharWidth=Yr("a",t);a.placeholder=xt(n.placeholder,"");for(var o=r=Math.max(0,r-1),s=0;s<i&&o>=A;s++)o-=A;var l=Yr(e,t);return l>o&&(e="",l=0),o=r-l,a.ellipsis=e,a.ellipsisWidth=l,a.contentWidth=o,a.containerWidth=r,a}function fM(r,t){var e=t.containerWidth,n=t.font,a=t.contentWidth;if(!e)return"";var i=Yr(r,n);if(i<=e)return r;for(var A=0;;A++){if(i<=a||A>=t.maxIterations){r+=t.ellipsis;break}var o=A===0?XK(r,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,o),i=Yr(r,n)}return r===""&&(r=t.placeholder),r}function XK(r,t,e,n){for(var a=0,i=0,A=r.length;i<A&&a<t;i++){var o=r.charCodeAt(i);a+=0<=o&&o<=127?e:n}return i}function YK(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,a=t.font,i=e==="truncate",A=kd(a),o=xt(t.lineHeight,A),s=!!t.backgroundColor,l=t.lineOverflow==="truncate",u=t.width,f;u!=null&&(e==="break"||e==="breakAll")?f=r?cM(r,t.font,u,e==="breakAll",0).lines:[]:f=r?r.split(`
|
||
`):[];var c=f.length*o,h=xt(t.height,c);if(c>h&&l){var v=Math.floor(h/o);f=f.slice(0,v)}if(r&&i&&u!=null)for(var d=uM(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<f.length;p++)f[p]=fM(f[p],d);for(var g=h,y=0,p=0;p<f.length;p++)y=Math.max(Yr(f[p],a),y);u==null&&(u=y);var m=y;return n&&(g+=n[0]+n[2],m+=n[1]+n[3],u+=n[1]+n[3]),s&&(m=u),{lines:f,height:h,outerWidth:m,outerHeight:g,lineHeight:o,calculatedLineHeight:A,contentWidth:y,contentHeight:c,width:u}}var ZK=function(){function r(){}return r}(),DS=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),$K=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function JK(r,t){var e=new $K;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,a=t.height,i=t.overflow,A=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,o=dg.lastIndex=0,s;(s=dg.exec(r))!=null;){var l=s.index;l>o&&pg(e,r.substring(o,l),t,A),pg(e,s[2],t,A,s[1]),o=dg.lastIndex}o<r.length&&pg(e,r.substring(o,r.length),t,A);var u=[],f=0,c=0,h=t.padding,v=i==="truncate",d=t.lineOverflow==="truncate";function p(P,O,G){P.width=O,P.lineHeight=G,f+=G,c=Math.max(c,O)}t:for(var g=0;g<e.lines.length;g++){for(var y=e.lines[g],m=0,w=0,_=0;_<y.tokens.length;_++){var B=y.tokens[_],C=B.styleName&&t.rich[B.styleName]||{},S=B.textPadding=C.padding,x=S?S[1]+S[3]:0,b=B.font=C.font||t.font;B.contentHeight=kd(b);var I=xt(C.height,B.contentHeight);if(B.innerHeight=I,S&&(I+=S[0]+S[2]),B.height=I,B.lineHeight=ua(C.lineHeight,t.lineHeight,I),B.align=C&&C.align||t.align,B.verticalAlign=C&&C.verticalAlign||"middle",d&&a!=null&&f+B.lineHeight>a){_>0?(y.tokens=y.tokens.slice(0,_),p(y,w,m),e.lines=e.lines.slice(0,g+1)):e.lines=e.lines.slice(0,g);break t}var F=C.width,E=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")B.percentWidth=F,u.push(B),B.contentWidth=Yr(B.text,b);else{if(E){var D=C.backgroundColor,Q=D&&D.image;Q&&(Q=zK(Q),Gd(Q)&&(B.width=Math.max(B.width,Q.width*I/Q.height)))}var M=v&&n!=null?n-w:null;M!=null&&M<B.width?!E||M<x?(B.text="",B.width=B.contentWidth=0):(B.text=WK(B.text,M-x,b,t.ellipsis,{minChar:t.truncateMinChar}),B.width=B.contentWidth=Yr(B.text,b)):B.contentWidth=Yr(B.text,b)}B.width+=x,w+=B.width,C&&(m=Math.max(m,B.lineHeight))}p(y,w,m)}e.outerWidth=e.width=xt(n,c),e.outerHeight=e.height=xt(a,f),e.contentHeight=f,e.contentWidth=c,h&&(e.outerWidth+=h[1]+h[3],e.outerHeight+=h[0]+h[2]);for(var g=0;g<u.length;g++){var B=u[g],R=B.percentWidth;B.width=parseInt(R,10)/100*e.width}return e}function pg(r,t,e,n,a){var i=t==="",A=a&&e.rich[a]||{},o=r.lines,s=A.font||e.font,l=!1,u,f;if(n){var c=A.padding,h=c?c[1]+c[3]:0;if(A.width!=null&&A.width!=="auto"){var v=Rn(A.width,n.width)+h;o.length>0&&v+n.accumWidth>n.width&&(u=t.split(`
|
||
`),l=!0),n.accumWidth=v}else{var d=cM(t,s,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+h,f=d.linesWidths,u=d.lines}}else u=t.split(`
|
||
`);for(var p=0;p<u.length;p++){var g=u[p],y=new ZK;if(y.styleName=a,y.text=g,y.isLineHolder=!g&&!i,typeof A.width=="number"?y.width=A.width:y.width=f?f[p]:Yr(g,s),!p&&!l){var m=(o[o.length-1]||(o[0]=new DS)).tokens,w=m.length;w===1&&m[0].isLineHolder?m[0]=y:(g||!w||i)&&m.push(y)}else o.push(new DS([y]))}}function qK(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var jK=ha(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function t5(r){return qK(r)?!!jK[r]:!0}function cM(r,t,e,n,a){for(var i=[],A=[],o="",s="",l=0,u=0,f=0;f<r.length;f++){var c=r.charAt(f);if(c===`
|
||
`){s&&(o+=s,u+=l),i.push(o),A.push(u),o="",s="",l=0,u=0;continue}var h=Yr(c,t),v=n?!1:!t5(c);if(i.length?u+h>e:a+u+h>e){u?(o||s)&&(v?(o||(o=s,s="",l=0,u=l),i.push(o),A.push(u-l),s+=c,l+=h,o="",u=l):(s&&(o+=s,s="",l=0),i.push(o),A.push(u),o=c,u=h)):v?(i.push(s),A.push(l),s=c,l=h):(i.push(c),A.push(h));continue}u+=h,v?(s+=c,l+=h):(s&&(o+=s,s="",l=0),o+=c)}return!i.length&&!o&&(o=r,s="",l=0),s&&(o+=s),o&&(i.push(o),A.push(u)),i.length===1&&(u+=a),{accumWidth:u,lines:i,linesWidths:A}}var S0="__zr_style_"+Math.round(Math.random()*10),eo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Kd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eo[S0]=!0;var QS=["z","z2","invisible"],e5=["invisible"],gn=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ht(e),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}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,a,i){var A=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&r5(this,e,n)||A&&!A[0]&&!A[3])return!1;if(a&&this.__clipPaths){for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1}if(i&&this.parent)for(var s=this.parent;s;){if(s.ignore)return!1;s=s.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 a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,A=i.shadowBlur||0,o=i.shadowOffsetX||0,s=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Dt(0,0,0,0)),n?Dt.applyTransform(e,a,n):e.copy(a),(A||o||s)&&(e.width+=A*2+Math.abs(o),e.height+=A*2+Math.abs(s),e.x=Math.min(e.x,e.x+o-A),e.y=Math.min(e.y,e.y+s-A));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+l*2),e.height=Math.ceil(e.height+1+l*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Dt(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:V(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=$l,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&$l)},t.prototype.styleUpdated=function(){this.__dirty&=~$l},t.prototype.createStyle=function(e){return Rd(eo,e)},t.prototype.useStyle=function(e){e[S0]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[S0]},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,QS)},t.prototype._applyStateObj=function(e,n,a,i,A,o){r.prototype._applyStateObj.call(this,e,n,a,i,A,o);var s=!(n&&i),l;if(n&&n.style?A?i?l=n.style:(l=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(l,n.style)):s&&(l=a.style),l)if(A){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var f=Ht(u),c=0;c<f.length;c++){var h=f[c];h in l&&(l[h]=l[h],this.style[h]=u[h])}for(var v=Ht(l),c=0;c<v.length;c++){var h=v[c];this.style[h]=this.style[h]}this._transitionState(e,{style:l},o,this.getAnimationStyleProps())}else this.useStyle(l);for(var d=this.__inHover?e5:QS,c=0;c<d.length;c++){var h=d[c];n&&n[h]!=null?this[h]=n[h]:s&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var A=e[i];A.style&&(a=a||{},this._mergeStyle(a,A.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(e,n){return V(e,n),e},t.prototype.getAnimationStyleProps=function(){return Kd},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=Gr|$l}(),t}(Nd),gg=new Dt(0,0,0,0),yg=new Dt(0,0,0,0);function r5(r,t,e){return gg.copy(r.getBoundingRect()),r.transform&&gg.applyTransform(r.transform),yg.width=t,yg.height=e,!gg.intersect(yg)}var Qr=Math.min,Lr=Math.max,mg=Math.sin,wg=Math.cos,hA=Math.PI*2,pc=_o(),gc=_o(),yc=_o();function zd(r,t,e){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],A=n[1],o=n[1],s=1;s<r.length;s++)n=r[s],a=Qr(a,n[0]),i=Lr(i,n[0]),A=Qr(A,n[1]),o=Lr(o,n[1]);t[0]=a,t[1]=A,e[0]=i,e[1]=o}}function LS(r,t,e,n,a,i){a[0]=Qr(r,e),a[1]=Qr(t,n),i[0]=Lr(r,e),i[1]=Lr(t,n)}var MS=[],US=[];function n5(r,t,e,n,a,i,A,o,s,l){var u=DL,f=Me,c=u(r,e,a,A,MS);s[0]=1/0,s[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var h=0;h<c;h++){var v=f(r,e,a,A,MS[h]);s[0]=Qr(v,s[0]),l[0]=Lr(v,l[0])}c=u(t,n,i,o,US);for(var h=0;h<c;h++){var d=f(t,n,i,o,US[h]);s[1]=Qr(d,s[1]),l[1]=Lr(d,l[1])}s[0]=Qr(r,s[0]),l[0]=Lr(r,l[0]),s[0]=Qr(A,s[0]),l[0]=Lr(A,l[0]),s[1]=Qr(t,s[1]),l[1]=Lr(t,l[1]),s[1]=Qr(o,s[1]),l[1]=Lr(o,l[1])}function a5(r,t,e,n,a,i,A,o){var s=LL,l=Ve,u=Lr(Qr(s(r,e,a),1),0),f=Lr(Qr(s(t,n,i),1),0),c=l(r,e,a,u),h=l(t,n,i,f);A[0]=Qr(r,a,c),A[1]=Qr(t,i,h),o[0]=Lr(r,a,c),o[1]=Lr(t,i,h)}function i5(r,t,e,n,a,i,A,o,s){var l=bi,u=Ti,f=Math.abs(a-i);if(f%hA<1e-4&&f>1e-4){o[0]=r-e,o[1]=t-n,s[0]=r+e,s[1]=t+n;return}if(pc[0]=wg(a)*e+r,pc[1]=mg(a)*n+t,gc[0]=wg(i)*e+r,gc[1]=mg(i)*n+t,l(o,pc,gc),u(s,pc,gc),a=a%hA,a<0&&(a=a+hA),i=i%hA,i<0&&(i=i+hA),a>i&&!A?i+=hA:a<i&&A&&(a+=hA),A){var c=i;i=a,a=c}for(var h=0;h<i;h+=Math.PI/2)h>a&&(yc[0]=wg(h)*e+r,yc[1]=mg(h)*n+t,l(o,yc,o),u(s,yc,s))}var te={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},vA=[],dA=[],Kn=[],ii=[],zn=[],Wn=[],Bg=Math.min,_g=Math.max,pA=Math.cos,gA=Math.sin,xa=Math.abs,x0=Math.PI,vi=x0*2,Cg=typeof Float32Array<"u",wl=[];function Sg(r){var t=Math.round(r/x0*1e8)/1e8;return t%2*x0}function e_(r,t){var e=Sg(r[0]);e<0&&(e+=vi);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=vi?a=e+vi:t&&e-a>=vi?a=e-vi:!t&&e>a?a=e+(vi-Sg(e-a)):t&&e<a&&(a=e-(vi-Sg(a-e))),r[0]=e,r[1]=a}var ga=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=xa(n/xv/t)||0,this._uy=xa(n/xv/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(te.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=xa(t-this._xi),a=xa(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(te.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var A=n*n+a*a;A>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=A)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){return this._drawPendingPt(),this.addData(te.C,t,e,n,a,i,A),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,A),this._xi=i,this._yi=A,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(te.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,A){this._drawPendingPt(),wl[0]=a,wl[1]=i,e_(wl,A),a=wl[0],i=wl[1];var o=i-a;return this.addData(te.A,t,e,n,n,a,o,0,A?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,A),this._xi=pA(i)*n+t,this._yi=gA(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(te.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(te.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)&&Cg&&(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,a=this._len,i=0;i<e;i++)n+=t[i].len();Cg&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<e;i++)for(var A=t[i].data,o=0;o<A.length;o++)this.data[a++]=A[o];this._len=a},r.prototype.addData=function(t,e,n,a,i,A,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var f=0;f<arguments.length;f++)u[this._len++]=arguments[f]}},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,Cg&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Kn[0]=Kn[1]=zn[0]=zn[1]=Number.MAX_VALUE,ii[0]=ii[1]=Wn[0]=Wn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,A;for(A=0;A<this._len;){var o=t[A++],s=A===1;switch(s&&(e=t[A],n=t[A+1],a=e,i=n),o){case te.M:e=a=t[A++],n=i=t[A++],zn[0]=a,zn[1]=i,Wn[0]=a,Wn[1]=i;break;case te.L:LS(e,n,t[A],t[A+1],zn,Wn),e=t[A++],n=t[A++];break;case te.C:n5(e,n,t[A++],t[A++],t[A++],t[A++],t[A],t[A+1],zn,Wn),e=t[A++],n=t[A++];break;case te.Q:a5(e,n,t[A++],t[A++],t[A],t[A+1],zn,Wn),e=t[A++],n=t[A++];break;case te.A:var l=t[A++],u=t[A++],f=t[A++],c=t[A++],h=t[A++],v=t[A++]+h;A+=1;var d=!t[A++];s&&(a=pA(h)*f+l,i=gA(h)*c+u),i5(l,u,f,c,h,v,d,zn,Wn),e=pA(v)*f+l,n=gA(v)*c+u;break;case te.R:a=e=t[A++],i=n=t[A++];var p=t[A++],g=t[A++];LS(a,i,a+p,i+g,zn,Wn);break;case te.Z:e=a,n=i;break}bi(Kn,Kn,zn),Ti(ii,ii,Wn)}return A===0&&(Kn[0]=Kn[1]=ii[0]=ii[1]=0),new Dt(Kn[0],Kn[1],ii[0]-Kn[0],ii[1]-Kn[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,a=this._uy,i=0,A=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,f=0,c=0;c<e;){var h=t[c++],v=c===1;v&&(i=t[c],A=t[c+1],o=i,s=A);var d=-1;switch(h){case te.M:i=o=t[c++],A=s=t[c++];break;case te.L:{var p=t[c++],g=t[c++],y=p-i,m=g-A;(xa(y)>n||xa(m)>a||c===e-1)&&(d=Math.sqrt(y*y+m*m),i=p,A=g);break}case te.C:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++],B=t[c++],C=t[c++];d=xG(i,A,w,_,p,g,B,C,10),i=B,A=C;break}case te.Q:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++];d=TG(i,A,w,_,p,g,10),i=p,A=g;break}case te.A:var S=t[c++],x=t[c++],b=t[c++],I=t[c++],F=t[c++],E=t[c++],D=E+F;c+=1,v&&(o=pA(F)*b+S,s=gA(F)*I+x),d=_g(b,I)*Bg(vi,Math.abs(E)),i=pA(D)*b+S,A=gA(D)*I+x;break;case te.R:{o=i=t[c++],s=A=t[c++];var Q=t[c++],M=t[c++];d=Q*2+M*2;break}case te.Z:{var y=o-i,m=s-A;d=Math.sqrt(y*y+m*m),i=o,A=s;break}}d>=0&&(l[f++]=d,u+=d)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,A=this._len,o,s,l,u,f,c,h=e<1,v,d,p=0,g=0,y,m=0,w,_;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=e*d,!y)))t:for(var B=0;B<A;){var C=n[B++],S=B===1;switch(S&&(l=n[B],u=n[B+1],o=l,s=u),C!==te.L&&m>0&&(t.lineTo(w,_),m=0),C){case te.M:o=l=n[B++],s=u=n[B++],t.moveTo(l,u);break;case te.L:{f=n[B++],c=n[B++];var x=xa(f-l),b=xa(c-u);if(x>a||b>i){if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;t.lineTo(l*(1-F)+f*F,u*(1-F)+c*F);break t}p+=I}t.lineTo(f,c),l=f,u=c,m=0}else{var E=x*x+b*b;E>m&&(w=f,_=c,m=E)}break}case te.C:{var D=n[B++],Q=n[B++],M=n[B++],R=n[B++],P=n[B++],O=n[B++];if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;Wi(l,D,M,P,F,vA),Wi(u,Q,R,O,F,dA),t.bezierCurveTo(vA[1],dA[1],vA[2],dA[2],vA[3],dA[3]);break t}p+=I}t.bezierCurveTo(D,Q,M,R,P,O),l=P,u=O;break}case te.Q:{var D=n[B++],Q=n[B++],M=n[B++],R=n[B++];if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;Ju(l,D,M,F,vA),Ju(u,Q,R,F,dA),t.quadraticCurveTo(vA[1],dA[1],vA[2],dA[2]);break t}p+=I}t.quadraticCurveTo(D,Q,M,R),l=M,u=R;break}case te.A:var G=n[B++],X=n[B++],J=n[B++],At=n[B++],lt=n[B++],wt=n[B++],Bt=n[B++],N=!n[B++],z=J>At?J:At,$=xa(J-At)>.001,q=lt+wt,j=!1;if(h){var I=v[g++];p+I>y&&(q=lt+wt*(y-p)/I,j=!0),p+=I}if($&&t.ellipse?t.ellipse(G,X,J,At,Bt,lt,q,N):t.arc(G,X,z,lt,q,N),j)break t;S&&(o=pA(lt)*J+G,s=gA(lt)*At+X),l=pA(q)*J+G,u=gA(q)*At+X;break;case te.R:o=l=n[B],s=u=n[B+1],f=n[B++],c=n[B++];var ct=n[B++],L=n[B++];if(h){var I=v[g++];if(p+I>y){var U=y-p;t.moveTo(f,c),t.lineTo(f+Bg(U,ct),c),U-=ct,U>0&&t.lineTo(f+ct,c+Bg(U,L)),U-=L,U>0&&t.lineTo(f+_g(ct-U,0),c+L),U-=ct,U>0&&t.lineTo(f,c+_g(L-U,0));break t}p+=I}t.rect(f,c,ct,L);break;case te.Z:if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;t.lineTo(l*(1-F)+o*F,u*(1-F)+s*F);break t}p+=I}t.closePath(),l=o,u=s}}},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=te,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Bi(r,t,e,n,a,i,A){if(a===0)return!1;var o=a,s=0,l=r;if(A>t+o&&A>n+o||A<t-o&&A<n-o||i>r+o&&i>e+o||i<r-o&&i<e-o)return!1;if(r!==e)s=(t-n)/(r-e),l=(r*n-e*t)/(r-e);else return Math.abs(i-r)<=o/2;var u=s*i-A+l,f=u*u/(s*s+1);return f<=o/2*o/2}function A5(r,t,e,n,a,i,A,o,s,l,u){if(s===0)return!1;var f=s;if(u>t+f&&u>n+f&&u>i+f&&u>o+f||u<t-f&&u<n-f&&u<i-f&&u<o-f||l>r+f&&l>e+f&&l>a+f&&l>A+f||l<r-f&&l<e-f&&l<a-f&&l<A-f)return!1;var c=QL(r,t,e,n,a,i,A,o,l,u,null);return c<=f/2}function hM(r,t,e,n,a,i,A,o,s){if(A===0)return!1;var l=A;if(s>t+l&&s>n+l&&s>i+l||s<t-l&&s<n-l&&s<i-l||o>r+l&&o>e+l&&o>a+l||o<r-l&&o<e-l&&o<a-l)return!1;var u=ML(r,t,e,n,a,i,o,s,null);return u<=l/2}var PS=Math.PI*2;function zr(r){return r%=PS,r<0&&(r+=PS),r}var Bl=Math.PI*2;function o5(r,t,e,n,a,i,A,o,s){if(A===0)return!1;var l=A;o-=r,s-=t;var u=Math.sqrt(o*o+s*s);if(u-l>e||u+l<e)return!1;if(Math.abs(n-a)%Bl<1e-4)return!0;if(i){var f=n;n=zr(a),a=zr(f)}else n=zr(n),a=zr(a);n>a&&(a+=Bl);var c=Math.atan2(s,o);return c<0&&(c+=Bl),c>=n&&c<=a||c+Bl>=n&&c+Bl<=a}function Qa(r,t,e,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var A=(i-t)/(n-t),o=n<t?1:-1;(A===1||A===0)&&(o=n<t?.5:-.5);var s=A*(e-r)+r;return s===a?1/0:s>a?o:0}var Ai=ga.CMD,yA=Math.PI*2,s5=1e-4;function l5(r,t){return Math.abs(r-t)<s5}var dr=[-1,-1,-1],nn=[-1,-1];function u5(){var r=nn[0];nn[0]=nn[1],nn[1]=r}function f5(r,t,e,n,a,i,A,o,s,l){if(l>t&&l>n&&l>i&&l>o||l<t&&l<n&&l<i&&l<o)return 0;var u=Bv(t,n,i,o,l,dr);if(u===0)return 0;for(var f=0,c=-1,h=void 0,v=void 0,d=0;d<u;d++){var p=dr[d],g=p===0||p===1?.5:1,y=Me(r,e,a,A,p);y<s||(c<0&&(c=DL(t,n,i,o,nn),nn[1]<nn[0]&&c>1&&u5(),h=Me(t,n,i,o,nn[0]),c>1&&(v=Me(t,n,i,o,nn[1]))),c===2?p<nn[0]?f+=h<t?g:-g:p<nn[1]?f+=v<h?g:-g:f+=o<v?g:-g:p<nn[0]?f+=h<t?g:-g:f+=o<h?g:-g)}return f}function c5(r,t,e,n,a,i,A,o){if(o>t&&o>n&&o>i||o<t&&o<n&&o<i)return 0;var s=bG(t,n,i,o,dr);if(s===0)return 0;var l=LL(t,n,i);if(l>=0&&l<=1){for(var u=0,f=Ve(t,n,i,l),c=0;c<s;c++){var h=dr[c]===0||dr[c]===1?.5:1,v=Ve(r,e,a,dr[c]);v<A||(dr[c]<l?u+=f<t?h:-h:u+=i<f?h:-h)}return u}else{var h=dr[0]===0||dr[0]===1?.5:1,v=Ve(r,e,a,dr[0]);return v<A?0:i<t?h:-h}}function h5(r,t,e,n,a,i,A,o){if(o-=t,o>e||o<-e)return 0;var s=Math.sqrt(e*e-o*o);dr[0]=-s,dr[1]=s;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=yA-1e-4){n=0,a=yA;var u=i?1:-1;return A>=dr[0]+r&&A<=dr[1]+r?u:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=yA,a+=yA);for(var c=0,h=0;h<2;h++){var v=dr[h];if(v+r>A){var d=Math.atan2(o,v),u=i?1:-1;d<0&&(d=yA+d),(d>=n&&d<=a||d+yA>=n&&d+yA<=a)&&(d>Math.PI/2&&d<Math.PI*1.5&&(u=-u),c+=u)}}return c}function vM(r,t,e,n,a){for(var i=r.data,A=r.len(),o=0,s=0,l=0,u=0,f=0,c,h,v=0;v<A;){var d=i[v++],p=v===1;switch(d===Ai.M&&v>1&&(e||(o+=Qa(s,l,u,f,n,a))),p&&(s=i[v],l=i[v+1],u=s,f=l),d){case Ai.M:u=i[v++],f=i[v++],s=u,l=f;break;case Ai.L:if(e){if(Bi(s,l,i[v],i[v+1],t,n,a))return!0}else o+=Qa(s,l,i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.C:if(e){if(A5(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=f5(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.Q:if(e){if(hM(s,l,i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=c5(s,l,i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.A:var g=i[v++],y=i[v++],m=i[v++],w=i[v++],_=i[v++],B=i[v++];v+=1;var C=!!(1-i[v++]);c=Math.cos(_)*m+g,h=Math.sin(_)*w+y,p?(u=c,f=h):o+=Qa(s,l,c,h,n,a);var S=(n-g)*w/m+g;if(e){if(o5(g,y,w,_,_+B,C,t,S,a))return!0}else o+=h5(g,y,w,_,_+B,C,S,a);s=Math.cos(_+B)*m+g,l=Math.sin(_+B)*w+y;break;case Ai.R:u=s=i[v++],f=l=i[v++];var x=i[v++],b=i[v++];if(c=u+x,h=f+b,e){if(Bi(u,f,c,f,t,n,a)||Bi(c,f,c,h,t,n,a)||Bi(c,h,u,h,t,n,a)||Bi(u,h,u,f,t,n,a))return!0}else o+=Qa(c,f,c,h,n,a),o+=Qa(u,h,u,f,n,a);break;case Ai.Z:if(e){if(Bi(s,l,u,f,t,n,a))return!0}else o+=Qa(s,l,u,f,n,a);s=u,l=f;break}}return!e&&!l5(l,f)&&(o+=Qa(s,l,u,f,n,a)||0),o!==0}function v5(r,t,e){return vM(r,0,!1,t,e)}function d5(r,t,e,n){return vM(r,t,!0,e,n)}var Tv=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eo),p5={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Kd.style)},xg=da.concat(["invisible","culling","z","z2","zlevel","parent"]),Mt=function(r){H(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 a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(s){e.buildPath(s,e.shape)}),a.silent=!0;var i=a.style;for(var A in n)i[A]!==n[A]&&(i[A]=n[A]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var o=0;o<xg.length;++o)a[xg[o]]=this[xg[o]];a.__dirty|=Gr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=Ht(e);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var A=n[i],o=e[A];A==="style"?this.style?V(this.style,o):this.useStyle(o):A==="shape"?V(this.shape,o):r.prototype.attrKV.call(this,A,o)}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=Cv(e,0);return n>.5?m0:n>.2?tK:w0}else if(e)return w0}return m0},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),A=Cv(e,0)<y0;if(i===A)return n}},t.prototype.buildPath=function(e,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~As},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 ga(!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,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var A=this.path;(i||this.__dirty&As)&&(A.beginPath(),this.buildPath(A,this.shape,!1),this.pathUpdated()),e=A.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){o.copy(e);var s=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,u??4)}s>1e-10&&(o.width+=l/s,o.height+=l/s,o.x-=l/s/2,o.y-=l/s/2)}return o}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),A=this.style;if(e=a[0],n=a[1],i.contain(e,n)){var o=this.path;if(this.hasStroke()){var s=A.lineWidth,l=A.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),d5(o,s/l,e,n)))return!0}if(this.hasFill())return v5(o,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=As,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 a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:V(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&As)},t.prototype.createStyle=function(e){return Rd(Tv,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=V({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,A,o){r.prototype._applyStateObj.call(this,e,n,a,i,A,o);var s=!(n&&i),l;if(n&&n.shape?A?i?l=n.shape:(l=V({},a.shape),V(l,n.shape)):(l=V({},i?this.shape:a.shape),V(l,n.shape)):s&&(l=a.shape),l)if(A){this.shape=V({},this.shape);for(var u={},f=Ht(l),c=0;c<f.length;c++){var h=f[c];typeof l[h]=="object"?this.shape[h]=l[h]:u[h]=l[h]}this._transitionState(e,{shape:u},o)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var A=e[i];A.shape&&(a=a||{},this._mergeStyle(a,A.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return p5},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(i){H(A,i);function A(o){var s=i.call(this,o)||this;return e.init&&e.init.call(s,o),s}return A.prototype.getDefaultStyle=function(){return mt(e.style)},A.prototype.getDefaultShape=function(){return mt(e.shape)},A}(t);for(var a in e)typeof e[a]=="function"&&(n.prototype[a]=e[a]);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=Gr|$l|As}(),t}(gn),g5=gt({strokeFirst:!0,font:Ki,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Tv),Us=function(r){H(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 Rd(g5,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 a=Df(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(gn);Us.prototype.type="tspan";var y5=gt({x:0,y:0},eo),m5={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Kd.style)};function w5(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ke=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Rd(y5,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=w5(n.image)?n.image:this.__image;if(!i)return 0;var A=e==="width"?"height":"width",o=n[A];return o==null?i[e]:i[e]/i[A]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return m5},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Dt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(gn);Ke.prototype.type="image";function B5(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,A=t.r,o,s,l,u;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof A=="number"?o=s=l=u=A:A instanceof Array?A.length===1?o=s=l=u=A[0]:A.length===2?(o=l=A[0],s=u=A[1]):A.length===3?(o=A[0],s=u=A[1],l=A[2]):(o=A[0],s=A[1],l=A[2],u=A[3]):o=s=l=u=0;var f;o+s>a&&(f=o+s,o*=a/f,s*=a/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+l>i&&(f=s+l,s*=i/f,l*=i/f),o+u>i&&(f=o+u,o*=i/f,u*=i/f),r.moveTo(e+o,n),r.lineTo(e+a-s,n),s!==0&&r.arc(e+a-s,n+s,s,-Math.PI/2,0),r.lineTo(e+a,n+i-l),l!==0&&r.arc(e+a-l,n+i-l,l,0,Math.PI/2),r.lineTo(e+u,n+i),u!==0&&r.arc(e+u,n+i-u,u,Math.PI/2,Math.PI),r.lineTo(e,n+o),o!==0&&r.arc(e+o,n+o,o,Math.PI,Math.PI*1.5)}var ds=Math.round;function dM(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,A=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=A;var o=e&&e.lineWidth;return o&&(ds(n*2)===ds(a*2)&&(r.x1=r.x2=KA(n,o,!0)),ds(i*2)===ds(A*2)&&(r.y1=r.y2=KA(i,o,!0))),r}}function pM(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,A=t.height;r.x=n,r.y=a,r.width=i,r.height=A;var o=e&&e.lineWidth;return o&&(r.x=KA(n,o,!0),r.y=KA(a,o,!0),r.width=Math.max(KA(n+i,o,!1)-r.x,i===0?0:1),r.height=Math.max(KA(a+A,o,!1)-r.y,A===0?0:1)),r}}function KA(r,t,e){if(!t)return r;var n=ds(r*2);return(n+ds(t))%2===0?n/2:(n+(e?1:-1))/2}var _5=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),C5={},Nt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new _5},t.prototype.buildPath=function(e,n){var a,i,A,o;if(this.subPixelOptimize){var s=pM(C5,n,this.style);a=s.x,i=s.y,A=s.width,o=s.height,s.r=n.r,n=s}else a=n.x,i=n.y,A=n.width,o=n.height;n.r?B5(e,n):e.rect(a,i,A,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Mt);Nt.prototype.type="rect";var RS={fill:"#000"},HS=2,S5={style:gt({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},Kd.style)},Gt=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=RS,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,T5(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 Dt(0,0,0,0),n=this._children,a=[],i=null,A=0;A<n.length;A++){var o=n[A],s=o.getBoundingRect(),l=o.getLocalTransform(a);l?(e.copy(s),e.applyTransform(l),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||RS},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var a=n.rich,i=e.rich||a&&{};return V(e,n),a&&i?(this._mergeRich(i,a),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,n){for(var a=Ht(n),i=0;i<a.length;i++){var A=a[i];e[A]=e[A]||{},V(e[A],n[A])}},t.prototype.getAnimationStyleProps=function(){return S5},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||Ki,a=e.padding,i=zS(e),A=YK(i,e),o=bg(e),s=!!e.backgroundColor,l=A.outerHeight,u=A.outerWidth,f=A.contentWidth,c=A.lines,h=A.lineHeight,v=this._defaultStyle,d=e.x||0,p=e.y||0,g=e.align||v.align||"left",y=e.verticalAlign||v.verticalAlign||"top",m=d,w=os(p,A.contentHeight,y);if(o||a){var _=ql(d,u,g),B=os(p,l,y);o&&this._renderBackground(e,e,_,B,u,l)}w+=h/2,a&&(m=KS(d,g,a),y==="top"?w+=a[0]:y==="bottom"&&(w-=a[2]));for(var C=0,S=!1,x=GS("fill"in e?e.fill:(S=!0,v.fill)),b=VS("stroke"in e?e.stroke:!s&&(!v.autoStroke||S)?(C=HS,v.stroke):null),I=e.textShadowBlur>0,F=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),E=A.calculatedLineHeight,D=0;D<c.length;D++){var Q=this._getOrCreateChild(Us),M=Q.createStyle();Q.useStyle(M),M.text=c[D],M.x=m,M.y=w,g&&(M.textAlign=g),M.textBaseline="middle",M.opacity=e.opacity,M.strokeFirst=!0,I&&(M.shadowBlur=e.textShadowBlur||0,M.shadowColor=e.textShadowColor||"transparent",M.shadowOffsetX=e.textShadowOffsetX||0,M.shadowOffsetY=e.textShadowOffsetY||0),M.stroke=b,M.fill=x,b&&(M.lineWidth=e.lineWidth||C,M.lineDash=e.lineDash,M.lineDashOffset=e.lineDashOffset||0),M.font=n,kS(M,e),w+=h,F&&Q.setBoundingRect(new Dt(ql(M.x,e.width,M.textAlign),os(M.y,E,M.textBaseline),f,E))}},t.prototype._updateRichTexts=function(){var e=this.style,n=zS(e),a=JK(n,e),i=a.width,A=a.outerWidth,o=a.outerHeight,s=e.padding,l=e.x||0,u=e.y||0,f=this._defaultStyle,c=e.align||f.align,h=e.verticalAlign||f.verticalAlign,v=ql(l,A,c),d=os(u,o,h),p=v,g=d;s&&(p+=s[3],g+=s[0]);var y=p+i;bg(e)&&this._renderBackground(e,e,v,d,A,o);for(var m=!!e.backgroundColor,w=0;w<a.lines.length;w++){for(var _=a.lines[w],B=_.tokens,C=B.length,S=_.lineHeight,x=_.width,b=0,I=p,F=y,E=C-1,D=void 0;b<C&&(D=B[b],!D.align||D.align==="left");)this._placeToken(D,e,S,g,I,"left",m),x-=D.width,I+=D.width,b++;for(;E>=0&&(D=B[E],D.align==="right");)this._placeToken(D,e,S,g,F,"right",m),x-=D.width,F-=D.width,E--;for(I+=(i-(I-p)-(y-F)-x)/2;b<=E;)D=B[b],this._placeToken(D,e,S,g,I+D.width/2,"center",m),I+=D.width,b++;g+=S}},t.prototype._placeToken=function(e,n,a,i,A,o,s){var l=n.rich[e.styleName]||{};l.text=e.text;var u=e.verticalAlign,f=i+a/2;u==="top"?f=i+e.height/2:u==="bottom"&&(f=i+a-e.height/2);var c=!e.isLineHolder&&bg(l);c&&this._renderBackground(l,n,o==="right"?A-e.width:o==="center"?A-e.width/2:A,f-e.height/2,e.width,e.height);var h=!!l.backgroundColor,v=e.textPadding;v&&(A=KS(A,o,v),f-=e.height/2-v[0]-e.innerHeight/2);var d=this._getOrCreateChild(Us),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,w=GS("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),_=VS("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!s&&(!g.autoStroke||y)?(m=HS,g.stroke):null),B=l.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=A,p.y=f,B&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||Ki,p.opacity=ua(l.opacity,n.opacity,1),kS(p,l),_&&(p.lineWidth=ua(l.lineWidth,n.lineWidth,m),p.lineDash=xt(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=_),w&&(p.fill=w);var C=e.contentWidth,S=e.contentHeight;d.setBoundingRect(new Dt(ql(p.x,C,p.textAlign),os(p.y,S,p.textBaseline),C,S))},t.prototype._renderBackground=function(e,n,a,i,A,o){var s=e.backgroundColor,l=e.borderWidth,u=e.borderColor,f=s&&s.image,c=s&&!f,h=e.borderRadius,v=this,d,p;if(c||e.lineHeight||l&&u){d=this._getOrCreateChild(Nt),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=i,g.width=A,g.height=o,g.r=h,d.dirtyShape()}if(c){var y=d.style;y.fill=s||null,y.fillOpacity=xt(e.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Ke),p.onload=function(){v.dirtyStyle()};var m=p.style;m.image=s.image,m.x=a,m.y=i,m.width=A,m.height=o}if(l&&u){var y=d.style;y.lineWidth=l,y.stroke=u,y.strokeOpacity=xt(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(d||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=ua(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return yM(e)&&(n=[e.fontStyle,e.fontWeight,gM(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Dn(n)||e.textFont||e.font},t}(gn),x5={left:!0,right:1,center:1},b5={top:1,bottom:1,middle:1},OS=["fontStyle","fontWeight","fontSize","fontFamily"];function gM(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?RB+"px":r+"px"}function kS(r,t){for(var e=0;e<OS.length;e++){var n=OS[e],a=t[n];a!=null&&(r[n]=a)}}function yM(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function T5(r){return NS(r),T(r.rich,NS),r}function NS(r){if(r){r.font=Gt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||x5[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||b5[e]?e:"top";var n=r.padding;n&&(r.padding=GB(r.padding))}}function VS(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function GS(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function KS(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function zS(r){var t=r.text;return t!=null&&(t+=""),t}function bg(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Ct=Vt(),b0=function(r,t,e,n){if(n){var a=Ct(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var A=Ct(i);A.seriesIndex=r,A.dataIndex=e,A.dataType=t,A.ssrType="chart"})}},WS=1,XS={},mM=Vt(),r_=Vt(),n_=0,Lf=1,Wd=2,_r=["emphasis","blur","select"],rf=["normal","emphasis","blur","select"],Js=10,I5=9,ro="highlight",zh="downplay",Iu="select",Wh="unselect",Fu="toggleSelect";function Uo(r){return r!=null&&r!=="none"}function Xd(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function wM(r){Xd(r,"emphasis",Wd)}function BM(r){r.hoverState===Wd&&Xd(r,"normal",n_)}function a_(r){Xd(r,"blur",Lf)}function _M(r){r.hoverState===Lf&&Xd(r,"normal",n_)}function F5(r){r.selected=!0}function E5(r){r.selected=!1}function YS(r,t,e){t(r,e)}function ti(r,t,e){YS(r,t,e),r.isGroup&&r.traverse(function(n){YS(n,t,e)})}function Iv(r,t){switch(t){case"emphasis":r.hoverState=Wd;break;case"normal":r.hoverState=n_;break;case"blur":r.hoverState=Lf;break;case"select":r.selected=!0}}function D5(r,t,e,n){for(var a=r.style,i={},A=0;A<t.length;A++){var o=t[A],s=a[o];i[o]=s??(n&&n[o])}for(var A=0;A<r.animators.length;A++){var l=r.animators[A];l.__fromStateTransition&&l.__fromStateTransition.indexOf(e)<0&&l.targetName==="style"&&l.saveTo(i,t)}return i}function Q5(r,t,e,n){var a=e&&Qt(e,"select")>=0,i=!1;if(r instanceof Mt){var A=mM(r),o=a&&A.selectFill||A.normalFill,s=a&&A.selectStroke||A.normalStroke;if(Uo(o)||Uo(s)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=V({},n),l=V({},l),l.fill=o):!Uo(l.fill)&&Uo(o)?(i=!0,n=V({},n),l=V({},l),l.fill=f0(o)):!Uo(l.stroke)&&Uo(s)&&(i||(n=V({},n),l=V({},l)),l.stroke=f0(s)),n.style=l}}if(n&&n.z2==null){i||(n=V({},n));var u=r.z2EmphasisLift;n.z2=r.z2+(u??Js)}return n}function L5(r,t,e){if(e&&e.z2==null){e=V({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??I5)}return e}function M5(r,t,e){var n=Qt(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:D5(r,["opacity"],t,{opacity:1});e=e||{};var A=e.style||{};return A.opacity==null&&(e=V({},e),A=V({opacity:n?a:i.opacity*.1},A),e.style=A),e}function Tg(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Q5(this,r,t,e);if(r==="blur")return M5(this,r,e);if(r==="select")return L5(this,r,e)}return e}function po(r){r.stateProxy=Tg;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Tg),e&&(e.stateProxy=Tg)}function ZS(r,t){!bM(r,t)&&!r.__highByOuter&&ti(r,wM)}function $S(r,t){!bM(r,t)&&!r.__highByOuter&&ti(r,BM)}function Wa(r,t){r.__highByOuter|=1<<(t||0),ti(r,wM)}function Xa(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ti(r,BM)}function CM(r){ti(r,a_)}function i_(r){ti(r,_M)}function SM(r){ti(r,F5)}function xM(r){ti(r,E5)}function bM(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function TM(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var A=r_(i),o=a==="series",s=o?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!o&&n.push(s),A.isBlured&&(s.group.traverse(function(l){_M(l)}),o&&e.push(i)),A.isBlured=!1}),T(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function T0(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(l,u){for(var f=0;f<u.length;f++){var c=l.getItemGraphicEl(u[f]);c&&i_(c)}}if(r!=null&&!(!t||t==="none")){var A=a.getSeriesByIndex(r),o=A.coordinateSystem;o&&o.master&&(o=o.master);var s=[];a.eachSeries(function(l){var u=A===l,f=l.coordinateSystem;f&&f.master&&(f=f.master);var c=f&&o?f===o:u;if(!(e==="series"&&!u||e==="coordinateSystem"&&!c||t==="series"&&u)){var h=n.getViewOfSeriesModel(l);if(h.group.traverse(function(p){p.__highByOuter&&u&&t==="self"||a_(p)}),sr(t))i(l.getData(),t);else if(yt(t))for(var v=Ht(t),d=0;d<v.length;d++)i(l.getData(v[d]),t[v[d]]);s.push(l),r_(l).isBlured=!0}}),a.eachComponent(function(l,u){if(l!=="series"){var f=n.getViewOfComponentModel(u);f&&f.toggleBlurSeries&&f.toggleBlurSeries(s,!0,a)}})}}function I0(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){r_(n).isBlured=!0;var a=e.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){a_(i)})}}}function U5(r,t,e){var n=r.seriesIndex,a=r.getData(t.dataType);if(a){var i=ho(a,t);i=(K(i)?i[0]:i)||0;var A=a.getItemGraphicEl(i);if(!A)for(var o=a.count(),s=0;!A&&s<o;)A=a.getItemGraphicEl(s++);if(A){var l=Ct(A);T0(n,l.focus,l.blurScope,e)}else{var u=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);u!=null&&T0(n,u,f,e)}}}function A_(r,t,e,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return a;var i=n.getModel().getComponent(r,t);if(!i)return a;var A=n.getViewOfComponentModel(i);if(!A||!A.findHighDownDispatchers)return a;for(var o=A.findHighDownDispatchers(e),s,l=0;l<o.length;l++)if(Ct(o[l]).focus==="self"){s=!0;break}return{focusSelf:s,dispatchers:o}}function P5(r,t,e){var n=Ct(r),a=A_(n.componentMainType,n.componentIndex,n.componentHighDownName,e),i=a.dispatchers,A=a.focusSelf;i?(A&&I0(n.componentMainType,n.componentIndex,e),T(i,function(o){return ZS(o,t)})):(T0(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&I0(n.componentMainType,n.componentIndex,e),ZS(r,t))}function R5(r,t,e){TM(e);var n=Ct(r),a=A_(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;a?T(a,function(i){return $S(i,t)}):$S(r,t)}function H5(r,t,e){if(E0(t)){var n=t.dataType,a=r.getData(n),i=ho(a,t);K(i)||(i=[i]),r[t.type===Fu?"toggleSelect":t.type===Iu?"select":"unselect"](i,n)}}function JS(r){var t=r.getAllData();T(t,function(e){var n=e.data,a=e.type;n.eachItemGraphicEl(function(i,A){r.isSelected(A,a)?SM(i):xM(i)})})}function O5(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();T(n,function(a){a.data;var i=a.type,A=e.getSelectedDataIndices();if(A.length>0){var o={dataIndex:A,seriesIndex:e.seriesIndex};i!=null&&(o.dataType=i),t.push(o)}})}),t}function no(r,t,e){zA(r,!0),ti(r,po),F0(r,t,e)}function k5(r){zA(r,!1)}function ye(r,t,e,n){n?k5(r):no(r,t,e)}function F0(r,t,e){var n=Ct(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var qS=["emphasis","blur","select"],N5={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function $e(r,t,e,n){e=e||"itemStyle";for(var a=0;a<qS.length;a++){var i=qS[a],A=t.getModel([i,e]),o=r.ensureState(i);o.style=n?n(A):A[N5[e]]()}}function zA(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 nf(r){return!!(r&&r.__highDownDispatcher)}function V5(r,t,e){var n=Ct(r);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=e}function G5(r){var t=XS[r];return t==null&&WS<=32&&(t=XS[r]=WS++),t}function E0(r){var t=r.type;return t===Iu||t===Wh||t===Fu}function jS(r){var t=r.type;return t===ro||t===zh}function K5(r){var t=mM(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 Po=ga.CMD,z5=[[],[],[]],tx=Math.sqrt,W5=Math.atan2;function IM(r,t){if(t){var e=r.data,n=r.len(),a,i,A,o,s,l,u=Po.M,f=Po.C,c=Po.L,h=Po.R,v=Po.A,d=Po.Q;for(A=0,o=0;A<n;){switch(a=e[A++],o=A,i=0,a){case u:i=1;break;case c:i=1;break;case f:i=3;break;case d:i=2;break;case v:var p=t[4],g=t[5],y=tx(t[0]*t[0]+t[1]*t[1]),m=tx(t[2]*t[2]+t[3]*t[3]),w=W5(-t[1]/m,t[0]/y);e[A]*=y,e[A++]+=p,e[A]*=m,e[A++]+=g,e[A++]*=y,e[A++]*=m,e[A++]+=w,e[A++]+=w,A+=2,o=A;break;case h:l[0]=e[A++],l[1]=e[A++],Ye(l,l,t),e[o++]=l[0],e[o++]=l[1],l[0]+=e[A++],l[1]+=e[A++],Ye(l,l,t),e[o++]=l[0],e[o++]=l[1]}for(s=0;s<i;s++){var _=z5[s];_[0]=e[A++],_[1]=e[A++],Ye(_,_,t),e[o++]=_[0],e[o++]=_[1]}}r.increaseVersion()}}var Ig=Math.sqrt,mc=Math.sin,wc=Math.cos,_l=Math.PI;function ex(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function D0(r,t){return(r[0]*t[0]+r[1]*t[1])/(ex(r)*ex(t))}function rx(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(D0(r,t))}function nx(r,t,e,n,a,i,A,o,s,l,u){var f=s*(_l/180),c=wc(f)*(r-e)/2+mc(f)*(t-n)/2,h=-1*mc(f)*(r-e)/2+wc(f)*(t-n)/2,v=c*c/(A*A)+h*h/(o*o);v>1&&(A*=Ig(v),o*=Ig(v));var d=(a===i?-1:1)*Ig((A*A*(o*o)-A*A*(h*h)-o*o*(c*c))/(A*A*(h*h)+o*o*(c*c)))||0,p=d*A*h/o,g=d*-o*c/A,y=(r+e)/2+wc(f)*p-mc(f)*g,m=(t+n)/2+mc(f)*p+wc(f)*g,w=rx([1,0],[(c-p)/A,(h-g)/o]),_=[(c-p)/A,(h-g)/o],B=[(-1*c-p)/A,(-1*h-g)/o],C=rx(_,B);if(D0(_,B)<=-1&&(C=_l),D0(_,B)>=1&&(C=0),C<0){var S=Math.round(C/_l*1e6)/1e6;C=_l*2+S%2*_l}u.addData(l,y,m,A,o,w,C,f,i)}var X5=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Y5=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Z5(r){var t=new ga;if(!r)return t;var e=0,n=0,a=e,i=n,A,o=ga.CMD,s=r.match(X5);if(!s)return t;for(var l=0;l<s.length;l++){for(var u=s[l],f=u.charAt(0),c=void 0,h=u.match(Y5)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var p=0;p<v;){var g=void 0,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0,C=void 0,S=e,x=n,b=void 0,I=void 0;switch(f){case"l":e+=h[p++],n+=h[p++],c=o.L,t.addData(c,e,n);break;case"L":e=h[p++],n=h[p++],c=o.L,t.addData(c,e,n);break;case"m":e+=h[p++],n+=h[p++],c=o.M,t.addData(c,e,n),a=e,i=n,f="l";break;case"M":e=h[p++],n=h[p++],c=o.M,t.addData(c,e,n),a=e,i=n,f="L";break;case"h":e+=h[p++],c=o.L,t.addData(c,e,n);break;case"H":e=h[p++],c=o.L,t.addData(c,e,n);break;case"v":n+=h[p++],c=o.L,t.addData(c,e,n);break;case"V":n=h[p++],c=o.L,t.addData(c,e,n);break;case"C":c=o.C,t.addData(c,h[p++],h[p++],h[p++],h[p++],h[p++],h[p++]),e=h[p-2],n=h[p-1];break;case"c":c=o.C,t.addData(c,h[p++]+e,h[p++]+n,h[p++]+e,h[p++]+n,h[p++]+e,h[p++]+n),e+=h[p-2],n+=h[p-1];break;case"S":g=e,y=n,b=t.len(),I=t.data,A===o.C&&(g+=e-I[b-4],y+=n-I[b-3]),c=o.C,S=h[p++],x=h[p++],e=h[p++],n=h[p++],t.addData(c,g,y,S,x,e,n);break;case"s":g=e,y=n,b=t.len(),I=t.data,A===o.C&&(g+=e-I[b-4],y+=n-I[b-3]),c=o.C,S=e+h[p++],x=n+h[p++],e+=h[p++],n+=h[p++],t.addData(c,g,y,S,x,e,n);break;case"Q":S=h[p++],x=h[p++],e=h[p++],n=h[p++],c=o.Q,t.addData(c,S,x,e,n);break;case"q":S=h[p++]+e,x=h[p++]+n,e+=h[p++],n+=h[p++],c=o.Q,t.addData(c,S,x,e,n);break;case"T":g=e,y=n,b=t.len(),I=t.data,A===o.Q&&(g+=e-I[b-4],y+=n-I[b-3]),e=h[p++],n=h[p++],c=o.Q,t.addData(c,g,y,e,n);break;case"t":g=e,y=n,b=t.len(),I=t.data,A===o.Q&&(g+=e-I[b-4],y+=n-I[b-3]),e+=h[p++],n+=h[p++],c=o.Q,t.addData(c,g,y,e,n);break;case"A":m=h[p++],w=h[p++],_=h[p++],B=h[p++],C=h[p++],S=e,x=n,e=h[p++],n=h[p++],c=o.A,nx(S,x,e,n,B,C,m,w,_,c,t);break;case"a":m=h[p++],w=h[p++],_=h[p++],B=h[p++],C=h[p++],S=e,x=n,e+=h[p++],n+=h[p++],c=o.A,nx(S,x,e,n,B,C,m,w,_,c,t);break}}(f==="z"||f==="Z")&&(c=o.Z,t.addData(c),e=a,n=i),A=c}return t.toStatic(),t}var FM=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Mt);function EM(r){return r.setData!=null}function DM(r,t){var e=Z5(r),n=V({},t);return n.buildPath=function(a){if(EM(a)){a.setData(e.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;e.rebuildPath(i,1)}},n.applyTransform=function(a){IM(e,a),this.dirtyShape()},n}function QM(r,t){return new FM(DM(r,t))}function $5(r,t){var e=DM(r,t),n=function(a){H(i,a);function i(A){var o=a.call(this,A)||this;return o.applyTransform=e.applyTransform,o.buildPath=e.buildPath,o}return i}(FM);return n}function J5(r,t){for(var e=[],n=r.length,a=0;a<n;a++){var i=r[a];e.push(i.getUpdatedPathProxy(!0))}var A=new Mt(t);return A.createPathProxy(),A.buildPath=function(o){if(EM(o)){o.appendPath(e);var s=o.getContext();s&&o.rebuildPath(s,1)}},A}function o_(r,t){t=t||{};var e=new Mt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?IM(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 q5=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),ei=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new q5},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}(Mt);ei.prototype.type="circle";var j5=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Yd=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new j5},t.prototype.buildPath=function(e,n){var a=.5522848,i=n.cx,A=n.cy,o=n.rx,s=n.ry,l=o*a,u=s*a;e.moveTo(i-o,A),e.bezierCurveTo(i-o,A-u,i-l,A-s,i,A-s),e.bezierCurveTo(i+l,A-s,i+o,A-u,i+o,A),e.bezierCurveTo(i+o,A+u,i+l,A+s,i,A+s),e.bezierCurveTo(i-l,A+s,i-o,A+u,i-o,A),e.closePath()},t}(Mt);Yd.prototype.type="ellipse";var LM=Math.PI,Fg=LM*2,mA=Math.sin,Ro=Math.cos,t3=Math.acos,je=Math.atan2,ax=Math.abs,Eu=Math.sqrt,jl=Math.max,Xn=Math.min,Sn=1e-4;function e3(r,t,e,n,a,i,A,o){var s=e-r,l=n-t,u=A-a,f=o-i,c=f*s-u*l;if(!(c*c<Sn))return c=(u*(t-i)-f*(r-a))/c,[r+c*s,t+c*l]}function Bc(r,t,e,n,a,i,A){var o=r-e,s=t-n,l=(A?i:-i)/Eu(o*o+s*s),u=l*s,f=-l*o,c=r+u,h=t+f,v=e+u,d=n+f,p=(c+v)/2,g=(h+d)/2,y=v-c,m=d-h,w=y*y+m*m,_=a-i,B=c*d-v*h,C=(m<0?-1:1)*Eu(jl(0,_*_*w-B*B)),S=(B*m-y*C)/w,x=(-B*y-m*C)/w,b=(B*m+y*C)/w,I=(-B*y+m*C)/w,F=S-p,E=x-g,D=b-p,Q=I-g;return F*F+E*E>D*D+Q*Q&&(S=b,x=I),{cx:S,cy:x,x0:-u,y0:-f,x1:S*(a/_-1),y1:x*(a/_-1)}}function r3(r){var t;if(K(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 n3(r,t){var e,n=jl(t.r,0),a=jl(t.r0||0,0),i=n>0,A=a>0;if(!(!i&&!A)){if(i||(n=a,a=0),a>n){var o=n;n=a,a=o}var s=t.startAngle,l=t.endAngle;if(!(isNaN(s)||isNaN(l))){var u=t.cx,f=t.cy,c=!!t.clockwise,h=ax(l-s),v=h>Fg&&h%Fg;if(v>Sn&&(h=v),!(n>Sn))r.moveTo(u,f);else if(h>Fg-Sn)r.moveTo(u+n*Ro(s),f+n*mA(s)),r.arc(u,f,n,s,l,!c),a>Sn&&(r.moveTo(u+a*Ro(l),f+a*mA(l)),r.arc(u,f,a,l,s,c));else{var d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0,C=void 0,S=void 0,x=void 0,b=void 0,I=void 0,F=void 0,E=void 0,D=void 0,Q=n*Ro(s),M=n*mA(s),R=a*Ro(l),P=a*mA(l),O=h>Sn;if(O){var G=t.cornerRadius;G&&(e=r3(G),d=e[0],p=e[1],g=e[2],y=e[3]);var X=ax(n-a)/2;if(m=Xn(X,g),w=Xn(X,y),_=Xn(X,d),B=Xn(X,p),x=C=jl(m,w),b=S=jl(_,B),(C>Sn||S>Sn)&&(I=n*Ro(l),F=n*mA(l),E=a*Ro(s),D=a*mA(s),h<LM)){var J=e3(Q,M,E,D,I,F,R,P);if(J){var At=Q-J[0],lt=M-J[1],wt=I-J[0],Bt=F-J[1],N=1/mA(t3((At*wt+lt*Bt)/(Eu(At*At+lt*lt)*Eu(wt*wt+Bt*Bt)))/2),z=Eu(J[0]*J[0]+J[1]*J[1]);x=Xn(C,(n-z)/(N+1)),b=Xn(S,(a-z)/(N-1))}}}if(!O)r.moveTo(u+Q,f+M);else if(x>Sn){var $=Xn(g,x),q=Xn(y,x),j=Bc(E,D,Q,M,n,$,c),ct=Bc(I,F,R,P,n,q,c);r.moveTo(u+j.cx+j.x0,f+j.cy+j.y0),x<C&&$===q?r.arc(u+j.cx,f+j.cy,x,je(j.y0,j.x0),je(ct.y0,ct.x0),!c):($>0&&r.arc(u+j.cx,f+j.cy,$,je(j.y0,j.x0),je(j.y1,j.x1),!c),r.arc(u,f,n,je(j.cy+j.y1,j.cx+j.x1),je(ct.cy+ct.y1,ct.cx+ct.x1),!c),q>0&&r.arc(u+ct.cx,f+ct.cy,q,je(ct.y1,ct.x1),je(ct.y0,ct.x0),!c))}else r.moveTo(u+Q,f+M),r.arc(u,f,n,s,l,!c);if(!(a>Sn)||!O)r.lineTo(u+R,f+P);else if(b>Sn){var $=Xn(d,b),q=Xn(p,b),j=Bc(R,P,I,F,a,-q,c),ct=Bc(Q,M,E,D,a,-$,c);r.lineTo(u+j.cx+j.x0,f+j.cy+j.y0),b<S&&$===q?r.arc(u+j.cx,f+j.cy,b,je(j.y0,j.x0),je(ct.y0,ct.x0),!c):(q>0&&r.arc(u+j.cx,f+j.cy,q,je(j.y0,j.x0),je(j.y1,j.x1),!c),r.arc(u,f,a,je(j.cy+j.y1,j.cx+j.x1),je(ct.cy+ct.y1,ct.cx+ct.x1),c),$>0&&r.arc(u+ct.cx,f+ct.cy,$,je(ct.y1,ct.x1),je(ct.y0,ct.x0),!c))}else r.lineTo(u+R,f+P),r.arc(u,f,a,l,s,c)}r.closePath()}}}var a3=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}(),Cr=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new a3},t.prototype.buildPath=function(e,n){n3(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Mt);Cr.prototype.type="sector";var i3=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Mf=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new i3},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,A,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,A,!0)},t}(Mt);Mf.prototype.type="ring";function A3(r,t,e,n){var a=[],i=[],A=[],o=[],s,l,u,f;if(n){u=[1/0,1/0],f=[-1/0,-1/0];for(var c=0,h=r.length;c<h;c++)bi(u,u,r[c]),Ti(f,f,r[c]);bi(u,u,n[0]),Ti(f,f,n[1])}for(var c=0,h=r.length;c<h;c++){var v=r[c];if(e)s=r[c?c-1:h-1],l=r[(c+1)%h];else if(c===0||c===h-1){a.push(Ra(r[c]));continue}else s=r[c-1],l=r[c+1];GA(i,l,s),Hh(i,i,t);var d=r0(v,s),p=r0(v,l),g=d+p;g!==0&&(d/=g,p/=g),Hh(A,i,-d),Hh(o,i,p);var y=J1([],v,A),m=J1([],v,o);n&&(Ti(y,y,u),bi(y,y,f),Ti(m,m,u),bi(m,m,f)),a.push(y),a.push(m)}return e&&a.push(a.shift()),a}function MM(r,t,e){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=A3(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var A=a.length,o=0;o<(e?A:A-1);o++){var s=i[o*2],l=i[o*2+1],u=a[(o+1)%A];r.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var o=1,f=a.length;o<f;o++)r.lineTo(a[o][0],a[o][1])}e&&r.closePath()}}var o3=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),Sr=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new o3},t.prototype.buildPath=function(e,n){MM(e,n,!0)},t}(Mt);Sr.prototype.type="polygon";var s3=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),xr=function(r){H(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 s3},t.prototype.buildPath=function(e,n){MM(e,n,!1)},t}(Mt);xr.prototype.type="polyline";var l3={},u3=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),Pe=function(r){H(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 a,i,A,o;if(this.subPixelOptimize){var s=dM(l3,n,this.style);a=s.x1,i=s.y1,A=s.x2,o=s.y2}else a=n.x1,i=n.y1,A=n.x2,o=n.y2;var l=n.percent;l!==0&&(e.moveTo(a,i),l<1&&(A=a*(1-l)+A*l,o=i*(1-l)+o*l),e.lineTo(A,o))},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}(Mt);Pe.prototype.type="line";var br=[],f3=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 ix(r,t,e){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(e?lS:Me)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?lS:Me)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?o0:Ve)(r.x1,r.cpx1,r.x2,t),(e?o0:Ve)(r.y1,r.cpy1,r.y2,t)]}var Uf=function(r){H(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 f3},t.prototype.buildPath=function(e,n){var a=n.x1,i=n.y1,A=n.x2,o=n.y2,s=n.cpx1,l=n.cpy1,u=n.cpx2,f=n.cpy2,c=n.percent;c!==0&&(e.moveTo(a,i),u==null||f==null?(c<1&&(Ju(a,s,A,c,br),s=br[1],A=br[2],Ju(i,l,o,c,br),l=br[1],o=br[2]),e.quadraticCurveTo(s,l,A,o)):(c<1&&(Wi(a,s,u,A,c,br),s=br[1],u=br[2],A=br[3],Wi(i,l,f,o,c,br),l=br[1],f=br[2],o=br[3]),e.bezierCurveTo(s,l,u,f,A,o)))},t.prototype.pointAt=function(e){return ix(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=ix(this.shape,e,!0);return Ys(n,n)},t}(Mt);Uf.prototype.type="bezier-curve";var c3=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}(),Zd=function(r){H(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 c3},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.max(n.r,0),o=n.startAngle,s=n.endAngle,l=n.clockwise,u=Math.cos(o),f=Math.sin(o);e.moveTo(u*A+a,f*A+i),e.arc(a,i,A,o,s,!l)},t}(Mt);Zd.prototype.type="arc";var s_=function(r){H(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(),a=0;a<e.length;a++)n=n||e[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<e.length;a++)e[a].path||e[a].createPathProxy(),e[a].path.setScale(n[0],n[1],e[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(e,a[i].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),Mt.prototype.getBoundingRect.call(this)},t}(Mt),UM=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),Pf=function(r){H(t,r);function t(e,n,a,i,A,o){var s=r.call(this,A)||this;return s.x=e??0,s.y=n??0,s.x2=a??1,s.y2=i??0,s.type="linear",s.global=o||!1,s}return t}(UM),PM=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,i)||this;return o.x=e??.5,o.y=n??.5,o.r=a??.5,o.type="radial",o.global=A||!1,o}return t}(UM),wA=[0,0],BA=[0,0],_c=new It,Cc=new It,Fv=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new It;for(var n=0;n<2;n++)this._axes[n]=new It;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,a=this._axes,i=t.x,A=t.y,o=i+t.width,s=A+t.height;if(n[0].set(i,A),n[1].set(o,A),n[2].set(o,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);It.sub(a[0],n[1],n[0]),It.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var l=0;l<2;l++)this._origin[l]=a[l].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,a=!e;return _c.set(1/0,1/0),Cc.set(0,0),!this._intersectCheckOneSide(this,t,_c,Cc,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,_c,Cc,a,-1)&&(n=!1,a)||a||It.copy(e,n?_c:Cc),n},r.prototype._intersectCheckOneSide=function(t,e,n,a,i,A){for(var o=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,wA),this._getProjMinMaxOnAxis(s,e._corners,BA),wA[1]<BA[0]||wA[0]>BA[1]){if(o=!1,i)return o;var u=Math.abs(BA[0]-wA[1]),f=Math.abs(wA[0]-BA[1]);Math.min(u,f)>a.len()&&(u<f?It.scale(a,l,-u*A):It.scale(a,l,f*A))}else if(n){var u=Math.abs(BA[0]-wA[1]),f=Math.abs(wA[0]-BA[1]);Math.min(u,f)<n.len()&&(u<f?It.scale(n,l,u*A):It.scale(n,l,-f*A))}}return o},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var a=this._axes[t],i=this._origin,A=e[0].dot(a)+i[t],o=A,s=A,l=1;l<e.length;l++){var u=e[l].dot(a)+i[t];o=Math.min(u,o),s=Math.max(u,s)}n[0]=o,n[1]=s},r}(),h3=[],v3=function(r){H(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 a=0;a<e.length;a++)this.addDisplayable(e[a],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 Dt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(h3)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var A=0;A<this._displayables.length;A++){var o=this._displayables[A];if(o.contain(e,n))return!0}return!1},t}(gn),RM=Vt();function qs(r,t,e,n,a){var i;if(t&&t.ecModel){var A=t.ecModel.getUpdatePayload();i=A&&A.animation}var o=t&&t.isAnimationEnabled(),s=r==="update";if(o){var l=void 0,u=void 0,f=void 0;n?(l=xt(n.duration,200),u=xt(n.easing,"cubicOut"),f=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),f=t.getShallow(s?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(l=i.duration),i.easing!=null&&(u=i.easing),i.delay!=null&&(f=i.delay)),vt(f)&&(f=f(e,a)),vt(l)&&(l=l(e));var c={duration:l||0,delay:f,easing:u};return c}else return null}function l_(r,t,e,n,a,i,A){var o=!1,s;vt(a)?(A=i,i=a,a=null):yt(a)&&(i=a.cb,A=a.during,o=a.isFrom,s=a.removeOpt,a=a.dataIndex);var l=r==="leave";l||t.stopAnimation("leave");var u=qs(r,n,a,l?s||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(u&&u.duration>0){var f=u.duration,c=u.delay,h=u.easing,v={duration:f,delay:c||0,easing:h,done:i,force:!!i||!!A,setToFinal:!l,scope:r,during:A};o?t.animateFrom(e,v):t.animateTo(e,v)}else t.stopAnimation(),!o&&t.attr(e),A&&A(1),i&&i()}function zt(r,t,e,n,a,i){l_("update",r,t,e,n,a,i)}function ue(r,t,e,n,a,i){l_("enter",r,t,e,n,a,i)}function xs(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 Xi(r,t,e,n,a,i){xs(r)||l_("leave",r,t,e,n,a,i)}function Ax(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),Xi(r,{style:{opacity:0}},t,e,n)}function af(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||Ax(a,t,e,n)}):Ax(r,t,e,n)}function Hn(r){RM(r).oldStyle=r.style}function d3(r){return RM(r).oldStyle}var Ev=Math.max,Dv=Math.min,Q0={};function p3(r){return Mt.extend(r)}var g3=$5;function y3(r,t){return g3(r,t)}function On(r,t){Q0[r]=t}function u_(r){if(Q0.hasOwnProperty(r))return Q0[r]}function $d(r,t,e,n){var a=QM(r,t);return e&&(n==="center"&&(e=OM(e,a.getBoundingRect())),kM(a,e)),a}function HM(r,t,e){var n=new Ke({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(e==="center"){var i={width:a.width,height:a.height};n.setStyle(OM(t,i))}}});return n}function OM(r,t){var e=t.width/t.height,n=r.height*e,a;n<=r.width?a=r.height:(n=r.width,a=n/e);var i=r.x+r.width/2,A=r.y+r.height/2;return{x:i-n/2,y:A-a/2,width:n,height:a}}var ln=J5;function kM(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Ps(r,t){return dM(r,r,{lineWidth:t}),r}function m3(r){return pM(r.shape,r.shape,r.style),r}var Xh=KA;function ao(r,t){for(var e=Hd([]);r&&r!==t;)Ha(e,r.getLocalTransform(),e),r=r.parent;return e}function Un(r,t,e){return t&&!sr(t)&&(t=La.getLocalTransform(t)),e&&(t=Zs([],t)),Ye([],r,t)}function Jd(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=Un(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function ox(r){return!r.isGroup}function w3(r){return r.shape!=null}function Rf(r,t,e){if(!r||!t)return;function n(A){var o={};return A.traverse(function(s){ox(s)&&s.anid&&(o[s.anid]=s)}),o}function a(A){var o={x:A.x,y:A.y,rotation:A.rotation};return w3(A)&&(o.shape=V({},A.shape)),o}var i=n(r);t.traverse(function(A){if(ox(A)&&A.anid){var o=i[A.anid];if(o){var s=a(A);A.attr(a(o)),zt(A,s,e,Ct(A).dataIndex)}}})}function NM(r,t){return Y(r,function(e){var n=e[0];n=Ev(n,t.x),n=Dv(n,t.x+t.width);var a=e[1];return a=Ev(a,t.y),a=Dv(a,t.y+t.height),[n,a]})}function B3(r,t){var e=Ev(r.x,t.x),n=Dv(r.x+r.width,t.x+t.width),a=Ev(r.y,t.y),i=Dv(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Hf(r,t,e){var n=V({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),gt(a,e),new Ke(n)):$d(r.replace("path://",""),n,e,"center")}function tu(r,t,e,n,a){for(var i=0,A=a[a.length-1];i<a.length;i++){var o=a[i];if(VM(r,t,e,n,o[0],o[1],A[0],A[1]))return!0;A=o}}function VM(r,t,e,n,a,i,A,o){var s=e-r,l=n-t,u=A-a,f=o-i,c=Eg(u,f,s,l);if(_3(c))return!1;var h=r-a,v=t-i,d=Eg(h,v,s,l)/c;if(d<0||d>1)return!1;var p=Eg(h,v,u,f)/c;return!(p<0||p>1)}function Eg(r,t,e,n){return r*n-e*t}function _3(r){return r<=1e-6&&r>=-1e-6}function js(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=nt(t)?{formatter:t}:t,i=e.mainType,A=e.componentIndex,o={componentType:i,name:n,$vars:["name"]};o[i+"Index"]=A;var s=r.formatterParamsExtra;s&&T(Ht(s),function(u){st(o,u)||(o[u]=s[u],o.$vars.push(u))});var l=Ct(r.el);l.componentMainType=i,l.componentIndex=A,l.tooltipConfig={name:n,option:gt({content:n,encodeHTMLContent:!0,formatterParams:o},a)}}function sx(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function rA(r,t){if(r)if(K(r))for(var e=0;e<r.length;e++)sx(r[e],t);else sx(r,t)}On("circle",ei);On("ellipse",Yd);On("sector",Cr);On("ring",Mf);On("polygon",Sr);On("polyline",xr);On("rect",Nt);On("line",Pe);On("bezierCurve",Uf);On("arc",Zd);const So=Object.freeze(Object.defineProperty({__proto__:null,Arc:Zd,BezierCurve:Uf,BoundingRect:Dt,Circle:ei,CompoundPath:s_,Ellipse:Yd,Group:_t,Image:Ke,IncrementalDisplayable:v3,Line:Pe,LinearGradient:Pf,OrientedBoundingRect:Fv,Path:Mt,Point:It,Polygon:Sr,Polyline:xr,RadialGradient:PM,Rect:Nt,Ring:Mf,Sector:Cr,Text:Gt,applyTransform:Un,clipPointsByRect:NM,clipRectByRect:B3,createIcon:Hf,extendPath:y3,extendShape:p3,getShapeClass:u_,getTransform:ao,groupTransition:Rf,initProps:ue,isElementRemoved:xs,lineLineIntersect:VM,linePolygonIntersect:tu,makeImage:HM,makePath:$d,mergePath:ln,registerShape:On,removeElement:Xi,removeElementWithFadeOut:af,resizePath:kM,setTooltipConfig:js,subPixelOptimize:Xh,subPixelOptimizeLine:Ps,subPixelOptimizeRect:m3,transformDirection:Jd,traverseElements:rA,updateProps:zt},Symbol.toStringTag,{value:"Module"}));var qd={};function GM(r,t){for(var e=0;e<_r.length;e++){var n=_r[e],a=t[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var A=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(A,!0)}function L0(r,t,e){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,A=t.normal,o;n&&(o=n.getFormattedLabel(a,"normal",null,i,A&&A.get("formatter"),e!=null?{interpolatedValue:e}:null)),o==null&&(o=vt(r.defaultText)?r.defaultText(a,r,e):r.defaultText);for(var s={normal:o},l=0;l<_r.length;l++){var u=_r[l],f=t[u];s[u]=xt(n?n.getFormattedLabel(a,u,null,i,f&&f.get("formatter")):null,o)}return s}function Je(r,t,e,n){e=e||qd;for(var a=r instanceof Gt,i=!1,A=0;A<rf.length;A++){var o=t[rf[A]];if(o&&o.getShallow("show")){i=!0;break}}var s=a?r:r.getTextContent();if(i){a||(s||(s=new Gt,r.setTextContent(s)),r.stateProxy&&(s.stateProxy=r.stateProxy));var l=L0(e,t),u=t.normal,f=!!u.getShallow("show"),c=oe(u,n&&n.normal,e,!1,!a);c.text=l.normal,a||r.setTextConfig(Qv(u,e,!1));for(var A=0;A<_r.length;A++){var h=_r[A],o=t[h];if(o){var v=s.ensureState(h),d=!!xt(o.getShallow("show"),f);if(d!==f&&(v.ignore=!d),v.style=oe(o,n&&n[h],e,!0,!a),v.style.text=l[h],!a){var p=r.ensureState(h);p.textConfig=Qv(o,e,!0)}}}s.silent=!!u.getShallow("silent"),s.style.x!=null&&(c.x=s.style.x),s.style.y!=null&&(c.y=s.style.y),s.ignore=!f,s.useStyle(c),s.dirty(),e.enableTextSetter&&(tl(s).setLabelText=function(g){var y=L0(e,t,g);GM(s,y)})}else s&&(s.ignore=!0);r.dirty()}function Oe(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<_r.length;n++){var a=_r[n];e[a]=r.getModel([a,t])}return e}function oe(r,t,e,n,a){var i={};return C3(i,r,e,n,a),t&&V(i,t),i}function Qv(r,t,e){t=t||{};var n={},a,i=r.getShallow("rotate"),A=xt(r.getShallow("distance"),e?null:5),o=r.getShallow("offset");return a=r.getShallow("position")||(e?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),o!=null&&(n.offset=o),i!=null&&(i*=Math.PI/180,n.rotation=i),A!=null&&(n.distance=A),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function C3(r,t,e,n,a){e=e||qd;var i=t.ecModel,A=i&&i.option.textStyle,o=S3(t),s;if(o){s={};for(var l in o)if(o.hasOwnProperty(l)){var u=t.getModel(["rich",l]);cx(s[l]={},u,A,e,n,a,!1,!0)}}s&&(r.rich=s);var f=t.get("overflow");f&&(r.overflow=f);var c=t.get("minMargin");c!=null&&(r.margin=c),cx(r,t,A,e,n,a,!0,!1)}function S3(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||qd).rich;if(e){t=t||{};for(var n=Ht(e),a=0;a<n.length;a++){var i=n[a];t[i]=1}}r=r.parentModel}return t}var lx=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ux=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],fx=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function cx(r,t,e,n,a,i,A,o){e=!a&&e||qd;var s=n&&n.inheritColor,l=t.getShallow("color"),u=t.getShallow("textBorderColor"),f=xt(t.getShallow("opacity"),e.opacity);(l==="inherit"||l==="auto")&&(s?l=s:l=null),(u==="inherit"||u==="auto")&&(s?u=s:u=null),i||(l=l||e.color,u=u||e.textBorderColor),l!=null&&(r.fill=l),u!=null&&(r.stroke=u);var c=xt(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var h=xt(t.getShallow("textBorderType"),e.textBorderType);h!=null&&(r.lineDash=h);var v=xt(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);v!=null&&(r.lineDashOffset=v),!a&&f==null&&!o&&(f=n&&n.defaultOpacity),f!=null&&(r.opacity=f),!a&&!i&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var d=0;d<lx.length;d++){var p=lx[d],g=xt(t.getShallow(p),e[p]);g!=null&&(r[p]=g)}for(var d=0;d<ux.length;d++){var p=ux[d],g=t.getShallow(p);g!=null&&(r[p]=g)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!A||!n.disableBox){for(var d=0;d<fx.length;d++){var p=fx[d],g=t.getShallow(p);g!=null&&(r[p]=g)}var m=t.getShallow("borderType");m!=null&&(r.borderDash=m),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&s&&(r.backgroundColor=s),(r.borderColor==="auto"||r.borderColor==="inherit")&&s&&(r.borderColor=s)}}function f_(r,t){var e=t&&t.getModel("textStyle");return Dn([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 tl=Vt();function KM(r,t,e,n){if(r){var a=tl(r);a.prevValue=a.value,a.value=e;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function zM(r,t,e,n,a){var i=tl(r);if(!i.valueAnimation||i.prevValue===i.value)return;var A=i.defaultInterpolatedText,o=xt(i.interpolatedValue,i.prevValue),s=i.value;function l(u){var f=oM(e,i.precision,o,s,u);i.interpolatedValue=u===1?null:f;var c=L0({labelDataIndex:t,labelFetcher:a,defaultText:A?A(f):f+""},i.statesModels,f);GM(r,c)}r.percent=0,(i.prevValue==null?ue:zt)(r,{percent:1},n,t,null,l)}var x3=["textStyle","color"],Dg=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Qg=new Gt,b3=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(x3):null)},r.prototype.getFont=function(){return f_({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<Dg.length;n++)e[Dg[n]]=this.getShallow(Dg[n]);return Qg.useStyle(e),Qg.update(),Qg.getBoundingRect()},r}(),WM=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],T3=vo(WM),I3=function(){function r(){}return r.prototype.getLineStyle=function(t){return T3(this,t)},r}(),XM=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],F3=vo(XM),E3=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return F3(this,t,e)},r}(),Yt=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){Et(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,a=n==null?n:n[t];if(a==null&&!e){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},r.prototype.getModel=function(t,e){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(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(!Ut.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 a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();jB(Yt);OK(Yt);Fe(Yt,I3);Fe(Yt,E3);Fe(Yt,KK);Fe(Yt,b3);var D3=Math.round(Math.random()*10);function el(r){return[r||"",D3++].join("_")}function Q3(r){var t={};r.registerSubTypeDefaulter=function(e,n){var a=ia(e);t[a.main]=n},r.determineSubType=function(e,n){var a=n.type;if(!a){var i=ia(e).main;r.hasSubTypes(e)&&t[i]&&(a=t[i](n))}return a}}function L3(r,t){r.topologicalTravel=function(i,A,o,s){if(!i.length)return;var l=e(A),u=l.graph,f=l.noEntryList,c={};for(T(i,function(y){c[y]=!0});f.length;){var h=f.pop(),v=u[h],d=!!c[h];d&&(o.call(s,h,v.originalDeps.slice()),delete c[h]),T(v.successor,d?g:p)}T(c,function(){var y="";throw new Error(y)});function p(y){u[y].entryCount--,u[y].entryCount===0&&f.push(y)}function g(y){c[y]=!0,p(y)}};function e(i){var A={},o=[];return T(i,function(s){var l=n(A,s),u=l.originalDeps=t(s),f=a(u,i);l.entryCount=f.length,l.entryCount===0&&o.push(s),T(f,function(c){Qt(l.predecessor,c)<0&&l.predecessor.push(c);var h=n(A,c);Qt(h.successor,c)<0&&h.successor.push(s)})}),{graph:A,noEntryList:o}}function n(i,A){return i[A]||(i[A]={predecessor:[],successor:[]}),i[A]}function a(i,A){var o=[];return T(i,function(s){Qt(A,s)>=0&&o.push(s)}),o}}function nA(r,t){return Et(Et({},r,!0),t,!0)}const M3={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:". "}}}},U3={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 Lv="ZH",c_="EN",bs=c_,Yh={},h_={},YM=Ut.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bs).toUpperCase();return r.indexOf(Lv)>-1?Lv:bs}():bs;function ZM(r,t){r=r.toUpperCase(),h_[r]=new Yt(t),Yh[r]=t}function P3(r){if(nt(r)){var t=Yh[r.toUpperCase()]||{};return r===Lv||r===c_?mt(t):Et(mt(t),mt(Yh[bs]),!1)}else return Et(mt(r),mt(Yh[bs]),!1)}function M0(r){return h_[r]}function R3(){return h_[bs]}ZM(c_,M3);ZM(Lv,U3);var v_=1e3,d_=v_*60,Du=d_*60,un=Du*24,hx=un*365,eu={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}"},Sc="{yyyy}-{MM}-{dd}",vx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Sc,hour:Sc+" "+eu.hour,minute:Sc+" "+eu.minute,second:Sc+" "+eu.second,millisecond:eu.none},Lg=["year","month","day","hour","minute","second","millisecond"],$M=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function oi(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ts(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 H3(r){return r===Ts(r)}function O3(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jd(r,t,e,n){var a=pa(r),i=a[p_(e)](),A=a[Is(e)]()+1,o=Math.floor((A-1)/3)+1,s=a[tp(e)](),l=a["get"+(e?"UTC":"")+"Day"](),u=a[Af(e)](),f=(u-1)%12+1,c=a[ep(e)](),h=a[rp(e)](),v=a[np(e)](),d=u>=12?"pm":"am",p=d.toUpperCase(),g=n instanceof Yt?n:M0(n||YM)||R3(),y=g.getModel("time"),m=y.get("month"),w=y.get("monthAbbr"),_=y.get("dayOfWeek"),B=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,oi(i%100+"",2)).replace(/{Q}/g,o+"").replace(/{MMMM}/g,m[A-1]).replace(/{MMM}/g,w[A-1]).replace(/{MM}/g,oi(A,2)).replace(/{M}/g,A+"").replace(/{dd}/g,oi(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,B[l]).replace(/{e}/g,l+"").replace(/{HH}/g,oi(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,oi(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,oi(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,oi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,oi(v,3)).replace(/{S}/g,v+"")}function k3(r,t,e,n,a){var i=null;if(nt(e))i=e;else if(vt(e))i=e(r.value,t,{level:r.level});else{var A=V({},eu);if(r.level>0)for(var o=0;o<Lg.length;++o)A[Lg[o]]="{primary|"+A[Lg[o]]+"}";var s=e?e.inherit===!1?e:gt(e,A):A,l=JM(r.value,a);if(s[l])i=s[l];else if(s.inherit){for(var u=$M.indexOf(l),o=u-1;o>=0;--o)if(s[l]){i=s[l];break}i=i||A.none}if(K(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return jd(new Date(r.value),i,a,n)}function JM(r,t){var e=pa(r),n=e[Is(t)]()+1,a=e[tp(t)](),i=e[Af(t)](),A=e[ep(t)](),o=e[rp(t)](),s=e[np(t)](),l=s===0,u=l&&o===0,f=u&&A===0,c=f&&i===0,h=c&&a===1,v=h&&n===1;return v?"year":h?"month":c?"day":f?"hour":u?"minute":l?"second":"millisecond"}function dx(r,t,e){var n=Kt(r)?pa(r):r;switch(t=t||JM(r,e),t){case"year":return n[p_(e)]();case"half-year":return n[Is(e)]()>=6?1:0;case"quarter":return Math.floor((n[Is(e)]()+1)/4);case"month":return n[Is(e)]();case"day":return n[tp(e)]();case"half-day":return n[Af(e)]()/24;case"hour":return n[Af(e)]();case"minute":return n[ep(e)]();case"second":return n[rp(e)]();case"millisecond":return n[np(e)]()}}function p_(r){return r?"getUTCFullYear":"getFullYear"}function Is(r){return r?"getUTCMonth":"getMonth"}function tp(r){return r?"getUTCDate":"getDate"}function Af(r){return r?"getUTCHours":"getHours"}function ep(r){return r?"getUTCMinutes":"getMinutes"}function rp(r){return r?"getUTCSeconds":"getSeconds"}function np(r){return r?"getUTCMilliseconds":"getMilliseconds"}function N3(r){return r?"setUTCFullYear":"setFullYear"}function qM(r){return r?"setUTCMonth":"setMonth"}function jM(r){return r?"setUTCDate":"setDate"}function tU(r){return r?"setUTCHours":"setHours"}function eU(r){return r?"setUTCMinutes":"setMinutes"}function rU(r){return r?"setUTCSeconds":"setSeconds"}function nU(r){return r?"setUTCMilliseconds":"setMilliseconds"}function aU(r){if(!jL(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 iU(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 rl=GB;function U0(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(u){return u&&Dn(u)?u:"-"}function i(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var A=t==="time",o=r instanceof Date;if(A||o){var s=A?pa(r):r;if(isNaN(+s)){if(o)return"-"}else return jd(s,n,e)}if(t==="ordinal")return jm(r)?a(r):Kt(r)&&i(r)?r+"":"-";var l=za(r);return i(l)?aU(l):jm(r)?a(r):typeof r=="boolean"?r+"":"-"}var px=["a","b","c","d","e","f","g"],Mg=function(r,t){return"{"+r+(t??"")+"}"};function AU(r,t,e){K(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var A=px[i];r=r.replace(Mg(A),Mg(A,0))}for(var o=0;o<n;o++)for(var s=0;s<a.length;s++){var l=t[o][a[s]];r=r.replace(Mg(px[s],o),e?Dr(l):l)}return r}function V3(r,t,e){return T(t,function(n,a){r=r.replace("{"+a+"}",n)}),r}function G3(r,t){var e=nt(r)?{color:r,extraCssText:t}:r||{},n=e.color,a=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Dr(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Dr(n)+";"+(t||"")+'"></span>';var A=e.markerId||"markerX";return{renderMode:i,content:"{"+A+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function go(r,t){return t=t||"transparent",nt(r)?r:yt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Mv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Zh=T,oU=["left","right","top","bottom","width","height"],WA=[["width","left","right"],["height","top","bottom"]];function g_(r,t,e,n,a){var i=0,A=0;n==null&&(n=1/0),a==null&&(a=1/0);var o=0;t.eachChild(function(s,l){var u=s.getBoundingRect(),f=t.childAt(l+1),c=f&&f.getBoundingRect(),h,v;if(r==="horizontal"){var d=u.width+(c?-c.x+u.x:0);h=i+d,h>n||s.newline?(i=0,h=d,A+=o+e,o=u.height):o=Math.max(o,u.height)}else{var p=u.height+(c?-c.y+u.y:0);v=A+p,v>a||s.newline?(i+=o+e,A=0,v=p,o=u.width):o=Math.max(o,u.width)}s.newline||(s.x=i,s.y=A,s.markRedraw(),r==="horizontal"?i=h+e:A=v+e)})}var io=g_;bt(g_,"vertical");bt(g_,"horizontal");function K3(r,t,e){var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(o)||isNaN(parseFloat(r.right)))&&(o=n),(isNaN(A)||isNaN(parseFloat(r.top)))&&(A=0),(isNaN(s)||isNaN(parseFloat(r.bottom)))&&(s=a),e=rl(e||0),{width:Math.max(o-i-e[1]-e[3],0),height:Math.max(s-A-e[0]-e[2],0)}}function Le(r,t,e){e=rl(e||0);var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a),l=et(r.width,n),u=et(r.height,a),f=e[2]+e[0],c=e[1]+e[3],h=r.aspect;switch(isNaN(l)&&(l=n-o-c-i),isNaN(u)&&(u=a-s-f-A),h!=null&&(isNaN(l)&&isNaN(u)&&(h>n/a?l=n*.8:u=a*.8),isNaN(l)&&(l=h*u),isNaN(u)&&(u=l/h)),isNaN(i)&&(i=n-o-l-c),isNaN(A)&&(A=a-s-u-f),r.left||r.right){case"center":i=n/2-l/2-e[3];break;case"right":i=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":A=a/2-u/2-e[0];break;case"bottom":A=a-u-f;break}i=i||0,A=A||0,isNaN(l)&&(l=n-c-i-(o||0)),isNaN(u)&&(u=a-f-A-(s||0));var v=new Dt(i+e[3],A+e[0],l,u);return v.margin=e,v}function ap(r,t,e,n,a,i){var A=!a||!a.hv||a.hv[0],o=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!A&&!o)return!1;var l;if(s==="raw")l=r.type==="group"?new Dt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var u=r.getLocalTransform();l=l.clone(),l.applyTransform(u)}var f=Le(gt({width:l.width,height:l.height},t),e,n),c=A?f.x-l.x:0,h=o?f.y-l.y:0;return s==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function z3(r,t){return r[WA[t][0]]!=null||r[WA[t][1]]!=null&&r[WA[t][2]]!=null}function of(r){var t=r.layoutMode||r.constructor.layoutMode;return yt(t)?t:t?{type:t}:null}function Yi(r,t,e){var n=e&&e.ignoreSize;!K(n)&&(n=[n,n]);var a=A(WA[0],0),i=A(WA[1],1);l(WA[0],r,a),l(WA[1],r,i);function A(u,f){var c={},h=0,v={},d=0,p=2;if(Zh(u,function(m){v[m]=r[m]}),Zh(u,function(m){o(t,m)&&(c[m]=v[m]=t[m]),s(c,m)&&h++,s(v,m)&&d++}),n[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g<u.length;g++){var y=u[g];if(!o(c,y)&&o(r,y)){c[y]=r[y];break}}return c}function o(u,f){return u.hasOwnProperty(f)}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Zh(u,function(h){f[h]=c[h]})}}function nl(r){return sU({},r)}function sU(r,t){return t&&r&&Zh(oU,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var W3=Vt(),Rt=function(r){H(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.uid=el("ec_cpt_model"),i}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=of(this),i=a?nl(e):{},A=n.getTheme();Et(e,A.get(this.mainType)),Et(e,this.getDefaultOption()),a&&Yi(e,i,a)},t.prototype.mergeOption=function(e,n){Et(this.option,e,!0);var a=of(this);a&&Yi(this.option,e,a)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!PK(e))return e.defaultOption;var n=W3(this);if(!n.defaultOption){for(var a=[],i=e;i;){var A=i.prototype.defaultOption;A&&a.push(A),i=i.superClass}for(var o={},s=a.length-1;s>=0;s--)o=Et(o,a[s],!0);n.defaultOption=o}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Qf(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!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}(Yt);lM(Rt,Yt);Vd(Rt);Q3(Rt);L3(Rt,X3);function X3(r){var t=[];return T(Rt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return ia(e).main}),r!=="dataset"&&Qt(t,"dataset")<=0&&t.unshift("dataset"),t}var lU="";typeof navigator<"u"&&(lU=navigator.platform||"");var Ho="rgba(0, 0, 0, 0.2)";const Y3={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ho,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ho,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ho,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ho,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ho,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ho,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:lU.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 uU=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),mn="original",lr="arrayRows",wn="objectRows",ya="keyedColumns",Hi="typedArray",fU="unknown",fa="column",al="row",ze={Must:1,Might:2,Not:3},cU=Vt();function Z3(r){cU(r).datasetMap=ft()}function hU(r,t,e){var n={},a=m_(t);if(!a||!r)return n;var i=[],A=[],o=t.ecModel,s=cU(o).datasetMap,l=a.uid+"_"+e.seriesLayoutBy,u,f;r=r.slice(),T(r,function(d,p){var g=yt(d)?d:r[p]={name:d};g.type==="ordinal"&&u==null&&(u=p,f=v(g)),n[g.name]=[]});var c=s.get(l)||s.set(l,{categoryWayDim:f,valueWayDim:0});T(r,function(d,p){var g=d.name,y=v(d);if(u==null){var m=c.valueWayDim;h(n[g],m,y),h(A,m,y),c.valueWayDim+=y}else if(u===p)h(n[g],0,y),h(i,0,y);else{var m=c.categoryWayDim;h(n[g],m,y),h(A,m,y),c.categoryWayDim+=y}});function h(d,p,g){for(var y=0;y<g;y++)d.push(p+y)}function v(d){var p=d.dimsDef;return p?p.length:1}return i.length&&(n.itemName=i),A.length&&(n.seriesName=A),n}function y_(r,t,e){var n={},a=m_(r);if(!a)return n;var i=t.sourceFormat,A=t.dimensionsDefine,o;(i===wn||i===ya)&&T(A,function(u,f){(yt(u)?u.name:u)==="name"&&(o=f)});var s=function(){for(var u={},f={},c=[],h=0,v=Math.min(5,e);h<v;h++){var d=dU(t.data,i,t.seriesLayoutBy,A,t.startIndex,h);c.push(d);var p=d===ze.Not;if(p&&u.v==null&&h!==o&&(u.v=h),(u.n==null||u.n===u.v||!p&&c[u.n]===ze.Not)&&(u.n=h),g(u)&&c[u.n]!==ze.Not)return u;p||(d===ze.Might&&f.v==null&&h!==o&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(u)?u:g(f)?f:null}();if(s){n.value=[s.v];var l=o??s.n;n.itemName=[l],n.seriesName=[l]}return n}function m_(r){var t=r.get("data",!0);if(!t)return Qf(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Te).models[0]}function $3(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Qf(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Te).models}function vU(r,t){return dU(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function dU(r,t,e,n,a,i){var A,o=5;if(Ur(r))return ze.Not;var s,l;if(n){var u=n[i];yt(u)?(s=u.name,l=u.type):nt(u)&&(s=u)}if(l!=null)return l==="ordinal"?ze.Must:ze.Not;if(t===lr){var f=r;if(e===al){for(var c=f[i],h=0;h<(c||[]).length&&h<o;h++)if((A=w(c[a+h]))!=null)return A}else for(var h=0;h<f.length&&h<o;h++){var v=f[a+h];if(v&&(A=w(v[i]))!=null)return A}}else if(t===wn){var d=r;if(!s)return ze.Not;for(var h=0;h<d.length&&h<o;h++){var p=d[h];if(p&&(A=w(p[s]))!=null)return A}}else if(t===ya){var g=r;if(!s)return ze.Not;var c=g[s];if(!c||Ur(c))return ze.Not;for(var h=0;h<c.length&&h<o;h++)if((A=w(c[h]))!=null)return A}else if(t===mn)for(var y=r,h=0;h<y.length&&h<o;h++){var p=y[h],m=$s(p);if(!K(m))return ze.Not;if((A=w(m[i]))!=null)return A}function w(_){var B=nt(_);if(_!=null&&Number.isFinite(Number(_))&&_!=="")return B?ze.Might:ze.Not;if(B&&_!=="-")return ze.Must}return ze.Not}var P0=ft();function J3(r,t){Br(P0.get(r)==null&&t),P0.set(r,t)}function q3(r,t,e){var n=P0.get(t);if(!n)return e;var a=n(r);return a?e.concat(a):e}var gx=Vt(),j3=Vt(),w_=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var a=qt(this.get("color",!0)),i=this.get("colorLayer",!0);return pU(this,gx,a,i,t,e,n)},r.prototype.clearColorPalette=function(){ez(this,gx)},r}();function R0(r,t,e,n){var a=qt(r.get(["aria","decal","decals"]));return pU(r,j3,a,null,t,e,n)}function tz(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 pU(r,t,e,n,a,i,A){i=i||r;var o=t(i),s=o.paletteIdx||0,l=o.paletteNameMap=o.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var u=A==null||!n?e:tz(n,A);if(u=u||e,!(!u||!u.length)){var f=u[s];return a&&(l[a]=f),o.paletteIdx=(s+1)%u.length,f}}function ez(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var xc,Cl,yx,mx="\0_ec_inner",rz=1,B_=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,A,o){i=i||{},this.option=null,this._theme=new Yt(i),this._locale=new Yt(A),this._optionManager=o},t.prototype.setOption=function(e,n,a){var i=Cx(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Cx(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var A=i.mountOption(e==="recreate");!this.option||e==="recreate"?yx(this,A):(this.restoreData(),this._mergeOption(A,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var o=i.getTimelineOption(this);o&&(a=!0,this._mergeOption(o,n))}if(!e||e==="recreate"||e==="media"){var s=i.getMediaOption(this);s.length&&T(s,function(l){a=!0,this._mergeOption(l,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,A=this._componentsCount,o=[],s=ft(),l=n&&n.replaceMergeMainTypeMap;Z3(this),T(e,function(f,c){f!=null&&(Rt.hasClass(c)?c&&(o.push(c),s.set(c,!0)):a[c]=a[c]==null?mt(f):Et(a[c],f,!0))}),l&&l.each(function(f,c){Rt.hasClass(c)&&!s.get(c)&&(o.push(c),s.set(c,!0))}),Rt.topologicalTravel(o,Rt.getAllClassMainTypes(),u,this);function u(f){var c=q3(this,f,qt(e[f])),h=i.get(f),v=h?l&&l.get(f)?"replaceMerge":"normalMerge":"replaceAll",d=aM(h,c,v);TK(d,f,Rt),a[f]=null,i.set(f,null),A.set(f,0);var p=[],g=[],y=0,m;T(d,function(w,_){var B=w.existing,C=w.newOption;if(!C)B&&(B.mergeOption({},this),B.optionUpdated({},!1));else{var S=f==="series",x=Rt.getClass(f,w.keyInfo.subType,!S);if(!x)return;if(f==="tooltip"){if(m)return;m=!0}if(B&&B.constructor===x)B.name=w.keyInfo.name,B.mergeOption(C,this),B.optionUpdated(C,!1);else{var b=V({componentIndex:_},w.keyInfo);B=new x(C,this,this,b),V(B,b),w.brandNew&&(B.__requireNewView=!0),B.init(C,this,this),B.optionUpdated(null,!0)}}B?(p.push(B.option),g.push(B),y++):(p.push(void 0),g.push(void 0))},this),a[f]=p,i.set(f,g),A.set(f,y),f==="series"&&xc(this)}this._seriesIndices||xc(this)},t.prototype.getOption=function(){var e=mt(this.option);return T(e,function(n,a){if(Rt.hasClass(a)){for(var i=qt(n),A=i.length,o=!1,s=A-1;s>=0;s--)i[s]&&!ef(i[s])?o=!0:(i[s]=null,!o&&A--);i.length=A,e[a]=i}}),delete e[mx],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 a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var A=0;A<a.length;A++)if(a[A])return a[A]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var a=e.index,i=e.id,A=e.name,o=this._componentsMap.get(n);if(!o||!o.length)return[];var s;return a!=null?(s=[],T(qt(a),function(l){o[l]&&s.push(o[l])})):i!=null?s=Bx("id",i,o):A!=null?s=Bx("name",A,o):s=Jt(o,function(l){return!!l}),_x(s,e)},t.prototype.findComponents=function(e){var n=e.query,a=e.mainType,i=o(n),A=i?this.queryComponents(i):Jt(this._componentsMap.get(a),function(l){return!!l});return s(_x(A,e));function o(l){var u=a+"Index",f=a+"Id",c=a+"Name";return l&&(l[u]!=null||l[f]!=null||l[c]!=null)?{mainType:a,index:l[u],id:l[f],name:l[c]}:null}function s(l){return e.filter?Jt(l,e.filter):l}},t.prototype.eachComponent=function(e,n,a){var i=this._componentsMap;if(vt(e)){var A=n,o=e;i.each(function(f,c){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&o.call(A,c,v,v.componentIndex)}})}else for(var s=nt(e)?i.get(e):yt(e)?this.findComponents(e):null,l=0;s&&l<s.length;l++){var u=s[l];u&&n.call(a,u,u.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=De(e,null);return Jt(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Jt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return Jt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Cl(this),T(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];e.call(n,i,a)},this)},t.prototype.eachRawSeries=function(e,n){T(this._componentsMap.get("series"),function(a){a&&e.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,a){Cl(this),T(this._seriesIndices,function(i){var A=this._componentsMap.get("series")[i];A.subType===e&&n.call(a,A,i)},this)},t.prototype.eachRawSeriesByType=function(e,n,a){return T(this.getSeriesByType(e),n,a)},t.prototype.isSeriesFiltered=function(e){return Cl(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Cl(this);var a=[];T(this._seriesIndices,function(i){var A=this._componentsMap.get("series")[i];e.call(n,A,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ft(a)},t.prototype.restoreData=function(e){xc(this);var n=this._componentsMap,a=[];n.each(function(i,A){Rt.hasClass(A)&&a.push(A)}),Rt.topologicalTravel(a,Rt.getAllClassMainTypes(),function(i){T(n.get(i),function(A){A&&(i!=="series"||!nz(A,e))&&A.restoreData()})})},t.internalField=function(){xc=function(e){var n=e._seriesIndices=[];T(e._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),e._seriesIndicesMap=ft(n)},Cl=function(e){},yx=function(e,n){e.option={},e.option[mx]=rz,e._componentsMap=ft({series:[]}),e._componentsCount=ft();var a=n.aria;yt(a)&&a.enabled==null&&(a.enabled=!0),az(n,e._theme.option),Et(n,Y3,!1),e._mergeOption(n,null)}}(),t}(Yt);function nz(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,a=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||a!=null&&r.name!==a}}function az(r,t){var e=r.color&&!r.colorLayer;T(t,function(n,a){a==="colorLayer"&&e||Rt.hasClass(a)||(typeof n=="object"?r[a]=r[a]?Et(r[a],n,!1):mt(n):r[a]==null&&(r[a]=n))})}function Bx(r,t,e){if(K(t)){var n=ft();return T(t,function(i){if(i!=null){var A=De(i,null);A!=null&&n.set(i,!0)}}),Jt(e,function(i){return i&&n.get(i[r])})}else{var a=De(t,null);return Jt(e,function(i){return i&&a!=null&&i[r]===a})}}function _x(r,t){return t.hasOwnProperty("subType")?Jt(r,function(e){return e&&e.subType===t.subType}):r}function Cx(r){var t=ft();return r&&T(qt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Fe(B_,w_);var iz=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],gU=function(){function r(t){T(iz,function(e){this[e]=it(t[e],t)},this)}return r}(),Ug={},Of=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];T(Ug,function(a,i){var A=a.create(t,e);n=n.concat(A||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){T(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Ug[t]=e},r.get=function(t){return Ug[t]},r}(),Az=/^(min|max)?(.+)$/,oz=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(T(qt(t.series),function(A){A&&A.data&&Ur(A.data)&&gv(A.data)}),T(qt(t.dataset),function(A){A&&A.source&&Ur(A.source)&&gv(A.source)})),t=mt(t);var a=this._optionBackup,i=sz(t,e,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],mt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(e=mt(n[a.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,A=[],o=[];if(!a.length&&!i)return o;for(var s=0,l=a.length;s<l;s++)lz(a[s].query,e,n)&&A.push(s);return!A.length&&i&&(A=[-1]),A.length&&!fz(A,this._currentMediaIndices)&&(o=Y(A,function(u){return mt(u===-1?i.option:a[u].option)})),this._currentMediaIndices=A,o},r}();function sz(r,t,e){var n=[],a,i,A=r.baseOption,o=r.timeline,s=r.options,l=r.media,u=!!r.media,f=!!(s||o||A&&A.timeline);A?(i=A,i.timeline||(i.timeline=o)):((f||u)&&(r.options=r.media=null),i=r),u&&K(l)&&T(l,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),c(i),T(s,function(h){return c(h)}),T(n,function(h){return c(h.option)});function c(h){T(t,function(v){v(h,e)})}return{baseOption:i,timelineOptions:s||[],mediaDefault:a,mediaList:n}}function lz(r,t,e){var n={width:t,height:e,aspectratio:t/e},a=!0;return T(r,function(i,A){var o=A.match(Az);if(!(!o||!o[1]||!o[2])){var s=o[1],l=o[2].toLowerCase();uz(n[l],i,s)||(a=!1)}}),a}function uz(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function fz(r,t){return r.join(",")===t.join(",")}var _n=T,sf=yt,Sx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Pg(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Sx.length;e<n;e++){var a=Sx[e],i=t.normal,A=t.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?Et(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),A&&A[a]&&(r[a]=r[a]||{},r[a].emphasis?Et(r[a].emphasis,A[a]):r[a].emphasis=A[a],A[a]=null)}}function rr(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,a=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,gt(r[t],n)):r[t]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[t]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function ru(r){rr(r,"itemStyle"),rr(r,"lineStyle"),rr(r,"areaStyle"),rr(r,"label"),rr(r,"labelLine"),rr(r,"upperLabel"),rr(r,"edgeLabel")}function xe(r,t){var e=sf(r)&&r[t],n=sf(e)&&e.textStyle;if(n)for(var a=0,i=FS.length;a<i;a++){var A=FS[a];n.hasOwnProperty(A)&&(e[A]=n[A])}}function en(r){r&&(ru(r),xe(r,"label"),r.emphasis&&xe(r.emphasis,"label"))}function cz(r){if(sf(r)){Pg(r),ru(r),xe(r,"label"),xe(r,"upperLabel"),xe(r,"edgeLabel"),r.emphasis&&(xe(r.emphasis,"label"),xe(r.emphasis,"upperLabel"),xe(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Pg(t),en(t));var e=r.markLine;e&&(Pg(e),en(e));var n=r.markArea;n&&en(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!Ur(i))for(var A=0;A<i.length;A++)en(i[A]);T(r.categories,function(l){ru(l)})}if(a&&!Ur(a))for(var A=0;A<a.length;A++)en(a[A]);if(t=r.markPoint,t&&t.data)for(var o=t.data,A=0;A<o.length;A++)en(o[A]);if(e=r.markLine,e&&e.data)for(var s=e.data,A=0;A<s.length;A++)K(s[A])?(en(s[A][0]),en(s[A][1])):en(s[A]);r.type==="gauge"?(xe(r,"axisLabel"),xe(r,"title"),xe(r,"detail")):r.type==="treemap"?(rr(r.breadcrumb,"itemStyle"),T(r.levels,function(l){ru(l)})):r.type==="tree"&&ru(r.leaves)}}function ba(r){return K(r)?r:r?[r]:[]}function xx(r){return(K(r)?r[0]:r)||{}}function hz(r,t){_n(ba(r.series),function(n){sf(n)&&cz(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),_n(e,function(n){_n(ba(r[n]),function(a){a&&(xe(a,"axisLabel"),xe(a.axisPointer,"label"))})}),_n(ba(r.parallel),function(n){var a=n&&n.parallelAxisDefault;xe(a,"axisLabel"),xe(a&&a.axisPointer,"label")}),_n(ba(r.calendar),function(n){rr(n,"itemStyle"),xe(n,"dayLabel"),xe(n,"monthLabel"),xe(n,"yearLabel")}),_n(ba(r.radar),function(n){xe(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)}),_n(ba(r.geo),function(n){sf(n)&&(en(n),_n(ba(n.regions),function(a){en(a)}))}),_n(ba(r.timeline),function(n){en(n),rr(n,"label"),rr(n,"itemStyle"),rr(n,"controlStyle",!0);var a=n.data;K(a)&&T(a,function(i){yt(i)&&(rr(i,"label"),rr(i,"itemStyle"))})}),_n(ba(r.toolbox),function(n){rr(n,"iconStyle"),_n(n.feature,function(a){rr(a,"iconStyle")})}),xe(xx(r.axisPointer),"label"),xe(xx(r.tooltip).axisPointer,"label")}function vz(r,t){for(var e=t.split(","),n=r,a=0;a<e.length&&(n=n&&n[e[a]],n!=null);a++);return n}function dz(r,t,e,n){for(var a=t.split(","),i=r,A,o=0;o<a.length-1;o++)A=a[o],i[A]==null&&(i[A]={}),i=i[A];i[a[o]]==null&&(i[a[o]]=e)}function bx(r){r&&T(pz,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var pz=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],gz=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Rg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Sl(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Rg.length;e++){var n=Rg[e][1],a=Rg[e][0];t[n]!=null&&(t[a]=t[n])}}function Tx(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Ix(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function yz(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function yU(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&yU(r[e].children,t)}function mU(r,t){hz(r,t),r.series=qt(r.series),T(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),Tx(e.label);var a=e.data;if(a&&!Ur(a))for(var i=0;i<a.length;i++)Tx(a[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var A=vz(e,"pointer.color");A!=null&&dz(e,"itemStyle.color",A)}else if(n==="bar"){Sl(e),Sl(e.backgroundStyle),Sl(e.emphasis);var a=e.data;if(a&&!Ur(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Sl(a[i]),Sl(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),Ix(e),yU(e.data,Ix)}else n==="graph"||n==="sankey"?yz(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&>(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),bx(e)}}),r.dataRange&&(r.visualMap=r.dataRange),T(gz,function(e){var n=r[e];n&&(K(n)||(n=[n]),T(n,function(a){bx(a)}))})}function mz(r){var t=ft();r.eachSeries(function(e){var n=e.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=e.getData(),A={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!A.stackedDimension||!(A.isStackedByIndex||A.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(A)}}),t.each(wz)}function wz(r){T(r,function(t,e){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],A=t.data,o=t.isStackedByIndex,s=t.seriesModel.get("stackStrategy")||"samesign";A.modify(i,function(l,u,f){var c=A.get(t.stackedDimension,f);if(isNaN(c))return a;var h,v;o?v=A.getRawIndex(f):h=A.get(t.stackedByDimension,f);for(var d=NaN,p=e-1;p>=0;p--){var g=r[p];if(o||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(s==="all"||s==="positive"&&y>0||s==="negative"&&y<0||s==="samesign"&&c>=0&&y>0||s==="samesign"&&c<=0&&y<0){c=pK(c,y),d=y;break}}}return n[0]=c,n[1]=d,n})})}var ip=function(){function r(t){this.data=t.data||(t.sourceFormat===ya?{}:[]),this.sourceFormat=t.sourceFormat||fU,this.seriesLayoutBy=t.seriesLayoutBy||fa,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 a=e[n];a.type==null&&vU(this,n)===ze.Must&&(a.type="ordinal")}}return r}();function __(r){return r instanceof ip}function H0(r,t,e){e=e||wU(r);var n=t.seriesLayoutBy,a=_z(r,e,n,t.sourceHeader,t.dimensions),i=new ip({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:mt(t)});return i}function C_(r){return new ip({data:r,sourceFormat:Ur(r)?Hi:mn})}function Bz(r){return new ip({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:mt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function wU(r){var t=fU;if(Ur(r))t=Hi;else if(K(r)){r.length===0&&(t=lr);for(var e=0,n=r.length;e<n;e++){var a=r[e];if(a!=null){if(K(a)||Ur(a)){t=lr;break}else if(yt(a)){t=wn;break}}}}else if(yt(r)){for(var i in r)if(st(r,i)&&sr(r[i])){t=ya;break}}return t}function _z(r,t,e,n,a){var i,A;if(!r)return{dimensionsDefine:Fx(a),startIndex:A,dimensionsDetectedCount:i};if(t===lr){var o=r;n==="auto"||n==null?Ex(function(l){l!=null&&l!=="-"&&(nt(l)?A==null&&(A=1):A=0)},e,o,10):A=Kt(n)?n:n?1:0,!a&&A===1&&(a=[],Ex(function(l,u){a[u]=l!=null?l+"":""},e,o,1/0)),i=a?a.length:e===al?o.length:o[0]?o[0].length:null}else if(t===wn)a||(a=Cz(r));else if(t===ya)a||(a=[],T(r,function(l,u){a.push(u)}));else if(t===mn){var s=$s(r[0]);i=K(s)&&s.length||1}return{startIndex:A,dimensionsDefine:Fx(a),dimensionsDetectedCount:i}}function Cz(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Ht(e)}function Fx(r){if(r){var t=ft();return Y(r,function(e,n){e=yt(e)?e:{name:e};var a={name:e.name,displayName:e.displayName,type:e.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function Ex(r,t,e,n){if(t===al)for(var a=0;a<e.length&&a<n;a++)r(e[a]?e[a][0]:null,a);else for(var i=e[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function BU(r){var t=r.sourceFormat;return t===wn||t===ya}var _A,CA,SA,Dx,Qx,_U=function(){function r(t,e){var n=__(t)?t:C_(t);this._source=n;var a=this._data=n.data;n.sourceFormat===Hi&&(this._offset=0,this._dimSize=e,this._data=a),Qx(this,a,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;Qx=function(A,o,s){var l=s.sourceFormat,u=s.seriesLayoutBy,f=s.startIndex,c=s.dimensionsDefine,h=Dx[S_(l,u)];if(V(A,h),l===Hi)A.getItem=e,A.count=a,A.fillStorage=n;else{var v=CU(l,u);A.getItem=it(v,null,o,f,c);var d=SU(l,u);A.count=it(d,null,o,f,c)}};var e=function(A,o){A=A-this._offset,o=o||[];for(var s=this._data,l=this._dimSize,u=l*A,f=0;f<l;f++)o[f]=s[u+f];return o},n=function(A,o,s,l){for(var u=this._data,f=this._dimSize,c=0;c<f;c++){for(var h=l[c],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],p=o-A,g=s[c],y=0;y<p;y++){var m=u[y*f+c];g[A+y]=m,m<v&&(v=m),m>d&&(d=m)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};Dx=(t={},t[lr+"_"+fa]={pure:!0,appendData:i},t[lr+"_"+al]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[wn]={pure:!0,appendData:i},t[ya]={pure:!0,appendData:function(A){var o=this._data;T(A,function(s,l){for(var u=o[l]||(o[l]=[]),f=0;f<(s||[]).length;f++)u.push(s[f])})}},t[mn]={appendData:i},t[Hi]={persistent:!1,pure:!0,appendData:function(A){this._data=A},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(A){for(var o=0;o<A.length;o++)this._data.push(A[o])}}(),r}(),Lx=function(r,t,e,n){return r[n]},Sz=(_A={},_A[lr+"_"+fa]=function(r,t,e,n){return r[n+t]},_A[lr+"_"+al]=function(r,t,e,n,a){n+=t;for(var i=a||[],A=r,o=0;o<A.length;o++){var s=A[o];i[o]=s?s[n]:null}return i},_A[wn]=Lx,_A[ya]=function(r,t,e,n,a){for(var i=a||[],A=0;A<e.length;A++){var o=e[A].name,s=r[o];i[A]=s?s[n]:null}return i},_A[mn]=Lx,_A);function CU(r,t){var e=Sz[S_(r,t)];return e}var Mx=function(r,t,e){return r.length},xz=(CA={},CA[lr+"_"+fa]=function(r,t,e){return Math.max(0,r.length-t)},CA[lr+"_"+al]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},CA[wn]=Mx,CA[ya]=function(r,t,e){var n=e[0].name,a=r[n];return a?a.length:0},CA[mn]=Mx,CA);function SU(r,t){var e=xz[S_(r,t)];return e}var Hg=function(r,t,e){return r[t]},bz=(SA={},SA[lr]=Hg,SA[wn]=function(r,t,e){return r[e]},SA[ya]=Hg,SA[mn]=function(r,t,e){var n=$s(r);return n instanceof Array?n[t]:n},SA[Hi]=Hg,SA);function xU(r){var t=bz[r];return t}function S_(r,t){return r===lr?r+"_"+t:r}function Rs(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(e!=null){var A=r.getDimensionIndex(e),o=a.getDimensionProperty(A);return xU(i)(n,A,o)}else{var s=n;return i===mn&&(s=$s(n)),s}}}}var Tz=/\{@(.+?)\}/g,Ap=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),a=this.getRawValue(t,e),i=n.getRawIndex(t),A=n.getName(t),o=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,f=this.mainType,c=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:A,dataIndex:i,data:o,dataType:e,value:a,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,a,i,A){e=e||"normal";var o=this.getData(n),s=this.getDataParams(t,n);if(A&&(s.value=A.interpolatedValue),a!=null&&K(s.value)&&(s.value=s.value[a]),!i){var l=o.getItemModel(t);i=l.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(vt(i))return s.status=e,s.dimensionIndex=a,i(s);if(nt(i)){var u=AU(i,s);return u.replace(Tz,function(f,c){var h=c.length,v=c;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var d=Rs(o,t,v);if(A&&K(A.interpolatedValue)){var p=o.getDimensionIndex(v);p>=0&&(d=A.interpolatedValue[p])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return Rs(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Ux(r){var t,e;return yt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Qu(r){return new Iz(r)}var Iz=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 a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var A=u(this._modBy),o=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;(A!==s||o!==l)&&(i="reset");function u(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=s,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(f||h<v)){var d=this._progress;if(K(d))for(var p=0;p<d.length;p++)this._doProgress(d[p],h,v,s,l);else this._doProgress(d,h,v,s,l)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}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,a,i){Px.reset(e,n,a,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Px.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),K(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.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}(),Px=function(){var r,t,e,n,a,i={reset:function(s,l,u,f){t=s,r=l,e=u,n=f,a=Math.ceil(n/e),i.next=e>1&&n>0?o:A}};return i;function A(){return t<r?t++:null}function o(){var s=t%a*e+Math.ceil(t/a),l=t>=r?null:s<n?s:t;return t++,l}}();function Oi(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Kt(r)&&r!=null&&r!=="-"&&(r=+pa(r)),r==null||r===""?NaN:Number(r))}var Fz=ft({number:function(r){return parseFloat(r)},time:function(r){return+pa(r)},trim:function(r){return nt(r)?Dn(r):r}});function bU(r){return Fz.get(r)}var TU={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}},Ez=function(){function r(t,e){if(!Kt(e)){var n="";Xt(n)}this._opFn=TU[t],this._rvalFloat=za(e)}return r.prototype.evaluate=function(t){return Kt(t)?this._opFn(t,this._rvalFloat):this._opFn(za(t),this._rvalFloat)},r}(),IU=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=Kt(t)?t:za(t),a=Kt(e)?e:za(e),i=isNaN(n),A=isNaN(a);if(i&&(n=this._incomparable),A&&(a=this._incomparable),i&&A){var o=nt(t),s=nt(e);o&&(n=s?t:0),s&&(a=o?e:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r}(),Dz=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=za(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=za(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function Qz(r,t){return r==="eq"||r==="ne"?new Dz(r==="eq",t):st(TU,r)?new Ez(r,t):null}var Lz=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 Oi(t,e)},r}();function Mz(r,t){var e=new Lz,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,A="";r.seriesLayoutBy!==fa&&Xt(A);var o=[],s={},l=r.dimensionsDefine;if(l)T(l,function(d,p){var g=d.name,y={index:p,name:g,displayName:d.displayName};if(o.push(y),g!=null){var m="";st(s,g)&&Xt(m),s[g]=y}});else for(var u=0;u<r.dimensionsDetectedCount;u++)o.push({index:u});var f=CU(a,fa);t.__isBuiltIn&&(e.getRawDataItem=function(d){return f(n,i,o,d)},e.getRawData=it(Uz,null,r)),e.cloneRawData=it(Pz,null,r);var c=SU(a,fa);e.count=it(c,null,n,i,o);var h=xU(a);e.retrieveValue=function(d,p){var g=f(n,i,o,d);return v(g,p)};var v=e.retrieveValueFromItem=function(d,p){if(d!=null){var g=o[p];if(g)return h(d,p,g.name)}};return e.getDimensionInfo=it(Rz,null,o,s),e.cloneAllDimensionInfo=it(Hz,null,o),e}function Uz(r){var t=r.sourceFormat;if(!x_(t)){var e="";Xt(e)}return r.data}function Pz(r){var t=r.sourceFormat,e=r.data;if(!x_(t)){var n="";Xt(n)}if(t===lr){for(var a=[],i=0,A=e.length;i<A;i++)a.push(e[i].slice());return a}else if(t===wn){for(var a=[],i=0,A=e.length;i<A;i++)a.push(V({},e[i]));return a}}function Rz(r,t,e){if(e!=null){if(Kt(e)||!isNaN(e)&&!st(t,e))return r[e];if(st(t,e))return t[e]}}function Hz(r){return mt(r)}var FU=ft();function Oz(r){r=mt(r);var t=r.type,e="";t||Xt(e);var n=t.split(":");n.length!==2&&Xt(e);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),r.__isBuiltIn=a,FU.set(t,r)}function kz(r,t,e){var n=qt(r),a=n.length,i="";a||Xt(i);for(var A=0,o=a;A<o;A++){var s=n[A];t=Nz(s,t),A!==o-1&&(t.length=Math.max(t.length,1))}return t}function Nz(r,t,e,n){var a="";t.length||Xt(a),yt(r)||Xt(a);var i=r.type,A=FU.get(i);A||Xt(a);var o=Y(t,function(l){return Mz(l,A)}),s=qt(A.transform({upstream:o[0],upstreamList:o,config:mt(r.config)}));return Y(s,function(l,u){var f="";yt(l)||Xt(f),l.data||Xt(f);var c=wU(l.data);x_(c)||Xt(f);var h,v=t[0];if(v&&u===0&&!l.dimensions){var d=v.startIndex;d&&(l.data=v.data.slice(0,d).concat(l.data)),h={seriesLayoutBy:fa,sourceHeader:d,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:fa,sourceHeader:0,dimensions:l.dimensions};return H0(l.data,h,null)})}function x_(r){return r===lr||r===wn}var op="undefined",Vz=typeof Uint32Array===op?Array:Uint32Array,Gz=typeof Uint16Array===op?Array:Uint16Array,EU=typeof Int32Array===op?Array:Int32Array,Rx=typeof Float64Array===op?Array:Float64Array,DU={float:Rx,int:EU,ordinal:Array,number:Array,time:Rx},Og;function xl(r){return r>65535?Vz:Gz}function Oo(){return[1/0,-1/0]}function Kz(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Hx(r,t,e,n,a){var i=DU[e||"float"];if(a){var A=r[t],o=A&&A.length;if(o!==n){for(var s=new i(n),l=0;l<o;l++)s[l]=A[l];r[t]=s}}else r[t]=new i(n)}var O0=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 a=t.getSource(),i=this.defaultDimValueGetter=Og[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],BU(a),this._dimensions=Y(e,function(A){return{type:A.type,property:A.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,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===e)return i}else i=a.length;return a[i]={type:e},n.set(t,i),this._chunks[i]=new DU[e||"float"](this._rawCount),this._rawExtent[i]=Oo(),i},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,A=a.ordinalOffset||0,o=n.length;A===0&&(i[t]=Oo());for(var s=i[t],l=A;l<o;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}a.ordinalMeta=e,a.ordinalOffset=o,a.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 a=e.count();return e.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,a=this._dimensions,i=a.length,A=this._rawExtent,o=this.count(),s=o+Math.max(t.length,e||0),l=0;l<i;l++){var u=a[l];Hx(n,l,u.type,s,!0)}for(var f=[],c=o;c<s;c++)for(var h=c-o,v=0;v<i;v++){var u=a[v],d=Og.arrayRows.call(this,t[h]||f,u.property,h,v);n[v][c]=d;var p=A[v];d<p[0]&&(p[0]=d),d>p[1]&&(p[1]=d)}return this._rawCount=this._count=s,{start:o,end:s}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,A=this._dimensions,o=A.length,s=this._rawExtent,l=Y(A,function(y){return y.property}),u=0;u<o;u++){var f=A[u];s[u]||(s[u]=Oo()),Hx(i,u,f.type,e,n)}if(a.fillStorage)a.fillStorage(t,e,i,s);else for(var c=[],h=t;h<e;h++){c=a.getItem(h,c);for(var v=0;v<o;v++){var d=i[v],p=this._dimValueGetter(c,l[v],h,v);d[h]=p;var g=s[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!a.persistent&&a.clean&&a.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=[],a=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,A=a.length;i<A;i++)n.push(this.get(a[i],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 a=0,i=this.count();a<i;a++){var A=this.get(t,a);isNaN(A)||(n+=A)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var n=e.sort(function(i,A){return i-A}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var A=(a+i)/2|0;if(e[A]<t)a=A+1;else if(e[A]>t)i=A-1;else return A}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],A=[];if(!i)return A;n==null&&(n=1/0);for(var o=1/0,s=-1,l=0,u=0,f=this.count();u<f;u++){var c=this.getRawIndex(u),h=e-i[c],v=Math.abs(h);v<=n&&((v<o||v===o&&h>=0&&s<0)&&(o=v,s=h,l=0),h===s&&(A[l++]=u))}return A.length=l,A},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=e[i]}else t=new n(e.buffer,0,a)}else{var n=xl(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=xl(n._rawCount),A=new i(a),o=[],s=t.length,l=0,u=t[0],f=n._chunks,c=0;c<a;c++){var h=void 0,v=n.getRawIndex(c);if(s===0)h=e(c);else if(s===1){var d=f[u][v];h=e(d,c)}else{for(var p=0;p<s;p++)o[p]=f[t[p]][v];o[p]=c,h=e.apply(null,o)}h&&(A[l++]=v)}return l<a&&(n._indices=A),n._count=l,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var a=Ht(t),i=a.length;if(!i)return this;var A=e.count(),o=xl(e._rawCount),s=new o(A),l=0,u=a[0],f=t[u][0],c=t[u][1],h=e._chunks,v=!1;if(!e._indices){var d=0;if(i===1){for(var p=h[a[0]],g=0;g<n;g++){var y=p[g];(y>=f&&y<=c||isNaN(y))&&(s[l++]=d),d++}v=!0}else if(i===2){for(var p=h[a[0]],m=h[a[1]],w=t[a[1]][0],_=t[a[1]][1],g=0;g<n;g++){var y=p[g],B=m[g];(y>=f&&y<=c||isNaN(y))&&(B>=w&&B<=_||isNaN(B))&&(s[l++]=d),d++}v=!0}}if(!v)if(i===1)for(var g=0;g<A;g++){var C=e.getRawIndex(g),y=h[a[0]][C];(y>=f&&y<=c||isNaN(y))&&(s[l++]=C)}else for(var g=0;g<A;g++){for(var S=!0,C=e.getRawIndex(g),x=0;x<i;x++){var b=a[x],y=h[b][C];(y<t[b][0]||y>t[b][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(g))}return l<A&&(e._indices=s),e._count=l,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 a=t._chunks,i=[],A=e.length,o=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Oo();for(var f=0;f<o;f++){for(var c=t.getRawIndex(f),h=0;h<A;h++)s[h]=a[e[h]][c];s[A]=f;var v=n&&n.apply(null,s);if(v!=null){typeof v!="object"&&(i[0]=v,v=i);for(var u=0;u<v.length;u++){var d=e[u],p=v[u],g=l[d],y=a[d];y&&(y[c]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],A=this.count(),o=0,s=Math.floor(1/e),l=this.getRawIndex(0),u,f,c,h=new(xl(this._rawCount))(Math.min((Math.ceil(A/s)+2)*2,A));h[o++]=l;for(var v=1;v<A-1;v+=s){for(var d=Math.min(v+s,A-1),p=Math.min(v+s*2,A),g=(p+d)/2,y=0,m=d;m<p;m++){var w=this.getRawIndex(m),_=i[w];isNaN(_)||(y+=_)}y/=p-d;var B=v,C=Math.min(v+s,A),S=v-1,x=i[l];u=-1,c=B;for(var b=-1,I=0,m=B;m<C;m++){var w=this.getRawIndex(m),_=i[w];if(isNaN(_)){I++,b<0&&(b=w);continue}f=Math.abs((S-g)*(_-x)-(S-m)*(y-x)),f>u&&(u=f,c=w)}I>0&&I<C-B&&(h[o++]=Math.min(b,c),c=Math.max(b,c)),h[o++]=c,l=c}return h[o++]=this.getRawIndex(A-1),n._count=o,n._indices=h,n.getRawIndex=this._getRawIdx,n},r.prototype.downSample=function(t,e,n,a){for(var i=this.clone([t],!0),A=i._chunks,o=[],s=Math.floor(1/e),l=A[t],u=this.count(),f=i._rawExtent[t]=Oo(),c=new(xl(this._rawCount))(Math.ceil(u/s)),h=0,v=0;v<u;v+=s){s>u-v&&(s=u-v,o.length=s);for(var d=0;d<s;d++){var p=this.getRawIndex(v+d);o[d]=l[p]}var g=n(o),y=this.getRawIndex(Math.min(v+a(o,g)||0,u-1));l[y]=g,g<f[0]&&(f[0]=g),g>f[1]&&(f[1]=g),c[h++]=y}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,A=this.count();i<A;i++){var o=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(a[t[0]][o],i);break;case 2:e(a[t[0]][o],a[t[1]][o],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=a[t[s]][o];l[s]=i,e.apply(null,l)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Oo();if(!e)return n;var a=this.count(),i=!this._indices,A;if(i)return this._rawExtent[t].slice();if(A=this._extent[t],A)return A.slice();A=n;for(var o=A[0],s=A[1],l=0;l<a;l++){var u=this.getRawIndex(l),f=e[u];f<o&&(o=f),f>s&&(s=f)}return A=[o,s],this._extent[t]=A,A},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][e]);return n},r.prototype.clone=function(t,e){var n=new r,a=this._chunks,i=t&&ha(t,function(o,s){return o[s]=!0,o},{});if(i)for(var A=0;A<a.length;A++)n._chunks[A]=i[A]?Kz(a[A]):a[A];else n._chunks=a;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 a=0;a<n;a++)e[a]=this._indices[a]}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,a,i){return Oi(e[i],this._dimensions[i])}Og={arrayRows:t,objectRows:function(e,n,a,i){return Oi(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var A=e&&(e.value==null?e:e.value);return Oi(A instanceof Array?A[i]:A,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),QU=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,a,i;if(bc(t)){var A=t,o=void 0,s=void 0,l=void 0;if(n){var u=e[0];u.prepareSource(),l=u.getSource(),o=l.data,s=l.sourceFormat,i=[u._getVersionSign()]}else o=A.get("data",!0),s=Ur(o)?Hi:mn,i=[];var f=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},h=xt(f.seriesLayoutBy,c.seriesLayoutBy)||null,v=xt(f.sourceHeader,c.sourceHeader),d=xt(f.dimensions,c.dimensions),p=h!==c.seriesLayoutBy||!!v!=!!c.sourceHeader||d;a=p?[H0(o,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},s)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var m=g.get("source",!0);a=[H0(m,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&kx(i)}var A,o=[],s=[];return T(t,function(l){l.prepareSource();var u=l.getSource(a||0),f="";a!=null&&!u&&kx(f),o.push(u),s.push(l._getVersionSign())}),n?A=kz(n,o,{datasetIndex:e.componentIndex}):a!=null&&(A=[Bz(o[0])]),{sourceList:A,upstreamSignList:s}},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 a=0,i=this._storeList,A=i[a];A||(A=i[a]={});var o=A[n];if(!o){var s=this._getUpstreamSourceManagers()[0];bc(this._sourceHost)&&s?o=s._innerGetDataStore(t,e,n):(o=new O0,o.initData(new _U(e,t.length),t)),A[n]=o}return o},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(bc(t)){var e=m_(t);return e?[e.getSourceManager()]:[]}else return Y($3(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,a;if(bc(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:a}},r}();function Ox(r){var t=r.option.transform;t&&gv(r.option.transform)}function bc(r){return r.mainType==="series"}function kx(r){throw new Error(r)}var LU="line-height:1";function MU(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||"#464646",A=r.fontSize||14,o=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Dr(n+"")+"px;color:"+Dr(e)+";font-weight:"+Dr(a+""),valueStyle:"font-size:"+Dr(A+"")+"px;color:"+Dr(i)+";font-weight:"+Dr(o+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:a},valueStyle:{fontSize:A,fill:i,fontWeight:o}}}var zz=[0,10,20,30],Wz=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function ke(r,t){return t.type=r,t}function k0(r){return r.type==="section"}function UU(r){return k0(r)?Xz:Yz}function PU(r){if(k0(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return T(r.blocks,function(a){var i=PU(a);i>=t&&(t=i+ +(n&&(!i||k0(a)&&!a.noHeader)))}),t}return 0}function Xz(r,t,e,n){var a=t.noHeader,i=Zz(PU(t)),A=[],o=t.blocks||[];Br(!o||K(o)),o=o||[];var s=r.orderMode;if(t.sortBlocks&&s){o=o.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(st(l,s)){var u=new IU(l[s],null);o.sort(function(v,d){return u.evaluate(v.sortParam,d.sortParam)})}else s==="seriesDesc"&&o.reverse()}T(o,function(v,d){var p=t.valueFormatter,g=UU(v)(p?V(V({},r),{valueFormatter:p}):r,v,d>0?i.html:0,n);g!=null&&A.push(g)});var f=r.renderMode==="richText"?A.join(i.richText):N0(A.join(""),a?e:i.html);if(a)return f;var c=U0(t.header,"ordinal",r.useUTC),h=MU(n,r.renderMode).nameStyle;return r.renderMode==="richText"?RU(r,c,h)+i.richText+f:N0('<div style="'+h+";"+LU+';">'+Dr(c)+"</div>"+f,e)}function Yz(r,t,e,n){var a=r.renderMode,i=t.noName,A=t.noValue,o=!t.markerType,s=t.name,l=r.useUTC,u=t.valueFormatter||r.valueFormatter||function(w){return w=K(w)?w:[w],Y(w,function(_,B){return U0(_,K(h)?h[B]:h,l)})};if(!(i&&A)){var f=o?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),c=i?"":U0(s,"ordinal",l),h=t.valueType,v=A?[]:u(t.value,t.dataIndex),d=!o||!i,p=!o&&i,g=MU(n,a),y=g.nameStyle,m=g.valueStyle;return a==="richText"?(o?"":f)+(i?"":RU(r,c,y))+(A?"":qz(r,v,d,p,m)):N0((o?"":f)+(i?"":$z(c,!o,y))+(A?"":Jz(v,d,p,m)),e)}}function Nx(r,t,e,n,a,i){if(r){var A=UU(r),o={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return A(o,r,0,i)}}function Zz(r){return{html:zz[r],richText:Wz[r]}}function N0(r,t){var e='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+LU+';">'+r+e+"</div>"}function $z(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+Dr(r)+"</span>"}function Jz(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=K(r)?r:[r],'<span style="'+i+";"+n+'">'+Y(r,function(A){return Dr(A)}).join(" ")+"</span>"}function RU(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function qz(r,t,e,n,a){var i=[a],A=n?10:20;return e&&i.push({padding:[0,0,0,A],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(K(t)?t.join(" "):t,i)}function HU(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return go(n)}function OU(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var kg=function(){function r(){this.richTextStyles={},this._nextStyleNameId=tM()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=G3({color:e,type:t,renderMode:n,markerId:a});return nt(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};K(e)?T(e,function(i){return V(n,i)}):V(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function kU(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),A=i.length,o=t.getRawValue(e),s=K(o),l=HU(t,e),u,f,c,h;if(A>1||s&&!A){var v=jz(o,t,e,i,l);u=v.inlineValues,f=v.inlineValueTypes,c=v.blocks,h=v.inlineValues[0]}else if(A){var d=a.getDimensionInfo(i[0]);h=u=Rs(a,e,i[0]),f=d.type}else h=u=s?o[0]:o;var p=JB(t),g=p&&t.name||"",y=a.getName(e),m=n?g:y;return ke("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[ke("nameValue",{markerType:"item",markerColor:l,name:m,noName:!Dn(m),value:u,valueType:f,dataIndex:e})].concat(c||[])})}function jz(r,t,e,n,a){var i=t.getData(),A=ha(r,function(f,c,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),o=[],s=[],l=[];n.length?T(n,function(f){u(Rs(i,e,f),f)}):T(r,u);function u(f,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(A?l.push(ke("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(o.push(f),s.push(h.type)))}return{inlineValues:o,inlineValueTypes:s,blocks:l}}var si=Vt();function Tc(r,t){return r.getName(t)||r.getId(t)}var $h="__universalTransitionEnabled",se=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Qu({count:eW,reset:rW}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=si(this).sourceManager=new QU(this);i.prepareSource();var A=this.getInitialData(e,a);Gx(A,this),this.dataTask.context.data=A,si(this).dataBeforeProcessed=A,Vx(this),this._initSelectedMapFromData(A)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=of(this),i=a?nl(e):{},A=this.subType;Rt.hasClass(A)&&(A+="Series"),Et(e,n.getTheme().get(this.subType)),Et(e,this.getDefaultOption()),co(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Yi(e,i,a)},t.prototype.mergeOption=function(e,n){e=Et(this.option,e,!0),this.fillDataTextStyle(e.data);var a=of(this);a&&Yi(this.option,e,a);var i=si(this).sourceManager;i.dirty(),i.prepareSource();var A=this.getInitialData(e,n);Gx(A,this),this.dataTask.dirty(),this.dataTask.context.data=A,si(this).dataBeforeProcessed=A,Vx(this),this._initSelectedMapFromData(A)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ur(e))for(var n=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&co(e[a],"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=V0(this);if(n){var a=n.context.data;return e==null||!a.getLinkedData?a:a.getLinkedData(e)}else return si(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=V0(this);if(n){var a=n.context;a.outputData=e,n!==this.dataTask&&(a.data=e)}si(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return ft(e)},t.prototype.getSourceManager=function(){return si(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return si(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,a){return kU({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ut.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,a){var i=this.ecModel,A=w_.prototype.getColorFromPalette.call(this,e,n,a);return A||(A=i.getColorFromPalette(e,n,a)),A},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 a=this.option.selectedMap;if(a){var i=this.option.selectedMode,A=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o<e.length;o++){var s=e[o],l=Tc(A,s);a[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(e,n){for(var a=[],i=0;i<e.length;i++)a[0]=e[i],this.isSelected(e[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=Ht(e),a=[],i=0;i<n.length;i++){var A=e[n[i]];A>=0&&a.push(A)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Tc(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[$h])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,A=this.option,o=A.selectedMode,s=n.length;if(!(!o||!s)){if(o==="series")A.selectedMap="all";else if(o==="multiple"){yt(A.selectedMap)||(A.selectedMap={});for(var l=A.selectedMap,u=0;u<s;u++){var f=n[u],c=Tc(e,f);l[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(f)}}else if(o==="single"||o===!0){var h=n[s-1],c=Tc(e,h);A.selectedMap=(a={},a[c]=!0,a),this._selectedDataIndicesMap=(i={},i[c]=e.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(a){var i=e.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Rt.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}(Rt);Fe(se,Ap);Fe(se,w_);lM(se,Rt);function Vx(r){var t=r.name;JB(r)||(r.name=tW(r)||t)}function tW(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return T(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function eW(r){return r.model.getRawData().count()}function rW(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),nW}function nW(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Gx(r,t){T(yv(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(aW,t))})}function aW(r,t){var e=V0(r);return e&&e.setOutputEnd((t||this).count()),t}function V0(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var de=function(){function r(){this.group=new _t,this.uid=el("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();jB(de);Vd(de);function il(){var r=Vt();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,A=e.large=!!(n&&n.large),o=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==A||i!==o)&&"reset"}}var NU=Vt(),iW=il(),jt=function(){function r(){this.group=new _t,this.uid=el("viewChart"),this.renderTask=Qu({plan:AW,reset:oW}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&zx(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&zx(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){rA(this.group,t)},r.markUpdateMethod=function(t,e){NU(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Kx(r,t,e){r&&nf(r)&&(t==="emphasis"?Wa:Xa)(r,e)}function zx(r,t,e){var n=ho(r,t),a=t&&t.highlightKey!=null?G5(t.highlightKey):null;n!=null?T(qt(n),function(i){Kx(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Kx(i,e,a)})}jB(jt);Vd(jt);function AW(r){return iW(r.model)}function oW(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,A=r.view,o=a&&NU(a).updateMethod,s=i?"incrementalPrepareRender":o&&A[o]?o:"render";return s!=="render"&&A[s](t,e,n,a),sW[s]}var sW={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)}}},Uv="\0__throttleOriginMethod",Wx="\0__throttleRate",Xx="\0__throttleType";function b_(r,t,e){var n,a=0,i=0,A=null,o,s,l,u;t=t||0;function f(){i=new Date().getTime(),A=null,r.apply(s,l||[])}var c=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),s=this,l=h;var d=u||t,p=u||e;u=null,o=n-(p?a:i)-d,clearTimeout(A),p?A=setTimeout(f,d):o>=0?f():A=setTimeout(f,-o),a=n};return c.clear=function(){A&&(clearTimeout(A),A=null)},c.debounceNextCall=function(h){u=h},c}function Al(r,t,e,n){var a=r[t];if(a){var i=a[Uv]||a,A=a[Xx],o=a[Wx];if(o!==e||A!==n){if(e==null||!n)return r[t]=i;a=r[t]=b_(i,e,n==="debounce"),a[Uv]=i,a[Xx]=n,a[Wx]=e}return a}}function lf(r,t){var e=r[t];e&&e[Uv]&&(e.clear&&e.clear(),r[t]=e[Uv])}var Yx=Vt(),Zx={itemStyle:vo(XM,!0),lineStyle:vo(WM,!0)},lW={lineStyle:"stroke",itemStyle:"fill"};function VU(r,t){var e=r.visualStyleMapper||Zx[t];return e||(console.warn("Unknown style type '"+t+"'."),Zx.itemStyle)}function GU(r,t){var e=r.visualDrawType||lW[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var uW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=VU(r,n),A=i(a),o=a.getShallow("decal");o&&(e.setVisual("decal",o),o.dirty=!0);var s=GU(r,n),l=A[s],u=vt(l)?l:null,f=A.fill==="auto"||A.stroke==="auto";if(!A[s]||u||f){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());A[s]||(A[s]=c,e.setVisual("colorFromPalette",!0)),A.fill=A.fill==="auto"||vt(A.fill)?c:A.fill,A.stroke=A.stroke==="auto"||vt(A.stroke)?c:A.stroke}if(e.setVisual("style",A),e.setVisual("drawType",s),!t.isSeriesFiltered(r)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),p=V({},A);p[s]=u(d),h.setItemVisual(v,"style",p)}}}},bl=new Yt,fW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=VU(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(A,o){var s=A.getRawDataItem(o);if(s&&s[n]){bl.option=s[n];var l=a(bl),u=A.ensureUniqueItemVisual(o,"style");V(u,l),bl.option.decal&&(A.setItemVisual(o,"decal",bl.option.decal),bl.option.decal.dirty=!0),i in l&&A.setItemVisual(o,"colorFromPalette",!1)}}:null}}}},cW={performRawSeries:!0,overallReset:function(r){var t=ft();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Yx(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),A=Yx(e).scope,o=e.visualStyleAccessPath||"itemStyle",s=GU(e,o);i.each(function(l){var u=i.getRawIndex(l);a[u]=l}),n.each(function(l){var u=a[l],f=i.getItemVisual(u,"colorFromPalette");if(f){var c=i.ensureUniqueItemVisual(u,"style"),h=n.getName(l)||l+"",v=n.count();c[s]=e.getColorFromPalette(h,A,v)}})}})}},Ic=Math.PI;function hW(r,t){t=t||{},gt(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 Nt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=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}),i=new Nt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var A;return t.showSpinner&&(A=new Zd({shape:{startAngle:-Ic/2,endAngle:-Ic/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),A.animateShape(!0).when(1e3,{endAngle:Ic*3/2}).start("circularInOut"),A.animateShape(!0).when(1e3,{startAngle:Ic*3/2}).delay(300).start("circularInOut"),e.add(A)),e.resize=function(){var o=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-s*2-(t.showSpinner&&o?10:0)-o)/2-(t.showSpinner&&o?0:5+o/2)+(t.showSpinner?0:o/2)+(o?0:s),u=r.getHeight()/2;t.showSpinner&&A.setShape({cx:l,cy:u}),i.setShape({x:l-s,y:u-s,width:s*2,height:s*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var KU=function(){function r(t,e,n,a){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,A=i?n.step:null,o=a&&a.modDataCount,s=o!=null?Math.ceil(o/A):null;return{step:A,modBy:s,modDataCount:o}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),A=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),s=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:A,modDataCount:s,large:o}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries(function(a){var i=a.getProgressive(),A=a.uid;n.set(A,{id:A,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;T(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),A="";Br(!(a.reset&&a.overallReset),A),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,A=i.context;A.model=e,A.ecModel=n,A.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,A=this;T(t,function(s,l){if(!(a.visualType&&a.visualType!==s.visualType)){var u=A._stageTaskMap.get(s.uid),f=u.seriesTaskMap,c=u.overallTask;if(c){var h,v=c.agentStubMap;v.each(function(p){o(a,p)&&(p.dirty(),h=!0)}),h&&c.dirty(),A.updatePayload(c,n);var d=A.getPerformArgs(c,a.block);v.each(function(p){p.perform(d)}),c.perform(d)&&(i=!0)}else f&&f.each(function(p,g){o(a,p)&&p.dirty();var y=A.getPerformArgs(p,a.block);y.skip=!s.performRawSeries&&e.isSeriesFiltered(p.context.model),A.updatePayload(p,n),p.perform(y)&&(i=!0)})}});function o(s,l){return s.setDirty&&(!s.dirtyMap||s.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||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,a){var i=this,A=e.seriesTaskMap,o=e.seriesTaskMap=ft(),s=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,a).each(u);function u(f){var c=f.uid,h=o.set(c,A&&A.get(c)||Qu({plan:yW,reset:mW,count:BW}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,A=e.overallTask=e.overallTask||Qu({reset:vW});A.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var o=A.agentStubMap,s=A.agentStubMap=ft(),l=t.seriesType,u=t.getTargetSeries,f=!0,c=!1,h="";Br(!t.createOnAllSeries,h),l?n.eachRawSeriesByType(l,v):u?u(n,a).each(v):(f=!1,T(n.getSeries(),v));function v(d){var p=d.uid,g=s.set(p,o&&o.get(p)||(c=!0,Qu({reset:dW,onDirty:gW})));g.context={model:d,overallProgress:f},g.agent=A,g.__block=f,i._pipe(d,g)}c&&A.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:_W(t)}),t.uid=el("stageHandler"),e&&(t.visualType=e),t},r}();function vW(r){r.overallReset(r.ecModel,r.api,r.payload)}function dW(r){return r.overallProgress&&pW}function pW(){this.agent.dirty(),this.getDownstream().dirty()}function gW(){this.agent&&this.agent.dirty()}function yW(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function mW(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=qt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,n){return zU(n)}):wW}var wW=zU(0);function zU(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function BW(r){return r.data.count()}function _W(r){Pv=null;try{r(uf,WU)}catch{}return Pv}var uf={},WU={},Pv;XU(uf,B_);XU(WU,gU);uf.eachSeriesByType=uf.eachRawSeriesByType=function(r){Pv=r};uf.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Pv=r.subType)};function XU(r,t){for(var e in t.prototype)r[e]=Be}var $x=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const CW={color:$x,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$x]};var cr="#B9B8CE",Jx="#100C2A",Fc=function(){return{axisLine:{lineStyle:{color:cr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},qx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],YU={darkMode:!0,color:qx,backgroundColor:Jx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:cr}},textStyle:{color:cr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:cr}},dataZoom:{borderColor:"#71708A",textStyle:{color:cr},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:cr}},timeline:{lineStyle:{color:cr},label:{color:cr},controlStyle:{color:cr,borderColor:cr}},calendar:{itemStyle:{color:Jx},dayLabel:{color:cr},monthLabel:{color:cr},yearLabel:{color:cr}},timeAxis:Fc(),logAxis:Fc(),valueAxis:Fc(),categoryAxis:Fc(),line:{symbol:"circle"},graph:{color:qx},gauge:{title:{color:cr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:cr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};YU.categoryAxis.splitLine.show=!1;var SW=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},a={};if(nt(t)){var i=ia(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var A=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};T(t,function(s,l){for(var u=!1,f=0;f<A.length;f++){var c=A[f],h=l.lastIndexOf(c);if(h>0&&h===l.length-c.length){var v=l.slice(0,h);v!=="data"&&(e.mainType=v,e[c.toLowerCase()]=s,u=!0)}}o.hasOwnProperty(l)&&(n[l]=s,u=!0),u||(a[l]=s)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,A=n.model,o=n.view;if(!A||!o)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,A,"mainType")&&u(s,A,"subType")&&u(s,A,"index","componentIndex")&&u(s,A,"name")&&u(s,A,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,a,i));function u(f,c,h,v){return f[h]==null||c[v||h]===f[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),G0=["symbol","symbolSize","symbolRotate","symbolOffset"],jx=G0.concat(["symbolKeepAspect"]),xW={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={},a={},i=!1,A=0;A<G0.length;A++){var o=G0[A],s=r.get(o);vt(s)?(i=!0,a[o]=s):n[o]=s}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(V({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var l=Ht(a);function u(f,c){for(var h=r.getRawValue(c),v=r.getDataParams(c),d=0;d<l.length;d++){var p=l[d];f.setItemVisual(c,p,a[p](h,v))}}return{dataEach:i?u:null}}},bW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(a,i){for(var A=a.getItemModel(i),o=0;o<jx.length;o++){var s=jx[o],l=A.getShallow(s,!0);l!=null&&a.setItemVisual(i,s,l)}}return{dataEach:e.hasItemOption?n:null}}};function T_(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 kf(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 ZU(r,t,e,n){switch(e){case"color":var a=r.ensureUniqueItemVisual(t,"style");a[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 $U(r,t){function e(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(A){i.push(A.seriesIndex)}),i}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,A){a=V({},a),A.dispatchAction(V(a,{type:n[1],seriesIndex:e(i,a)}))})})}function ko(r,t,e,n,a){var i=r+t;e.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(A){for(var o=A.seriesIndex,s=A.option.selectedMap,l=a.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===o){var f=A.getData(),c=ho(f,a.fromActionPayload);e.trigger(i,{type:i,seriesId:A.id,name:K(c)?f.getName(c[0]):f.getName(c),selected:nt(s)?s:V({},s)})}})}function TW(r,t,e){r.on("selectchanged",function(n){var a=e.getModel();n.isFromClick?(ko("map","selectchanged",t,a,n),ko("pie","selectchanged",t,a,n)):n.fromAction==="select"?(ko("map","selected",t,a,n),ko("pie","selected",t,a,n)):n.fromAction==="unselect"&&(ko("map","unselected",t,a,n),ko("pie","unselected",t,a,n))})}function XA(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var IW=Math.round(Math.random()*9),FW=typeof Object.defineProperty=="function",EW=function(){function r(){this._id="__ec_inner_"+IW++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return FW?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}(),DW=Mt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n+i),r.lineTo(e-a,n+i),r.closePath()}}),QW=Mt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n),r.lineTo(e,n+i),r.lineTo(e-a,n),r.closePath()}}),LW=Mt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),A=a/2,o=A*A/(i-A),s=n-i+A+o,l=Math.asin(o/A),u=Math.cos(l)*A,f=Math.sin(l),c=Math.cos(l),h=A*.6,v=A*.7;r.moveTo(e-u,s+o),r.arc(e,s,A,Math.PI-l,Math.PI*2+l),r.bezierCurveTo(e+u-f*h,s+o+c*h,e,n-v,e,n),r.bezierCurveTo(e,n-v,e-u+f*h,s+o+c*h,e-u,s+o),r.closePath()}}),MW=Mt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,a=t.x,i=t.y,A=n/3*2;r.moveTo(a,i),r.lineTo(a+A,i+e),r.lineTo(a,i+e/4*3),r.lineTo(a-A,i+e),r.lineTo(a,i),r.closePath()}}),UW={line:Pe,rect:Nt,roundRect:Nt,square:Nt,circle:ei,diamond:QW,pin:LW,arrow:MW,triangle:DW},PW={line:function(r,t,e,n,a){a.x1=r,a.y1=t+n/2,a.x2=r+e,a.y2=t+n/2},rect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n},roundRect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n,a.r=Math.min(e,n)/4},square:function(r,t,e,n,a){var i=Math.min(e,n);a.x=r,a.y=t,a.width=i,a.height=i},circle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.r=Math.min(e,n)/2},diamond:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n},pin:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},arrow:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},triangle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n}},Rv={};T(UW,function(r,t){Rv[t]=new r});var RW=Mt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=bv(r,t,e),a=this.shape;return a&&a.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 a=Rv[n];a||(n="rect",a=Rv[n]),PW[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function HW(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 Ie(r,t,e,n,a,i,A){var o=r.indexOf("empty")===0;o&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var s;return r.indexOf("image://")===0?s=HM(r.slice(8),new Dt(t,e,n,a),A?"center":"cover"):r.indexOf("path://")===0?s=$d(r.slice(7),{},new Dt(t,e,n,a),A?"center":"cover"):s=new RW({shape:{symbolType:r,x:t,y:e,width:n,height:a}}),s.__isEmptyBrush=o,s.setColor=HW,i&&s.setColor(i),s}function ol(r){return K(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function xo(r,t){if(r!=null)return K(r)||(r=[r,r]),[et(r[0],t[0])||0,et(xt(r[1],r[0]),t[1])||0]}function YA(r){return isFinite(r)}function OW(r,t,e){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,A=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,a=a*e.width+e.x,i=i*e.height+e.y,A=A*e.height+e.y),n=YA(n)?n:0,a=YA(a)?a:1,i=YA(i)?i:0,A=YA(A)?A:0;var o=r.createLinearGradient(n,i,a,A);return o}function kW(r,t,e){var n=e.width,a=e.height,i=Math.min(n,a),A=t.x==null?.5:t.x,o=t.y==null?.5:t.y,s=t.r==null?.5:t.r;t.global||(A=A*n+e.x,o=o*a+e.y,s=s*i),A=YA(A)?A:.5,o=YA(o)?o:.5,s=s>=0&&YA(s)?s:.5;var l=r.createRadialGradient(A,o,0,A,o,s);return l}function K0(r,t,e){for(var n=t.type==="radial"?kW(r,t,e):OW(r,t,e),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function NW(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 Ec(r){return parseInt(r,10)}function ps(r,t,e){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],A=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var o=document.defaultView.getComputedStyle(r);return(r[a]||Ec(o[n])||Ec(r.style[n]))-(Ec(o[i])||0)-(Ec(o[A])||0)|0}function VW(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Kt(r)?[r]:K(r)?r:null}function I_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&VW(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=Y(e,function(i){return i/a}),n/=a)}return[e,n]}var GW=new ga(!0);function Hv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function tb(r){return typeof r=="string"&&r!=="none"}function Ov(r){var t=r.fill;return t!=null&&t!=="none"}function eb(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 rb(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 z0(r,t,e){var n=t_(t.image,t.__image,e);if(Gd(n)){var a=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Rh),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function KW(r,t,e,n){var a,i=Hv(e),A=Ov(e),o=e.strokePercent,s=o<1,l=!t.path;(!t.silent||s)&&l&&t.createPathProxy();var u=t.path||GW,f=t.__dirty;if(!n){var c=e.fill,h=e.stroke,v=A&&!!c.colorStops,d=i&&!!h.colorStops,p=A&&!!c.image,g=i&&!!h.image,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0;(v||d)&&(B=t.getBoundingRect()),v&&(y=f?K0(r,c,B):t.__canvasFillGradient,t.__canvasFillGradient=y),d&&(m=f?K0(r,h,B):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=f||!t.__canvasFillPattern?z0(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(_=f||!t.__canvasStrokePattern?z0(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?r.fillStyle=y:p&&(w?r.fillStyle=w:A=!1),d?r.strokeStyle=m:g&&(_?r.strokeStyle=_:i=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var S,x;r.setLineDash&&e.lineDash&&(a=I_(t),S=a[0],x=a[1]);var b=!0;(l||f&As)&&(u.setDPR(r.dpr),s?u.setContext(null):(u.setContext(r),b=!1),u.reset(),t.buildPath(u,t.shape,n),u.toStatic(),t.pathUpdated()),b&&u.rebuildPath(r,s?o:1),S&&(r.setLineDash(S),r.lineDashOffset=x),n||(e.strokeFirst?(i&&rb(r,e),A&&eb(r,e)):(A&&eb(r,e),i&&rb(r,e))),S&&r.setLineDash([])}function zW(r,t,e){var n=t.__image=t_(e.image,t.__image,t,t.onload);if(!(!n||!Gd(n))){var a=e.x||0,i=e.y||0,A=t.getWidth(),o=t.getHeight(),s=n.width/n.height;if(A==null&&o!=null?A=o*s:o==null&&A!=null?o=A/s:A==null&&o==null&&(A=n.width,o=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,u=e.sy||0;r.drawImage(n,l,u,e.sWidth,e.sHeight,a,i,A,o)}else if(e.sx&&e.sy){var l=e.sx,u=e.sy,f=A-l,c=o-u;r.drawImage(n,l,u,f,c,a,i,A,o)}else r.drawImage(n,a,i,A,o)}}function WW(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||Ki,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,A=void 0;r.setLineDash&&e.lineDash&&(n=I_(t),i=n[0],A=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=A),e.strokeFirst?(Hv(e)&&r.strokeText(a,e.x,e.y),Ov(e)&&r.fillText(a,e.x,e.y)):(Ov(e)&&r.fillText(a,e.x,e.y),Hv(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var nb=["shadowBlur","shadowOffsetX","shadowOffsetY"],ab=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function JU(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){Mr(r,a),i=!0;var A=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(A)?eo.opacity:A}(n||t.blend!==e.blend)&&(i||(Mr(r,a),i=!0),r.globalCompositeOperation=t.blend||eo.blend);for(var o=0;o<nb.length;o++){var s=nb[o];(n||t[s]!==e[s])&&(i||(Mr(r,a),i=!0),r[s]=r.dpr*(t[s]||0))}return(n||t.shadowColor!==e.shadowColor)&&(i||(Mr(r,a),i=!0),r.shadowColor=t.shadowColor||eo.shadowColor),i}function ib(r,t,e,n,a){var i=ff(t,a.inHover),A=n?null:e&&ff(e,a.inHover)||{};if(i===A)return!1;var o=JU(r,i,A,n,a);if((n||i.fill!==A.fill)&&(o||(Mr(r,a),o=!0),tb(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==A.stroke)&&(o||(Mr(r,a),o=!0),tb(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==A.opacity)&&(o||(Mr(r,a),o=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var s=i.lineWidth,l=s/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==l&&(o||(Mr(r,a),o=!0),r.lineWidth=l)}for(var u=0;u<ab.length;u++){var f=ab[u],c=f[0];(n||i[c]!==A[c])&&(o||(Mr(r,a),o=!0),r[c]=i[c]||f[1])}return o}function XW(r,t,e,n,a){return JU(r,ff(t,a.inHover),e&&ff(e,a.inHover),n,a)}function qU(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 YW(r,t,e){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),qU(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=n}function ZW(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 Ab=1,ob=2,sb=3,lb=4;function $W(r){var t=Ov(r),e=Hv(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 Mr(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ff(r,t){return t&&r.__hoverStyle||r.style}function jU(r,t){ZA(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ZA(r,t,e,n){var a=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~Gr,t.__isRendered=!1;return}var i=t.__clipPaths,A=e.prevElClipPaths,o=!1,s=!1;if((!A||NW(i,A))&&(A&&A.length&&(Mr(r,e),r.restore(),s=o=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),i&&i.length&&(Mr(r,e),r.save(),YW(i,r,e),o=!0),e.prevElClipPaths=i),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=e.prevEl;l||(s=o=!0);var u=t instanceof Mt&&t.autoBatch&&$W(t.style);o||ZW(a,l.transform)?(Mr(r,e),qU(r,t)):u||Mr(r,e);var f=ff(t,e.inHover);t instanceof Mt?(e.lastDrawType!==Ab&&(s=!0,e.lastDrawType=Ab),ib(r,t,l,s,e),(!u||!e.batchFill&&!e.batchStroke)&&r.beginPath(),KW(r,t,f,u),u&&(e.batchFill=f.fill||"",e.batchStroke=f.stroke||"")):t instanceof Us?(e.lastDrawType!==sb&&(s=!0,e.lastDrawType=sb),ib(r,t,l,s,e),WW(r,t,f)):t instanceof Ke?(e.lastDrawType!==ob&&(s=!0,e.lastDrawType=ob),XW(r,t,l,s,e),zW(r,t,f)):t.getTemporalDisplayables&&(e.lastDrawType!==lb&&(s=!0,e.lastDrawType=lb),JW(r,t,e)),u&&n&&Mr(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function JW(r,t,e){var n=t.getDisplayables(),a=t.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},A,o;for(A=t.getCursor(),o=n.length;A<o;A++){var s=n[A];s.beforeBrush&&s.beforeBrush(),s.innerBeforeBrush(),ZA(r,s,i,A===o-1),s.innerAfterBrush(),s.afterBrush&&s.afterBrush(),i.prevEl=s}for(var l=0,u=a.length;l<u;l++){var s=a[l];s.beforeBrush&&s.beforeBrush(),s.innerBeforeBrush(),ZA(r,s,i,l===u-1),s.innerAfterBrush(),s.afterBrush&&s.afterBrush(),i.prevEl=s}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Ng=new EW,ub=new Ef(100),fb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hs(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";r.dirty&&Ng.delete(r);var i=Ng.get(r);if(i)return i;var A=gt(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});A.backgroundColor==="none"&&(A.backgroundColor=null);var o={repeat:"repeat"};return s(o),o.rotation=A.rotation,o.scaleX=o.scaleY=a?1:1/e,Ng.set(r,o),r.dirty=!1,o;function s(l){for(var u=[e],f=!0,c=0;c<fb.length;++c){var h=A[fb[c]];if(h!=null&&!K(h)&&!nt(h)&&!Kt(h)&&typeof h!="boolean"){f=!1;break}u.push(h)}var v;if(f){v=u.join(",")+(a?"-svg":"");var d=ub.get(v);d&&(a?l.svgElement=d:l.image=d)}var p=e2(A.dashArrayX),g=qW(A.dashArrayY),y=t2(A.symbol),m=jW(p),w=r2(g),_=!a&&zi.createCanvas(),B=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=x(),S;_&&(_.width=C.width*e,_.height=C.height*e,S=_.getContext("2d")),b(),f&&ub.put(v,_||B),l.image=_,l.svgElement=B,l.svgWidth=C.width,l.svgHeight=C.height;function x(){for(var I=1,F=0,E=m.length;F<E;++F)I=TS(I,m[F]);for(var D=1,F=0,E=y.length;F<E;++F)D=TS(D,y[F].length);I*=D;var Q=w*m.length*y.length;return{width:Math.max(1,Math.min(I,A.maxTileWidth)),height:Math.max(1,Math.min(Q,A.maxTileHeight))}}function b(){S&&(S.clearRect(0,0,_.width,_.height),A.backgroundColor&&(S.fillStyle=A.backgroundColor,S.fillRect(0,0,_.width,_.height)));for(var I=0,F=0;F<g.length;++F)I+=g[F];if(I<=0)return;for(var E=-w,D=0,Q=0,M=0;E<C.height;){if(D%2===0){for(var R=Q/2%y.length,P=0,O=0,G=0;P<C.width*2;){for(var X=0,F=0;F<p[M].length;++F)X+=p[M][F];if(X<=0)break;if(O%2===0){var J=(1-A.symbolSize)*.5,At=P+p[M][O]*J,lt=E+g[D]*J,wt=p[M][O]*A.symbolSize,Bt=g[D]*A.symbolSize,N=G/2%y[R].length;z(At,lt,wt,Bt,y[R][N])}P+=p[M][O],++G,++O,O===p[M].length&&(O=0)}++M,M===p.length&&(M=0)}E+=g[D],++Q,++D,D===g.length&&(D=0)}function z($,q,j,ct,L){var U=a?1:e,k=Ie(L,$*U,q*U,j*U,ct*U,A.color,A.symbolKeepAspect);if(a){var Z=n.painter.renderOneToVNode(k);Z&&B.children.push(Z)}else jU(S,k)}}}}function t2(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 t2([r]);for(var n=[],e=0;e<r.length;++e)nt(r[e])?n.push([r[e]]):n.push(r[e]);return n}function e2(r){if(!r||r.length===0)return[[0,0]];if(Kt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!Kt(r[n])){e=!1;break}if(e)return e2([r]);for(var a=[],n=0;n<r.length;++n)if(Kt(r[n])){var t=Math.ceil(r[n]);a.push([t,t])}else{var t=Y(r[n],function(o){return Math.ceil(o)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function qW(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Kt(r)){var t=Math.ceil(r);return[t,t]}var e=Y(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function jW(r){return Y(r,function(t){return r2(t)})}function r2(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function t8(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(A){var o=n.getItemVisual(A,"decal");if(o){var s=n.ensureUniqueItemVisual(A,"style");s.decal=Hs(o,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Hs(a,t)}}})}var Tn=new yn,n2={};function e8(r,t){n2[r]=t}function r8(r){return n2[r]}var n8=1,a8=800,i8=900,A8=1e3,o8=2e3,s8=5e3,a2=1e3,l8=1100,F_=2e3,i2=3e3,u8=4e3,sp=4500,f8=4600,c8=5e3,h8=6e3,A2=7e3,v8={PROCESSOR:{FILTER:A8,SERIES_FILTER:a8,STATISTIC:s8},VISUAL:{LAYOUT:a2,PROGRESSIVE_LAYOUT:l8,GLOBAL:F_,CHART:i2,POST_CHART_LAYOUT:f8,COMPONENT:u8,BRUSH:c8,CHART_ITEM:sp,ARIA:h8,DECAL:A2}},tr="__flagInMainProcess",Tr="__pendingUpdate",Vg="__needsUpdateStatus",cb=/^[a-zA-Z0-9_]+$/,Gg="__connectUpdateStatus",hb=0,d8=1,p8=2;function o2(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return l2(this,r,t)}}function s2(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return l2(this,r,t)}}function l2(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),yn.prototype[t].apply(r,e)}var u2=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(yn),f2=u2.prototype;f2.on=s2("on");f2.off=s2("off");var No,Kg,Dc,li,zg,Wg,Xg,Tl,Il,vb,db,Yg,pb,Qc,gb,c2,Zr,yb,h2=function(r){H(t,r);function t(e,n,a){var i=r.call(this,new SW)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},nt(n)&&(n=v2[n]),i._dom=e;var A="canvas",o="auto",s=!1;a.ssr&&cK(function(c){var h=Ct(c),v=h.dataIndex;if(v!=null){var d=ft();return d.set("series_index",h.seriesIndex),d.set("data_index",v),h.ssrType&&d.set("ssr_type",h.ssrType),d}});var l=i._zr=CS(e,{renderer:a.renderer||A,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:xt(a.useDirtyRect,s),useCoarsePointer:xt(a.useCoarsePointer,o),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=b_(it(l.flush,l),17),n=mt(n),n&&mU(n,!0),i._theme=n,i._locale=P3(a.locale||YM),i._coordSysMgr=new Of;var u=i._api=gb(i);function f(c,h){return c.__prio-h.__prio}return kh(Nv,f),kh(W0,f),i._scheduler=new KU(i,u,W0,Nv),i._messageCenter=new u2,i._initEvents(),i.resize=it(i.resize,i),l.animation.on("frame",i._onframe,i),vb(l,i),db(l,i),gv(i),i}return t.prototype._onframe=function(){if(!this._disposed){yb(this);var e=this._scheduler;if(this[Tr]){var n=this[Tr].silent;this[tr]=!0;try{No(this),li.update.call(this,null,this[Tr].updateParams)}catch(s){throw this[tr]=!1,this[Tr]=null,s}this._zr.flush(),this[tr]=!1,this[Tr]=null,Tl.call(this,n),Il.call(this,n)}else if(e.unfinished){var a=n8,i=this._model,A=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Wg(this,i),e.performVisualTasks(i),Qc(this,this._model,A,"remain",{}),a-=+new Date-o}while(a>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,a){if(!this[tr]){if(this._disposed){this.id;return}var i,A,o;if(yt(n)&&(a=n.lazyUpdate,i=n.silent,A=n.replaceMerge,o=n.transition,n=n.notMerge),this[tr]=!0,!this._model||n){var s=new oz(this._api),l=this._theme,u=this._model=new B_;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:A},X0);var f={seriesTransition:o,optionChanged:!0};if(a)this[Tr]={silent:i,updateParams:f},this[tr]=!1,this.getZr().wakeUp();else{try{No(this),li.update.call(this,null,f)}catch(c){throw this[Tr]=null,this[tr]=!1,c}this._ssr||this._zr.flush(),this[Tr]=null,this[tr]=!1,Tl.call(this,i),Il.call(this,i)}}},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||Ut.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(Ut.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return T(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],A=this;T(n,function(s){a.eachComponent({mainType:s},function(l){var u=A._componentsMap[l.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var o=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(i,function(s){s.group.ignore=!1}),o},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,A=Math.max,o=1/0;if(mb[a]){var s=o,l=o,u=-o,f=-o,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();T(Mu,function(m,w){if(m.group===a){var _=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(mt(e)),B=m.getDom().getBoundingClientRect();s=i(B.left,s),l=i(B.top,l),u=A(B.right,u),f=A(B.bottom,f),c.push({dom:_,left:B.left,top:B.top})}}),s*=h,l*=h,u*=h,f*=h;var v=u-s,d=f-l,p=zi.createCanvas(),g=CS(p,{renderer:n?"svg":"canvas"});if(g.resize({width:v,height:d}),n){var y="";return T(c,function(m){var w=m.left-s,_=m.top-l;y+='<g transform="translate('+w+","+_+')">'+m.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Nt({shape:{x:0,y:0,width:v,height:d},style:{fill:e.connectedBackgroundColor}})),T(c,function(m){var w=new Ke({style:{x:m.left*h-s,y:m.top*h-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return zg(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return zg(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,A=Tu(a,e);return T(A,function(o,s){s.indexOf("Models")>=0&&T(o,function(l){var u=l.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(n);else if(s==="seriesModels"){var f=this._chartsMap[l.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,l))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=Tu(a,e,{defaultMainType:"series"}),A=i.seriesModel,o=A.getData(),s=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return s!=null?T_(o,s,n):kf(o,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;T(g8,function(n){var a=function(i){var A=e.getModel(),o=i.target,s,l=n==="globalout";if(l?s={}:o&&XA(o,function(v){var d=Ct(v);if(d&&d.dataIndex!=null){var p=d.dataModel||A.getSeriesByIndex(d.seriesIndex);return s=p&&p.getDataParams(d.dataIndex,d.dataType,o)||{},!0}else if(d.eventData)return s=V({},d.eventData),!0},!0),s){var u=s.componentType,f=s.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",f=s.seriesIndex);var c=u&&f!=null&&A.getComponent(u,f),h=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];s.event=i,s.type=n,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:s,model:c,view:h},e.trigger(n,s)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),T(Lu,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),T(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),TW(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&&AM(this.getDom(),D_,"");var n=this,a=n._api,i=n._model;T(n._componentsViews,function(A){A.dispose(i,a)}),T(n._chartsViews,function(A){A.dispose(i,a)}),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 Mu[n.id]},t.prototype.resize=function(e){if(!this[tr]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Tr]&&(i==null&&(i=this[Tr].silent),a=!0,this[Tr]=null),this[tr]=!0;try{a&&No(this),li.update.call(this,{type:"resize",animation:V({duration:0},e&&e.animation)})}catch(A){throw this[tr]=!1,A}this[tr]=!1,Tl.call(this,i),Il.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(yt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Y0[e]){var a=Y0[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},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=V({},e);return n.type=Lu[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(yt(n)||(n={silent:!!n}),!!kv[e.type]&&this._model){if(this[tr]){this._pendingActions.push(e);return}var a=n.silent;Xg.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Ut.browser.weChat&&this._throttledZrFlush(),Tl.call(this,a),Il.call(this,a)}},t.prototype.updateLabelLayout=function(){Tn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){No=function(f){var c=f._scheduler;c.restorePipelines(f._model),c.prepareStageTasks(),Kg(f,!0),Kg(f,!1),c.plan()},Kg=function(f,c){for(var h=f._model,v=f._scheduler,d=c?f._componentsViews:f._chartsViews,p=c?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,m=0;m<d.length;m++)d[m].__alive=!1;c?h.eachComponent(function(B,C){B!=="series"&&w(C)}):h.eachSeries(w);function w(B){var C=B.__requireNewView;B.__requireNewView=!1;var S="_ec_"+B.id+"_"+B.type,x=!C&&p[S];if(!x){var b=ia(B.type),I=c?de.getClass(b.main,b.sub):jt.getClass(b.sub);x=new I,x.init(h,y),p[S]=x,d.push(x),g.add(x.group)}B.__viewId=x.__id=S,x.__alive=!0,x.__model=B,x.group.__ecComponentInfo={mainType:B.mainType,index:B.componentIndex},!c&&v.prepareView(x,B,h,y)}for(var m=0;m<d.length;){var _=d[m];_.__alive?m++:(!c&&_.renderTask.dispose(),g.remove(_.group),_.dispose(h,y),d.splice(m,1),p[_.__id]===_&&delete p[_.__id],_.__id=_.group.__ecComponentInfo=null)}},Dc=function(f,c,h,v,d){var p=f._model;if(p.setUpdatePayload(h),!v){T([].concat(f._componentsViews).concat(f._chartsViews),_);return}var g={};g[v+"Id"]=h[v+"Id"],g[v+"Index"]=h[v+"Index"],g[v+"Name"]=h[v+"Name"];var y={mainType:v,query:g};d&&(y.subType=d);var m=h.excludeSeriesId,w;m!=null&&(w=ft(),T(qt(m),function(B){var C=De(B,null);C!=null&&w.set(C,!0)})),p&&p.eachComponent(y,function(B){var C=w&&w.get(B.id)!=null;if(!C)if(jS(h))if(B instanceof se)h.type===ro&&!h.notBlur&&!B.get(["emphasis","disabled"])&&U5(B,h,f._api);else{var S=A_(B.mainType,B.componentIndex,h.name,f._api),x=S.focusSelf,b=S.dispatchers;h.type===ro&&x&&!h.notBlur&&I0(B.mainType,B.componentIndex,f._api),b&&T(b,function(I){h.type===ro?Wa(I):Xa(I)})}else E0(h)&&B instanceof se&&(H5(B,h,f._api),JS(B),Zr(f))},f),p&&p.eachComponent(y,function(B){var C=w&&w.get(B.id)!=null;C||_(f[v==="series"?"_chartsMap":"_componentsMap"][B.__viewId])},f);function _(B){B&&B.__alive&&B[c]&&B[c](B.__model,p,f._api,h)}},li={prepareAndUpdate:function(f){No(this),li.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,c){var h=this._model,v=this._api,d=this._zr,p=this._coordSysMgr,g=this._scheduler;if(h){h.setUpdatePayload(f),g.restoreData(h,f),g.performSeriesTasks(h),p.create(h,v),g.performDataProcessorTasks(h,f),Wg(this,h),p.update(h,v),e(h),g.performVisualTasks(h,f),Yg(this,h,v,f,c);var y=h.get("backgroundColor")||"transparent",m=h.get("darkMode");d.setBackgroundColor(y),m!=null&&m!=="auto"&&d.setDarkMode(m),Tn.trigger("afterupdate",h,v)}},updateTransform:function(f){var c=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var d=[];h.eachComponent(function(g,y){if(g!=="series"){var m=c.getViewOfComponentModel(y);if(m&&m.__alive)if(m.updateTransform){var w=m.updateTransform(y,h,v,f);w&&w.update&&d.push(m)}else d.push(m)}});var p=ft();h.eachSeries(function(g){var y=c._chartsMap[g.__viewId];if(y.updateTransform){var m=y.updateTransform(g,h,v,f);m&&m.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),e(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:p}),Qc(this,h,v,f,{},p),Tn.trigger("afterupdate",h,v)}},updateView:function(f){var c=this._model;c&&(c.setUpdatePayload(f),jt.markUpdateMethod(f,"updateView"),e(c),this._scheduler.performVisualTasks(c,f,{setDirty:!0}),Yg(this,c,this._api,f,{}),Tn.trigger("afterupdate",c,this._api))},updateVisual:function(f){var c=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),jt.markUpdateMethod(f,"updateVisual"),e(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var p=c.getViewOfComponentModel(d);p&&p.__alive&&p.updateVisual(d,h,c._api,f)}}),h.eachSeries(function(v){var d=c._chartsMap[v.__viewId];d.updateVisual(v,h,c._api,f)}),Tn.trigger("afterupdate",h,this._api))},updateLayout:function(f){li.update.call(this,f)}},zg=function(f,c,h,v){if(f._disposed){f.id;return}for(var d=f._model,p=f._coordSysMgr.getCoordinateSystems(),g,y=Tu(d,h),m=0;m<p.length;m++){var w=p[m];if(w[c]&&(g=w[c](d,y,v))!=null)return g}},Wg=function(f,c){var h=f._chartsMap,v=f._scheduler;c.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},Xg=function(f,c){var h=this,v=this.getModel(),d=f.type,p=f.escapeConnect,g=kv[d],y=g.actionInfo,m=(y.update||"update").split(":"),w=m.pop(),_=m[0]!=null&&ia(m[0]);this[tr]=!0;var B=[f],C=!1;f.batch&&(C=!0,B=Y(f.batch,function(D){return D=gt(V({},D),f),D.batch=null,D}));var S=[],x,b=E0(f),I=jS(f);if(I&&TM(this._api),T(B,function(D){if(x=g.action(D,h._model,h._api),x=x||V({},D),x.type=y.event||x.type,S.push(x),I){var Q=qB(f),M=Q.queryOptionMap,R=Q.mainTypeSpecified,P=R?M.keys()[0]:"series";Dc(h,w,D,P),Zr(h)}else b?(Dc(h,w,D,"series"),Zr(h)):_&&Dc(h,w,D,_.main,_.sub)}),w!=="none"&&!I&&!b&&!_)try{this[Tr]?(No(this),li.update.call(this,f),this[Tr]=null):li[w].call(this,f)}catch(D){throw this[tr]=!1,D}if(C?x={type:y.event||d,escapeConnect:p,batch:S}:x=S[0],this[tr]=!1,!c){var F=this._messageCenter;if(F.trigger(x.type,x),b){var E={type:"selectchanged",escapeConnect:p,selected:O5(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};F.trigger(E.type,E)}}},Tl=function(f){for(var c=this._pendingActions;c.length;){var h=c.shift();Xg.call(this,h,f)}},Il=function(f){!f&&this.trigger("updated")},vb=function(f,c){f.on("rendered",function(h){c.trigger("rendered",h),f.animation.isFinished()&&!c[Tr]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},db=function(f,c){f.on("mouseover",function(h){var v=h.target,d=XA(v,nf);d&&(P5(d,h,c._api),Zr(c))}).on("mouseout",function(h){var v=h.target,d=XA(v,nf);d&&(R5(d,h,c._api),Zr(c))}).on("click",function(h){var v=h.target,d=XA(v,function(y){return Ct(y).dataIndex!=null},!0);if(d){var p=d.selected?"unselect":"select",g=Ct(d);c._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function e(f){f.clearColorPalette(),f.eachSeries(function(c){c.clearColorPalette()})}function n(f){var c=[],h=[],v=!1;if(f.eachComponent(function(y,m){var w=m.get("zlevel")||0,_=m.get("z")||0,B=m.getZLevelKey();v=v||!!B,(y==="series"?h:c).push({zlevel:w,z:_,idx:m.componentIndex,type:y,key:B})}),v){var d=c.concat(h),p,g;kh(d,function(y,m){return y.zlevel===m.zlevel?y.z-m.z:y.zlevel-m.zlevel}),T(d,function(y){var m=f.getComponent(y.type,y.idx),w=y.zlevel,_=y.key;p!=null&&(w=Math.max(p,w)),_?(w===p&&_!==g&&w++,g=_):g&&(w===p&&w++,g=""),p=w,m.setZLevel(w)})}}Yg=function(f,c,h,v,d){n(c),pb(f,c,h,v,d),T(f._chartsViews,function(p){p.__alive=!1}),Qc(f,c,h,v,d),T(f._chartsViews,function(p){p.__alive||p.remove(c,h)})},pb=function(f,c,h,v,d,p){T(p||f._componentsViews,function(g){var y=g.__model;l(y,g),g.render(y,c,h,v),o(y,g),u(y,g)})},Qc=function(f,c,h,v,d,p){var g=f._scheduler;d=V(d||{},{updatedSeries:c.getSeries()}),Tn.trigger("series:beforeupdate",c,h,d);var y=!1;c.eachSeries(function(m){var w=f._chartsMap[m.__viewId];w.__alive=!0;var _=w.renderTask;g.updatePayload(_,v),l(m,w),p&&p.get(m.uid)&&_.dirty(),_.perform(g.getPerformArgs(_))&&(y=!0),w.group.silent=!!m.get("silent"),A(m,w),JS(m)}),g.unfinished=y||g.unfinished,Tn.trigger("series:layoutlabels",c,h,d),Tn.trigger("series:transition",c,h,d),c.eachSeries(function(m){var w=f._chartsMap[m.__viewId];o(m,w),u(m,w)}),i(f,c),Tn.trigger("series:afterupdate",c,h,d)},Zr=function(f){f[Vg]=!0,f.getZr().wakeUp()},yb=function(f){f[Vg]&&(f.getZr().storage.traverse(function(c){xs(c)||a(c)}),f[Vg]=!1)};function a(f){for(var c=[],h=f.currentStates,v=0;v<h.length;v++){var d=h[v];d==="emphasis"||d==="blur"||d==="select"||c.push(d)}f.selected&&f.states.select&&c.push("select"),f.hoverState===Wd&&f.states.emphasis?c.push("emphasis"):f.hoverState===Lf&&f.states.blur&&c.push("blur"),f.useStates(c)}function i(f,c){var h=f._zr,v=h.storage,d=0;v.traverse(function(p){p.isGroup||d++}),d>c.get("hoverLayerThreshold")&&!Ut.node&&!Ut.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=f._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function A(f,c){var h=f.get("blendMode")||null;c.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function o(f,c){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;c.eachRendered(function(d){return s(d,h,v,-1/0),!0})}}function s(f,c,h,v){var d=f.getTextContent(),p=f.getTextGuideLine(),g=f.isGroup;if(g)for(var y=f.childrenRef(),m=0;m<y.length;m++)v=Math.max(s(y[m],c,h,v),v);else f.z=c,f.zlevel=h,v=Math.max(f.z2,v);if(d&&(d.z=c,d.zlevel=h,isFinite(v)&&(d.z2=v+2)),p){var w=f.textGuideLineConfig;p.z=c,p.zlevel=h,isFinite(v)&&(p.z2=v+(w&&w.showAbove?1:-1))}return v}function l(f,c){c.eachRendered(function(h){if(!xs(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function u(f,c){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),d=h.get("duration"),p=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xs(g))return;if(g instanceof Mt&&K5(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&a(g)}})}gb=function(f){return new(function(c){H(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return f._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Wa(v,d),Zr(f)},h.prototype.leaveEmphasis=function(v,d){Xa(v,d),Zr(f)},h.prototype.enterBlur=function(v){CM(v),Zr(f)},h.prototype.leaveBlur=function(v){i_(v),Zr(f)},h.prototype.enterSelect=function(v){SM(v),Zr(f)},h.prototype.leaveSelect=function(v){xM(v),Zr(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(gU))(f)},c2=function(f){function c(h,v){for(var d=0;d<h.length;d++){var p=h[d];p[Gg]=v}}T(Lu,function(h,v){f._messageCenter.on(v,function(d){if(mb[f.group]&&f[Gg]!==hb){if(d&&d.escapeConnect)return;var p=f.makeActionFromEvent(d),g=[];T(Mu,function(y){y!==f&&y.group===f.group&&g.push(y)}),c(g,hb),T(g,function(y){y[Gg]!==d8&&y.dispatchAction(p)}),c(g,p8)}})})}}(),t}(yn),E_=h2.prototype;E_.on=o2("on");E_.off=o2("off");E_.one=function(r,t,e){var n=this;function a(){for(var i=[],A=0;A<arguments.length;A++)i[A]=arguments[A];t&&t.apply&&t.apply(this,i),n.off(r,a)}this.on.call(this,r,a,e)};var g8=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var kv={},Lu={},W0=[],X0=[],Nv=[],v2={},Y0={},Mu={},mb={},y8=+new Date-0,D_="_echarts_instance_";function Lc(r,t,e){{var n=m8(r);if(n)return n}var a=new h2(r,t,e);return a.id="ec_"+y8++,Mu[a.id]=a,AM(r,D_,a.id),c2(a),Tn.trigger("afterinit",a),a}function m8(r){return Mu[QK(r,D_)]}function d2(r,t){v2[r]=t}function p2(r){Qt(X0,r)<0&&X0.push(r)}function g2(r,t){L_(W0,r,t,o8)}function w8(r){Q_("afterinit",r)}function B8(r){Q_("afterupdate",r)}function Q_(r,t){Tn.on(r,t)}function ma(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,!Lu[t]&&(Br(cb.test(n)&&cb.test(t)),kv[n]||(kv[n]={action:e,actionInfo:r}),Lu[t]=n)}function _8(r,t){Of.register(r,t)}function C8(r,t){L_(Nv,r,t,a2,"layout")}function bo(r,t){L_(Nv,r,t,i2,"visual")}var wb=[];function L_(r,t,e,n,a){if((vt(t)||yt(t))&&(e=t,t=n),!(Qt(wb,e)>=0)){wb.push(e);var i=KU.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function y2(r,t){Y0[r]=t}function S8(r,t,e){var n=r8("registerMap");n&&n(r,t,e)}var x8=Oz;bo(F_,uW);bo(sp,fW);bo(sp,cW);bo(F_,xW);bo(sp,bW);bo(A2,t8);p2(mU);g2(i8,mz);y2("default",hW);ma({type:ro,event:ro,update:ro},Be);ma({type:zh,event:zh,update:zh},Be);ma({type:Iu,event:Iu,update:Iu},Be);ma({type:Wh,event:Wh,update:Wh},Be);ma({type:Fu,event:Fu,update:Fu},Be);d2("light",CW);d2("dark",YU);var Bb=[],b8={registerPreprocessor:p2,registerProcessor:g2,registerPostInit:w8,registerPostUpdate:B8,registerUpdateLifecycle:Q_,registerAction:ma,registerCoordinateSystem:_8,registerLayout:C8,registerVisual:bo,registerTransform:x8,registerLoading:y2,registerMap:S8,registerImpl:e8,PRIORITY:v8,ComponentModel:Rt,ComponentView:de,SeriesModel:se,ChartView:jt,registerComponentModel:function(r){Rt.registerClass(r)},registerComponentView:function(r){de.registerClass(r)},registerSeriesModel:function(r){se.registerClass(r)},registerChartView:function(r){jt.registerClass(r)},registerSubTypeDefaulter:function(r,t){Rt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){uK(r,t)}};function Lt(r){if(K(r)){T(r,function(t){Lt(t)});return}Qt(Bb,r)>=0||(Bb.push(r),vt(r)&&(r={install:r}),r.install(b8))}function Fl(r){return r==null?0:r.length||1}function _b(r){return r}var Ya=function(){function r(t,e,n,a,i,A){this._old=t,this._new=e,this._oldKeyGetter=n||_b,this._newKeyGetter=a||_b,this.context=i,this._diffModeMultiple=A==="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={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var A=0;A<t.length;A++){var o=a[A],s=n[o],l=Fl(s);if(l>1){var u=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(u,A)}else l===1?(n[o]=null,this._update&&this._update(s,A)):this._remove&&this._remove(A)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],A=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,A,"_newKeyGetter");for(var o=0;o<i.length;o++){var s=i[o],l=n[s],u=a[s],f=Fl(l),c=Fl(u);if(f>1&&c===1)this._updateManyToOne&&this._updateManyToOne(u,l),a[s]=null;else if(f===1&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),a[s]=null;else if(f===1&&c===1)this._update&&this._update(u,l),a[s]=null;else if(f>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),a[s]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(A,a)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var a=t[n],i=e[a],A=Fl(i);if(A>1)for(var o=0;o<A;o++)this._add&&this._add(i[o]);else A===1&&this._add&&this._add(i);e[a]=null}},r.prototype._initIndexMap=function(t,e,n,a){for(var i=this._diffModeMultiple,A=0;A<t.length;A++){var o="_ec_"+this[a](t[A],A);if(i||(n[A]=o),!!e){var s=e[o],l=Fl(s);l===0?(e[o]=A,i&&n.push(o)):l===1?e[o]=[s,A]:s.push(A)}}},r}(),T8=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 I8(r,t){var e={},n=e.encode={},a=ft(),i=[],A=[],o={};T(r.dimensions,function(c){var h=r.getDimensionInfo(c),v=h.coordDim;if(v){var d=h.coordDimIndex;Zg(n,v)[d]=c,h.isExtraCoord||(a.set(v,1),F8(h.type)&&(i[0]=c),Zg(o,v)[d]=r.getDimensionIndex(h.name)),h.defaultTooltip&&A.push(c)}uU.each(function(p,g){var y=Zg(n,g),m=h.otherDims[g];m!=null&&m!==!1&&(y[m]=h.name)})});var s=[],l={};a.each(function(c,h){var v=n[h];l[h]=v[0],s=s.concat(v)}),e.dataDimsOnCoord=s,e.dataDimIndicesOnCoord=Y(s,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=l;var u=n.label;u&&u.length&&(i=u.slice());var f=n.tooltip;return f&&f.length?A=f.slice():A.length||(A=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=A,e.userOutput=new T8(o,t),e}function Zg(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Vv(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function F8(r){return!(r==="ordinal"||r==="time")}var Jh=function(){function r(t){this.otherDims={},t!=null&&V(this,t)}return r}(),E8=Vt(),D8={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},m2=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=_2(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=BU(this.source),n=!C2(t),a="",i=[],A=0,o=0;A<t;A++){var s=void 0,l=void 0,u=void 0,f=this.dimensions[o];if(f&&f.storeDimIndex===A)s=e?f.name:null,l=f.type,u=f.ordinalMeta,o++;else{var c=this.getSourceDimension(A);c&&(s=e?c.name:null,l=c.type)}i.push({property:s,type:l,ordinalMeta:u}),e&&s!=null&&(!f||!f.isCalculationCoord)&&(a+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),a+="$",a+=D8[l]||"f",u&&(a+=u.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:v}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(a=i.name),n++;else{var A=this.getSourceDimension(e);A&&(a=A.name)}t.push(a)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function w2(r){return r instanceof m2}function B2(r){for(var t=ft(),e=0;e<(r||[]).length;e++){var n=r[e],a=yt(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,e)}return t}function _2(r){var t=E8(r);return t.dimNameMap||(t.dimNameMap=B2(r.dimensionsDefine))}function C2(r){return r>30}var El=yt,ui=Y,Q8=typeof Int32Array>"u"?Array:Int32Array,L8="e\0\0",Cb=-1,M8=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],U8=["_approximateExtent"],Sb,Mc,Dl,Ql,$g,Uc,Jg,mr=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;w2(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},A=[],o={},s=!1,l={},u=0;u<n.length;u++){var f=n[u],c=nt(f)?new Jh({name:f}):f instanceof Jh?f:new Jh(f),h=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=h,c.coordDimIndex=0);var v=c.otherDims=c.otherDims||{};A.push(h),i[h]=c,l[h]!=null&&(s=!0),c.createInvertedIndices&&(o[h]=[]),v.itemName===0&&(this._nameDimIdx=u),v.itemId===0&&(this._idDimIdx=u),a&&(c.storeDimIndex=u)}if(this.dimensions=A,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=o,this._dimOmitted){var d=this._dimIdxToName=ft();T(A,function(p){d.set(i[p].storeDimIndex,p)})}}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 a=this._schema.getSourceDimension(e);if(a)return a.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(Kt(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 a=n.encode[t];return a?a[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 a=this,i;if(t instanceof O0&&(i=t),!i){var A=this.dimensions,o=__(t)||sr(t)?new _U(t,A.length):t;i=new O0;var s=ui(A,function(l){return{type:a._dimInfos[l].type,property:l}});i.initData(o,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=I8(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),a=n.start,i=n.end,A=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=a;o<i;o++){var s=o-a;this._nameList[o]=e[s],A&&Jg(this,o)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var a=this._dimInfos[e[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Hi&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,A=this._idList,o=a.getSource().sourceFormat,s=o===mn;if(s&&!a.pure)for(var l=[],u=t;u<e;u++){var f=a.getItem(u,l);if(!this.hasItemOption&&mK(f)&&(this.hasItemOption=!0),f){var c=f.name;i[u]==null&&c!=null&&(i[u]=De(c,null));var h=f.id;A[u]==null&&h!=null&&(A[u]=De(h,null))}}if(this._shouldMakeIdFromName())for(var u=t;u<e;u++)Jg(this,u);Sb(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){El(t)?V(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=Dl(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},r.prototype.getId=function(t){return Mc(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.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,a=this._store;return K(t)?a.getValues(ui(t,function(i){return n._getStoreDimIndex(i)}),e):a.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,a=e.length;n<a;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],a=n[e];return a==null||isNaN(a)?Cb:a},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 a=n||this,i=ui(Ql(t),this._getStoreDimIndex,this);this._store.each(i,a?it(e,a):e)},r.prototype.filterSelf=function(t,e,n){vt(t)&&(n=e,e=t,t=[]);var a=n||this,i=ui(Ql(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?it(e,a):e),this},r.prototype.selectRange=function(t){var e=this,n={},a=Ht(t);return T(a,function(i){var A=e._getStoreDimIndex(i);n[A]=t[i]}),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 a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},n),a},r.prototype.map=function(t,e,n,a){var i=n||a||this,A=ui(Ql(t),this._getStoreDimIndex,this),o=Uc(this);return o._store=this._store.map(A,i?it(e,i):e),o},r.prototype.modify=function(t,e,n,a){var i=n||a||this,A=ui(Ql(t),this._getStoreDimIndex,this);this._store.modify(A,i?it(e,i):e)},r.prototype.downSample=function(t,e,n,a){var i=Uc(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,a),i},r.prototype.lttbDownSample=function(t,e){var n=Uc(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 Yt(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Ya(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Mc(t,n)},function(n){return Mc(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||{},El(t)?V(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],a=n&&n[e];return a??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),K(i)?i=i.slice():El(i)&&(i=V({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,El(e)?V(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){El(t)?V(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?V(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;b0(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ui(this.dimensions,this._getDimInfo,this),this.hostModel)),$g(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 a=n.apply(this,arguments);return e.apply(this,[a].concat(VB(arguments)))})},r.internalField=function(){Sb=function(t){var e=t._invertedIndicesMap;T(e,function(n,a){var i=t._dimInfos[a],A=i.ordinalMeta,o=t._store;if(A){n=e[a]=new Q8(A.categories.length);for(var s=0;s<n.length;s++)n[s]=Cb;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},Dl=function(t,e,n){return De(t._getCategory(e,n),null)},Mc=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=Dl(t,t._idDimIdx,e)),n==null&&(n=L8+e),n},Ql=function(t){return K(t)||(t=t!=null?[t]:[]),t},Uc=function(t){var e=new r(t._schema?t._schema:ui(t.dimensions,t._getDimInfo,t),t.hostModel);return $g(e,t),e},$g=function(t,e){T(M8.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,T(U8,function(n){t[n]=mt(e[n])}),t._calculationInfo=V({},e._calculationInfo)},Jg=function(t,e){var n=t._nameList,a=t._idList,i=t._nameDimIdx,A=t._idDimIdx,o=n[e],s=a[e];if(o==null&&i!=null&&(n[e]=o=Dl(t,i,e)),s==null&&A!=null&&(a[e]=s=Dl(t,A,e)),s==null&&o!=null){var l=t._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),a[e]=s}}}(),r}();function Nf(r,t){__(r)||(r=C_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ft(),i=[],A=R8(r,e,n,t.dimensionsCount),o=t.canOmitUnusedDimensions&&C2(A),s=n===r.dimensionsDefine,l=s?_2(r):B2(n),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(r,A));for(var f=ft(u),c=new EU(A),h=0;h<c.length;h++)c[h]=-1;function v(x){var b=c[x];if(b<0){var I=n[x],F=yt(I)?I:{name:I},E=new Jh,D=F.name;D!=null&&l.get(D)!=null&&(E.name=E.displayName=D),F.type!=null&&(E.type=F.type),F.displayName!=null&&(E.displayName=F.displayName);var Q=i.length;return c[x]=Q,E.storeDimIndex=x,i.push(E),E}return i[b]}if(!o)for(var h=0;h<A;h++)v(h);f.each(function(x,b){var I=qt(x).slice();if(I.length===1&&!nt(I[0])&&I[0]<0){f.set(b,!1);return}var F=f.set(b,[]);T(I,function(E,D){var Q=nt(E)?l.get(E):E;Q!=null&&Q<A&&(F[D]=Q,p(v(Q),b,D))})});var d=0;T(e,function(x){var b,I,F,E;if(nt(x))b=x,E={};else{E=x,b=E.name;var D=E.ordinalMeta;E.ordinalMeta=null,E=V({},E),E.ordinalMeta=D,I=E.dimsDef,F=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var Q=f.get(b);if(Q!==!1){if(Q=qt(Q),!Q.length)for(var M=0;M<(I&&I.length||1);M++){for(;d<A&&v(d).coordDim!=null;)d++;d<A&&Q.push(d++)}T(Q,function(R,P){var O=v(R);if(s&&E.type!=null&&(O.type=E.type),p(gt(O,E),b,P),O.name==null&&I){var G=I[P];!yt(G)&&(G={name:G}),O.name=O.displayName=G.name,O.defaultTooltip=G.defaultTooltip}F&>(O.otherDims,F)})}});function p(x,b,I){uU.get(b)!=null?x.otherDims[b]=I:(x.coordDim=b,x.coordDimIndex=I,a.set(b,!0))}var g=t.generateCoord,y=t.generateCoordCount,m=y!=null;y=g?y||1:0;var w=g||"value";function _(x){x.name==null&&(x.name=x.coordDim)}if(o)T(i,function(x){_(x)}),i.sort(function(x,b){return x.storeDimIndex-b.storeDimIndex});else for(var B=0;B<A;B++){var C=v(B),S=C.coordDim;S==null&&(C.coordDim=H8(w,a,m),C.coordDimIndex=0,(!g||y<=0)&&(C.isExtraCoord=!0),y--),_(C),C.type==null&&(vU(r,B)===ze.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return P8(i),new m2({source:r,dimensions:i,fullDimensionCount:A,dimensionOmitted:o})}function P8(r){for(var t=ft(),e=0;e<r.length;e++){var n=r[e],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function R8(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return T(t,function(i){var A;yt(i)&&(A=i.dimsDef)&&(a=Math.max(a,A.length))}),a}function H8(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 O8=function(){function r(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return r}();function k8(r){var t=r.get("coordinateSystem"),e=new O8(t),n=N8[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var N8={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Te).models[0],i=r.getReferringComponents("yAxis",Te).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),Vo(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Vo(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Te).models[0];t.coordSysDims=["single"],e.set("single",a),Vo(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Te).models[0],i=a.findAxisModel("radiusAxis"),A=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",A),Vo(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Vo(A)&&(n.set("angle",A),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),A=t.coordSysDims=i.dimensions.slice();T(i.parallelAxisIndex,function(o,s){var l=a.getComponent("parallelAxis",o),u=A[s];e.set(u,l),Vo(l)&&(n.set(u,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=s))})}};function Vo(r){return r.get("type")==="category"}function V8(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,A,o;G8(t)?i=t:(A=t.schema,i=A.dimensions,o=t.store);var s=!!(r&&r.get("stack")),l,u,f,c;if(T(i,function(y,m){nt(y)&&(i[m]=y={name:y}),s&&!y.isExtraCoord&&(!n&&!l&&y.ordinalMeta&&(l=y),!u&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(u=y))}),u&&!n&&!l&&(n=!0),u){f="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,v=u.type,d=0;T(i,function(y){y.coordDim===h&&d++});var p={name:f,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:c,coordDim:c,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};A?(o&&(p.storeDimIndex=o.ensureCalculationDimension(c,v),g.storeDimIndex=o.ensureCalculationDimension(f,v)),A.appendCalculationDimension(p),A.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:f}}function G8(r){return!w2(r.schema)}function Zi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function S2(r,t){return Zi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function K8(r,t){var e=r.get("coordinateSystem"),n=Of.get(e),a;return t&&t.coordSysDims&&(a=Y(t.coordSysDims,function(i){var A={name:i},o=t.axisMap.get(i);if(o){var s=o.get("type");A.type=Vv(s)}return A})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function z8(r,t,e){var n,a;return e&&T(r,function(i,A){var o=i.coordDim,s=e.categoryAxisMap.get(o);s&&(n==null&&(n=A),i.ordinalMeta=s.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ri(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=C_(r)):(a=n.getSource(),i=a.sourceFormat===mn);var A=k8(t),o=K8(t,A),s=e.useEncodeDefaulter,l=vt(s)?s:s?bt(hU,o,t):null,u={coordDimensions:o,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},f=Nf(a,u),c=z8(f.dimensions,e.createInvertedIndices,A),h=i?null:n.getSharedDataStore(f),v=V8(t,{schema:f,store:h}),d=new mr(f,t);d.setCalculationInfo(v);var p=c!=null&&W8(a)?function(g,y,m,w){return w===c?m:this.defaultDimValueGetter(g,y,m,w)}:null;return d.hasItemOption=!1,d.initData(i?a:h,null,p),d}function W8(r){if(r.sourceFormat===mn){var t=X8(r.data||[]);return!K($s(t))}}function X8(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var wa=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}();Vd(wa);var Y8=0,Z0=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Y8}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&Y(n,Z8);return new r({categories:a,needCollect:!a,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 a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},r}();function Z8(r){return yt(r)&&r.value!=null?r.value:r+""}function $0(r){return r.type==="interval"||r.type==="log"}function $8(r,t,e,n){var a={},i=r[1]-r[0],A=a.interval=qL(i/t);e!=null&&A<e&&(A=a.interval=e),n!=null&&A>n&&(A=a.interval=n);var o=a.intervalPrecision=x2(A),s=a.niceTickExtent=[me(Math.ceil(r[0]/A)*A,o),me(Math.floor(r[1]/A)*A,o)];return J8(s,r),a}function qg(r){var t=Math.pow(10,$B(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,me(e*t)}function x2(r){return aa(r)+2}function xb(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function J8(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),xb(r,0,t),xb(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function lp(r,t){return r>=t[0]&&r<=t[1]}function up(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function fp(r,t){return r*(t[1]-t[0])+t[0]}var cp=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Z0({})),K(a)&&(a=new Z0({categories:Y(a,function(i){return yt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.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),lp(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),up(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(fp(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;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,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],A=0,o=this._ordinalMeta.categories.length,s=Math.min(o,n.length);A<s;++A){var l=n[A];a[A]=l,i[l]=A}for(var u=0;A<o;++A){for(;i[u]!=null;)u++;a.push(u),i[u]=A}},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),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},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}(wa);wa.registerClass(cp);var xA=me,Za=function(r){H(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 lp(e,this._extent)},t.prototype.normalize=function(e){return up(e,this._extent)},t.prototype.scale=function(e){return fp(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[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=x2(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,A=this._intervalPrecision,o=[];if(!n)return o;var s=1e4;a[0]<i[0]&&(e?o.push({value:xA(i[0]-n,A)}):o.push({value:a[0]}));for(var l=i[0];l<=i[1]&&(o.push({value:l}),l=xA(l+n,A),l!==o[o.length-1].value);)if(o.length>s)return[];var u=o.length?o[o.length-1].value:i[1];return a[1]>u&&(e?o.push({value:xA(u+n,A)}):o.push({value:a[1]})),o},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),A=1;A<n.length;A++){for(var o=n[A],s=n[A-1],l=0,u=[],f=o.value-s.value,c=f/e;l<e-1;){var h=xA(s.value+(l+1)*c);h>i[0]&&h<i[1]&&u.push(h),l++}a.push(u)}return a},t.prototype.getLabel=function(e,n){if(e==null)return"";var a=n&&n.precision;a==null?a=aa(e.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=xA(e.value,a,!0);return aU(i)},t.prototype.calcNiceTicks=function(e,n,a){e=e||5;var i=this._extent,A=i[1]-i[0];if(isFinite(A)){A<0&&(A=-A,i.reverse());var o=$8(i,e,n,a);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);e.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var A=this._interval;e.fixMin||(n[0]=xA(Math.floor(n[0]/A)*A)),e.fixMax||(n[1]=xA(Math.ceil(n[1]/A)*A))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(wa);wa.registerClass(Za);var b2=typeof Float32Array<"u",q8=b2?Float32Array:Array;function Aa(r){return K(r)?b2?new Float32Array(r):r:new q8(r)}var J0="__ec_stack_";function M_(r){return r.get("stack")||J0+r.seriesIndex}function U_(r){return r.dim+r.index}function j8(r){var t=[],e=r.axis,n="axis0";if(e.type==="category"){for(var a=e.getBandWidth(),i=0;i<r.count;i++)t.push(gt({bandWidth:a,axisKey:n,stackId:J0+i},r));for(var A=F2(t),o=[],i=0;i<r.count;i++){var s=A[n][J0+i];s.offsetCenter=s.offset+s.width/2,o.push(s)}return o}}function T2(r,t){var e=[];return t.eachSeriesByType(r,function(n){Q2(n)&&e.push(n)}),e}function tX(r){var t={};T(r,function(s){var l=s.coordinateSystem,u=l.getBaseAxis();if(!(u.type!=="time"&&u.type!=="value"))for(var f=s.getData(),c=u.dim+"_"+u.index,h=f.getDimensionIndex(f.mapDimension(u.dim)),v=f.getStore(),d=0,p=v.count();d<p;++d){var g=v.get(h,d);t[c]?t[c].push(g):t[c]=[g]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(s,l){return s-l});for(var i=null,A=1;A<a.length;++A){var o=a[A]-a[A-1];o>0&&(i=i===null?o:Math.min(i,o))}e[n]=i}}return e}function I2(r){var t=tX(r),e=[];return T(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),A=i.getExtent(),o;if(i.type==="category")o=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var s=i.dim+"_"+i.index,l=t[s],u=Math.abs(A[1]-A[0]),f=i.scale.getExtent(),c=Math.abs(f[1]-f[0]);o=l?u/c*l:u}else{var h=n.getData();o=Math.abs(A[1]-A[0])/h.count()}var v=et(n.get("barWidth"),o),d=et(n.get("barMaxWidth"),o),p=et(n.get("barMinWidth")||(L2(n)?.5:1),o),g=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:o,barWidth:v,barMaxWidth:d,barMinWidth:p,barGap:g,barCategoryGap:y,axisKey:U_(i),stackId:M_(n)})}),F2(e)}function F2(r){var t={};T(r,function(n,a){var i=n.axisKey,A=n.bandWidth,o=t[i]||{bandWidth:A,remainedWidth:A,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},s=o.stacks;t[i]=o;var l=n.stackId;s[l]||o.autoWidthCount++,s[l]=s[l]||{width:0,maxWidth:0};var u=n.barWidth;u&&!s[l].width&&(s[l].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var f=n.barMaxWidth;f&&(s[l].maxWidth=f);var c=n.barMinWidth;c&&(s[l].minWidth=c);var h=n.barGap;h!=null&&(o.gap=h);var v=n.barCategoryGap;v!=null&&(o.categoryGap=v)});var e={};return T(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=n.categoryGap;if(o==null){var s=Ht(i).length;o=Math.max(35-s*4,15)+"%"}var l=et(o,A),u=et(n.gap,1),f=n.remainedWidth,c=n.autoWidthCount,h=(f-l)/(c+(c-1)*u);h=Math.max(h,0),T(i,function(g){var y=g.maxWidth,m=g.minWidth;if(g.width){var w=g.width;y&&(w=Math.min(w,y)),m&&(w=Math.max(w,m)),g.width=w,f-=w+u*w,c--}else{var w=h;y&&y<w&&(w=Math.min(y,f)),m&&m>w&&(w=m),w!==h&&(g.width=w,f-=w+u*w,c--)}}),h=(f-l)/(c+(c-1)*u),h=Math.max(h,0);var v=0,d;T(i,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+u)}),d&&(v-=d.width*u);var p=-v/2;T(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:A,offset:p,width:g.width},p+=g.width*(1+u)})}),e}function eX(r,t,e){if(r&&t){var n=r[U_(t)];return n!=null&&e!=null?n[M_(e)]:n}}function E2(r,t){var e=T2(r,t),n=I2(e);T(e,function(a){var i=a.getData(),A=a.coordinateSystem,o=A.getBaseAxis(),s=M_(a),l=n[U_(o)][s],u=l.offset,f=l.width;i.setLayout({bandWidth:l.bandWidth,offset:u,size:f})})}function D2(r){return{seriesType:r,plan:il(),reset:function(t){if(Q2(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),A=e.getDimensionIndex(e.mapDimension(i.dim)),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),f=Zi(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=rX(a,i),v=L2(t),d=t.get("barMinHeight")||0,p=u&&e.getDimensionIndex(u),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(m,w){for(var _=m.count,B=v&&Aa(_*3),C=v&&s&&Aa(_*3),S=v&&Aa(_),x=n.master.getRect(),b=c?x.width:x.height,I,F=w.getStore(),E=0;(I=m.next())!=null;){var D=F.get(f?p:A,I),Q=F.get(o,I),M=h,R=void 0;f&&(R=+D-F.get(A,I));var P=void 0,O=void 0,G=void 0,X=void 0;if(c){var J=n.dataToPoint([D,Q]);if(f){var At=n.dataToPoint([R,Q]);M=At[0]}P=M,O=J[1]+y,G=J[0]-M,X=g,Math.abs(G)<d&&(G=(G<0?-1:1)*d)}else{var J=n.dataToPoint([Q,D]);if(f){var At=n.dataToPoint([Q,R]);M=At[1]}P=J[0]+y,O=M,G=g,X=J[1]-M,Math.abs(X)<d&&(X=(X<=0?-1:1)*d)}v?(B[E]=P,B[E+1]=O,B[E+2]=c?G:X,C&&(C[E]=c?x.x:P,C[E+1]=c?O:x.y,C[E+2]=b),S[I]=I):w.setItemLayout(I,{x:P,y:O,width:G,height:X}),E+=3}v&&w.setLayout({largePoints:B,largeDataIndices:S,largeBackgroundPoints:C,valueAxisHorizontal:c})}}}}}}function Q2(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function L2(r){return r.pipelineContext&&r.pipelineContext.large}function rX(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 nX=function(r,t,e,n){for(;e<n;){var a=e+n>>>1;r[a][1]<t?e=a+1:n=a}return e},P_=function(r){H(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 jd(e.value,vx[O3(Ts(this._minLevelUnit))]||vx.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,a){var i=this.getSetting("useUTC"),A=this.getSetting("locale");return k3(e,n,a,A,i)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,a=[];if(!e)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),A=uX(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(A),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=un,n[1]+=un),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-un}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,a){e=e||10;var i=this._extent,A=i[1]-i[0];this._approxInterval=A/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var o=Pc.length,s=Math.min(nX(Pc,this._approxInterval,0,o),o-1);this._interval=Pc[s][1],this._minLevelUnit=Pc[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Kt(e)?e:+pa(e)},t.prototype.contain=function(e){return lp(this.parse(e),this._extent)},t.prototype.normalize=function(e){return up(this.parse(e),this._extent)},t.prototype.scale=function(e){return fp(e,this._extent)},t.type="time",t}(Za),Pc=[["second",v_],["minute",d_],["hour",Du],["quarter-day",Du*6],["half-day",Du*12],["day",un*1.2],["half-week",un*3.5],["week",un*7],["month",un*31],["quarter",un*95],["half-year",hx/2],["year",hx]];function aX(r,t,e,n){var a=pa(t),i=pa(e),A=function(v){return dx(a,v,n)===dx(i,v,n)},o=function(){return A("year")},s=function(){return o()&&A("month")},l=function(){return s()&&A("day")},u=function(){return l()&&A("hour")},f=function(){return u()&&A("minute")},c=function(){return f()&&A("second")},h=function(){return c()&&A("millisecond")};switch(r){case"year":return o();case"month":return s();case"day":return l();case"hour":return u();case"minute":return f();case"second":return c();case"millisecond":return h()}}function iX(r,t){return r/=un,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function AX(r){var t=30*un;return r/=t,r>6?6:r>3?3:r>2?2:1}function oX(r){return r/=Du,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function bb(r,t){return r/=t?d_:v_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function sX(r){return qL(r)}function lX(r,t,e){var n=new Date(r);switch(Ts(t)){case"year":case"month":n[qM(e)](0);case"day":n[jM(e)](1);case"hour":n[tU(e)](0);case"minute":n[eU(e)](0);case"second":n[rU(e)](0),n[nU(e)](0)}return n.getTime()}function uX(r,t,e,n){var a=1e4,i=$M,A=0;function o(b,I,F,E,D,Q,M){for(var R=new Date(I),P=I,O=R[E]();P<F&&P<=n[1];)M.push({value:P}),O+=b,R[D](O),P=R.getTime();M.push({value:P,notAdd:!0})}function s(b,I,F){var E=[],D=!I.length;if(!aX(Ts(b),n[0],n[1],e)){D&&(I=[{value:lX(new Date(n[0]),b,e)},{value:n[1]}]);for(var Q=0;Q<I.length-1;Q++){var M=I[Q].value,R=I[Q+1].value;if(M!==R){var P=void 0,O=void 0,G=void 0,X=!1;switch(b){case"year":P=Math.max(1,Math.round(t/un/365)),O=p_(e),G=N3(e);break;case"half-year":case"quarter":case"month":P=AX(t),O=Is(e),G=qM(e);break;case"week":case"half-week":case"day":P=iX(t),O=tp(e),G=jM(e),X=!0;break;case"half-day":case"quarter-day":case"hour":P=oX(t),O=Af(e),G=tU(e);break;case"minute":P=bb(t,!0),O=ep(e),G=eU(e);break;case"second":P=bb(t,!1),O=rp(e),G=rU(e);break;case"millisecond":P=sX(t),O=np(e),G=nU(e);break}o(P,M,R,O,G,X,E),b==="year"&&F.length>1&&Q===0&&F.unshift({value:F[0].value-P})}}for(var Q=0;Q<E.length;Q++)F.push(E[Q]);return E}}for(var l=[],u=[],f=0,c=0,h=0;h<i.length&&A++<a;++h){var v=Ts(i[h]);if(H3(i[h])){s(i[h],l[l.length-1]||[],u);var d=i[h+1]?Ts(i[h+1]):null;if(v!==d){if(u.length){c=f,u.sort(function(b,I){return b.value-I.value});for(var p=[],g=0;g<u.length;++g){var y=u[g].value;(g===0||u[g-1].value!==y)&&(p.push(u[g]),y>=n[0]&&y<=n[1]&&f++)}var m=(n[1]-n[0])/t;if(f>m*1.5&&c>m/1.5||(l.push(p),f>m||r===i[h]))break}u=[]}}}for(var w=Jt(Y(l,function(b){return Jt(b,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(b){return b.length>0}),_=[],B=w.length-1,h=0;h<w.length;++h)for(var C=w[h],S=0;S<C.length;++S)_.push({value:C[S].value,level:B-h});_.sort(function(b,I){return b.value-I.value});for(var x=[],h=0;h<_.length;++h)(h===0||_[h].value!==_[h-1].value)&&x.push(_[h]);return x}wa.registerClass(P_);var Tb=wa.prototype,Uu=Za.prototype,fX=me,cX=Math.floor,hX=Math.ceil,Rc=Math.pow,Cn=Math.log,R_=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Za,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,a=this._extent,i=n.getExtent(),A=Uu.getTicks.call(this,e);return Y(A,function(o){var s=o.value,l=me(Rc(this.base,s));return l=s===a[0]&&this._fixMin?Hc(l,i[0]):l,l=s===a[1]&&this._fixMax?Hc(l,i[1]):l,{value:l}},this)},t.prototype.setExtent=function(e,n){var a=Cn(this.base);e=Cn(Math.max(0,e))/a,n=Cn(Math.max(0,n))/a,Uu.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=Tb.getExtent.call(this);n[0]=Rc(e,n[0]),n[1]=Rc(e,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=Hc(n[0],i[0])),this._fixMax&&(n[1]=Hc(n[1],i[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Cn(e[0])/Cn(n),e[1]=Cn(e[1])/Cn(n),Tb.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,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=yK(a),A=e/a*i;for(A<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[me(hX(n[0]/i)*i),me(cX(n[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){Uu.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=Cn(e)/Cn(this.base),lp(e,this._extent)},t.prototype.normalize=function(e){return e=Cn(e)/Cn(this.base),up(e,this._extent)},t.prototype.scale=function(e){return e=fp(e,this._extent),Rc(this.base,e)},t.type="log",t}(wa),M2=R_.prototype;M2.getMinorTicks=Uu.getMinorTicks;M2.getLabel=Uu.getLabel;function Hc(r,t){return fX(r,aa(t))}wa.registerClass(R_);var vX=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 a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var A=this._modelMinRaw=i;vt(A)?this._modelMinNum=Oc(t,A({min:n[0],max:n[1]})):A!=="dataMin"&&(this._modelMinNum=Oc(t,A));var o=this._modelMaxRaw=e.get("max",!0);if(vt(o)?this._modelMaxNum=Oc(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=Oc(t,o)),a)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=K(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Rn(l[0],1),Rn(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,A=t?null:n-e||Math.abs(e),o=this._modelMinRaw==="dataMin"?e:this._modelMinNum,s=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=o!=null,u=s!=null;o==null&&(o=t?a?0:NaN:e-i[0]*A),s==null&&(s=t?a?a-1:NaN:n+i[1]*A),(o==null||!isFinite(o))&&(o=NaN),(s==null||!isFinite(s))&&(s=NaN);var f=$u(o)||$u(s)||t&&!a;this._needCrossZero&&(o>0&&s>0&&!l&&(o=0),o<0&&s<0&&!u&&(s=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(o=c,l=!0),h!=null&&(s=h,u=!0),{min:o,max:s,minFixed:l,maxFixed:u,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[pX[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=dX[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),dX={min:"_determinedMin",max:"_determinedMax"},pX={min:"_dataMin",max:"_dataMax"};function U2(r,t,e){var n=r.rawExtentInfo;return n||(n=new vX(r,t,e),r.rawExtentInfo=n,n)}function Oc(r,t){return t==null?null:$u(t)?NaN:r.parse(t)}function P2(r,t){var e=r.type,n=U2(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,A=t.ecModel;if(A&&e==="time"){var o=T2("bar",A),s=!1;if(T(o,function(f){s=s||f.getBaseAxis()===t.axis}),s){var l=I2(o),u=gX(a,i,t,l);a=u.min,i=u.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function gX(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],A=eX(n,e.axis);if(A===void 0)return{min:r,max:t};var o=1/0;T(A,function(h){o=Math.min(h.offset,o)});var s=-1/0;T(A,function(h){s=Math.max(h.offset+h.width,s)}),o=Math.abs(o),s=Math.abs(s);var l=o+s,u=t-r,f=1-(o+s)/i,c=u/f-u;return t+=c*(s/l),r-=c*(o/l),{min:r,max:t}}function Os(r,t){var e=t,n=P2(r,e),a=n.extent,i=e.get("splitNumber");r instanceof R_&&(r.base=e.get("logBase"));var A=r.type,o=e.get("interval"),s=A==="interval"||A==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),o!=null&&r.setInterval&&r.setInterval(o)}function hp(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new cp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new P_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(wa.getClass(t)||Za)}}function yX(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function sl(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(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):nt(t)?function(n){return function(a){var i=r.scale.getLabel(a),A=n.replace("{value}",i??"");return A}}(t):vt(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(H_(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function H_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function mX(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof cp?a=e.count():(n=e.getTicks(),a=n.length);var A=r.getLabelModel(),o=sl(r),s,l=1;a>40&&(l=Math.ceil(a/40));for(var u=0;u<a;u+=l){var f=n?n[u]:{value:i[0]+u},c=o(f,u),h=A.getTextRect(c),v=wX(h,A.get("rotate")||0);s?s.union(v):s=v}return s}}function wX(r,t){var e=t*Math.PI/180,n=r.width,a=r.height,i=n*Math.abs(Math.cos(e))+Math.abs(a*Math.sin(e)),A=n*Math.abs(Math.sin(e))+Math.abs(a*Math.cos(e)),o=new Dt(r.x,r.y,i,A);return o}function O_(r){var t=r.get("interval");return t??"auto"}function R2(r){return r.type==="category"&&O_(r.getLabelModel())===0}function Gv(r,t){var e={};return T(r.mapDimensionsAll(t),function(n){e[S2(r,n)]=!0}),Ht(e)}function BX(r,t,e){t&&T(Gv(t,e),function(n){var a=t.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var Vf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),_X=1e-8;function Ib(r,t){return Math.abs(r-t)<_X}function HA(r,t,e){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var A=r[i];n+=Qa(a[0],a[1],A[0],A[1],t,e),a=A}var o=r[0];return(!Ib(a[0],o[0])||!Ib(a[1],o[1]))&&(n+=Qa(a[0],a[1],o[0],o[1],t,e)),n!==0}var CX=[];function jg(r,t){for(var e=0;e<r.length;e++)Ye(r[e],r[e],t)}function Fb(r,t,e,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(bi(t,t,i),Ti(e,e,i))}}function SX(r){for(var t=0,e=0,n=0,a=r.length,i=r[a-1][0],A=r[a-1][1],o=0;o<a;o++){var s=r[o][0],l=r[o][1],u=i*l-s*A;t+=u,e+=(i+s)*u,n+=(A+l)*u,i=s,A=l}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var H2=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}(),Eb=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Db=function(){function r(t){this.type="linestring",this.points=t}return r}(),O2=function(r){H(t,r);function t(e,n,a){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,a=0,i=0;i<e.length;i++){var A=e[i],o=A.exterior,s=o&&o.length;s>a&&(n=A,a=s)}if(n)return SX(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var a=[1/0,1/0],i=[-1/0,-1/0],A=this.geometries;return T(A,function(o){o.type==="polygon"?Fb(o.exterior,a,i,e):T(o.points,function(s){Fb(s,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Dt(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var i=0,A=a.length;i<A;i++){var o=a[i];if(o.type==="polygon"){var s=o.exterior,l=o.interiors;if(HA(s,e[0],e[1])){for(var u=0;u<(l?l.length:0);u++)if(HA(l[u],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,a,i){var A=this.getBoundingRect(),o=A.width/A.height;a?i||(i=a/o):a=o*i;for(var s=new Dt(e,n,a,i),l=A.calculateTransform(s),u=this.geometries,f=0;f<u.length;f++){var c=u[f];c.type==="polygon"?(jg(c.exterior,l),T(c.interiors,function(h){jg(h,l)})):T(c.points,function(h){jg(h,l)})}A=this._rect,A.copy(s),this._center=[A.x+A.width/2,A.y+A.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}(H2),xX=function(r){H(t,r);function t(e,n){var a=r.call(this,e)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Hd(CX),A=e;A&&!A.isGeoSVGGraphicRoot;)Ha(i,A.getLocalTransform(),i),A=A.parent;return Zs(i,i),Ye(a,a,i),a},t}(H2);function bX(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return T(n,function(a){var i=a.geometry,A=i.encodeOffsets,o=i.coordinates;if(A)switch(i.type){case"LineString":i.coordinates=k2(o,A,e);break;case"Polygon":ty(o,A,e);break;case"MultiLineString":ty(o,A,e);break;case"MultiPolygon":T(o,function(s,l){return ty(s,A[l],e)})}}),t.UTF8Encoding=!1,t}function ty(r,t,e){for(var n=0;n<r.length;n++)r[n]=k2(r[n],t[n],e)}function k2(r,t,e){for(var n=[],a=t[0],i=t[1],A=0;A<r.length;A+=2){var o=r.charCodeAt(A)-64,s=r.charCodeAt(A+1)-64;o=o>>1^-(o&1),s=s>>1^-(s&1),o+=a,s+=i,a=o,i=s,n.push([o/e,s/e])}return n}function TX(r,t){return r=bX(r),Y(Jt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var A=a.coordinates;i.push(new Eb(A[0],A.slice(1)));break;case"MultiPolygon":T(a.coordinates,function(s){s[0]&&i.push(new Eb(s[0],s.slice(1)))});break;case"LineString":i.push(new Db([a.coordinates]));break;case"MultiLineString":i.push(new Db(a.coordinates))}var o=new O2(n[t||"name"],i,n.cp);return o.properties=n,o})}var cf=Vt();function N2(r,t){var e=Y(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 IX(r){var t=r.getLabelModel().get("customValues");if(t){var e=sl(r);return{labels:N2(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?EX(r):QX(r)}function FX(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:N2(r,e)}:r.type==="category"?DX(r,t):{ticks:Y(r.scale.getTicks(),function(n){return n.value})}}function EX(r){var t=r.getLabelModel(),e=V2(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function V2(r,t){var e=G2(r,"labels"),n=O_(t),a=K2(e,n);if(a)return a;var i,A;return vt(n)?i=X2(r,n):(A=n==="auto"?LX(r):n,i=W2(r,A)),z2(e,n,{labels:i,labelCategoryInterval:A})}function DX(r,t){var e=G2(r,"ticks"),n=O_(t),a=K2(e,n);if(a)return a;var i,A;if((!t.get("show")||r.scale.isBlank())&&(i=[]),vt(n))i=X2(r,n,!0);else if(n==="auto"){var o=V2(r,r.getLabelModel());A=o.labelCategoryInterval,i=Y(o.labels,function(s){return s.tickValue})}else A=n,i=W2(r,A,!0);return z2(e,n,{ticks:i,tickCategoryInterval:A})}function QX(r){var t=r.scale.getTicks(),e=sl(r);return{labels:Y(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function G2(r,t){return cf(r)[t]||(cf(r)[t]=[])}function K2(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function z2(r,t,e){return r.push({key:t,value:e}),e}function LX(r){var t=cf(r).autoInterval;return t??(cf(r).autoInterval=r.calculateCategoryInterval())}function MX(r){var t=UX(r),e=sl(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=r.scale,i=a.getExtent(),A=a.count();if(i[1]-i[0]<1)return 0;var o=1;A>40&&(o=Math.max(1,Math.floor(A/40)));for(var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l*Math.cos(n)),f=Math.abs(l*Math.sin(n)),c=0,h=0;s<=i[1];s+=o){var v=0,d=0,p=Df(e({value:s}),t.font,"center","top");v=p.width*1.3,d=p.height*1.3,c=Math.max(c,v,7),h=Math.max(h,d,7)}var g=c/u,y=h/f;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var m=Math.max(0,Math.floor(Math.min(g,y))),w=cf(r.model),_=r.getExtent(),B=w.lastAutoInterval,C=w.lastTickCount;return B!=null&&C!=null&&Math.abs(B-m)<=1&&Math.abs(C-A)<=1&&B>m&&w.axisExtent0===_[0]&&w.axisExtent1===_[1]?m=B:(w.lastTickCount=A,w.lastAutoInterval=m,w.axisExtent0=_[0],w.axisExtent1=_[1]),m}function UX(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 W2(r,t,e){var n=sl(r),a=r.scale,i=a.getExtent(),A=r.getLabelModel(),o=[],s=Math.max((t||0)+1,1),l=i[0],u=a.count();l!==0&&s>1&&u/s>2&&(l=Math.round(Math.ceil(l/s)*s));var f=R2(r),c=A.get("showMinLabel")||f,h=A.get("showMaxLabel")||f;c&&l!==i[0]&&d(i[0]);for(var v=l;v<=i[1];v+=s)d(v);h&&v-s!==i[1]&&d(i[1]);function d(p){var g={value:p};o.push(e?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p})}return o}function X2(r,t,e){var n=r.scale,a=sl(r),i=[];return T(n.getTicks(),function(A){var o=n.getLabel(A),s=A.value;t(A.value,o)&&i.push(e?s:{formattedLabel:a(A),rawLabel:o,tickValue:s})}),i}var Qb=[0,1],kn=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]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return $L(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,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Lb(n,a.count())),$t(t,Qb,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Lb(n,a.count()));var i=$t(t,n,Qb,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=FX(this,e),a=n.ticks,i=Y(a,function(o){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(o):o),tickValue:o}},this),A=e.get("alignWithLabel");return PX(this,i,A,t.clamp),i},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),a=Y(n,function(i){return Y(i,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this)},this);return a},r.prototype.getViewLabels=function(){return IX(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 a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return MX(this)},r}();function Lb(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function PX(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),A,o;if(a===1)t[0].coord=i[0],A=t[1]={coord:i[1]};else{var s=t[a-1].tickValue-t[0].tickValue,l=(t[a-1].coord-t[0].coord)/s;T(t,function(h){h.coord-=l/2});var u=r.scale.getExtent();o=1+u[1]-t[a-1].tickValue,A={coord:t[a-1].coord+l*o},t.push(A)}var f=i[0]>i[1];c(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&c(i[0],t[0].coord)&&t.unshift({coord:i[0]}),c(i[1],A.coord)&&(n?A.coord=i[1]:t.pop()),n&&c(A.coord,i[1])&&t.push({coord:i[1]});function c(h,v){return h=me(h),v=me(v),f?h>v:h<v}}var Ll=Math.PI*2,bA=ga.CMD,RX=["top","right","bottom","left"];function HX(r,t,e,n,a){var i=e.width,A=e.height;switch(r){case"top":n.set(e.x+i/2,e.y-t),a.set(0,-1);break;case"bottom":n.set(e.x+i/2,e.y+A+t),a.set(0,1);break;case"left":n.set(e.x-t,e.y+A/2),a.set(-1,0);break;case"right":n.set(e.x+i+t,e.y+A/2),a.set(1,0);break}}function OX(r,t,e,n,a,i,A,o,s){A-=r,o-=t;var l=Math.sqrt(A*A+o*o);A/=l,o/=l;var u=A*e+r,f=o*e+t;if(Math.abs(n-a)%Ll<1e-4)return s[0]=u,s[1]=f,l-e;if(i){var c=n;n=zr(a),a=zr(c)}else n=zr(n),a=zr(a);n>a&&(a+=Ll);var h=Math.atan2(o,A);if(h<0&&(h+=Ll),h>=n&&h<=a||h+Ll>=n&&h+Ll<=a)return s[0]=u,s[1]=f,l-e;var v=e*Math.cos(n)+r,d=e*Math.sin(n)+t,p=e*Math.cos(a)+r,g=e*Math.sin(a)+t,y=(v-A)*(v-A)+(d-o)*(d-o),m=(p-A)*(p-A)+(g-o)*(g-o);return y<m?(s[0]=v,s[1]=d,Math.sqrt(y)):(s[0]=p,s[1]=g,Math.sqrt(m))}function Kv(r,t,e,n,a,i,A,o){var s=a-r,l=i-t,u=e-r,f=n-t,c=Math.sqrt(u*u+f*f);u/=c,f/=c;var h=s*u+l*f,v=h/c;o&&(v=Math.min(Math.max(v,0),1)),v*=c;var d=A[0]=r+v*u,p=A[1]=t+v*f;return Math.sqrt((d-a)*(d-a)+(p-i)*(p-i))}function Y2(r,t,e,n,a,i,A){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var o=r+e,s=t+n,l=A[0]=Math.min(Math.max(a,r),o),u=A[1]=Math.min(Math.max(i,t),s);return Math.sqrt((l-a)*(l-a)+(u-i)*(u-i))}var In=[];function kX(r,t,e){var n=Y2(t.x,t.y,t.width,t.height,r.x,r.y,In);return e.set(In[0],In[1]),n}function NX(r,t,e){for(var n=0,a=0,i=0,A=0,o,s,l=1/0,u=t.data,f=r.x,c=r.y,h=0;h<u.length;){var v=u[h++];h===1&&(n=u[h],a=u[h+1],i=n,A=a);var d=l;switch(v){case bA.M:i=u[h++],A=u[h++],n=i,a=A;break;case bA.L:d=Kv(n,a,u[h],u[h+1],f,c,In,!0),n=u[h++],a=u[h++];break;case bA.C:d=QL(n,a,u[h++],u[h++],u[h++],u[h++],u[h],u[h+1],f,c,In),n=u[h++],a=u[h++];break;case bA.Q:d=ML(n,a,u[h++],u[h++],u[h],u[h+1],f,c,In),n=u[h++],a=u[h++];break;case bA.A:var p=u[h++],g=u[h++],y=u[h++],m=u[h++],w=u[h++],_=u[h++];h+=1;var B=!!(1-u[h++]);o=Math.cos(w)*y+p,s=Math.sin(w)*m+g,h<=1&&(i=o,A=s);var C=(f-p)*m/y+p;d=OX(p,g,m,w,w+_,B,C,c,In),n=Math.cos(w+_)*y+p,a=Math.sin(w+_)*m+g;break;case bA.R:i=n=u[h++],A=a=u[h++];var S=u[h++],x=u[h++];d=Y2(i,A,S,x,f,c,In);break;case bA.Z:d=Kv(n,a,i,A,f,c,In,!0),n=i,a=A;break}d<l&&(l=d,e.set(In[0],In[1]))}return l}var Qn=new It,Ae=new It,we=new It,oa=new It,na=new It;function Mb(r,t){if(r){var e=r.getTextGuideLine(),n=r.getTextContent();if(n&&e){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],A=a.candidates||RX,o=n.getBoundingRect().clone();o.applyTransform(n.getComputedTransform());var s=1/0,l=a.anchor,u=r.getComputedTransform(),f=u&&Zs([],u),c=t.get("length2")||0;l&&we.copy(l);for(var h=0;h<A.length;h++){var v=A[h];HX(v,0,o,Qn,oa),It.scaleAndAdd(Ae,Qn,oa,c),Ae.transform(f);var d=r.getBoundingRect(),p=l?l.distance(Ae):r instanceof Mt?NX(Ae,r.path,we):kX(Ae,d,we);p<s&&(s=p,Ae.transform(u),we.transform(u),we.toArray(i[0]),Ae.toArray(i[1]),Qn.toArray(i[2]))}Z2(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var zv=[],pr=new It;function Z2(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Qn.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),It.sub(oa,Qn,Ae),It.sub(na,we,Ae);var e=oa.len(),n=na.len();if(!(e<.001||n<.001)){oa.scale(1/e),na.scale(1/n);var a=oa.dot(na),i=Math.cos(t);if(i<a){var A=Kv(Ae.x,Ae.y,we.x,we.y,Qn.x,Qn.y,zv,!1);pr.fromArray(zv),pr.scaleAndAdd(na,A/Math.tan(Math.PI-t));var o=we.x!==Ae.x?(pr.x-Ae.x)/(we.x-Ae.x):(pr.y-Ae.y)/(we.y-Ae.y);if(isNaN(o))return;o<0?It.copy(pr,Ae):o>1&&It.copy(pr,we),pr.toArray(r[1])}}}}function VX(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Qn.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),It.sub(oa,Ae,Qn),It.sub(na,we,Ae);var n=oa.len(),a=na.len();if(!(n<.001||a<.001)){oa.scale(1/n),na.scale(1/a);var i=oa.dot(t),A=Math.cos(e);if(i<A){var o=Kv(Ae.x,Ae.y,we.x,we.y,Qn.x,Qn.y,zv,!1);pr.fromArray(zv);var s=Math.PI/2,l=Math.acos(na.dot(t)),u=s+l-e;if(u>=s)It.copy(pr,we);else{pr.scaleAndAdd(na,o/Math.tan(Math.PI/2-u));var f=we.x!==Ae.x?(pr.x-Ae.x)/(we.x-Ae.x):(pr.y-Ae.y)/(we.y-Ae.y);if(isNaN(f))return;f<0?It.copy(pr,Ae):f>1&&It.copy(pr,we)}pr.toArray(r[1])}}}}function ey(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var A=n.get("smooth");A&&A===!0&&(A=.3),i.shape=i.shape||{},A>0&&(i.shape.smooth=A);var o=n.getModel("lineStyle").getLineStyle();a?r.useStyle(o):i.style=o}function GX(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 a=xi(n[0],n[1]),i=xi(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var A=Math.min(a,i)*e,o=Oh([],n[1],n[0],A/a),s=Oh([],n[1],n[2],A/i),l=Oh([],o,s,.5);r.bezierCurveTo(o[0],o[1],o[0],o[1],l[0],l[1]),r.bezierCurveTo(s[0],s[1],s[0],s[1],n[2][0],n[2][1])}else for(var u=1;u<n.length;u++)r.lineTo(n[u][0],n[u][1])}function k_(r,t,e){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=t.normal,A=i.get("show"),o=a.ignore,s=0;s<rf.length;s++){var l=rf[s],u=t[l],f=l==="normal";if(u){var c=u.get("show"),h=f?o:xt(a.states[l]&&a.states[l].ignore,o);if(h||!xt(c,A)){var v=f?n:n&&n.states[l];v&&(v.ignore=!0),n&&ey(n,!0,l,u);continue}n||(n=new xr,r.setTextGuideLine(n),!f&&(o||!A)&&ey(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),ey(n,!1,l,u)}}if(n){gt(n.style,e),n.style.fill=null;var d=i.get("showAbove"),p=r.textGuideLineConfig=r.textGuideLineConfig||{};p.showAbove=d||!1,n.buildPath=GX}}function N_(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<_r.length;n++){var a=_r[n];e[a]=r.getModel([a,t])}return e}function $2(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),A=a.getBoundingRect(),o=!i||i[1]<1e-5&&i[2]<1e-5,s=a.style.margin||0,l=A.clone();l.applyTransform(i),l.x-=s/2,l.y-=s/2,l.width+=s,l.height+=s;var u=o?new Fv(A,i):null;t.push({label:a,labelLine:n.labelLine,rect:l,localRect:A,obb:u,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:o,transform:i})}}return t}function J2(r,t,e,n,a,i){var A=r.length;if(A<2)return;r.sort(function(S,x){return S.rect[t]-x.rect[t]});for(var o=0,s,l=!1,u=0,f=0;f<A;f++){var c=r[f],h=c.rect;s=h[t]-o,s<0&&(h[t]-=s,c.label[t]-=s,l=!0);var v=Math.max(-s,0);u+=v,o=h[t]+h[e]}u>0&&i&&_(-u/A,0,A);var d=r[0],p=r[A-1],g,y;m(),g<0&&B(-g,.8),y<0&&B(y,.8),m(),w(g,y,1),w(y,g,-1),m(),g<0&&C(-g),y<0&&C(y);function m(){g=d.rect[t]-n,y=a-p.rect[t]-p.rect[e]}function w(S,x,b){if(S<0){var I=Math.min(x,-S);if(I>0){_(I*b,0,A);var F=I+S;F<0&&B(-F*b,1)}else B(-S*b,1)}}function _(S,x,b){S!==0&&(l=!0);for(var I=x;I<b;I++){var F=r[I],E=F.rect;E[t]+=S,F.label[t]+=S}}function B(S,x){for(var b=[],I=0,F=1;F<A;F++){var E=r[F-1].rect,D=Math.max(r[F].rect[t]-E[t]-E[e],0);b.push(D),I+=D}if(I){var Q=Math.min(Math.abs(S)/I,x);if(S>0)for(var F=0;F<A-1;F++){var M=b[F]*Q;_(M,0,F+1)}else for(var F=A-1;F>0;F--){var M=b[F-1]*Q;_(-M,F,A)}}}function C(S){var x=S<0?-1:1;S=Math.abs(S);for(var b=Math.ceil(S/(A-1)),I=0;I<A-1;I++)if(x>0?_(b,0,I+1):_(-b,A-I-1,A),S-=b,S<=0)return}return l}function KX(r,t,e,n){return J2(r,"x","width",t,e,n)}function q2(r,t,e,n){return J2(r,"y","height",t,e,n)}function j2(r){var t=[];r.sort(function(d,p){return p.priority-d.priority});var e=new Dt(0,0,0,0);function n(d){if(!d.ignore){var p=d.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}d.ignore=!0}for(var a=0;a<r.length;a++){var i=r[a],A=i.axisAligned,o=i.localRect,s=i.transform,l=i.label,u=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var f=i.obb,c=!1,h=0;h<t.length;h++){var v=t[h];if(e.intersect(v.rect)){if(A&&v.axisAligned){c=!0;break}if(v.obb||(v.obb=new Fv(v.localRect,v.transform)),f||(f=new Fv(o,s)),f.intersect(v.obb)){c=!0;break}}}c?(n(l),u&&n(u)):(l.attr("ignore",i.defaultAttr.ignore),u&&u.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function zX(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function WX(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:zX(n&&n.shape.points)}}var Ub=["align","verticalAlign","width","height","fontSize"],ur=new La,ry=Vt(),XX=Vt();function kc(r,t,e){for(var n=0;n<e.length;n++){var a=e[n];t[a]!=null&&(r[a]=t[a])}}var Nc=["x","y","rotation"],YX=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,a,i){var A=a.style,o=a.__hostTarget,s=o.textConfig||{},l=a.getComputedTransform(),u=a.getBoundingRect().plain();Dt.applyTransform(u,u,l),l?ur.setLocalTransform(l):(ur.x=ur.y=ur.rotation=ur.originX=ur.originY=0,ur.scaleX=ur.scaleY=1),ur.rotation=zr(ur.rotation);var f=a.__hostTarget,c;if(f){c=f.getBoundingRect().plain();var h=f.getComputedTransform();Dt.applyTransform(c,c,h)}var v=c&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:v,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:v&&v.ignore,x:ur.x,y:ur.y,scaleX:ur.scaleX,scaleY:ur.scaleY,rotation:ur.rotation,style:{x:A.x,y:A.y,align:A.align,verticalAlign:A.verticalAlign,width:A.width,height:A.height,fontSize:A.fontSize},cursor:a.cursor,attachedPos:s.position,attachedRot:s.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(vt(a)||Ht(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var A=i.getTextContent(),o=Ct(i);A&&!A.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,A,a)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function a(m,w){return function(){Mb(m,w)}}for(var i=0;i<this._labelList.length;i++){var A=this._labelList[i],o=A.label,s=o.__hostTarget,l=A.defaultAttr,u=void 0;vt(A.layoutOption)?u=A.layoutOption(WX(A,s)):u=A.layoutOption,u=u||{},A.computedLayoutOption=u;var f=Math.PI/180;s&&s.setTextConfig({local:!1,position:u.x!=null||u.y!=null?null:l.attachedPos,rotation:u.rotate!=null?u.rotate*f:l.attachedRot,offset:[u.dx||0,u.dy||0]});var c=!1;if(u.x!=null?(o.x=et(u.x,e),o.setStyle("x",0),c=!0):(o.x=l.x,o.setStyle("x",l.style.x)),u.y!=null?(o.y=et(u.y,n),o.setStyle("y",0),c=!0):(o.y=l.y,o.setStyle("y",l.style.y)),u.labelLinePoints){var h=s.getTextGuideLine();h&&(h.setShape({points:u.labelLinePoints}),c=!1)}var v=ry(o);v.needsUpdateLabelLine=c,o.rotation=u.rotate!=null?u.rotate*f:l.rotation,o.scaleX=l.scaleX,o.scaleY=l.scaleY;for(var d=0;d<Ub.length;d++){var p=Ub[d];o.setStyle(p,u[p]!=null?u[p]:l.style[p])}if(u.draggable){if(o.draggable=!0,o.cursor="move",s){var g=A.seriesModel;if(A.dataIndex!=null){var y=A.seriesModel.getData(A.dataType);g=y.getItemModel(A.dataIndex)}o.on("drag",a(s,g.getModel("labelLine")))}}else o.off("drag"),o.cursor=l.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),a=$2(this._labelList),i=Jt(a,function(s){return s.layoutOption.moveOverlap==="shiftX"}),A=Jt(a,function(s){return s.layoutOption.moveOverlap==="shiftY"});KX(i,0,e),q2(A,0,n);var o=Jt(a,function(s){return s.layoutOption.hideOverlap});j2(o)},r.prototype.processLabelsOverall=function(){var t=this;T(this._chartViewList,function(e){var n=e.__model,a=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(A){if(A.ignore&&!A.forceLabelAnimation)return!0;var o=!a,s=A.getTextContent();!o&&s&&(o=ry(s).needsUpdateLabelLine),o&&t._updateLabelLine(A,n),i&&t._animateLabels(A,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),a=Ct(t),i=a.dataIndex;if(n&&i!=null){var A=e.getData(a.dataType),o=A.getItemModel(i),s={},l=A.getItemVisual(i,"style");if(l){var u=A.getVisual("drawType");s.stroke=l[u]}var f=o.getModel("labelLine");k_(t,N_(o),s),Mb(t,f)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!xs(t))){var i=ry(n),A=i.oldLayout,o=Ct(t),s=o.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(o.dataType);if(A){n.attr(A);var c=t.prevStates;c&&(Qt(c,"select")>=0&&n.attr(i.oldLayoutSelect),Qt(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),zt(n,l,e,s)}else if(n.attr(l),!tl(n).valueAnimation){var f=xt(n.style.opacity,1);n.style.opacity=0,ue(n,{style:{opacity:f}},e,s)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};kc(h,l,Nc),kc(h,n.states.select,Nc)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};kc(v,l,Nc),kc(v,n.states.emphasis,Nc)}zM(n,s,u,e,e)}if(a&&!a.ignore&&!a.invisible){var i=XX(a),A=i.oldLayout,d={points:a.shape.points};A?(a.attr({shape:A}),zt(a,{shape:d},e)):(a.setShape(d),a.style.strokePercent=0,ue(a,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),ny=Vt();function ZX(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=ny(e).labelManager;a||(a=ny(e).labelManager=new YX),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=ny(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var ay=Math.sin,iy=Math.cos,tP=Math.PI,TA=Math.PI*2,$X=180/tP,eP=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,a,i,A){this._add("C",t,e,n,a,i,A)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,A){this.ellipse(t,e,n,n,0,a,i,A)},r.prototype.ellipse=function(t,e,n,a,i,A,o,s){var l=o-A,u=!s,f=Math.abs(l),c=Ei(f-TA)||(u?l>=TA:-l>=TA),h=l>0?l%TA:l%TA+TA,v=!1;c?v=!0:Ei(f)?v=!1:v=h>=tP==!!u;var d=t+n*iy(A),p=e+a*ay(A);this._start&&this._add("M",d,p);var g=Math.round(i*$X);if(c){var y=1/this._p,m=(u?1:-1)*(TA-y);this._add("A",n,a,g,1,+u,t+n*iy(A+m),e+a*ay(A+m)),y>.01&&this._add("A",n,a,g,0,+u,d,p)}else{var w=t+n*iy(o),_=e+a*ay(o);this._add("A",n,a,g,+v,+u,w,_)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),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,a,i,A,o,s,l){for(var u=[],f=this._p,c=1;c<arguments.length;c++){var h=arguments[c];if(isNaN(h)){this._invalid=!0;return}u.push(Math.round(h*f)/f)}this._d.push(t+u.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}(),V_="none",JX=Math.round;function qX(r){var t=r.fill;return t!=null&&t!==V_}function jX(r){var t=r.stroke;return t!=null&&t!==V_}var q0=["lineCap","miterLimit","lineJoin"],t6=Y(q0,function(r){return"stroke-"+r.toLowerCase()});function e6(r,t,e,n){var a=t.opacity==null?1:t.opacity;if(e instanceof Ke){r("opacity",a);return}if(qX(t)){var i=ju(t.fill);r("fill",i.color);var A=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;A<1&&r("fill-opacity",A)}else r("fill",V_);if(jX(t)){var o=ju(t.stroke);r("stroke",o.color);var s=t.strokeNoScale?e.getLineScale():1,l=s?(t.lineWidth||0)/s:0,u=t.strokeOpacity!=null?t.strokeOpacity*o.opacity*a:o.opacity*a,f=t.strokeFirst;if(l!==1&&r("stroke-width",l),f&&r("paint-order",f?"stroke":"fill"),u<1&&r("stroke-opacity",u),t.lineDash){var c=I_(e),h=c[0],v=c[1];h&&(v=JX(v||0),r("stroke-dasharray",h.join(",")),(v||n)&&r("stroke-dashoffset",v))}for(var d=0;d<q0.length;d++){var p=q0[d];if(t[p]!==Tv[p]){var g=t[p]||Tv[p];g&&r(t6[d],g)}}}}var rP="http://www.w3.org/2000/svg",nP="http://www.w3.org/1999/xlink",r6="http://www.w3.org/2000/xmlns/",n6="http://www.w3.org/XML/1998/namespace",Pb="ecmeta_";function aP(r){return document.createElementNS(rP,r)}function Re(r,t,e,n,a){return{tag:r,attrs:e||{},children:n,text:a,key:t}}function a6(r,t){var e=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),e.push(i))}return"<"+r+" "+e.join(" ")+">"}function i6(r){return"</"+r+">"}function G_(r,t){t=t||{};var e=t.newline?`
|
||
`:"";function n(a){var i=a.children,A=a.tag,o=a.attrs,s=a.text;return a6(A,o)+(A!=="style"?Dr(s):s||"")+(i?""+e+Y(i,function(l){return n(l)}).join(e)+e:"")+i6(A)}return n(r)}function A6(r,t,e){e=e||{};var n=e.newline?`
|
||
`:"",a=" {"+n,i=n+"}",A=Y(Ht(r),function(s){return s+a+Y(Ht(r[s]),function(l){return l+":"+r[s][l]+";"}).join(n)+i}).join(n),o=Y(Ht(t),function(s){return"@keyframes "+s+a+Y(Ht(t[s]),function(l){return l+a+Y(Ht(t[s][l]),function(u){var f=t[s][l][u];return u==="d"&&(f='path("'+f+'")'),u+":"+f+";"}).join(n)+i}).join(n)+i}).join(n);return!A&&!o?"":["<![CDATA[",A,o,"]]>"].join(n)}function j0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Rb(r,t,e,n){return Re("svg","root",{width:r,height:t,xmlns:rP,"xmlns:xlink":nP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var o6=0;function iP(){return o6++}var Hb={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"},QA="transform-origin";function s6(r,t,e){var n=V({},r.shape);V(n,t),r.buildPath(e,n);var a=new eP;return a.reset(NL(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function l6(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[QA]=e+"px "+n+"px")}var u6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function AP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function f6(r,t,e){var n=r.shape.paths,a={},i,A;if(T(n,function(s){var l=j0(e.zrId);l.animation=!0,vp(s,{},l,!0);var u=l.cssAnims,f=l.cssNodes,c=Ht(u),h=c.length;if(h){A=c[h-1];var v=u[A];for(var d in v){var p=v[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var g in f){var y=f[g].animation;y.indexOf(A)>=0&&(i=y)}}}),!!i){t.d=!1;var o=AP(a,e);return i.replace(A,o)}}function Ob(r){return nt(r)?Hb[r]?"cubic-bezier("+Hb[r]+")":XB(r)?r:"":""}function vp(r,t,e,n){var a=r.animators,i=a.length,A=[];if(r instanceof s_){var o=f6(r,t,e);if(o)A.push(o);else if(!i)return}else if(!i)return;for(var s={},l=0;l<i;l++){var u=a[l],f=[u.getMaxTime()/1e3+"s"],c=Ob(u.getClip().easing),h=u.getDelay();c?f.push(c):f.push("linear"),h&&f.push(h/1e3+"s"),u.getLoop()&&f.push("infinite");var v=f.join(" ");s[v]=s[v]||[v,[]],s[v][1].push(u)}function d(y){var m=y[1],w=m.length,_={},B={},C={},S="animation-timing-function";function x(z,$,q){for(var j=z.getTracks(),ct=z.getMaxTime(),L=0;L<j.length;L++){var U=j[L];if(U.needsAnimate()){var k=U.keyframes,Z=U.propName;if(q&&(Z=q(Z)),Z)for(var W=0;W<k.length;W++){var tt=k[W],ot=Math.round(tt.time/ct*100)+"%",ut=Ob(tt.easing),at=tt.rawValue;(nt(at)||Kt(at))&&($[ot]=$[ot]||{},$[ot][Z]=tt.rawValue,ut&&($[ot][S]=ut))}}}}for(var b=0;b<w;b++){var I=m[b],F=I.targetName;F?F==="shape"&&x(I,B):!n&&x(I,_)}for(var E in _){var D={};WL(D,r),V(D,_[E]);var Q=VL(D),M=_[E][S];C[E]=Q?{transform:Q}:{},l6(C[E],D),M&&(C[E][S]=M)}var R,P=!0;for(var E in B){C[E]=C[E]||{};var O=!R,M=B[E][S];O&&(R=new ga);var G=R.len();R.reset(),C[E].d=s6(r,B[E],R);var X=R.len();if(!O&&G!==X){P=!1;break}M&&(C[E][S]=M)}if(!P)for(var E in C)delete C[E].d;if(!n)for(var b=0;b<w;b++){var I=m[b],F=I.targetName;F==="style"&&x(I,C,function(j){return u6[j]})}for(var J=Ht(C),At=!0,lt,b=1;b<J.length;b++){var wt=J[b-1],Bt=J[b];if(C[wt][QA]!==C[Bt][QA]){At=!1;break}lt=C[wt][QA]}if(At&<){for(var E in C)C[E][QA]&&delete C[E][QA];t[QA]=lt}if(Jt(J,function(z){return Ht(C[z]).length>0}).length){var N=AP(C,e);return N+" "+y[0]+" both"}}for(var p in s){var o=d(s[p]);o&&A.push(o)}if(A.length){var g=e.zrId+"-cls-"+iP();e.cssNodes["."+g]={animation:A.join(",")},t.class=g}}function c6(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};kb(n,t,e)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var A=r.style&&r.style.fill,o=r.states.select&&r.states.select.style&&r.states.select.style.fill,s=r.currentStates.indexOf("select")>=0&&o||A;s&&(i=f0(s))}var l=a.lineWidth;if(l){var u=!a.strokeNoScale&&r.transform?r.transform[0]:1;l=l/u}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),l&&(n["stroke-width"]=l),kb(n,t,e)}}function kb(r,t,e,n){var a=JSON.stringify(r),i=e.cssStyleCache[a];i||(i=e.zrId+"-cls-"+iP(),e.cssStyleCache[a]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var hf=Math.round;function oP(r){return r&&nt(r.src)}function sP(r){return r&&vt(r.toDataURL)}function K_(r,t,e,n){e6(function(a,i){var A=a==="fill"||a==="stroke";A&&kL(i)?uP(t,r,a,n):A&&YB(i)?fP(e,r,a,n):A&&i==="none"?r[a]="transparent":r[a]=i},t,e,!1),m6(e,r,n)}function z_(r,t){var e=fK(t);e&&(e.each(function(n,a){n!=null&&(r[(Pb+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[Pb+"silent"]="true"))}function Nb(r){return Ei(r[0]-1)&&Ei(r[1])&&Ei(r[2])&&Ei(r[3]-1)}function h6(r){return Ei(r[4])&&Ei(r[5])}function W_(r,t,e){if(t&&!(h6(t)&&Nb(t))){var n=1e4;r.transform=Nb(t)?"translate("+hf(t[4]*n)/n+" "+hf(t[5]*n)/n+")":MG(t)}}function Vb(r,t,e){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(hf(n[i][0]*e)/e),a.push(hf(n[i][1]*e)/e);t.points=a.join(" ")}function Gb(r){return!r.smooth}function v6(r){var t=Y(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,n,a){for(var i=0;i<t.length;i++){var A=t[i],o=e[A[0]];o!=null&&(n[A[1]]=hf(o*a)/a)}}}var d6={circle:[v6(["cx","cy","r"])],polyline:[Vb,Gb],polygon:[Vb,Gb]};function p6(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function lP(r,t){var e=r.style,n=r.shape,a=d6[r.type],i={},A=t.animation,o="path",s=r.style.strokePercent,l=t.compress&&NL(r)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(A&&p6(r))&&!(s<1)){o=r.type;var u=Math.pow(10,l);a[0](n,i,u)}else{var f=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;f&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var h=c.getVersion(),v=r,d=v.__svgPathBuilder;(v.__svgPathVersion!==h||!d||s!==v.__svgPathStrokePercent)&&(d||(d=v.__svgPathBuilder=new eP),d.reset(l),c.rebuildPath(d,s),d.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=s),i.d=d.getStr()}return W_(i,r.transform),K_(i,e,r,t),z_(i,r),t.animation&&vp(r,i,t),t.emphasis&&c6(r,i,t),Re(o,r.id+"",i)}function g6(r,t){var e=r.style,n=e.image;if(n&&!nt(n)&&(oP(n)?n=n.src:sP(n)&&(n=n.toDataURL())),!!n){var a=e.x||0,i=e.y||0,A=e.width,o=e.height,s={href:n,width:A,height:o};return a&&(s.x=a),i&&(s.y=i),W_(s,r.transform),K_(s,e,r,t),z_(s,r),t.animation&&vp(r,s,t),Re("image",r.id+"",s)}}function y6(r,t){var e=r.style,n=e.text;if(n!=null&&(n+=""),!(!n||isNaN(e.x)||isNaN(e.y))){var a=e.font||Ki,i=e.x||0,A=PG(e.y||0,kd(a),e.textBaseline),o=UG[e.textAlign]||e.textAlign,s={"dominant-baseline":"central","text-anchor":o};if(yM(e)){var l="",u=e.fontStyle,f=gM(e.fontSize);if(!parseFloat(f))return;var c=e.fontFamily||gL,h=e.fontWeight;l+="font-size:"+f+";font-family:"+c+";",u&&u!=="normal"&&(l+="font-style:"+u+";"),h&&h!=="normal"&&(l+="font-weight:"+h+";"),s.style=l}else s.style="font: "+a;return n.match(/\s/)&&(s["xml:space"]="preserve"),i&&(s.x=i),A&&(s.y=A),W_(s,r.transform),K_(s,e,r,t),z_(s,r),t.animation&&vp(r,s,t),Re("text",r.id+"",s,void 0,n)}}function Kb(r,t){if(r instanceof Mt)return lP(r,t);if(r instanceof Ke)return g6(r,t);if(r instanceof Us)return y6(r,t)}function m6(r,t,e){var n=r.style;if(RG(n)){var a=HG(r),i=e.shadowCache,A=i[a];if(!A){var o=r.getGlobalScale(),s=o[0],l=o[1];if(!s||!l)return;var u=n.shadowOffsetX||0,f=n.shadowOffsetY||0,c=n.shadowBlur,h=ju(n.shadowColor),v=h.opacity,d=h.color,p=c/2/s,g=c/2/l,y=p+" "+g;A=e.zrId+"-s"+e.shadowIdx++,e.defs[A]=Re("filter",A,{id:A,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Re("feDropShadow","",{dx:u/s,dy:f/l,stdDeviation:y,"flood-color":d,"flood-opacity":v})]),i[a]=A}t.filter=Od(A)}}function uP(r,t,e,n){var a=r[e],i,A={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(HL(a))i="linearGradient",A.x1=a.x,A.y1=a.y,A.x2=a.x2,A.y2=a.y2;else if(OL(a))i="radialGradient",A.cx=xt(a.x,.5),A.cy=xt(a.y,.5),A.r=xt(a.r,.5);else return;for(var o=a.colorStops,s=[],l=0,u=o.length;l<u;++l){var f=c0(o[l].offset)*100+"%",c=o[l].color,h=ju(c),v=h.color,d=h.opacity,p={offset:f};p["stop-color"]=v,d<1&&(p["stop-opacity"]=d),s.push(Re("stop",l+"",p))}var g=Re(i,"",A,s),y=G_(g),m=n.gradientCache,w=m[y];w||(w=n.zrId+"-g"+n.gradientIdx++,m[y]=w,A.id=w,n.defs[w]=Re(i,w,A,s)),t[e]=Od(w)}function fP(r,t,e,n){var a=r.style[e],i=r.getBoundingRect(),A={},o=a.repeat,s=o==="no-repeat",l=o==="repeat-x",u=o==="repeat-y",f;if(RL(a)){var c=a.imageWidth,h=a.imageHeight,v=void 0,d=a.image;if(nt(d)?v=d:oP(d)?v=d.src:sP(d)&&(v=d.toDataURL()),typeof Image>"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";Br(c,p),Br(h,p)}else if(c==null||h==null){var g=function(b,I){if(b){var F=b.elm,E=c||I.width,D=h||I.height;b.tag==="pattern"&&(l?(D=1,E/=i.width):u&&(E=1,D/=i.height)),b.attrs.width=E,b.attrs.height=D,F&&(F.setAttribute("width",E),F.setAttribute("height",D))}},y=t_(v,null,r,function(b){s||g(B,b),g(f,b)});y&&y.width&&y.height&&(c=c||y.width,h=h||y.height)}f=Re("image","img",{href:v,width:c,height:h}),A.width=c,A.height=h}else a.svgElement&&(f=mt(a.svgElement),A.width=a.svgWidth,A.height=a.svgHeight);if(f){var m,w;s?m=w=1:l?(w=1,m=A.width/i.width):u?(m=1,w=A.height/i.height):A.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(A.width=m),w!=null&&!isNaN(w)&&(A.height=w);var _=VL(a);_&&(A.patternTransform=_);var B=Re("pattern","",A,[f]),C=G_(B),S=n.patternCache,x=S[C];x||(x=n.zrId+"-p"+n.patternIdx++,S[C]=x,A.id=x,B=n.defs[x]=Re("pattern",x,A,[f])),t[e]=Od(x)}}function w6(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var A={id:i};n[r.id]=i,a[i]=Re("clipPath",i,A,[lP(r,e)])}t["clip-path"]=Od(i)}function zb(r){return document.createTextNode(r)}function OA(r,t,e){r.insertBefore(t,e)}function Wb(r,t){r.removeChild(t)}function Xb(r,t){r.appendChild(t)}function cP(r){return r.parentNode}function hP(r){return r.nextSibling}function Ay(r,t){r.textContent=t}var Yb=58,B6=120,_6=Re("","");function tw(r){return r===void 0}function ta(r){return r!==void 0}function C6(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function nu(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function vf(r){var t,e=r.children,n=r.tag;if(ta(n)){var a=r.elm=aP(n);if(X_(_6,r),K(e))for(t=0;t<e.length;++t){var i=e[t];i!=null&&Xb(a,vf(i))}else ta(r.text)&&!yt(r.text)&&Xb(a,zb(r.text))}else r.elm=zb(r.text);return r.elm}function vP(r,t,e,n,a){for(;n<=a;++n){var i=e[n];i!=null&&OA(r,vf(i),t)}}function Wv(r,t,e,n){for(;e<=n;++e){var a=t[e];if(a!=null)if(ta(a.tag)){var i=cP(a.elm);Wb(i,a.elm)}else Wb(r,a.elm)}}function X_(r,t){var e,n=t.elm,a=r&&r.attrs||{},i=t.attrs||{};if(a!==i){for(e in i){var A=i[e],o=a[e];o!==A&&(A===!0?n.setAttribute(e,""):A===!1?n.removeAttribute(e):e==="style"?n.style.cssText=A:e.charCodeAt(0)!==B6?n.setAttribute(e,A):e==="xmlns:xlink"||e==="xmlns"?n.setAttributeNS(r6,e,A):e.charCodeAt(3)===Yb?n.setAttributeNS(n6,e,A):e.charCodeAt(5)===Yb?n.setAttributeNS(nP,e,A):n.setAttribute(e,A))}for(e in a)e in i||n.removeAttribute(e)}}function S6(r,t,e){for(var n=0,a=0,i=t.length-1,A=t[0],o=t[i],s=e.length-1,l=e[0],u=e[s],f,c,h,v;n<=i&&a<=s;)A==null?A=t[++n]:o==null?o=t[--i]:l==null?l=e[++a]:u==null?u=e[--s]:nu(A,l)?(ss(A,l),A=t[++n],l=e[++a]):nu(o,u)?(ss(o,u),o=t[--i],u=e[--s]):nu(A,u)?(ss(A,u),OA(r,A.elm,hP(o.elm)),A=t[++n],u=e[--s]):nu(o,l)?(ss(o,l),OA(r,o.elm,A.elm),o=t[--i],l=e[++a]):(tw(f)&&(f=C6(t,n,i)),c=f[l.key],tw(c)?OA(r,vf(l),A.elm):(h=t[c],h.tag!==l.tag?OA(r,vf(l),A.elm):(ss(h,l),t[c]=void 0,OA(r,h.elm,A.elm))),l=e[++a]);(n<=i||a<=s)&&(n>i?(v=e[s+1]==null?null:e[s+1].elm,vP(r,v,e,a,s)):Wv(r,t,n,i))}function ss(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(X_(r,t),tw(t.text)?ta(n)&&ta(a)?n!==a&&S6(e,n,a):ta(a)?(ta(r.text)&&Ay(e,""),vP(e,null,a,0,a.length-1)):ta(n)?Wv(e,n,0,n.length-1):ta(r.text)&&Ay(e,""):r.text!==t.text&&(ta(n)&&Wv(e,n,0,n.length-1),Ay(e,t.text)))}function x6(r,t){if(nu(r,t))ss(r,t);else{var e=r.elm,n=cP(e);vf(t),n!==null&&(OA(n,t.elm,hP(e)),Wv(n,[r],0,0))}return t}var b6=0,T6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=Zb(),this.configLayer=Zb(),this.storage=e,this._opts=n=V({},n),this.root=t,this._id="zr"+b6++,this._oldVNode=Rb(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=aP("svg");X_(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}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",x6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Kb(t,j0(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=j0(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var A=[],o=this._bgVNode=I6(n,a,this._backgroundColor,i);o&&A.push(o);var s=t.compress?null:this._mainVNode=Re("g","main",{},[]);this._paintList(e,i,s?s.children:A),s&&A.push(s);var l=Y(Ht(i.defs),function(c){return i.defs[c]});if(l.length&&A.push(Re("defs","defs",{},l)),t.animation){var u=A6(i.cssNodes,i.cssAnims,{newline:!0});if(u){var f=Re("style","stl",{},[],u);A.push(f)}}return Rb(n,a,A,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},G_(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 a=t.length,i=[],A=0,o,s,l=0,u=0;u<a;u++){var f=t[u];if(!f.invisible){var c=f.__clipPaths,h=c&&c.length||0,v=s&&s.length||0,d=void 0;for(d=Math.max(h-1,v-1);d>=0&&!(c&&s&&c[d]===s[d]);d--);for(var p=v-1;p>d;p--)A--,o=i[A-1];for(var g=d+1;g<h;g++){var y={};w6(c[g],y,e);var m=Re("g","clip-g-"+l++,y,[]);(o?o.children:n).push(m),i[A++]=m,o=m}s=c;var w=Kb(f,e);w&&(o?o.children:n).push(w)}}},r.prototype.resize=function(t,e){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),e!=null&&(n.height=e),a&&i&&(i.style.display="none",t=ps(a,0,n),e=ps(a,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var A=i.style;A.width=t+"px",A.height=e+"px"}if(YB(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute("width",t),o.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.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=kG(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},r}();function Zb(r){return function(){}}function I6(r,t,e,n){var a;if(e&&e!=="none")if(a=Re("rect","bg",{width:r,height:t,x:"0",y:"0"}),kL(e))uP({fill:e},a.attrs,"fill",n);else if(YB(e))fP({style:{fill:e},dirty:Be,getBoundingRect:function(){return{width:r,height:t}}},a.attrs,"fill",n);else{var i=ju(e),A=i.color,o=i.opacity;a.attrs.fill=A,o<1&&(a.attrs["fill-opacity"]=o)}return a}function F6(r){r.registerPainter("svg",T6)}function $b(r,t,e){var n=zi.createCanvas(),a=t.getWidth(),i=t.getHeight(),A=n.style;return A&&(A.position="absolute",A.left="0",A.top="0",A.width=a+"px",A.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*e,n.height=i*e,n}var oy=function(r){H(t,r);function t(e,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var A;a=a||xv,typeof e=="string"?A=$b(e,n,a):yt(e)&&(A=e,e=A.id),i.id=e,i.dom=A;var o=A.style;return o&&(CL(A),A.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),i.painter=n,i.dpr=a,i}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=$b("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,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var A=[],o=this.maxRepaintRectCount,s=!1,l=new Dt(0,0,0,0);function u(y){if(!(!y.isFinite()||y.isZero()))if(A.length===0){var m=new Dt(0,0,0,0);m.copy(y),A.push(m)}else{for(var w=!1,_=1/0,B=0,C=0;C<A.length;++C){var S=A[C];if(S.intersect(y)){var x=new Dt(0,0,0,0);x.copy(S),x.union(y),A[C]=x,w=!0;break}else if(s){l.copy(y),l.union(S);var b=y.width*y.height,I=S.width*S.height,F=l.width*l.height,E=F-b-I;E<_&&(_=E,B=C)}}if(s&&(A[B].union(y),w=!0),!w){var m=new Dt(0,0,0,0);m.copy(y),A.push(m)}s||(s=A.length>=o)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var c=e[f];if(c){var h=c.shouldBePainted(a,i,!0,!0),v=c.__isRendered&&(c.__dirty&Gr||!h)?c.getPrevPaintRect():null;v&&u(v);var d=h&&(c.__dirty&Gr||!c.__isRendered)?c.getPaintRect():null;d&&u(d)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var c=n[f],h=c&&c.shouldBePainted(a,i,!0,!0);if(c&&(!h||!c.__zr)&&c.__isRendered){var v=c.getPrevPaintRect();v&&u(v)}}var p;do{p=!1;for(var f=0;f<A.length;){if(A[f].isZero()){A.splice(f,1);continue}for(var g=f+1;g<A.length;)A[f].intersect(A[g])?(p=!0,A[f].union(A[g]),A.splice(g,1)):g++;f++}}while(p);return this._paintRects=A,A},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var a=this.dpr,i=this.dom,A=i.style,o=this.domBack;A&&(A.width=e+"px",A.height=n+"px"),i.width=e*a,i.height=n*a,o&&(o.width=e*a,o.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(e,n,a){var i=this.dom,A=this.ctx,o=i.width,s=i.height;n=n||this.clearColor;var l=this.motionBlur&&!e,u=this.lastFrameAlpha,f=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/f,s/f));var h=this.domBack;function v(d,p,g,y){if(A.clearRect(d,p,g,y),n&&n!=="transparent"){var m=void 0;if(Pd(n)){var w=n.global||n.__width===g&&n.__height===y;m=w&&n.__canvasGradient||K0(A,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=m,n.__width=g,n.__height=y}else YV(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,m=z0(A,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));A.save(),A.fillStyle=m||n,A.fillRect(d,p,g,y),A.restore()}l&&(A.save(),A.globalAlpha=u,A.drawImage(h,d,p,g,y),A.restore())}!a||l?v(0,0,o,s):a.length&&T(a,function(d){v(d.x*f,d.y*f,d.width*f,d.height*f)})},t}(yn),Jb=1e5,IA=314159,Vc=.01,E6=.001;function D6(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Q6(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 L6=function(){function r(t,e,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=V({},n||{}),this.dpr=n.devicePixelRatio||xv,this._singleCanvas=i,this.root=t;var A=t.style;A&&(CL(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(i){var u=t,f=u.width,c=u.height;n.width!=null&&(f=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,u.width=f*this.dpr,u.height=c*this.dpr,this._width=f,this._height=c;var h=new oy(u,this,this.dpr);h.__builtin__=!0,h.initContext(),s[IA]=h,h.zlevel=IA,o.push(IA),this._domRoot=t}else{this._width=ps(t,0,n),this._height=ps(t,1,n);var l=this._domRoot=Q6(this._width,this._height);t.appendChild(l)}}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,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<a.length;i++){var A=a[i],o=this._layers[A];if(!o.__builtin__&&o.refresh){var s=i===0?this._backgroundColor:null;o.refresh(s)}}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 a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,A=0;A<e;A++){var o=t[A];o.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Jb)),i||(i=n.ctx,i.save()),ZA(i,o,a,A===e-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Jb)},r.prototype.paintOne=function(t,e){jU(t,e)},r.prototype._paintList=function(t,e,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),A=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),A)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var s=this;mv(function(){s._paintList(t,e,n,a)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(IA).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var a=this,i=[],A=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,f=!1,c=function(d){var p=i[d],g=p.ctx,y=A&&p.createRepaintRects(t,e,h._width,h._height),m=n?p.__startIndex:p.__drawIndex,w=!n&&p.incremental&&Date.now,_=w&&Date.now(),B=p.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,B,y);else if(m===p.__startIndex){var C=t[m];(!C.incremental||!C.notClear||n)&&p.clear(!1,B,y)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=p.__startIndex);var S,x=function(E){var D={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(S=m;S<p.__endIndex;S++){var Q=t[S];if(Q.__inHover&&(f=!0),a._doPaintEl(Q,p,A,E,D,S===p.__endIndex-1),w){var M=Date.now()-_;if(M>15)break}}D.prevElClipPaths&&g.restore()};if(y)if(y.length===0)S=p.__endIndex;else for(var b=h.dpr,I=0;I<y.length;++I){var F=y[I];g.save(),g.beginPath(),g.rect(F.x*b,F.y*b,F.width*b,F.height*b),g.clip(),x(F),g.restore()}else g.save(),x(),g.restore();p.__drawIndex=S,p.__drawIndex<p.__endIndex&&(u=!1)},h=this,v=0;v<i.length;v++)c(v);return Ut.wxa&&T(this._layers,function(d){d&&d.ctx&&d.ctx.draw&&d.ctx.draw()}),{finished:u,needsRefreshHover:f}},r.prototype._doPaintEl=function(t,e,n,a,i,A){var o=e.ctx;if(n){var s=t.getPaintRect();(!a||s&&s.intersect(a))&&(ZA(o,t,i,A),t.setPrevPaintRect(s))}else ZA(o,t,i,A)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=IA);var n=this._layers[t];return n||(n=new oy("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Et(n,this._layerConfig[t],!0):this._layerConfig[t-Vc]&&Et(n,this._layerConfig[t-Vc],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,a=this._zlevelList,i=a.length,A=this._domRoot,o=null,s=-1;if(!n[t]&&D6(e)){if(i>0&&t>a[0]){for(s=0;s<i-1&&!(a[s]<t&&a[s+1]>t);s++);o=n[a[s]]}if(a.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?A.insertBefore(e.dom,l.nextSibling):A.appendChild(e.dom)}else A.firstChild?A.insertBefore(e.dom,A.firstChild):A.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(e,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],A=this._layers[i];A.__builtin__&&t.call(e,A,i)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],A=this._layers[i];A.__builtin__||t.call(e,A,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,c){f.__dirty=f.__used=!1});function e(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,A=0,o,s;for(s=0;s<t.length;s++){var a=t[s],l=a.zlevel,u=void 0;o!==l&&(o=l,A=0),a.incremental?(u=this.getLayer(l+E6,this._needsManuallyCompositing),u.incremental=!0,A=1):u=this.getLayer(l+(A>0?Vc:0),this._needsManuallyCompositing),u.__builtin__||kB("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),i=u),a.__dirty&Gr&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=s))}e(s),this.eachBuiltinLayer(function(f,c){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__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,T(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Et(n[t],e,!0):n[t]=e;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+Vc){var A=this._layers[i];Et(A,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,a=e[t];a&&(a.dom.parentNode.removeChild(a.dom),delete e[t],n.splice(Qt(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),e!=null&&(a.height=e),t=ps(i,0,a),e=ps(i,1,a),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var A in this._layers)this._layers.hasOwnProperty(A)&&this._layers[A].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(IA).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[IA].dom;var e=new oy("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 a=e.dom.width,i=e.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var A={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++){var u=o[s];ZA(n,u,A,s===l-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function M6(r){r.registerPainter("canvas",L6)}var U6=function(r){H(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 ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new _t,a=Ie("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(a),a.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),A=this.getData().getVisual("symbolRotate"),o=i==="none"?"circle":i,s=e.itemHeight*.8,l=Ie(o,(e.itemWidth-s)/2,(e.itemHeight-s)/2,s,s,e.itemStyle.fill);n.add(l),l.setStyle(e.itemStyle);var u=e.iconRotate==="inherit"?A:e.iconRotate||0;return l.rotation=u*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.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}(se);function ks(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Rs(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],A=0;A<e.length;A++)i.push(Rs(r,t,e[A]));return i.join(" ")}}function dP(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!K(t))return t+"";for(var n=[],a=0;a<e.length;a++){var i=r.getDimensionIndex(e[a]);i>=0&&n.push(t[i])}return n.join(" ")}var Gf=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;return A.updateData(e,n,a,i),A}return t.prototype._createSymbol=function(e,n,a,i,A){this.removeAll();var o=Ie(e,-1,-1,2,2,null,A);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=P6,this._symbolType=e,this.add(o)},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(){Wa(this.childAt(0))},t.prototype.downplay=function(){Xa(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var A=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=A!==this._symbolType,u=i&&i.disableAnimation;if(l){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(A,e,n,s,f)}else{var c=this.childAt(0);c.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(h):zt(c,h,o,n),Hn(c)}if(this._updateCommon(e,n,s,a,i),l){var c=this.childAt(0);if(!u){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ue(c,h,o,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,A){var o=this.childAt(0),s=e.hostModel,l,u,f,c,h,v,d,p,g;if(i&&(l=i.emphasisItemStyle,u=i.blurItemStyle,f=i.selectItemStyle,c=i.focus,h=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,v=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),m=y.getModel("emphasis");l=m.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),u=y.getModel(["blur","itemStyle"]).getItemStyle(),c=m.get("focus"),h=m.get("blurScope"),v=m.get("disabled"),d=Oe(y),p=m.getShallow("scale"),g=y.getShallow("cursor")}var w=e.getItemVisual(n,"symbolRotate");o.attr("rotation",(w||0)*Math.PI/180||0);var _=xo(e.getItemVisual(n,"symbolOffset"),a);_&&(o.x=_[0],o.y=_[1]),g&&o.attr("cursor",g);var B=e.getItemVisual(n,"style"),C=B.fill;if(o instanceof Ke){var S=o.style;o.useStyle(V({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},B))}else o.__isEmptyBrush?o.useStyle(V({},B)):o.useStyle(B),o.style.decal=null,o.setColor(C,A&&A.symbolInnerColor),o.style.strokeNoScale=!0;var x=e.getItemVisual(n,"liftZ"),b=this._z2;x!=null?b==null&&(this._z2=o.z2,o.z2+=x):b!=null&&(o.z2=b,this._z2=null);var I=A&&A.useNameLabel;Je(o,d,{labelFetcher:s,labelDataIndex:n,defaultText:F,inheritColor:C,defaultOpacity:B.opacity});function F(Q){return I?e.getName(Q):ks(e,Q)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var E=o.ensureState("emphasis");E.style=l,o.ensureState("select").style=f,o.ensureState("blur").style=u;var D=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;E.scaleX=this._sizeX*D,E.scaleY=this._sizeY*D,this.setSymbolScale(1),ye(this,c,h,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),A=Ct(this).dataIndex,o=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var s=i.getTextContent();s&&Xi(s,{style:{opacity:0}},n,{dataIndex:A,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Xi(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:A,cb:e,removeOpt:o})},t.getSymbolSize=function(e,n){return ol(e.getItemVisual(n,"symbolSize"))},t}(_t);function P6(r,t){this.parent.drift(r,t)}function sy(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 qb(r){return r!=null&&!yt(r)&&(r={isIgnore:r}),r||{}}function jb(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:Oe(t),cursorStyle:t.get("cursor")}}var Kf=function(){function r(t){this.group=new _t,this._SymbolCtor=t||Gf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=qb(e);var n=this.group,a=t.hostModel,i=this._data,A=this._SymbolCtor,o=e.disableAnimation,s=jb(t),l={disableAnimation:o},u=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var c=u(f);if(sy(t,c,f,e)){var h=new A(t,f,s,l);h.setPosition(c),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,c){var h=i.getItemGraphicEl(c),v=u(f);if(!sy(t,v,f,e)){n.remove(h);return}var d=t.getItemVisual(f,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType();if(!h||p&&p!==d)n.remove(h),h=new A(t,f,s,l),h.setPosition(v);else{h.updateData(t,f,s,l);var g={x:v[0],y:v[1]};o?h.attr(g):zt(h,g,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var c=i.getItemGraphicEl(f);c&&c.fadeOut(function(){n.remove(c)},a)}).execute(),this._getSymbolPoint=u,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=jb(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=qb(n);function a(s){s.isGroup||(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var A=e.getItemLayout(i);if(sy(e,A,i,n)){var o=new this._SymbolCtor(e,i,this._seriesScope);o.traverse(a),o.setPosition(A),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.eachRendered=function(t){rA(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){e.remove(a)},n.hostModel)}):e.removeAll()},r}();function pP(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=R6(a,e),A=n.dim,o=a.dim,s=t.mapDimension(o),l=t.mapDimension(A),u=o==="x"||o==="radius"?1:0,f=Y(r.dimensions,function(v){return t.mapDimension(v)}),c=!1,h=t.getCalculationInfo("stackResultDimension");return Zi(t,f[0])&&(c=!0,f[0]=h),Zi(t,f[1])&&(c=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:o,baseAxisDim:A,stacked:!!c,valueDim:s,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function R6(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:Kt(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function gP(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,A=[];return A[i]=e.get(r.baseDim,n),A[1-i]=a,t.dataToPoint(A)}function H6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function O6(r,t,e,n,a,i,A,o){for(var s=H6(r,t),l=[],u=[],f=[],c=[],h=[],v=[],d=[],p=pP(a,t,A),g=r.getLayout("points")||[],y=t.getLayout("points")||[],m=0;m<s.length;m++){var w=s[m],_=!0,B=void 0,C=void 0;switch(w.cmd){case"=":B=w.idx*2,C=w.idx1*2;var S=g[B],x=g[B+1],b=y[C],I=y[C+1];(isNaN(S)||isNaN(x))&&(S=b,x=I),l.push(S,x),u.push(b,I),f.push(e[B],e[B+1]),c.push(n[C],n[C+1]),d.push(t.getRawIndex(w.idx1));break;case"+":var F=w.idx,E=p.dataDimsForPoint,D=a.dataToPoint([t.get(E[0],F),t.get(E[1],F)]);C=F*2,l.push(D[0],D[1]),u.push(y[C],y[C+1]);var Q=gP(p,a,t,F);f.push(Q[0],Q[1]),c.push(n[C],n[C+1]),d.push(t.getRawIndex(F));break;case"-":_=!1}_&&(h.push(w),v.push(v.length))}v.sort(function(wt,Bt){return d[wt]-d[Bt]});for(var M=l.length,R=Aa(M),P=Aa(M),O=Aa(M),G=Aa(M),X=[],m=0;m<v.length;m++){var J=v[m],At=m*2,lt=J*2;R[At]=l[lt],R[At+1]=l[lt+1],P[At]=u[lt],P[At+1]=u[lt+1],O[At]=f[lt],O[At+1]=f[lt+1],G[At]=c[lt],G[At+1]=c[lt+1],X[m]=h[J]}return{current:R,next:P,stackedOnCurrent:O,stackedOnNext:G,status:X}}var fi=Math.min,ci=Math.max;function Ao(r,t){return isNaN(r)||isNaN(t)}function ew(r,t,e,n,a,i,A,o,s){for(var l,u,f,c,h,v,d=e,p=0;p<n;p++){var g=t[d*2],y=t[d*2+1];if(d>=a||d<0)break;if(Ao(g,y)){if(s){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](g,y),f=g,c=y;else{var m=g-l,w=y-u;if(m*m+w*w<.5){d+=i;continue}if(A>0){for(var _=d+i,B=t[_*2],C=t[_*2+1];B===g&&C===y&&p<n;)p++,_+=i,d+=i,B=t[_*2],C=t[_*2+1],g=t[d*2],y=t[d*2+1],m=g-l,w=y-u;var S=p+1;if(s)for(;Ao(B,C)&&S<n;)S++,_+=i,B=t[_*2],C=t[_*2+1];var x=.5,b=0,I=0,F=void 0,E=void 0;if(S>=n||Ao(B,C))h=g,v=y;else{b=B-l,I=C-u;var D=g-l,Q=B-g,M=y-u,R=C-y,P=void 0,O=void 0;if(o==="x"){P=Math.abs(D),O=Math.abs(Q);var G=b>0?1:-1;h=g-G*P*A,v=y,F=g+G*O*A,E=y}else if(o==="y"){P=Math.abs(M),O=Math.abs(R);var X=I>0?1:-1;h=g,v=y-X*P*A,F=g,E=y+X*O*A}else P=Math.sqrt(D*D+M*M),O=Math.sqrt(Q*Q+R*R),x=O/(O+P),h=g-b*A*(1-x),v=y-I*A*(1-x),F=g+b*A*x,E=y+I*A*x,F=fi(F,ci(B,g)),E=fi(E,ci(C,y)),F=ci(F,fi(B,g)),E=ci(E,fi(C,y)),b=F-g,I=E-y,h=g-b*P/O,v=y-I*P/O,h=fi(h,ci(l,g)),v=fi(v,ci(u,y)),h=ci(h,fi(l,g)),v=ci(v,fi(u,y)),b=g-h,I=y-v,F=g+b*O/P,E=y+I*O/P}r.bezierCurveTo(f,c,h,v,g,y),f=F,c=E}else r.lineTo(g,y)}l=g,u=y,d+=i}return p}var yP=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),k6=function(r){H(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 yP},t.prototype.buildPath=function(e,n){var a=n.points,i=0,A=a.length/2;if(n.connectNulls){for(;A>0&&Ao(a[A*2-2],a[A*2-1]);A--);for(;i<A&&Ao(a[i*2],a[i*2+1]);i++);}for(;i<A;)i+=ew(e,a,i,A,A,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 a=this.path,i=a.data,A=ga.CMD,o,s,l=n==="x",u=[],f=0;f<i.length;){var c=i[f++],h=void 0,v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0;switch(c){case A.M:o=i[f++],s=i[f++];break;case A.L:if(h=i[f++],v=i[f++],m=l?(e-o)/(h-o):(e-s)/(v-s),m<=1&&m>=0){var w=l?(v-s)*m+s:(h-o)*m+o;return l?[e,w]:[w,e]}o=h,s=v;break;case A.C:h=i[f++],v=i[f++],d=i[f++],p=i[f++],g=i[f++],y=i[f++];var _=l?Bv(o,h,d,g,e,u):Bv(s,v,p,y,e,u);if(_>0)for(var B=0;B<_;B++){var C=u[B];if(C<=1&&C>=0){var w=l?Me(s,v,p,y,C):Me(o,h,d,g,C);return l?[e,w]:[w,e]}}o=g,s=y;break}}},t}(Mt),N6=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(yP),mP=function(r){H(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 N6},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,A=0,o=a.length/2,s=n.smoothMonotone;if(n.connectNulls){for(;o>0&&Ao(a[o*2-2],a[o*2-1]);o--);for(;A<o&&Ao(a[A*2],a[A*2+1]);A++);}for(;A<o;){var l=ew(e,a,A,o,o,1,n.smooth,s,n.connectNulls);ew(e,i,A+l-1,l,o,-1,n.stackedOnSmooth,s,n.connectNulls),A+=l+1,e.closePath()}},t}(Mt);function wP(r,t,e,n,a){var i=r.getArea(),A=i.x,o=i.y,s=i.width,l=i.height,u=e.get(["lineStyle","width"])||2;A-=u/2,o-=u/2,s+=u,l+=u,s=Math.ceil(s),A!==Math.floor(A)&&(A=Math.floor(A),s++);var f=new Nt({shape:{x:A,y:o,width:s,height:l}});if(t){var c=r.getBaseAxis(),h=c.isHorizontal(),v=c.inverse;h?(v&&(f.shape.x+=s),f.shape.width=0):(v||(f.shape.y+=l),f.shape.height=0);var d=vt(a)?function(p){a(p,f)}:null;ue(f,{shape:{width:s,height:l,x:A,y:o}},e,null,n,d)}return f}function BP(r,t,e){var n=r.getArea(),a=me(n.r0,1),i=me(n.r,1),A=new Cr({shape:{cx:me(r.cx,1),cy:me(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var o=r.getBaseAxis().dim==="angle";o?A.shape.endAngle=n.startAngle:A.shape.r=a,ue(A,{shape:{endAngle:n.endAngle,r:i}},e)}return A}function zf(r,t,e,n,a){if(r){if(r.type==="polar")return BP(r,t,e);if(r.type==="cartesian2d")return wP(r,t,e,n,a)}else return null;return null}function To(r,t){return r.type===t}function tT(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function eT(r){for(var t=1/0,e=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var A=r[i++],o=r[i++];isNaN(A)||(t=Math.min(A,t),n=Math.max(A,n)),isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a))}return[[t,e],[n,a]]}function rT(r,t){var e=eT(r),n=e[0],a=e[1],i=eT(t),A=i[0],o=i[1];return Math.max(Math.abs(n[0]-A[0]),Math.abs(n[1]-A[1]),Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]))}function nT(r){return Kt(r)?r:r?.5:0}function V6(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),a=Aa(n*2),i=0;i<n;i++){var A=gP(e,r,t,i);a[i*2]=A[0],a[i*2+1]=A[1]}return a}function hi(r,t,e,n){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,A=[],o=0,s=[],l=[],u=[],f=[];if(n){for(o=0;o<r.length;o+=2)!isNaN(r[o])&&!isNaN(r[o+1])&&f.push(r[o],r[o+1]);r=f}for(o=0;o<r.length-2;o+=2)switch(u[0]=r[o+2],u[1]=r[o+3],l[0]=r[o],l[1]=r[o+1],A.push(l[0],l[1]),e){case"end":s[i]=u[i],s[1-i]=l[1-i],A.push(s[0],s[1]);break;case"middle":var c=(l[i]+u[i])/2,h=[];s[i]=h[i]=c,s[1-i]=l[1-i],h[1-i]=u[1-i],A.push(s[0],s[1]),A.push(h[0],h[1]);break;default:s[i]=l[i],s[1-i]=u[1-i],A.push(s[0],s[1])}return A.push(r[o++],r[o++]),A}function G6(r,t){var e=[],n=r.length,a,i;function A(u,f,c){var h=u.coord,v=(c-h)/(f.coord-h),d=LG(v,[u.color,f.color]);return{coord:c,color:d}}for(var o=0;o<n;o++){var s=r[o],l=s.coord;if(l<0)a=s;else if(l>t){i?e.push(A(i,s,t)):a&&e.push(A(a,s,0),A(a,s,t));break}else a&&(e.push(A(a,s,0)),a=null),e.push(s),i=s}return e}function K6(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,A=n.length-1;A>=0;A--){var o=r.getDimensionInfo(n[A].dimension);if(a=o&&o.coordDim,a==="x"||a==="y"){i=n[A];break}}if(i){var s=t.getAxis(a),l=Y(i.stops,function(m){return{coord:s.toGlobalCoord(s.dataToCoord(m.value)),color:m.color}}),u=l.length,f=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),f.reverse());var c=G6(l,a==="x"?e.getWidth():e.getHeight()),h=c.length;if(!h&&u)return l[0].coord<0?f[1]?f[1]:l[u-1].color:f[0]?f[0]:l[0].color;var v=10,d=c[0].coord-v,p=c[h-1].coord+v,g=p-d;if(g<.001)return"transparent";T(c,function(m){m.offset=(m.coord-d)/g}),c.push({offset:h?c[h-1].offset:.5,color:f[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:f[0]||"transparent"});var y=new Pf(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=p,y}}}function z6(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&W6(i,t))){var A=t.mapDimension(i.dim),o={};return T(i.getViewLabels(),function(s){var l=i.scale.getRawOrdinalNumber(s.tickValue);o[l]=1}),function(s){return!o.hasOwnProperty(t.get(A,s))}}}}function W6(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),A=0;A<a;A+=i)if(Gf.getSymbolSize(t,A)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function X6(r,t){return isNaN(r)||isNaN(t)}function Y6(r){for(var t=r.length/2;t>0&&X6(r[t*2-2],r[t*2-1]);t--);return t-1}function aT(r,t){return[r[t*2],r[t*2+1]]}function Z6(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,A,o=0,s=-1,l=0;l<n;l++)if(A=r[l*2+a],!(isNaN(A)||isNaN(r[l*2+1-a]))){if(l===0){i=A;continue}if(i<=t&&A>=t||i>=t&&A<=t){s=l;break}o=l,i=A}return{range:[o,s],t:(t-i)/(A-i)}}function _P(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<_r.length;t++)if(r.get([_r[t],"endLabel","show"]))return!0;return!1}function ly(r,t,e,n){if(To(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),A=n.getData(),o={lastFrameIndex:0},s=_P(n)?function(h,v){r._endLabelOnDuring(h,v,A,o,i,a,t)}:null,l=t.getBaseAxis().isHorizontal(),u=wP(t,e,n,function(){var h=r._endLabel;h&&e&&o.originalX!=null&&h.attr({x:o.originalX,y:o.originalY})},s);if(!n.get("clip",!0)){var f=u.shape,c=Math.max(f.width,f.height);l?(f.y-=c,f.height+=c*2):(f.x-=c,f.width+=c*2)}return s&&s(1,u),u}else return BP(t,e,n)}function $6(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",A=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||A}}}var J6=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new _t,n=new Kf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,a){var i=this,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(),w=u.get("origin"),_=pP(A,s,w),B=m&&V6(A,s,_),C=e.get("showSymbol"),S=e.get("connectNulls"),x=C&&!c&&z6(e,s,A),b=this._data;b&&b.eachItemGraphicEl(function(Bt,N){Bt.__temp&&(o.remove(Bt),b.setItemGraphicEl(N,null))}),C||v.remove(),o.add(g);var I=c?!1:e.get("step"),F;A&&A.getArea&&e.get("clip",!0)&&(F=A.getArea(),F.width!=null?(F.x-=.1,F.y-=.1,F.width+=.2,F.height+=.2):F.r0&&(F.r0-=.5,F.r+=.5)),this._clipShapeForSymbol=F;var E=K6(s,A,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===A.type&&I===this._step))C&&v.updateData(s,{isIgnore:x,clipShape:F,disableAnimation:!0,getSymbolPoint:function(Bt){return[f[Bt*2],f[Bt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,A,F),I&&(f=hi(f,A,I,S),B&&(B=hi(B,A,I,S))),d=this._newPolyline(f),m?p=this._newPolygon(f,B):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,A,go(E)),g.setClipPath(ly(this,A,!0,e));else{m&&!p?p=this._newPolygon(f,B):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,A,go(E));var D=g.getClipPath();if(D){var Q=ly(this,A,!1,e);ue(D,{shape:Q.shape},e)}else g.setClipPath(ly(this,A,!0,e));C&&v.updateData(s,{isIgnore:x,clipShape:F,disableAnimation:!0,getSymbolPoint:function(Bt){return[f[Bt*2],f[Bt*2+1]]}}),(!tT(this._stackedOnPoints,B)||!tT(this._points,f))&&(y?this._doUpdateAnimation(s,B,A,a,I,w,S):(I&&(f=hi(f,A,I,S),B&&(B=hi(B,A,I,S))),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:B})))}var M=e.getModel("emphasis"),R=M.get("focus"),P=M.get("blurScope"),O=M.get("disabled");if(d.useStyle(gt(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),$e(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}Ct(d).seriesIndex=e.seriesIndex,ye(d,R,P,O);var X=nT(e.get("smooth")),J=e.get("smoothMonotone");if(d.setShape({smooth:X,smoothMonotone:J,connectNulls:S}),p){var At=s.getCalculationInfo("stackedOnSeries"),lt=0;p.useStyle(gt(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),At&&(lt=nT(At.get("smooth"))),p.setShape({smooth:X,stackedOnSmooth:lt,smoothMonotone:J,connectNulls:S}),$e(p,e,"areaStyle"),Ct(p).seriesIndex=e.seriesIndex,ye(p,R,P,O)}var wt=function(Bt){i._changePolyState(Bt)};s.eachItemGraphicEl(function(Bt){Bt&&(Bt.onHoverStateChange=wt)}),this._polyline.onHoverStateChange=wt,this._data=s,this._coordSys=A,this._stackedOnPoints=B,this._points=f,this._step=I,this._valueOrigin=w,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){Ct(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var A=e.getData(),o=ho(A,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&o!=null&&o>=0){var s=A.getLayout("points"),l=A.getItemGraphicEl(o);if(!l){var u=s[o*2],f=s[o*2+1];if(isNaN(u)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,f))return;var c=e.get("zlevel")||0,h=e.get("z")||0;l=new Gf(A,o),l.x=u,l.y=f,l.setZ(c,h);var v=l.getSymbolPath().getTextContent();v&&(v.zlevel=c,v.z=h,v.z2=this._polyline.z2+1),l.__temp=!0,A.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else jt.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var A=e.getData(),o=ho(A,i);if(this._changePolyState("normal"),o!=null&&o>=0){var s=A.getItemGraphicEl(o);s&&(s.__temp?(A.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else jt.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Iv(this._polyline,e),n&&Iv(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new k6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new mP({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,A,o=n.getBaseAxis(),s=o.inverse;n.type==="cartesian2d"?(i=o.isHorizontal(),A=!1):n.type==="polar"&&(i=o.dim==="angle",A=!0);var l=e.hostModel,u=l.get("animationDuration");vt(u)&&(u=u(null));var f=l.get("animationDelay")||0,c=vt(f)?f(null):f;e.eachItemGraphicEl(function(h,v){var d=h;if(d){var p=[h.x,h.y],g=void 0,y=void 0,m=void 0;if(a)if(A){var w=a,_=n.pointToCoord(p);i?(g=w.startAngle,y=w.endAngle,m=-_[1]/180*Math.PI):(g=w.r0,y=w.r,m=_[0])}else{var B=a;i?(g=B.x,y=B.x+B.width,m=h.x):(g=B.y+B.height,y=B.y,m=h.y)}var C=y===g?0:(m-g)/(y-g);s&&(C=1-C);var S=vt(f)?f(v):u*C+c,x=d.getSymbolPath(),b=x.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:S}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:S}),x.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(_P(e)){var A=e.getData(),o=this._polyline,s=A.getLayout("points");if(!s){o.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Gt({z2:200}),l.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var u=Y6(s);u>=0&&(Je(o,Oe(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:u,defaultText:function(f,c,h){return h!=null?dP(A,h):ks(A,f)},enableTextSetter:!0},$6(i,n)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,A,o,s){var l=this._endLabel,u=this._polyline;if(l){e<1&&i.originalX==null&&(i.originalX=l.x,i.originalY=l.y);var f=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),v=o.get("precision"),d=o.get("distance")||0,p=s.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,m=n.shape,w=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?d:0)*(y?-1:1),B=(g?0:-d)*(y?-1:1),C=g?"x":"y",S=Z6(f,w,C),x=S.range,b=x[1]-x[0],I=void 0;if(b>=1){if(b>1&&!h){var F=aT(f,x[0]);l.attr({x:F[0]+_,y:F[1]+B}),A&&(I=c.getRawValue(x[0]))}else{var F=u.getPointOn(w,C);F&&l.attr({x:F[0]+_,y:F[1]+B});var E=c.getRawValue(x[0]),D=c.getRawValue(x[1]);A&&(I=oM(a,v,E,D,S.t))}i.lastFrameIndex=x[0]}else{var Q=e===1||i.lastFrameIndex>0?x[0]:0,F=aT(f,Q);A&&(I=c.getRawValue(Q)),l.attr({x:F[0]+_,y:F[1]+B})}if(A){var M=tl(l);typeof M.setLabelText=="function"&&M.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,A,o,s){var l=this._polyline,u=this._polygon,f=e.hostModel,c=O6(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=c.current,v=c.stackedOnCurrent,d=c.next,p=c.stackedOnNext;if(A&&(h=hi(c.current,a,A,s),v=hi(c.stackedOnCurrent,a,A,s),d=hi(c.next,a,A,s),p=hi(c.stackedOnNext,a,A,s)),rT(h,d)>3e3||u&&rT(v,p)>3e3){l.stopAnimation(),l.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),l.stopAnimation(),zt(l,g,f),u&&(u.setShape({points:h,stackedOnPoints:v}),u.stopAnimation(),zt(u,{shape:{stackedOnPoints:p}},f),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],m=c.status,w=0;w<m.length;w++){var _=m[w].cmd;if(_==="="){var B=e.getItemGraphicEl(m[w].idx1);B&&y.push({el:B,ptIdx:w})}}l.animators&&l.animators.length&&l.animators[0].during(function(){u&&u.dirtyShape();for(var C=l.shape.__points,S=0;S<y.length;S++){var x=y[S].el,b=y[S].ptIdx*2;x.x=C[b],x.y=C[b+1],x.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,A){i.__temp&&(n.remove(i),a.setItemGraphicEl(A,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(jt);function Wf(r,t){return{seriesType:r,plan:il(),reset:function(e){var n=e.getData(),a=e.coordinateSystem,i=e.pipelineContext,A=t||i.large;if(a){var o=Y(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),s=o.length,l=n.getCalculationInfo("stackResultDimension");Zi(n,o[0])&&(o[0]=l),Zi(n,o[1])&&(o[1]=l);var u=n.getStore(),f=n.getDimensionIndex(o[0]),c=n.getDimensionIndex(o[1]);return s&&{progress:function(h,v){for(var d=h.end-h.start,p=A&&Aa(d*s),g=[],y=[],m=h.start,w=0;m<h.end;m++){var _=void 0;if(s===1){var B=u.get(f,m);_=a.dataToPoint(B,null,y)}else g[0]=u.get(f,m),g[1]=u.get(c,m),_=a.dataToPoint(g,null,y);A?(p[w++]=_[0],p[w++]=_[1]):v.setItemLayout(m,_.slice())}A&&v.setLayout("points",p)}}}}}}var q6={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},minmax:function(r){for(var t=-1/0,e=-1/0,n=0;n<r.length;n++){var a=r[n],i=Math.abs(a);i>t&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},j6=function(r){return Math.round(r.length/2)};function CP(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),A=t.coordinateSystem,o=a.count();if(o>10&&A.type==="cartesian2d"&&i){var s=A.getBaseAxis(),l=A.getOtherAxis(s),u=s.getExtent(),f=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(f||1),h=Math.round(o/c);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(l.dim),1/h));var v=void 0;nt(i)?v=q6[i]:vt(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(l.dim),1/h,v,j6))}}}}}function tY(r){r.registerChartView(J6),r.registerSeriesModel(U6),r.registerLayout(Wf("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,CP("line"))}var df=function(r){H(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 ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var A=i.clampData(e),o=i.dataToPoint(A);if(a)T(i.getAxes(),function(c,h){if(c.type==="category"&&n!=null){var v=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),p=A[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!d&&(p+=1),v.length<2)return;if(v.length===2){o[h]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,w=1,_=0;_<v.length;_++){var B=v[_].coord,C=_===v.length-1?v[_-1].tickValue+w:v[_].tickValue;if(C===p){m=B;break}else if(C<p)y=B;else if(y!=null&&C>p){m=(B+y)/2;break}_===1&&(w=C-v[0].tickValue)}m==null&&(y?y&&(m=v[v.length-1].coord):m=v[0].coord),o[h]=c.toGlobalCoord(m)}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}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}(se);se.registerClass(df);var eY=function(r){H(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 ri(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,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=nA(df.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}(df),rY=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}(),Xv=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new rY},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.max(n.r0||0,0),o=Math.max(n.r,0),s=(o-A)*.5,l=A+s,u=n.startAngle,f=n.endAngle,c=n.clockwise,h=Math.PI*2,v=c?f-u<h:u-f<h;v||(u=f-(c?h:-h));var d=Math.cos(u),p=Math.sin(u),g=Math.cos(f),y=Math.sin(f);v?(e.moveTo(d*A+a,p*A+i),e.arc(d*l+a,p*l+i,s,-Math.PI+u,u,!c)):e.moveTo(d*o+a,p*o+i),e.arc(a,i,o,u,f,!c),e.arc(g*l+a,y*l+i,s,f-Math.PI*2,f-Math.PI,!c),A!==0&&e.arc(a,i,A,f,u,c)},t}(Mt);function nY(r,t){t=t||{};var e=t.isRoundCap;return function(n,a,i){var A=a.position;if(!A||A instanceof Array)return bv(n,a,i);var o=r(A),s=a.distance!=null?a.distance:5,l=this.shape,u=l.cx,f=l.cy,c=l.r,h=l.r0,v=(c+h)/2,d=l.startAngle,p=l.endAngle,g=(d+p)/2,y=e?Math.abs(c-h)/2:0,m=Math.cos,w=Math.sin,_=u+c*m(d),B=f+c*w(d),C="left",S="top";switch(o){case"startArc":_=u+(h-s)*m(g),B=f+(h-s)*w(g),C="center",S="top";break;case"insideStartArc":_=u+(h+s)*m(g),B=f+(h+s)*w(g),C="center",S="bottom";break;case"startAngle":_=u+v*m(d)+Gc(d,s+y,!1),B=f+v*w(d)+Kc(d,s+y,!1),C="right",S="middle";break;case"insideStartAngle":_=u+v*m(d)+Gc(d,-s+y,!1),B=f+v*w(d)+Kc(d,-s+y,!1),C="left",S="middle";break;case"middle":_=u+v*m(g),B=f+v*w(g),C="center",S="middle";break;case"endArc":_=u+(c+s)*m(g),B=f+(c+s)*w(g),C="center",S="bottom";break;case"insideEndArc":_=u+(c-s)*m(g),B=f+(c-s)*w(g),C="center",S="top";break;case"endAngle":_=u+v*m(p)+Gc(p,s+y,!0),B=f+v*w(p)+Kc(p,s+y,!0),C="left",S="middle";break;case"insideEndAngle":_=u+v*m(p)+Gc(p,-s+y,!0),B=f+v*w(p)+Kc(p,-s+y,!0),C="right",S="middle";break;default:return bv(n,a,i)}return n=n||{},n.x=_,n.y=B,n.align=C,n.verticalAlign=S,n}}function aY(r,t,e,n){if(Kt(n)){r.setTextConfig({rotation:n});return}else if(K(t)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,A=a.clockwise?a.endAngle:a.startAngle,o=(i+A)/2,s,l=e(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":s=o;break;case"startAngle":case"insideStartAngle":s=i;break;case"endAngle":case"insideEndAngle":s=A;break;default:r.setTextConfig({rotation:0});return}var u=Math.PI*1.5-s;l==="middle"&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),r.setTextConfig({rotation:u})}function Gc(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Kc(r,t,e){return t*Math.cos(r)*(e?1:-1)}function $A(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;K(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Y(n,function(i){return Rn(i,a)})}}var uy=Math.max,fy=Math.min;function iY(r,t){var e=r.getArea&&r.getArea();if(To(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=a,e.width+=a*2):(e.y-=a,e.height+=a*2)}}return e}var AY=function(r){H(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,a,i){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var A=e.get("coordinateSystem");(A==="cartesian2d"||A==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,a):this._renderNormal(e,n,a,i))},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){rA(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,a,i){var A=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f;l.type==="cartesian2d"?f=u.isHorizontal():l.type==="polar"&&(f=u.dim==="angle");var c=e.isAnimationEnabled()?e:null,h=oY(e,l);h&&this._enableRealtimeSort(h,o,a);var v=e.get("clip",!0)||h,d=iY(l,o);A.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),m=y.get("borderRadius")||0,w=[],_=this._backgroundEls,B=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function S(I){var F=zc[l.type](o,I),E=vY(l,f,F);return E.useStyle(y.getItemStyle()),l.type==="cartesian2d"?E.setShape("r",m):E.setShape("cornerRadius",m),w[I]=E,E}o.diff(s).add(function(I){var F=o.getItemModel(I),E=zc[l.type](o,I,F);if(g&&S(I),!(!o.hasValue(I)||!lT[l.type](E))){var D=!1;v&&(D=iT[l.type](d,E));var Q=AT[l.type](e,o,I,E,f,c,u.model,!1,p);h&&(Q.forceLabelAnimation=!0),uT(Q,o,I,F,E,e,f,l.type==="polar"),B?Q.attr({shape:E}):h?oT(h,c,Q,E,I,f,!1,!1):ue(Q,{shape:E},e,I),o.setItemGraphicEl(I,Q),A.add(Q),Q.ignore=D}}).update(function(I,F){var E=o.getItemModel(I),D=zc[l.type](o,I,E);if(g){var Q=void 0;_.length===0?Q=S(F):(Q=_[F],Q.useStyle(y.getItemStyle()),l.type==="cartesian2d"?Q.setShape("r",m):Q.setShape("cornerRadius",m),w[I]=Q);var M=zc[l.type](o,I),R=xP(f,M,l);zt(Q,{shape:R},c,I)}var P=s.getItemGraphicEl(F);if(!o.hasValue(I)||!lT[l.type](D)){A.remove(P);return}var O=!1;if(v&&(O=iT[l.type](d,D),O&&A.remove(P)),P?Hn(P):P=AT[l.type](e,o,I,D,f,c,u.model,!!P,p),h&&(P.forceLabelAnimation=!0),C){var G=P.getTextContent();if(G){var X=tl(G);X.prevValue!=null&&(X.prevValue=X.value)}}else uT(P,o,I,E,D,e,f,l.type==="polar");B?P.attr({shape:D}):h?oT(h,c,P,D,I,f,!0,C):zt(P,{shape:D},e,I,null),o.setItemGraphicEl(I,P),P.ignore=O,A.add(P)}).remove(function(I){var F=s.getItemGraphicEl(I);F&&af(F,e,I)}).execute();var x=this._backgroundGroup||(this._backgroundGroup=new _t);x.removeAll();for(var b=0;b<w.length;++b)x.add(w[b]);A.add(x),this._backgroundEls=w,this._data=o},t.prototype._renderLarge=function(e,n,a){this._clear(),cT(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),cT(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&zf(e.coordinateSystem,!1,e),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,a){var i=this;if(n.count()){var A=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,a),this._isFirstFrame=!1;else{var o=function(s){var l=n.getItemGraphicEl(s),u=l&&l.shape;return u&&Math.abs(A.isHorizontal()?u.height:u.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,o,A,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,a){var i=[];return e.each(e.mapDimension(n.dim),function(A,o){var s=a(o);s=s??NaN,i.push({dataIndex:o,mappedValue:s,ordinalNumber:A})}),i.sort(function(A,o){return o.mappedValue-A.mappedValue}),{ordinalNumbers:Y(i,function(A){return A.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,a){for(var i=a.scale,A=e.mapDimension(a.dim),o=Number.MAX_VALUE,s=0,l=i.getOrdinalMeta().categories.length;s<l;++s){var u=e.rawIndexOf(A,i.getRawOrdinalNumber(s)),f=u<0?Number.MIN_VALUE:n(e.indexOfRawIndex(u));if(f>o)return!0;o=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),A=Math.max(0,i[0]),o=Math.min(i[1],a.getOrdinalMeta().categories.length-1);A<=o;++A)if(e.ordinalNumbers[A]!==a.getRawOrdinalNumber(A))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var A=this._dataSort(e,a,n);this._isOrderDifferentInView(A,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:A}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,A=this._dataSort(e,i,function(o){return e.get(e.mapDimension(n.otherAxis.dim),o)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:A})},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,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){af(i,e,Ct(i).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}(jt),iT={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 a=r.x+r.width,i=r.y+r.height,A=uy(t.x,r.x),o=fy(t.x+t.width,a),s=uy(t.y,r.y),l=fy(t.y+t.height,i),u=o<A,f=l<s;return t.x=u&&A>a?o:A,t.y=f&&s>i?l:s,t.width=u?0:o-A,t.height=f?0:l-s,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),u||f},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 a=fy(t.r,r.r),i=uy(t.r0,r.r0);t.r=a,t.r0=i;var A=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return A}},AT={cartesian2d:function(r,t,e,n,a,i,A,o,s){var l=new Nt({shape:V({},n),z2:1});if(l.__dataIndex=e,l.name="item",i){var u=l.shape,f=a?"height":"width";u[f]=0}return l},polar:function(r,t,e,n,a,i,A,o,s){var l=!a&&s?Xv:Cr,u=new l({shape:n,z2:1});u.name="item";var f=SP(a);if(u.calculateTextPosition=nY(f,{isRoundCap:l===Xv}),i){var c=u.shape,h=a?"r":"endAngle",v={};c[h]=a?n.r0:n.startAngle,v[h]=n[h],(o?zt:ue)(u,{shape:v},i)}return u}};function oY(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 oT(r,t,e,n,a,i,A,o){var s,l;i?(l={x:n.x,width:n.width},s={y:n.y,height:n.height}):(l={y:n.y,height:n.height},s={x:n.x,width:n.width}),o||(A?zt:ue)(e,{shape:s},t,a,null);var u=t?r.baseAxis.model:null;(A?zt:ue)(e,{shape:l},u,a)}function sT(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var sY=["x","y","width","height"],lY=["cx","cy","r","startAngle","endAngle"],lT={cartesian2d:function(r){return!sT(r,sY)},polar:function(r){return!sT(r,lY)}},zc={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),a=e?fY(e,n):0,i=n.width>0?1:-1,A=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+A*a/2,width:n.width-i*a,height:n.height-A*a}},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 uY(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function SP(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 uT(r,t,e,n,a,i,A,o){var s=t.getItemVisual(e,"style");if(o){if(!i.get("roundCap")){var u=r.shape,f=$A(n.getModel("itemStyle"),u,!0);V(u,f),r.setShape(u)}}else{var l=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(s);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var h=o?A?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":A?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Oe(n);Je(r,v,{labelFetcher:i,labelDataIndex:e,defaultText:ks(i.getData(),e),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(o&&d){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,aY(r,p==="outside"?h:p,SP(A),n.get(["label","rotate"]))}KM(d,v,i.getRawValue(e),function(y){return dP(t,y)});var g=n.getModel(["emphasis"]);ye(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),$e(r,n),uY(a)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function fY(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var cY=function(){function r(){}return r}(),fT=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new cY},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,A=1-this.baseDimIdx,o=[],s=[],l=this.barWidth,u=0;u<a.length;u+=3)s[i]=l,s[A]=a[u+2],o[i]=a[u+i],o[A]=a[u+A],e.rect(o[0],o[1],s[0],s[1])},t}(Mt);function cT(r,t,e,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,A=a.getLayout("largeDataIndices"),o=a.getLayout("size"),s=r.getModel("backgroundStyle"),l=a.getLayout("largeBackgroundPoints");if(l){var u=new fT({shape:{points:l},incremental:!!n,silent:!0,z2:0});u.baseDimIdx=i,u.largeDataIndices=A,u.barWidth=o,u.useStyle(s.getItemStyle()),t.add(u),e&&e.push(u)}var f=new fT({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=A,f.barWidth=o,t.add(f),f.useStyle(a.getVisual("style")),Ct(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",hT),f.on("mousemove",hT)),e&&e.push(f)}var hT=b_(function(r){var t=this,e=hY(t,r.offsetX,r.offsetY);Ct(t).dataIndex=e>=0?e:null},30,!1);function hY(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,A=r.largeDataIndices,o=[],s=[],l=r.barWidth,u=0,f=i.length/3;u<f;u++){var c=u*3;if(s[n]=l,s[a]=i[c+2],o[n]=i[c+n],o[a]=i[c+a],s[a]<0&&(o[a]+=s[a],s[a]=-s[a]),t>=o[0]&&t<=o[0]+s[0]&&e>=o[1]&&e<=o[1]+s[1])return A[u]}return-1}function xP(r,t,e){if(To(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function vY(r,t,e){var n=r.type==="polar"?Cr:Nt;return new n({shape:xP(t,e,r),silent:!0,z2:0})}function dY(r){r.registerChartView(AY),r.registerSeriesModel(eY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(E2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,CP("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var vT=Math.PI*2,Wc=Math.PI/180;function bP(r,t){return Le(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function TP(r,t){var e=bP(r,t),n=r.get("center"),a=r.get("radius");K(a)||(a=[0,a]);var i=et(e.width,t.getWidth()),A=et(e.height,t.getHeight()),o=Math.min(i,A),s=et(a[0],o/2),l=et(a[1],o/2),u,f,c=r.coordinateSystem;if(c){var h=c.dataToPoint(n);u=h[0]||0,f=h[1]||0}else K(n)||(n=[n,n]),u=et(n[0],i)+e.x,f=et(n[1],A)+e.y;return{cx:u,cy:f,r0:s,r:l}}function pY(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),A=bP(n,e),o=TP(n,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=-n.get("startAngle")*Wc,h=n.get("endAngle"),v=n.get("padAngle")*Wc;h=h==="auto"?c-vT:-h*Wc;var d=n.get("minAngle")*Wc,p=d+v,g=0;a.each(i,function(R){!isNaN(R)&&g++});var y=a.getSum(i),m=Math.PI/(y||g)*2,w=n.get("clockwise"),_=n.get("roseType"),B=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var S=w?1:-1,x=[c,h],b=S*v/2;e_(x,!w),c=x[0],h=x[1];var I=IP(n);I.startAngle=c,I.endAngle=h,I.clockwise=w;var F=Math.abs(h-c),E=F,D=0,Q=c;if(a.setLayout({viewRect:A,r:u}),a.each(i,function(R,P){var O;if(isNaN(R)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:s,cy:l,r0:f,r:_?NaN:u});return}_!=="area"?O=y===0&&B?m:R*m:O=F/g,O<p?(O=p,E-=p):D+=R;var G=Q+S*O,X=0,J=0;v>O?(X=Q+S*O/2,J=X):(X=Q+b,J=G-b),a.setItemLayout(P,{angle:O,startAngle:X,endAngle:J,clockwise:w,cx:s,cy:l,r0:f,r:_?$t(R,C,[f,u]):u}),Q=G}),E<vT&&g)if(E<=.001){var M=F/g;a.each(i,function(R,P){if(!isNaN(R)){var O=a.getItemLayout(P);O.angle=M;var G=0,X=0;M<v?(G=c+S*(P+1/2)*M,X=G):(G=c+S*P*M+b,X=c+S*(P+1)*M-b),O.startAngle=G,O.endAngle=X}})}else m=E/D,Q=c,a.each(i,function(R,P){if(!isNaN(R)){var O=a.getItemLayout(P),G=O.angle===p?p:R*m,X=0,J=0;G<v?(X=Q+S*G/2,J=X):(X=Q+b,J=Q+S*G-b),O.startAngle=X,O.endAngle=J,Q+=S*G}})})}var IP=Vt();function Xf(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var A=a.getName(i),o=0;o<n.length;o++)if(!n[o].isSelected(A))return!1;return!0})}}}}var gY=Math.PI/180;function dT(r,t,e,n,a,i,A,o,s,l){if(r.length<2)return;function u(d){for(var p=d.rB,g=p*p,y=0;y<d.list.length;y++){var m=d.list[y],w=Math.abs(m.label.y-e),_=n+m.len,B=_*_,C=Math.sqrt((1-Math.abs(w*w/g))*B),S=t+(C+m.len2)*a,x=S-m.label.x,b=m.targetTextWidth-x*a;FP(m,b,!0),m.label.x=S}}function f(d){for(var p={list:[],maxY:0},g={list:[],maxY:0},y=0;y<d.length;y++)if(d[y].labelAlignTo==="none"){var m=d[y],w=m.label.y>e?g:p,_=Math.abs(m.label.y-e);if(_>=w.maxY){var B=m.label.x-t-m.len2*a,C=n+m.len,S=Math.abs(B)<C?Math.sqrt(_*_/(1-B*B/C/C)):C;w.rB=S,w.maxY=_}w.list.push(m)}u(p),u(g)}for(var c=r.length,h=0;h<c;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var v=r[h].label.x-l;r[h].linePoints[1][0]+=v,r[h].label.x=l}q2(r,s,s+A)&&f(r)}function yY(r,t,e,n,a,i,A,o){for(var s=[],l=[],u=Number.MAX_VALUE,f=-Number.MAX_VALUE,c=0;c<r.length;c++){var h=r[c].label;cy(r[c])||(h.x<t?(u=Math.min(u,h.x),s.push(r[c])):(f=Math.max(f,h.x),l.push(r[c])))}for(var c=0;c<r.length;c++){var v=r[c];if(!cy(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,d=v.linePoints,p=void 0;v.labelAlignTo==="edge"?h.x<t?p=d[2][0]-v.labelDistance-A-v.edgeDistance:p=A+a-v.edgeDistance-d[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?p=u-A-v.bleedMargin:p=A+a-f-v.bleedMargin:h.x<t?p=h.x-A-v.bleedMargin:p=A+a-h.x-v.bleedMargin,v.targetTextWidth=p,FP(v,p)}}dT(l,t,e,n,1,a,i,A,o,f),dT(s,t,e,n,-1,a,i,A,o,u);for(var c=0;c<r.length;c++){var v=r[c];if(!cy(v)&&v.linePoints){var h=v.label,d=v.linePoints,g=v.labelAlignTo==="edge",y=h.style.padding,m=y?y[1]+y[3]:0,w=h.style.backgroundColor?0:m,_=v.rect.width+w,B=d[1][0]-d[2][0];g?h.x<t?d[2][0]=A+v.edgeDistance+_+v.labelDistance:d[2][0]=A+a-v.edgeDistance-_-v.labelDistance:(h.x<t?d[2][0]=h.x+v.labelDistance:d[2][0]=h.x-v.labelDistance,d[1][0]=d[2][0]+B),d[1][1]=d[2][1]=h.y}}}function FP(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,A=a.backgroundColor,o=a.padding,s=o?o[1]+o[3]:0,l=a.overflow,u=i.width+(A?0:s);if(t<u||e){var f=i.height;if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-s);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",A)}else{var h=t-s,v=t<u?h:e?h>r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var d=n.getBoundingRect();i.width=d.width;var p=(n.style.margin||0)+2.1;i.height=d.height+p,i.y-=(i.height-f)/2}}}function cy(r){return r.position==="center"}function mY(r){var t=r.getData(),e=[],n,a,i=!1,A=(r.get("minShowLabelAngle")||0)*gY,o=t.getLayout("viewRect"),s=t.getLayout("r"),l=o.width,u=o.x,f=o.y,c=o.height;function h(B){B.ignore=!0}function v(B){if(!B.ignore)return!0;for(var C in B.states)if(B.states[C].ignore===!1)return!0;return!1}t.each(function(B){var C=t.getItemGraphicEl(B),S=C.shape,x=C.getTextContent(),b=C.getTextGuideLine(),I=t.getItemModel(B),F=I.getModel("label"),E=F.get("position")||I.get(["emphasis","label","position"]),D=F.get("distanceToLabelLine"),Q=F.get("alignTo"),M=et(F.get("edgeDistance"),l),R=F.get("bleedMargin"),P=I.getModel("labelLine"),O=P.get("length");O=et(O,l);var G=P.get("length2");if(G=et(G,l),Math.abs(S.endAngle-S.startAngle)<A){T(x.states,h),x.ignore=!0,b&&(T(b.states,h),b.ignore=!0);return}if(v(x)){var X=(S.startAngle+S.endAngle)/2,J=Math.cos(X),At=Math.sin(X),lt,wt,Bt,N;n=S.cx,a=S.cy;var z=E==="inside"||E==="inner";if(E==="center")lt=S.cx,wt=S.cy,N="center";else{var $=(z?(S.r+S.r0)/2*J:S.r*J)+n,q=(z?(S.r+S.r0)/2*At:S.r*At)+a;if(lt=$+J*3,wt=q+At*3,!z){var j=$+J*(O+s-S.r),ct=q+At*(O+s-S.r),L=j+(J<0?-1:1)*G,U=ct;Q==="edge"?lt=J<0?u+M:u+l-M:lt=L+(J<0?-D:D),wt=U,Bt=[[$,q],[j,ct],[L,U]]}N=z?"center":Q==="edge"?J>0?"right":"left":J>0?"left":"right"}var k=Math.PI,Z=0,W=F.get("rotate");if(Kt(W))Z=W*(k/180);else if(E==="center")Z=0;else if(W==="radial"||W===!0){var tt=J<0?-X+k:-X;Z=tt}else if(W==="tangential"&&E!=="outside"&&E!=="outer"){var ot=Math.atan2(J,At);ot<0&&(ot=k*2+ot);var ut=At>0;ut&&(ot=k+ot),Z=ot-k}if(i=!!Z,x.x=lt,x.y=wt,x.rotation=Z,x.setStyle({verticalAlign:"middle"}),z){x.setStyle({align:N});var Ft=x.states.select;Ft&&(Ft.x+=x.x,Ft.y+=x.y)}else{var at=x.getBoundingRect().clone();at.applyTransform(x.getComputedTransform());var rt=(x.style.margin||0)+2.1;at.y-=rt/2,at.height+=rt,e.push({label:x,labelLine:b,position:E,len:O,len2:G,minTurnAngle:P.get("minTurnAngle"),maxSurfaceAngle:P.get("maxSurfaceAngle"),surfaceNormal:new It(J,At),linePoints:Bt,textAlign:N,labelDistance:D,labelAlignTo:Q,edgeDistance:M,bleedMargin:R,rect:at,unconstrainedWidth:at.width,labelStyleWidth:x.style.width})}C.setTextConfig({inside:z})}}),!i&&r.get("avoidLabelOverlap")&&yY(e,n,a,s,l,c,u,f);for(var d=0;d<e.length;d++){var p=e[d],g=p.label,y=p.labelLine,m=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),m&&(T(g.states,h),g.ignore=!0);var w=g.states.select;w&&(w.x+=g.x,w.y+=g.y)}if(y){var _=p.linePoints;m||!_?(T(y.states,h),y.ignore=!0):(Z2(_,p.minTurnAngle),VX(_,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:_}),g.__hostTarget.textGuideLineConfig={anchor:new It(_[0][0],_[0][1])})}}}var wY=function(r){H(t,r);function t(e,n,a){var i=r.call(this)||this;i.z2=2;var A=new Gt;return i.setTextContent(A),i.updateData(e,n,a,!0),i}return t.prototype.updateData=function(e,n,a,i){var A=this,o=e.hostModel,s=e.getItemModel(n),l=s.getModel("emphasis"),u=e.getItemLayout(n),f=V($A(s.getModel("itemStyle"),u,!0),u);if(isNaN(f.startAngle)){A.setShape(f);return}if(i){A.setShape(f);var c=o.getShallow("animationType");o.ecModel.ssr?(ue(A,{scaleX:0,scaleY:0},o,{dataIndex:n,isFrom:!0}),A.originX=f.cx,A.originY=f.cy):c==="scale"?(A.shape.r=u.r0,ue(A,{shape:{r:u.r}},o,n)):a!=null?(A.setShape({startAngle:a,endAngle:a}),ue(A,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},o,n)):(A.shape.endAngle=u.startAngle,zt(A,{shape:{endAngle:u.endAngle}},o,n))}else Hn(A),zt(A,{shape:f},o,n);A.useStyle(e.getItemVisual(n,"style")),$e(A,s);var h=(u.startAngle+u.endAngle)/2,v=o.get("selectedOffset"),d=Math.cos(h)*v,p=Math.sin(h)*v,g=s.getShallow("cursor");g&&A.attr("cursor",g),this._updateLabel(o,e,n),A.ensureState("emphasis").shape=V({r:u.r+(l.get("scale")&&l.get("scaleSize")||0)},$A(l.getModel("itemStyle"),u)),V(A.ensureState("select"),{x:d,y:p,shape:$A(s.getModel(["select","itemStyle"]),u)}),V(A.ensureState("blur"),{shape:$A(s.getModel(["blur","itemStyle"]),u)});var y=A.getTextGuideLine(),m=A.getTextContent();y&&V(y.ensureState("select"),{x:d,y:p}),V(m.ensureState("select"),{x:d,y:p}),ye(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,n,a){var i=this,A=n.getItemModel(a),o=A.getModel("labelLine"),s=n.getItemVisual(a,"style"),l=s&&s.fill,u=s&&s.opacity;Je(i,Oe(A),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:l,defaultOpacity:u,defaultText:e.getFormattedLabel(a,"normal")||n.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new xr,this.setTextGuideLine(h)),k_(this,N_(A),{stroke:l,opacity:ua(o.get(["lineStyle","opacity"]),u,1)})}},t}(Cr),BY=function(r){H(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,a,i){var A=e.getData(),o=this._data,s=this.group,l;if(!o&&A.count()>0){for(var u=A.getItemLayout(0),f=1;isNaN(u&&u.startAngle)&&f<A.count();++f)u=A.getItemLayout(f);u&&(l=u.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),A.count()===0&&e.get("showEmptyCircle")){var c=IP(e),h=new Cr({shape:V(TP(e,a),c)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}A.diff(o).add(function(v){var d=new wY(A,v,l);A.setItemGraphicEl(v,d),s.add(d)}).update(function(v,d){var p=o.getItemGraphicEl(d);p.updateData(A,v,l),p.off("click"),s.add(p),A.setItemGraphicEl(v,p)}).remove(function(v){var d=o.getItemGraphicEl(v);af(d,e,v)}).execute(),mY(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=A)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var A=e[0]-i.cx,o=e[1]-i.cy,s=Math.sqrt(A*A+o*o);return s<=i.r&&s>=i.r0}},t.type="pie",t}(jt);function ll(r,t,e){t=K(t)&&{coordDimensions:t}||V({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=Nf(n,t).dimensions,i=new mr(a,r);return i.initData(n,e),i}var Yf=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}(),_Y=Vt(),CY=function(r){H(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 Yf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ll(this,{coordDimensions:["value"],encodeDefaulter:bt(y_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=_Y(n),i=a.seats;if(!i){var A=[];n.each(n.mapDimension("value"),function(s){A.push(s)}),i=a.seats=dK(A,n.hostModel.get("percentPrecision"))}var o=r.prototype.getDataParams.call(this,e);return o.percent=i[e]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.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}(se);function SY(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),A=n.get(i,a);return!(Kt(A)&&!isNaN(A)&&A<0)})}}}function xY(r){r.registerChartView(BY),r.registerSeriesModel(CY),$U("pie",r.registerAction),r.registerLayout(bt(pY,"pie")),r.registerProcessor(Xf("pie")),r.registerProcessor(SY("pie"))}var bY=function(r){H(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 ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.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}(se),EP=4,TY=function(){function r(){}return r}(),IY=function(r){H(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 TY},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,A=this.symbolProxy,o=A.shape,s=e.getContext?e.getContext():e,l=s&&i[0]<EP,u=this.softClipShape,f;if(l){this._ctx=s;return}for(this._ctx=null,f=this._off;f<a.length;){var c=a[f++],h=a[f++];isNaN(c)||isNaN(h)||u&&!u.contain(c,h)||(o.x=c-i[0]/2,o.y=h-i[1]/2,o.width=i[0],o.height=i[1],A.buildPath(e,o,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,n=e.points,a=e.size,i=this._ctx,A=this.softClipShape,o;if(i){for(o=this._off;o<n.length;){var s=n[o++],l=n[o++];isNaN(s)||isNaN(l)||A&&!A.contain(s,l)||i.fillRect(s-a[0]/2,l-a[1]/2,a[0],a[1])}this.incremental&&(this._off=o,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var a=this.shape,i=a.points,A=a.size,o=Math.max(A[0],4),s=Math.max(A[1],4),l=i.length/2-1;l>=0;l--){var u=l*2,f=i[u]-o/2,c=i[u+1]-s/2;if(e>=f&&n>=c&&e<=f+o&&n<=c+s)return l}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,A=i[0],o=i[1],s=1/0,l=1/0,u=-1/0,f=-1/0,c=0;c<a.length;){var h=a[c++],v=a[c++];s=Math.min(h,s),u=Math.max(h,u),l=Math.min(v,l),f=Math.max(v,f)}e=this._rect=new Dt(s-A/2,l-o/2,u-s+A,f-l+o)}return e},t}(Mt),FY=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 a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;e=new Float32Array(e.buffer,i,a)}n.setShape("points",e),n.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var a=this._newAdded[0],i=e.getLayout("points"),A=a&&a.shape.points;if(A&&A.length<2e4){var o=A.length,s=new Float32Array(o+i.length);s.set(A),s.set(i,o),a.endIndex=t.end,a.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new IY({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=Ie(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var A=t.shape.size[0]<EP;t.useStyle(a.getModel("itemStyle").getItemStyle(A?["color","shadowBlur","shadowColor"]:["color"]));var o=e.getVisual("style"),s=o&&o.fill;s&&t.setColor(s);var l=Ct(t);l.seriesIndex=a.seriesIndex,t.on("mousemove",function(u){l.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(l.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),EY=function(r){H(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,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var A=Wf("").reset(e,n,a);A.progress&&A.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},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 a=this._symbolDraw,i=n.pipelineContext,A=i.large;return(!a||A!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=A?new FY:new Kf,this._isLargeDraw=A,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(jt),DY=function(r){H(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}(Rt),rw=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Te).models[0]},t.type="cartesian2dAxis",t}(Rt);Fe(rw,Vf);var DP={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},QY=Et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},DP),Y_=Et({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}}},DP),LY=Et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Y_),MY=gt({logBase:10},Y_);const QP={category:QY,value:Y_,time:LY,log:MY};var UY={value:1,category:1,time:1,log:1};function Ns(r,t,e,n){T(UY,function(a,i){var A=Et(Et({},QP[i],!0),n,!0),o=function(s){H(l,s);function l(){var u=s!==null&&s.apply(this,arguments)||this;return u.type=t+"Axis."+i,u}return l.prototype.mergeDefaultAndTheme=function(u,f){var c=of(this),h=c?nl(u):{},v=f.getTheme();Et(u,v.get(i+"Axis")),Et(u,this.getDefaultOption()),u.type=pT(u),c&&Yi(u,h,c)},l.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=Z0.createByAxisModel(this))},l.prototype.getCategories=function(u){var f=this.option;if(f.type==="category")return u?f.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+i,l.defaultOption=A,l}(e);r.registerComponentModel(o)}),r.registerSubTypeDefaulter(t+"Axis",pT)}function pT(r){return r.type||(r.data?"category":"value")}var PY=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 Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Jt(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}(),nw=["x","y"];function gT(r){return r.type==="interval"||r.type==="time"}var RY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=nw,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!gT(e)||!gT(n))){var a=e.getExtent(),i=n.getExtent(),A=this.dataToPoint([a[0],i[0]]),o=this.dataToPoint([a[1],i[1]]),s=a[1]-a[0],l=i[1]-i[0];if(!(!s||!l)){var u=(o[0]-A[0])/s,f=(o[1]-A[1])/l,c=A[0]-a[0]*u,h=A[1]-i[0]*f,v=this._transform=[u,0,0,f,c,h];this._invTransform=Zs([],v)}}},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"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.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 a=this.dataToPoint(e),i=this.dataToPoint(n),A=this.getArea(),o=new Dt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return A.intersect(o)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],A=e[1];if(this._transform&&i!=null&&isFinite(i)&&A!=null&&isFinite(A))return Ye(a,e,this._transform);var o=this.getAxis("x"),s=this.getAxis("y");return a[0]=o.toGlobalCoord(o.dataToCoord(i,n)),a[1]=s.toGlobalCoord(s.dataToCoord(A,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,A=a.getExtent(),o=i.getExtent(),s=a.parse(e[0]),l=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(A[0],A[1]),s),Math.max(A[0],A[1])),n[1]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return Ye(a,e,this._invTransform);var i=this.getAxis("x"),A=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=A.coordToData(A.toLocalCoord(e[1]),n),a},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(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,A=Math.min(a[0],a[1])-e,o=Math.max(n[0],n[1])-i+e,s=Math.max(a[0],a[1])-A+e;return new Dt(i,A,o,s)},t}(PY),HY=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.index=0,o.type=i||"value",o.position=A||"bottom",o}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}(kn);function aw(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},A=a.getAxesOnZeroOf()[0],o=a.position,s=A?"onZero":o,l=a.dim,u=n.getRect(),f=[u.x,u.x+u.width,u.y,u.y+u.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=l==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(A){var d=A.toGlobalCoord(A.dataToCoord(0));v[c.onZero]=Math.max(Math.min(d,v[1]),v[0])}i.position=[l==="y"?v[c[s]]:f[0],l==="x"?v[c[s]]:f[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[o],i.labelOffset=A?v[c[o]]-v[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ge(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function yT(r){return r.get("coordinateSystem")==="cartesian2d"}function mT(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Te).models[0];t[n]=i}),t}var hy=Math.log;function LP(r,t,e){var n=Za.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),A=a.length-1,o=n.getInterval.call(e),s=P2(r,t),l=s.extent,u=s.fixMin,f=s.fixMax;if(r.type==="log"){var c=hy(r.base);l=[hy(l[0])/c,hy(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:A,fixMin:u,fixMax:f});var h=n.getExtent.call(r);u&&(l[0]=h[0]),f&&(l[1]=h[1]);var v=n.getInterval.call(r),d=l[0],p=l[1];if(u&&f)v=(p-d)/A;else if(u)for(p=l[0]+v*A;p<l[1]&&isFinite(p)&&isFinite(l[1]);)v=qg(v),p=l[0]+v*A;else if(f)for(d=l[1]-v*A;d>l[0]&&isFinite(d)&&isFinite(l[0]);)v=qg(v),d=l[1]-v*A;else{var g=r.getTicks().length-1;g>A&&(v=qg(v));var y=v*A;p=Math.ceil(l[1]/v)*v,d=me(p-y),d<0&&l[0]>=0?(d=0,p=me(y)):p>0&&l[1]<=0&&(p=0,d=-me(y))}var m=(a[0].value-i[0].value)/o,w=(a[A].value-i[A].value)/o;n.setExtent.call(r,d+v*m,p+v*w),n.setInterval.call(r,v),(m||w)&&n.setNiceExtent.call(r,d+v,p-v)}var OY=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nw,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 a(A){var o,s=Ht(A),l=s.length;if(l){for(var u=[],f=l-1;f>=0;f--){var c=+s[f],h=A[c],v=h.model,d=h.scale;$0(d)&&v.get("alignTicks")&&v.get("interval")==null?u.push(h):(Os(d,v),$0(d)&&(o=h))}u.length&&(o||(o=u.pop(),Os(o.scale,o.model)),T(u,function(p){LP(p.scale,p.model,o.scale)}))}}a(n.x),a(n.y);var i={};T(n.x,function(A){wT(n,"y",A,i)}),T(n.y,function(A){wT(n,"x",A,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),A=Le(a,{width:e.getWidth(),height:e.getHeight()});this._rect=A;var o=this._axesList;s(),i&&(T(o,function(l){if(!l.model.get(["axisLabel","inside"])){var u=mX(l);if(u){var f=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);A[f]-=u[f]+c,l.position==="top"?A.y+=u.height+c:l.position==="left"&&(A.x+=u.width+c)}}}),s()),T(this._coordsList,function(l){l.calcAffineTransform()});function s(){T(o,function(l){var u=l.isHorizontal(),f=u?[0,A.width]:[0,A.height],c=l.inverse?1:0;l.setExtent(f[c],f[1-c]),kY(l,u?A.x:A.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 a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===e)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",Te).models[0],a=t.yAxisModel||e&&e.getReferringComponents("yAxis",Te).models[0],i=t.gridModel,A=this._coordsList,o,s;if(e)o=e.coordinateSystem,Qt(A,o)<0&&(o=null);else if(n&&a)o=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)s=this.getAxis("x",n.componentIndex);else if(a)s=this.getAxis("y",a.componentIndex);else if(i){var l=i.coordinateSystem;l===this&&(o=this._coordsList[0])}return{cartesian:o,axis:s}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var a=this,i=this,A={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,T(o.x,function(u,f){T(o.y,function(c,h){var v="x"+f+"y"+h,d=new RY(v);d.master=a,d.model=t,a._coordsMap[v]=d,a._coordsList.push(d),d.addAxis(u),d.addAxis(c)})});function l(u){return function(f,c){if(vy(f,t)){var h=f.get("position");u==="x"?h!=="top"&&h!=="bottom"&&(h=A.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=A.left?"right":"left"),A[h]=!0;var v=new HY(u,hp(f),[0,0],f.get("type"),h),d=v.type==="category";v.onBand=d&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=i,v.index=c,i._axesList.push(v),o[u][c]=v,s[u]++}}}},r.prototype._updateScale=function(t,e){T(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(yT(a)){var i=mT(a),A=i.xAxisModel,o=i.yAxisModel;if(!vy(A,e)||!vy(o,e))return;var s=this.getCartesian(A.componentIndex,o.componentIndex),l=a.getData(),u=s.getAxis("x"),f=s.getAxis("y");n(l,u),n(l,f)}},this);function n(a,i){T(Gv(a,i.dim),function(A){i.scale.unionExtentFromData(a,A)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return T(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),A=a.getOtherAxis(i);Qt(e,i)<0&&e.push(i),Qt(n,A)<0&&n.push(A)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(a,i){var A=new r(a,t,e);A.name="grid_"+i,A.resize(a,e,!0),a.coordinateSystem=A,n.push(A)}),t.eachSeries(function(a){if(yT(a)){var i=mT(a),A=i.xAxisModel,o=i.yAxisModel,s=A.getCoordSysModel(),l=s.coordinateSystem;a.coordinateSystem=l.getCartesian(A.componentIndex,o.componentIndex)}}),n},r.dimensions=nw,r}();function vy(r,t){return r.getCoordSysModel()===t}function wT(r,t,e,n){e.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[t],i,A=e.model,o=A.get(["axisLine","onZero"]),s=A.get(["axisLine","onZeroAxisIndex"]);if(!o)return;if(s!=null)BT(a[s])&&(i=a[s]);else for(var l in a)if(a.hasOwnProperty(l)&&BT(a[l])&&!n[u(a[l])]){i=a[l];break}i&&(n[u(i)]=!0);function u(f){return f.dim+"_"+f.index}}function BT(r){return r&&r.type!=="category"&&r.type!=="time"&&yX(r)}function kY(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+t}:function(a){return n-a+t},r.toLocalCoord=r.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}var Di=Math.PI,wr=function(){function r(t,e){this.group=new _t,this.opt=e,this.axisModel=t,gt(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!!_T[t]},r.prototype.add=function(t){_T[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var a=JL(e-t),i,A;return tf(a)?(A=n>0?"top":"bottom",i="center"):tf(a-Di)?(A=n>0?"bottom":"top",i="center"):(A="middle",a>0&&a<Di?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:A}},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}(),_T={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),A=n.transform,o=[i[0],0],s=[i[1],0],l=o[0]>s[0];A&&(Ye(o,o,A),Ye(s,s,A));var u=V({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Pe({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ps(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var c=t.get(["axisLine","symbol"]);if(c!=null){var h=t.get(["axisLine","symbolSize"]);nt(c)&&(c=[c,c]),(nt(h)||Kt(h))&&(h=[h,h]);var v=xo(t.get(["axisLine","symbolOffset"])||0,h),d=h[0],p=h[1];T([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((o[0]-s[0])*(o[0]-s[0])+(o[1]-s[1])*(o[1]-s[1]))}],function(g,y){if(c[y]!=="none"&&c[y]!=null){var m=Ie(c[y],-d/2,-p/2,d,p,u.stroke,!0),w=g.r+g.offset,_=l?s:o;m.attr({rotation:g.rotate,x:_[0]+w*Math.cos(r.rotation),y:_[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,n){var a=GY(e,n,t,r),i=zY(e,n,t,r);if(VY(t,i,a),KY(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var A=$2(Y(i,function(o){return{label:o,priority:o.z2,defaultAttr:{ignore:o.ignore}}}));j2(A)}},axisName:function(r,t,e,n){var a=Ge(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),A=r.nameDirection,o=t.getModel("nameTextStyle"),s=t.get("nameGap")||0,l=t.axis.getExtent(),u=l[0]>l[1]?-1:1,f=[i==="start"?l[0]-u*s:i==="end"?l[1]+u*s:(l[0]+l[1])/2,ST(i)?r.labelOffset+A*s:0],c,h=t.get("nameRotate");h!=null&&(h=h*Di/180);var v;ST(i)?c=wr.innerTextLayout(r.rotation,h??r.rotation,A):(c=NY(r.rotation,i,h||0,l),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(c.rotation)),!isFinite(v)&&(v=null)));var d=o.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,y=Ge(r.nameTruncateMaxWidth,p.maxWidth,v),m=new Gt({x:f[0],y:f[1],rotation:c.rotation,silent:wr.isLabelSilent(t),style:oe(o,{text:a,font:d,overflow:"truncate",width:y,ellipsis:g,fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:o.get("align")||c.textAlign,verticalAlign:o.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(js({el:m,componentModel:t,itemName:a}),m.__fullText=a,m.anid="name",t.get("triggerEvent")){var w=wr.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,Ct(m).eventData=w}n.add(m),m.updateTransform(),e.add(m),m.decomposeTransform()}}};function NY(r,t,e,n){var a=JL(e-r),i,A,o=n[0]>n[1],s=t==="start"&&!o||t!=="start"&&o;return tf(a-Di/2)?(A=s?"bottom":"top",i="center"):tf(a-Di*1.5)?(A=s?"top":"bottom",i="center"):(A="middle",a<Di*1.5&&a>Di/2?i=s?"left":"right":i=s?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:A}}function VY(r,t,e){if(!R2(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],A=t[1],o=t[t.length-1],s=t[t.length-2],l=e[0],u=e[1],f=e[e.length-1],c=e[e.length-2];n===!1?($r(i),$r(l)):CT(i,A)&&(n?($r(A),$r(u)):($r(i),$r(l))),a===!1?($r(o),$r(f)):CT(s,o)&&(a?($r(s),$r(c)):($r(o),$r(f)))}}function $r(r){r&&(r.ignore=!0)}function CT(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Hd([]);return Co(a,a,-r.rotation),e.applyTransform(Ha([],a,r.getLocalTransform())),n.applyTransform(Ha([],a,t.getLocalTransform())),e.intersect(n)}}function ST(r){return r==="middle"||r==="center"}function MP(r,t,e,n,a){for(var i=[],A=[],o=[],s=0;s<r.length;s++){var l=r[s].coord;A[0]=l,A[1]=0,o[0]=l,o[1]=e,t&&(Ye(A,A,t),Ye(o,o,t));var u=new Pe({shape:{x1:A[0],y1:A[1],x2:o[0],y2:o[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ps(u.shape,u.style.lineWidth),u.anid=a+"_"+r[s].tickValue,i.push(u)}return i}function GY(r,t,e,n){var a=e.axis,i=e.getModel("axisTick"),A=i.get("show");if(A==="auto"&&n.handleAutoShown&&(A=n.handleAutoShown("axisTick")),!(!A||a.scale.isBlank())){for(var o=i.getModel("lineStyle"),s=n.tickDirection*i.get("length"),l=a.getTicksCoords(),u=MP(l,t.transform,s,gt(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<u.length;f++)r.add(u[f]);return u}}function KY(r,t,e,n){var a=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var A=a.getMinorTicksCoords();if(A.length)for(var o=i.getModel("lineStyle"),s=n*i.get("length"),l=gt(o.getLineStyle(),gt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),u=0;u<A.length;u++)for(var f=MP(A[u],t.transform,s,l,"minorticks_"+u),c=0;c<f.length;c++)r.add(f[c])}}function zY(r,t,e,n){var a=e.axis,i=Ge(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var A=e.getModel("axisLabel"),o=A.get("margin"),s=a.getViewLabels(),l=(Ge(n.labelRotate,A.get("rotate"))||0)*Di/180,u=wr.innerTextLayout(n.rotation,l,n.labelDirection),f=e.getCategories&&e.getCategories(!0),c=[],h=wr.isLabelSilent(e),v=e.get("triggerEvent");return T(s,function(d,p){var g=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,y=d.formattedLabel,m=d.rawLabel,w=A;if(f&&f[g]){var _=f[g];yt(_)&&_.textStyle&&(w=new Yt(_.textStyle,A,e.ecModel))}var B=w.getTextColor()||e.get(["axisLine","lineStyle","color"]),C=a.dataToCoord(g),S=w.getShallow("align",!0)||u.textAlign,x=xt(w.getShallow("alignMinLabel",!0),S),b=xt(w.getShallow("alignMaxLabel",!0),S),I=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||u.textVerticalAlign,F=xt(w.getShallow("verticalAlignMinLabel",!0),I),E=xt(w.getShallow("verticalAlignMaxLabel",!0),I),D=new Gt({x:C,y:n.labelOffset+n.labelDirection*o,rotation:u.rotation,silent:h,z2:10+(d.level||0),style:oe(w,{text:y,align:p===0?x:p===s.length-1?b:S,verticalAlign:p===0?F:p===s.length-1?E:I,fill:vt(B)?B(a.type==="category"?m:a.type==="value"?g+"":g,p):B})});if(D.anid="label_"+g,v){var Q=wr.makeAxisEventDataBase(e);Q.targetType="axisLabel",Q.value=m,Q.tickIndex=p,a.type==="category"&&(Q.dataIndex=g),Ct(D).eventData=Q}t.add(D),D.updateTransform(),c.push(D),r.add(D),D.decomposeTransform()}),c}}function WY(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return XY(e,r,t),e.seriesInvolved&&ZY(e,r),e}function XY(r,t,e){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],A=[];T(e.getCoordinateSystems(),function(o){if(!o.axisPointerEnabled)return;var s=pf(o.model),l=r.coordSysAxesInfo[s]={};r.coordSysMap[s]=o;var u=o.model,f=u.getModel("tooltip",n);if(T(o.getAxes(),bt(d,!1,null)),o.getTooltipAxes&&n&&f.get("show")){var c=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=o.getTooltipAxes(f.get(["axisPointer","axis"]));(c||h)&&T(v.baseAxes,bt(d,h?"cross":!0,c)),h&&T(v.otherAxes,bt(d,"cross",!1))}function d(p,g,y){var m=y.model.getModel("axisPointer",a),w=m.get("show");if(!(!w||w==="auto"&&!p&&!iw(m))){g==null&&(g=m.get("triggerTooltip")),m=p?YY(y,f,a,t,p,g):m;var _=m.get("snap"),B=m.get("triggerEmphasis"),C=pf(y.model),S=g||_||y.type==="category",x=r.axesInfo[C]={key:C,axis:y,coordSys:o,axisPointerModel:m,triggerTooltip:g,triggerEmphasis:B,involveSeries:S,snap:_,useHandle:iw(m),seriesModels:[],linkGroup:null};l[C]=x,r.seriesInvolved=r.seriesInvolved||S;var b=$Y(i,y);if(b!=null){var I=A[b]||(A[b]={axesInfo:{}});I.axesInfo[C]=x,I.mapper=i[b].mapper,x.linkGroup=I}}}})}function YY(r,t,e,n,a,i){var A=t.getModel("axisPointer"),o=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],s={};T(o,function(c){s[c]=mt(A.get(c))}),s.snap=r.type!=="category"&&!!i,A.get("type")==="cross"&&(s.type="line");var l=s.label||(s.label={});if(l.show==null&&(l.show=!1),a==="cross"){var u=A.get(["label","show"]);if(l.show=u??!0,!i){var f=s.lineStyle=A.get("crossStyle");f&>(l,f.textStyle)}}return r.model.getModel("axisPointer",new Yt(s,e,n))}function ZY(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[pf(n.model)],function(A){var o=A.axis;n.getAxis(o.dim)===o&&(A.seriesModels.push(e),A.seriesDataCount==null&&(A.seriesDataCount=0),A.seriesDataCount+=e.getData().count())})})}function $Y(r,t){for(var e=t.model,n=t.dim,a=0;a<r.length;a++){var i=r[a]||{};if(dy(i[n+"AxisId"],e.id)||dy(i[n+"AxisIndex"],e.componentIndex)||dy(i[n+"AxisName"],e.name))return a}}function dy(r,t){return r==="all"||K(r)&&Qt(r,t)>=0||r===t}function JY(r){var t=Z_(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),A=e.get("value");A!=null&&(A=n.parse(A));var o=iw(e);i==null&&(a.status=o?"show":"hide");var s=n.getExtent().slice();s[0]>s[1]&&s.reverse(),(A==null||A>s[1])&&(A=s[1]),A<s[0]&&(A=s[0]),a.value=A,o&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Z_(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[pf(r)]}function qY(r){var t=Z_(r);return t&&t.axisPointerModel}function iw(r){return!!r.get(["handle","show"])}function pf(r){return r.type+"||"+r.id}var xT={},Io=function(r){H(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,a,i){this.axisPointerClass&&JY(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,a,!0)},t.prototype.updateAxisPointer=function(e,n,a,i){this._doUpdateAxisPointerClass(e,a,!1)},t.prototype.remove=function(e,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var A=qY(e);A?(this._axisPointer||(this._axisPointer=new i)).render(e,A,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){xT[e]=n},t.getAxisPointerClass=function(e){return e&&xT[e]},t.type="axis",t}(de),Aw=Vt();function UP(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitArea"),A=i.getModel("areaStyle"),o=A.get("color"),s=n.coordinateSystem.getRect(),l=a.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var u=o.length,f=Aw(r).splitAreaColors,c=ft(),h=0;if(f)for(var v=0;v<l.length;v++){var d=f.get(l[v].tickValue);if(d!=null){h=(d+(u-1)*v)%u;break}}var p=a.toGlobalCoord(l[0].coord),g=A.getAreaStyle();o=K(o)?o:[o];for(var v=1;v<l.length;v++){var y=a.toGlobalCoord(l[v].coord),m=void 0,w=void 0,_=void 0,B=void 0;a.isHorizontal()?(m=p,w=s.y,_=y-m,B=s.height,p=m+_):(m=s.x,w=p,_=s.width,B=y-w,p=w+B);var C=l[v-1].tickValue;C!=null&&c.set(C,h),t.add(new Nt({anid:C!=null?"area_"+C:null,shape:{x:m,y:w,width:_,height:B},style:gt({fill:o[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%u}Aw(r).splitAreaColors=c}}}function PP(r){Aw(r).splitAreaColors=null}var jY=["axisLine","axisTickLabel","axisName"],tZ=["splitArea","splitLine","minorSplitLine"],RP=function(r){H(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,a,i){this.group.removeAll();var A=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var o=e.getCoordSysModel(),s=aw(o,e),l=new wr(e,V({handleAutoShown:function(f){for(var c=o.coordinateSystem.getCartesians(),h=0;h<c.length;h++)if($0(c[h].getOtherAxis(e.axis).scale))return!0;return!1}},s));T(jY,l.add,l),this._axisGroup.add(l.getGroup()),T(tZ,function(f){e.get([f,"show"])&&eZ[f](this,this._axisGroup,e,o)},this);var u=i&&i.type==="changeAxisOrder"&&i.isInitSort;u||Rf(A,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)}},t.prototype.remove=function(){PP(this)},t.type="cartesianAxis",t}(Io),eZ={splitLine:function(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitLine"),A=i.getModel("lineStyle"),o=A.get("color");o=K(o)?o:[o];for(var s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=0,f=a.getTicksCoords({tickModel:i}),c=[],h=[],v=A.getLineStyle(),d=0;d<f.length;d++){var p=a.toGlobalCoord(f[d].coord);l?(c[0]=p,c[1]=s.y,h[0]=p,h[1]=s.y+s.height):(c[0]=s.x,c[1]=p,h[0]=s.x+s.width,h[1]=p);var g=u++%o.length,y=f[d].tickValue,m=new Pe({anid:y!=null?"line_"+f[d].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:gt({stroke:o[g]},v),silent:!0});Ps(m.shape,v.lineWidth),t.add(m)}}},minorSplitLine:function(r,t,e,n){var a=e.axis,i=e.getModel("minorSplitLine"),A=i.getModel("lineStyle"),o=n.coordinateSystem.getRect(),s=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],f=[],c=A.getLineStyle(),h=0;h<l.length;h++)for(var v=0;v<l[h].length;v++){var d=a.toGlobalCoord(l[h][v].coord);s?(u[0]=d,u[1]=o.y,f[0]=d,f[1]=o.y+o.height):(u[0]=o.x,u[1]=d,f[0]=o.x+o.width,f[1]=d);var p=new Pe({anid:"minor_line_"+l[h][v].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:f[0],y2:f[1]},style:c,silent:!0});Ps(p.shape,c.lineWidth),t.add(p)}},splitArea:function(r,t,e,n){UP(r,t,e,n)}},HP=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(RP),rZ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=HP.type,e}return t.type="yAxis",t}(RP),nZ=function(r){H(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 Nt({shape:e.coordinateSystem.getRect(),style:gt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(de),bT={offset:0};function OP(r){r.registerComponentView(nZ),r.registerComponentModel(DY),r.registerCoordinateSystem("cartesian2d",OY),Ns(r,"x",rw,bT),Ns(r,"y",rw,bT),r.registerComponentView(HP),r.registerComponentView(rZ),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function aZ(r){Lt(OP),r.registerSeriesModel(bY),r.registerChartView(EY),r.registerLayout(Wf("scatter"))}function iZ(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();T(i,function(A,o){e.each(e.mapDimension(i[o].dim),function(s,l){n[l]=n[l]||[];var u=a.dataToPoint(s,o);n[l][o]=TT(u)?u:IT(a)})}),e.each(function(A){var o=WV(n[A],function(s){return TT(s)})||IT(a);n[A].push(o.slice()),e.setItemLayout(A,n[A])})}})}function TT(r){return!isNaN(r[0])&&!isNaN(r[1])}function IT(r){return[r.cx,r.cy]}function AZ(r){var t=r.polar;if(t){K(t)||(t=[t]);var e=[];T(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],K(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}T(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var oZ=function(r){H(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,a){var i=e.coordinateSystem,A=this.group,o=e.getData(),s=this._data;function l(c,h){var v=c.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var d=ol(c.getItemVisual(h,"symbolSize")),p=Ie(v,-1,-1,2,2),g=c.getItemVisual(h,"symbolRotate")||0;return p.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:g*Math.PI/180||0}),p}}function u(c,h,v,d,p,g){v.removeAll();for(var y=0;y<h.length-1;y++){var m=l(d,p);m&&(m.__dimIdx=y,c[y]?(m.setPosition(c[y]),So[g?"initProps":"updateProps"](m,{x:h[y][0],y:h[y][1]},e,p)):m.setPosition(h[y]),v.add(m))}}function f(c){return Y(c,function(h){return[i.cx,i.cy]})}o.diff(s).add(function(c){var h=o.getItemLayout(c);if(h){var v=new Sr,d=new xr,p={shape:{points:h}};v.shape.points=f(h),d.shape.points=f(h),ue(v,p,e,c),ue(d,p,e,c);var g=new _t,y=new _t;g.add(d),g.add(v),g.add(y),u(d.shape.points,h,y,o,c,!0),o.setItemGraphicEl(c,g)}}).update(function(c,h){var v=s.getItemGraphicEl(h),d=v.childAt(0),p=v.childAt(1),g=v.childAt(2),y={shape:{points:o.getItemLayout(c)}};y.shape.points&&(u(d.shape.points,y.shape.points,g,o,c,!1),Hn(p),Hn(d),zt(d,y,e),zt(p,y,e),o.setItemGraphicEl(c,v))}).remove(function(c){A.remove(s.getItemGraphicEl(c))}).execute(),o.eachItemGraphicEl(function(c,h){var v=o.getItemModel(h),d=c.childAt(0),p=c.childAt(1),g=c.childAt(2),y=o.getItemVisual(h,"style"),m=y.fill;A.add(c),d.useStyle(gt(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:m})),$e(d,v,"lineStyle"),$e(p,v,"areaStyle");var w=v.getModel("areaStyle"),_=w.isEmpty()&&w.parentModel.isEmpty();p.ignore=_,T(["emphasis","select","blur"],function(S){var x=v.getModel([S,"areaStyle"]),b=x.isEmpty()&&x.parentModel.isEmpty();p.ensureState(S).ignore=b&&_}),p.useStyle(gt(w.getAreaStyle(),{fill:m,opacity:.7,decal:y.decal}));var B=v.getModel("emphasis"),C=B.getModel("itemStyle").getItemStyle();g.eachChild(function(S){if(S instanceof Ke){var x=S.style;S.useStyle(V({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},y))}else S.useStyle(y),S.setColor(m),S.style.strokeNoScale=!0;var b=S.ensureState("emphasis");b.style=mt(C);var I=o.getStore().get(o.getDimensionIndex(S.__dimIdx),h);(I==null||isNaN(I))&&(I=""),Je(S,Oe(v),{labelFetcher:o.hostModel,labelDataIndex:h,labelDimIndex:S.__dimIdx,defaultText:I,inheritColor:m,defaultOpacity:y.opacity})}),ye(c,B.get("focus"),B.get("blurScope"),B.get("disabled"))}),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(jt),sZ=function(r){H(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 Yf(it(this.getData,this),it(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return ll(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),A=this.coordinateSystem,o=A.getIndicatorAxes(),s=this.getData().getName(e),l=s===""?this.name:s,u=HU(this,e);return ke("section",{header:l,sortBlocks:!0,blocks:Y(o,function(f){var c=i.get(i.mapDimension(f.dim),e);return ke("nameValue",{markerType:"subItem",markerColor:u,name:f.name,value:c,sortParam:c})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(Y(a.dimensions,function(l){return n.mapDimension(l)}),e),A=0,o=i.length;A<o;A++)if(!isNaN(i[A])){var s=a.getIndicatorAxes();return a.coordToPoint(s[A].dataToCoord(i[A]),A)}}},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}(se),Ml=QP.value;function Xc(r,t){return gt({show:t},r)}var lZ=function(r){H(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"),a=this.get("scale"),i=this.get("axisLine"),A=this.get("axisTick"),o=this.get("axisLabel"),s=this.get("axisName"),l=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),c=this.get("triggerEvent"),h=Y(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=s;v.color!=null&&(d=gt({color:v.color},s));var p=Et(mt(v),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:A,axisLabel:o,name:v.text,showName:l,nameLocation:"end",nameGap:f,nameTextStyle:d,triggerEvent:c},!1);if(nt(u)){var g=p.name;p.name=u.replace("{value}",g??"")}else vt(u)&&(p.name=u(p.name,p));var y=new Yt(p,null,this.ecModel);return Fe(y,Vf.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},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:Et({lineStyle:{color:"#bbb"}},Ml.axisLine),axisLabel:Xc(Ml.axisLabel,!1),axisTick:Xc(Ml.axisTick,!1),splitLine:Xc(Ml.splitLine,!0),splitArea:Xc(Ml.splitArea,!0),indicator:[]},t}(Rt),uZ=["axisLine","axisTickLabel","axisName"],fZ=function(r){H(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,a){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=Y(a,function(A){var o=A.model.get("showName")?A.name:"",s=new wr(A.model,{axisName:o,position:[n.cx,n.cy],rotation:A.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});T(i,function(A){T(uZ,A.add,A),this.group.add(A.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),A=e.getModel("splitLine"),o=e.getModel("splitArea"),s=A.getModel("lineStyle"),l=o.getModel("areaStyle"),u=A.get("show"),f=o.get("show"),c=s.get("color"),h=l.get("color"),v=K(c)?c:[c],d=K(h)?h:[h],p=[],g=[];function y(Q,M,R){var P=R%M.length;return Q[P]=Q[P]||[],P}if(i==="circle")for(var m=a[0].getTicksCoords(),w=n.cx,_=n.cy,B=0;B<m.length;B++){if(u){var C=y(p,v,B);p[C].push(new ei({shape:{cx:w,cy:_,r:m[B].coord}}))}if(f&&B<m.length-1){var C=y(g,d,B);g[C].push(new Mf({shape:{cx:w,cy:_,r0:m[B].coord,r:m[B+1].coord}}))}}else for(var S,x=Y(a,function(Q,M){var R=Q.getTicksCoords();return S=S==null?R.length-1:Math.min(R.length-1,S),Y(R,function(P){return n.coordToPoint(P.coord,M)})}),b=[],B=0;B<=S;B++){for(var I=[],F=0;F<a.length;F++)I.push(x[F][B]);if(I[0]&&I.push(I[0].slice()),u){var C=y(p,v,B);p[C].push(new xr({shape:{points:I}}))}if(f&&b){var C=y(g,d,B-1);g[C].push(new Sr({shape:{points:I.concat(b)}}))}b=I.slice().reverse()}var E=s.getLineStyle(),D=l.getAreaStyle();T(g,function(Q,M){this.group.add(ln(Q,{style:gt({stroke:"none",fill:d[M%d.length]},D),silent:!0}))},this),T(p,function(Q,M){this.group.add(ln(Q,{style:gt({fill:"none",stroke:v[M%v.length]},E),silent:!0}))},this)},t.type="radar",t}(de),cZ=function(r){H(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(kn),hZ=function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Y(t.getIndicatorModels(),function(a,i){var A="indicator_"+i,o=new cZ(A,new Za);return o.name=a.get("name"),o.model=a,a.axis=o,this.dimensions.push(A),o},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],a=n.angle,i=this.cx+t*Math.cos(a),A=this.cy-t*Math.sin(a);return[i,A]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(e*e+n*n);e/=a,n/=a;for(var i=Math.atan2(-n,e),A=1/0,o,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],f=Math.abs(i-u.angle);f<A&&(o=u,s=l,A=f)}return[s,+(o&&o.coordToData(a))]},r.prototype.resize=function(t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight(),A=Math.min(a,i)/2;this.cx=et(n[0],a),this.cy=et(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");(nt(o)||Kt(o))&&(o=[0,o]),this.r0=et(o[0],A),this.r=et(o[1],A),T(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,a=this._model;T(n,function(o){o.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(o,s){if(!(o.get("coordinateSystem")!=="radar"||t.getComponent("radar",o.get("radarIndex"))!==a)){var l=o.getData();T(n,function(u){u.scale.unionExtentFromData(l,l.mapDimension(u.dim))})}},this);var i=a.get("splitNumber"),A=new Za;A.setExtent(0,i),A.setInterval(1),T(n,function(o,s){LP(o.scale,o.model,A)})},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(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();function vZ(r){r.registerCoordinateSystem("radar",hZ),r.registerComponentModel(lZ),r.registerComponentView(fZ),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 dZ(r){Lt(vZ),r.registerChartView(oZ),r.registerSeriesModel(sZ),r.registerLayout(iZ),r.registerProcessor(Xf("radar")),r.registerPreprocessor(AZ)}var FT="\0_ec_interaction_mutex";function pZ(r,t,e){var n=$_(r);n[t]=e}function gZ(r,t,e){var n=$_(r),a=n[t];a===e&&(n[t]=null)}function ET(r,t){return!!$_(r)[t]}function $_(r){return r[FT]||(r[FT]={})}ma({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Be);var Zf=function(r){H(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var a=it(n._mousedownHandler,n),i=it(n._mousemoveHandler,n),A=it(n._mouseupHandler,n),o=it(n._mousewheelHandler,n),s=it(n._pinchHandler,n);return n.enable=function(l,u){this.disable(),this._opt=gt(mt(u)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),l==null&&(l=!0),(l===!0||l==="move"||l==="pan")&&(e.on("mousedown",a),e.on("mousemove",i),e.on("mouseup",A)),(l===!0||l==="scale"||l==="zoom")&&(e.on("mousewheel",o),e.on("pinch",s))},n.disable=function(){e.off("mousedown",a),e.off("mousemove",i),e.off("mouseup",A),e.off("mousewheel",o),e.off("pinch",s)},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(!eS(e)){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!qh("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||ET(this._zr,"globalPan"))){var n=e.offsetX,a=e.offsetY,i=this._x,A=this._y,o=n-i,s=a-A;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Ka(e.event),kP(this,"pan","moveOnMouseMove",e,{dx:o,dy:s,oldX:i,oldY:A,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){eS(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=qh("zoomOnMouseWheel",e,this._opt),a=qh("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,A=Math.abs(i),o=e.offsetX,s=e.offsetY;if(!(i===0||!n&&!a)){if(n){var l=A>3?1.4:A>1?1.2:1.1,u=i>0?l:1/l;py(this,"zoom","zoomOnMouseWheel",e,{scale:u,originX:o,originY:s,isAvailableBehavior:null})}if(a){var f=Math.abs(i),c=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);py(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:s,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!ET(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;py(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(yn);function py(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(Ka(n.event),kP(r,t,e,n,a))}function kP(r,t,e,n,a){a.isAvailableBehavior=it(qh,null,e,n),r.trigger(t,a)}function qh(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}function J_(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function q_(r,t,e,n){var a=r.target,i=r.zoomLimit,A=r.zoom=r.zoom||1;if(A*=t,i){var o=i.min||0,s=i.max||1/0;A=Math.max(Math.min(s,A),o)}var l=A/r.zoom;r.zoom=A,a.x-=(e-a.x)*(l-1),a.y-=(n-a.y)*(l-1),a.scaleX*=l,a.scaleY*=l,a.dirty()}var yZ={axisPointer:1,tooltip:1,brush:1};function dp(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!yZ.hasOwnProperty(n.mainType)&&a&&a.model!==e}function NP(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 gy,Yv={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"},DT=Ht(Yv),Zv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},QT=Ht(Zv),mZ=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=NP(t);this._defsUsePending=[];var a=new _t;this._root=a;var i=[],A=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Or(n,a,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,a,i,null,!1,!1),l=l.nextSibling;_Z(this._defs,this._defsUsePending),this._defsUsePending=[];var u,f;if(A){var c=pp(A);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&o!=null&&s!=null&&(f=GP(u,{x:0,y:0,width:o,height:s}),!e.ignoreViewBox)){var h=a;a=new _t,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!e.ignoreRootClip&&o!=null&&s!=null&&a.setClipPath(new Nt({shape:{x:0,y:0,width:o,height:s}})),{root:a,width:o,height:s,viewBoxRect:u,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(t,e,n,a,i,A){var o=t.nodeName.toLowerCase(),s,l=a;if(o==="defs"&&(i=!0),o==="text"&&(A=!0),o==="defs"||o==="switch")s=e;else{if(!i){var u=gy[o];if(u&&st(gy,o)){s=u.call(this,t,e);var f=t.getAttribute("name");if(f){var c={name:f,namedFrom:null,svgNodeTagLower:o,el:s};n.push(c),o==="g"&&(l=c)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:o,el:s});e.add(s)}}var h=LT[o];if(h&&st(LT,o)){var v=h.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=v)}}if(s&&s.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,s,n,l,i,A):p.nodeType===3&&A&&this._parseText(p,s),p=p.nextSibling},r.prototype._parseText=function(t,e){var n=new Us({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Jr(e,n),Or(t,n,this._defsUsePending,!1,!1),wZ(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var A=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=A;var o=n.getBoundingRect();return this._textX+=o.width,e.add(n),n},r.internalField=function(){gy={g:function(t,e){var n=new _t;return Jr(e,n),Or(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Nt;return Jr(e,n),Or(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 ei;return Jr(e,n),Or(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 Pe;return Jr(e,n),Or(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 Yd;return Jr(e,n),Or(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"),a;n&&(a=PT(n));var i=new Sr({shape:{points:a||[]},silent:!0});return Jr(e,i),Or(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=PT(n));var i=new xr({shape:{points:a||[]},silent:!0});return Jr(e,i),Or(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Ke;return Jr(e,n),Or(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",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",A=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(A);var o=new _t;return Jr(e,o),Or(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",A=t.getAttribute("dy")||"0",o=new _t;return Jr(e,o),Or(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(A),o},path:function(t,e){var n=t.getAttribute("d")||"",a=QM(n);return Jr(e,a),Or(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),LT={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),a=parseInt(r.getAttribute("y2")||"0",10),i=new Pf(t,e,n,a);return MT(r,i),UT(r,i),i},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),a=new PM(t,e,n);return MT(r,a),UT(r,a),a}};function MT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function UT(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};VP(e,i,i);var A=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:A})}e=e.nextSibling}}function Jr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),gt(t.__inheritedStyle,r.__inheritedStyle))}function PT(r){for(var t=pp(r),e=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);e.push([a,i])}return e}function Or(r,t,e,n,a){var i=t,A=i.__inheritedStyle=i.__inheritedStyle||{},o={};r.nodeType===1&&(xZ(r,t),VP(r,A,o),n||bZ(r,A,o)),i.style=i.style||{},A.fill!=null&&(i.style.fill=RT(i,"fill",A.fill,e)),A.stroke!=null&&(i.style.stroke=RT(i,"stroke",A.stroke,e)),T(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(s){A[s]!=null&&(i.style[s]=parseFloat(A[s]))}),T(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(s){A[s]!=null&&(i.style[s]=A[s])}),a&&(i.__selfStyle=o),A.lineDash&&(i.style.lineDash=Y(pp(A.lineDash),function(s){return parseFloat(s)})),(A.visibility==="hidden"||A.visibility==="collapse")&&(i.invisible=!0),A.display==="none"&&(i.ignore=!0)}function wZ(r,t){var e=t.__selfStyle;if(e){var n=e.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var A=i.textAlign,o=A;A&&(A==="middle"&&(o="center"),r.style.textAlign=o)}}var BZ=/^url\(\s*#(.*?)\)/;function RT(r,t,e,n){var a=e&&e.match(BZ);if(a){var i=Dn(a[1]);n.push([r,t,i]);return}return e==="none"&&(e=null),e}function _Z(r,t){for(var e=0;e<t.length;e++){var n=t[e];n[0].style[n[1]]=r[n[2]]}}var CZ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function pp(r){return r.match(CZ)||[]}var SZ=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,yy=Math.PI/180;function xZ(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=[],a=null;e.replace(SZ,function(f,c,h){return n.push(c,h),""});for(var i=n.length-1;i>0;i-=2){var A=n[i],o=n[i-1],s=pp(A);switch(a=a||Wr(),o){case"translate":va(a,a,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":WB(a,a,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":Co(a,a,-parseFloat(s[0])*yy,[parseFloat(s[1]||"0"),parseFloat(s[2]||"0")]);break;case"skewX":var l=Math.tan(parseFloat(s[0])*yy);Ha(a,[1,0,l,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(s[0])*yy);Ha(a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(s[0]),a[1]=parseFloat(s[1]),a[2]=parseFloat(s[2]),a[3]=parseFloat(s[3]),a[4]=parseFloat(s[4]),a[5]=parseFloat(s[5]);break}}t.setLocalTransform(a)}}var HT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function VP(r,t,e){var n=r.getAttribute("style");if(n){HT.lastIndex=0;for(var a;(a=HT.exec(n))!=null;){var i=a[1],A=st(Yv,i)?Yv[i]:null;A&&(t[A]=a[2]);var o=st(Zv,i)?Zv[i]:null;o&&(e[o]=a[2])}}}function bZ(r,t,e){for(var n=0;n<DT.length;n++){var a=DT[n],i=r.getAttribute(a);i!=null&&(t[Yv[a]]=i)}for(var n=0;n<QT.length;n++){var a=QT[n],i=r.getAttribute(a);i!=null&&(e[Zv[a]]=i)}}function GP(r,t){var e=t.width/r.width,n=t.height/r.height,a=Math.min(e,n);return{scale:a,x:-(r.x+r.width/2)*a+(t.x+t.width/2),y:-(r.y+r.height/2)*a+(t.y+t.height/2)}}function TZ(r,t){var e=new mZ;return e.parse(r,t)}var IZ=ft(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),FZ=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=ft(),this._freedGraphics=[],this._mapName=t,this._parsedXML=NP(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=DZ(t.named),n=e.regions,a=e.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,n;try{e=t&&TZ(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Br(n!=null)}catch(p){throw new Error(`Invalid svg format
|
||
`+p.message)}var a=new _t;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=e.width,A=e.height,o=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,f=void 0,c=void 0;if(i!=null?(l=0,f=i):o&&(l=o.x,f=o.width),A!=null?(u=0,c=A):o&&(u=o.y,c=o.height),l==null||u==null){var h=n.getBoundingRect();l==null&&(l=h.x,f=h.width),u==null&&(u=h.y,c=h.height)}s=this._boundingRect=new Dt(l,u,f,c)}if(o){var v=GP(o,s);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}a.setClipPath(new Nt({shape:s.plain()}));var d=[];return T(e.named,function(p){IZ.get(p.svgNodeTagLower)!=null&&(d.push(p),EZ(p.el))}),{root:a,boundingRect:s,named:d}},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 EZ(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function DZ(r){var t=[],e=ft();return T(r,function(n){if(n.namedFrom==null){var a=new xX(n.name,n.el);t.push(a),e.set(n.name,a)}}),{regions:t,regionsMap:e}}var ow=[126,25],OT="南海诸岛",LA=[[[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 FA=0;FA<LA.length;FA++)for(var Go=0;Go<LA[FA].length;Go++)LA[FA][Go][0]/=10.5,LA[FA][Go][1]/=-10.5/.75,LA[FA][Go][0]+=ow[0],LA[FA][Go][1]+=ow[1];function QZ(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===OT)return;t.push(new O2(OT,Y(LA,function(n){return{type:"polygon",exterior:n}}),ow))}}var LZ={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function MZ(r,t){if(r==="china"){var e=LZ[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 UZ=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function PZ(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:UZ[0]})}var RZ="name",HZ=function(){function r(t,e,n){this.type="geoJSON",this._parsedMap=ft(),this._mapName=t,this._specialAreas=n,this._geoJSON=kZ(e)}return r.prototype.load=function(t,e){e=e||RZ;var n=this._parsedMap.get(e);if(!n){var a=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:a,boundingRect:OZ(a)})}var i=ft(),A=[];return T(n.regions,function(o){var s=o.name;t&&st(t,s)&&(o=o.cloneShallow(s=t[s])),A.push(o),i.set(s,o)}),{regions:A,boundingRect:n.boundingRect||new Dt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,n=this._geoJSON,a;try{a=n?TX(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
|
||
`+i.message)}return QZ(e,a),T(a,function(i){var A=i.name;MZ(e,i),PZ(e,i);var o=this._specialAreas&&this._specialAreas[A];o&&i.transformTo(o.left,o.top,o.width,o.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function OZ(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 kZ(r){return nt(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ul=ft();const $a={registerMap:function(r,t,e){if(t.svg){var n=new FZ(r,t.svg);Ul.set(r,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?e=t.specialAreas:a=t;var n=new HZ(r,a,e);Ul.set(r,n)}},getGeoResource:function(r){return Ul.get(r)},getMapForUser:function(r){var t=Ul.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var n=Ul.get(r);if(n)return n.load(t,e)}};var j_=["rect","circle","line","ellipse","polygon","polyline","path"],NZ=ft(j_),VZ=ft(j_.concat(["g"])),GZ=ft(j_.concat(["g"])),KP=Vt();function Yc(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function kT(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var zP=function(){function r(t){var e=new _t;this.uid=el("ec_map_draw"),this._controller=new Zf(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,a,i){var A=t.mainType==="geo",o=t.getData&&t.getData();A&&e.eachComponent({mainType:"series",subType:"map"},function(g){!o&&g.getHostGeoModel()===t&&(o=g.getData())});var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,f=s.getTransformInfo(),c=f.raw,h=f.roam,v=!l.childAt(0)||i;v?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):zt(u,h,t);var d=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,p={api:n,geo:s,mapOrGeoModel:t,data:o,isVisualEncodedByVisualMap:d,isGeo:A,transformInfoRaw:c};s.resourceType==="geoJSON"?this._buildGeoJSON(p):s.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),a=this._regionsGroup,i=t.transformInfoRaw,A=t.mapOrGeoModel,o=t.data,s=t.geo.projection,l=s&&s.stream;function u(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],d=!l&&s&&s.project,p=0;p<h.length;++p){var g=u(h[p],d);g&&v.push(g)}return v}function c(h){return{shape:{points:f(h)}}}a.removeAll(),T(t.geo.regions,function(h){var v=h.name,d=e.get(v),p=n.get(v)||{},g=p.dataIdx,y=p.regionModel;d||(d=e.set(v,new _t),a.add(d),g=o?o.indexOfName(v):null,y=t.isGeo?A.getRegionModel(v):o?o.getItemModel(g):null,n.set(v,{dataIdx:g,regionModel:y}));var m=[],w=[];T(h.geometries,function(C){if(C.type==="polygon"){var S=[C.exterior].concat(C.interiors||[]);l&&(S=WT(S,l)),T(S,function(b){m.push(new Sr(c(b)))})}else{var x=C.points;l&&(x=WT(x,l,!0)),T(x,function(b){w.push(new xr(c(b)))})}});var _=u(h.getCenter(),s&&s.project);function B(C,S){if(C.length){var x=new s_({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});d.add(x),NT(t,x,g,y),VT(t,x,v,y,A,g,_),S&&(kT(x),T(x.states,kT))}}B(m),B(w,!0)}),e.each(function(h,v){var d=n.get(v),p=d.dataIdx,g=d.regionModel;GT(t,h,v,g,A,p),KT(t,h,v,g,A),zT(t,h,v,g,A)},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 a=this._svgDispatcherMap=ft(),i=!1;T(this._svgGraphicRecord.named,function(A){var o=A.name,s=t.mapOrGeoModel,l=t.data,u=A.svgNodeTagLower,f=A.el,c=l?l.indexOfName(o):null,h=s.getRegionModel(o);if(NZ.get(u)!=null&&f instanceof gn&&NT(t,f,c,h),f instanceof gn&&(f.culling=!0),f.z2EmphasisLift=0,!A.namedFrom&&(GZ.get(u)!=null&&VT(t,f,o,h,s,c,null),GT(t,f,o,h,s,c),KT(t,f,o,h,s),VZ.get(u)!=null)){var v=zT(t,f,o,h,s);v==="self"&&(i=!0);var d=a.get(o)||a.set(o,[]);d.push(f)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){po(i);var A=i.ensureState("blur").style||{};A.opacity==null&&a!=null&&(A.opacity=a),i.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 a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}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=$a.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=$a.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 a=t.coordinateSystem,i=this._controller,A=this._controllerHost;A.zoomLimit=t.get("scaleLimit"),A.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var o=t.mainType;function s(){var l={type:"geoRoam",componentType:o};return l[o+"Id"]=t.id,l}i.off("pan").on("pan",function(l){this._mouseDownFlag=!1,J_(A,l.dx,l.dy),n.dispatchAction(V(s(),{dx:l.dx,dy:l.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(l){this._mouseDownFlag=!1,q_(A,l.scale,l.originX,l.originY),n.dispatchAction(V(s(),{totalZoom:A.zoom,zoom:l.scale,originX:l.originX,originY:l.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(l,u,f){return a.containPoint([u,f])&&!dp(l,n,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=KP(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,n,a){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(A){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function NT(r,t,e,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),A=n.getModel(["blur","itemStyle"]),o=n.getModel(["select","itemStyle"]),s=Yc(a),l=Yc(i),u=Yc(o),f=Yc(A),c=r.data;if(c){var h=c.getItemVisual(e,"style"),v=c.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&h.fill&&(s.fill=h.fill),v&&(s.decal=Hs(v,r.api))}t.setStyle(s),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=l,t.ensureState("select").style=u,t.ensureState("blur").style=f,po(t)}function VT(r,t,e,n,a,i,A){var o=r.data,s=r.isGeo,l=o&&isNaN(o.get(o.mapDimension("value"),i)),u=o&&o.getItemLayout(i);if(s||l||u&&u.showLabel){var f=s?e:i,c=void 0;(!o||i>=0)&&(c=a);var h=A?{normal:{align:"center",verticalAlign:"middle"}}:null;Je(t,Oe(n),{labelFetcher:c,labelDataIndex:f,defaultText:e},h);var v=t.getTextContent();if(v&&(KP(v).ignore=v.ignore,t.textConfig&&A)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(A[0]-d.x)/d.width*100+"%",(A[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function GT(r,t,e,n,a,i){r.data?r.data.setItemGraphicEl(i,t):Ct(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:n&&n.option||{}}}function KT(r,t,e,n,a){r.data||js({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function zT(r,t,e,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),A=i.get("focus");return ye(t,A,i.get("blurScope"),i.get("disabled")),r.isGeo&&V5(t,a,e),A}function WT(r,t,e){var n=[],a;function i(){a=[]}function A(){a.length&&(n.push(a),a=[])}var o=t({polygonStart:i,polygonEnd:A,lineStart:i,lineEnd:A,point:function(s,l){isFinite(s)&&isFinite(l)&&a.push([s,l])},sphere:function(){}});return!e&&o.polygonStart(),T(r,function(s){o.lineStart();for(var l=0;l<s.length;l++)o.point(s[l][0],s[l][1]);o.lineEnd()}),!e&&o.polygonEnd(),n}var KZ=function(r){H(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,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var A=this.group;if(A.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id){var o=this._mapDraw;o&&A.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new zP(a);A.add(o.group),o.draw(e,n,a,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(e,n,a)}}},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,a){var i=e.originalData,A=this.group;i.each(i.mapDimension("value"),function(o,s){if(!isNaN(o)){var l=i.getItemLayout(s);if(!(!l||!l.point)){var u=l.point,f=l.offset,c=new ei({style:{fill:e.getData().getVisual("style").fill},shape:{cx:u[0]+f*9,cy:u[1],r:3},silent:!0,z2:8+(f?0:Js+1)});if(!f){var h=e.mainSeries.getData(),v=i.getName(s),d=h.indexOfName(v),p=i.getItemModel(s),g=p.getModel("label"),y=h.getItemGraphicEl(d);Je(c,Oe(p),{labelFetcher:{getFormattedLabel:function(m,w){return e.getFormattedLabel(d,w)}},defaultText:v}),c.disableLabelAnimation=!0,g.get("position")||c.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(m){Iv(c,m)}}A.add(c)}}})},t.type="map",t}(jt),zZ=function(r){H(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 a=this.getData().getName(n),i=this.coordinateSystem,A=i.getRegion(a);return A&&i.dataToPoint(A.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var n=ll(this,{coordDimensions:["value"],encodeDefaulter:bt(y_,this)}),a=ft(),i=[],A=0,o=n.count();A<o;A++){var s=n.getName(A);a.set(s,!0)}var l=$a.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return T(l.regions,function(u){var f=u.name;a.get(f)||i.push(f)}),n.appendValues([],i),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,a){for(var i=this.getData(),A=this.getRawValue(e),o=i.getName(e),s=this.seriesGroup,l=[],u=0;u<s.length;u++){var f=s[u].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(s[u].originalData.get(c,f))||l.push(s[u].name)}return ke("section",{header:l.join(", "),noHeader:!l.length,blocks:[ke("nameValue",{name:o,value:A})]})},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",a=Ie(n,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return a.setStyle(e.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},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}(se);function WZ(r,t){var e={};return T(r,function(n){n.each(n.mapDimension("value"),function(a,i){var A="ec-"+n.getName(i);e[A]=e[A]||[],isNaN(a)||e[A].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),A=0,o=1/0,s=-1/0,l=e[i].length,u=0;u<l;u++)o=Math.min(o,e[i][u]),s=Math.max(s,e[i][u]),A+=e[i][u];var f;return t==="min"?f=o:t==="max"?f=s:t==="average"?f=A/l:f=A,l===0?NaN:f})}function XZ(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),a=n?"o"+n.id:"i"+e.getMapType();(t[a]=t[a]||[]).push(e)}),T(t,function(e,n){for(var a=WZ(Y(e,function(A){return A.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=i===0&&!e[i].getHostGeoModel(),e[i].setData(a.cloneShallow()),e[i].mainSeries=e[0]})}function YZ(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getMapType();if(!(e.getHostGeoModel()||t[n])){var a={};T(e.seriesGroup,function(A){var o=A.coordinateSystem,s=A.originalData;A.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),c=o.getRegion(f);if(!(!c||isNaN(l))){var h=a[f]||0,v=o.dataToPoint(c.getCenter());a[f]=h+1,s.setItemLayout(u,{point:v,offset:h})}})});var i=e.getData();i.each(function(A){var o=i.getName(A),s=i.getItemLayout(A)||{};s.showLabel=!a[o],i.setItemLayout(A,s)}),t[n]=!0}})}var XT=Ye,$f=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new La,n._rawTransformable=new La,n.name=e,n}return t.prototype.setBoundingRect=function(e,n,a,i){return this._rect=new Dt(e,n,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,n,a,i){this._transformTo(e,n,a,i),this._viewRect=new Dt(e,n,a,i)},t.prototype._transformTo=function(e,n,a,i){var A=this.getBoundingRect(),o=this._rawTransformable;o.transform=A.calculateTransform(new Dt(e,n,a,i));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,this._updateTransform()},t.prototype.setCenter=function(e,n){e&&(this._center=[et(e[0],n.getWidth()),et(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,a=e.y+e.height/2;return[n,a]},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,a=this.getDefaultCenter(),i=this.getCenter(),A=this.getZoom();i=Ye([],i,e),a=Ye([],a,e),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=A,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,n=this._rawTransformable;n.parent=e,e.updateTransform(),n.updateTransform(),zB(this.transform||(this.transform=[]),n.transform||Wr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Zs(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,n=this._roamTransformable,a=new La;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.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,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?XT(a,e,i):vr(a,e)},t.prototype.pointToData=function(e){var n=this.invTransform;return n?XT([],e,n):[e[0],e[1]]},t.prototype.convertToPixel=function(e,n,a){var i=YT(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=YT(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(La);function YT(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var ZZ={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},WP=["lng","lat"],sw=function(r){H(t,r);function t(e,n,a){var i=r.call(this,e)||this;i.dimensions=WP,i.type="geo",i._nameCoordMap=ft(),i.map=n;var A=a.projection,o=$a.load(n,a.nameMap,a.nameProperty),s=$a.getGeoResource(n);i.resourceType=s?s.type:null;var l=i.regions=o.regions,u=ZZ[s.type];i._regionsMap=o.regionsMap,i.regions=o.regions,i.projection=A;var f;if(A)for(var c=0;c<l.length;c++){var h=l[c].getBoundingRect(A);f=f||h.clone(),f.union(h)}else f=o.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=A?1:xt(a.aspectScale,u.aspectScale),i._invertLongitute=A?!1:u.invertLongitute,i}return t.prototype._transformTo=function(e,n,a,i){var A=this.getBoundingRect(),o=this._invertLongitute;A=A.clone(),o&&(A.y=-A.y-A.height);var s=this._rawTransformable;s.transform=A.calculateTransform(new Dt(e,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,o&&(s.scaleY=-s.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(e))return n[a]}},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,a){if(nt(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,n,a)}},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,a){return r.prototype.dataToPoint.call(this,e,n,a)},t.prototype.convertToPixel=function(e,n,a){var i=ZT(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=ZT(n);return i===this?i.pointToData(a):null},t}($f);Fe(sw,$f);function ZT(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Te).models[0]||{}).coordinateSystem:null}function $T(r,t){var e=r.get("boundingCoords");if(e!=null){var n=e[0],a=e[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var A=n[0],o=n[1],s=a[0],l=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var u=function(B,C,S,x){for(var b=S-B,I=x-C,F=0;F<=100;F++){var E=F/100,D=i.project([B+b*E,C+I*E]);bi(n,n,D),Ti(a,a,D)}};u(A,o,s,o),u(s,o,s,l),u(s,l,A,l),u(A,l,s,o)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var f=this.getBoundingRect(),c=r.get("layoutCenter"),h=r.get("layoutSize"),v=t.getWidth(),d=t.getHeight(),p=f.width/f.height*this.aspectScale,g=!1,y,m;c&&h&&(y=[et(c[0],v),et(c[1],d)],m=et(h,Math.min(v,d)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(m)&&(g=!0));var w;if(g)w={},p>1?(w.width=m,w.height=m/p):(w.height=m,w.width=m*p),w.y=y[1]-w.height/2,w.x=y[0]-w.width/2;else{var _=r.getBoxLayoutParams();_.aspect=p,w=Le(_,{width:v,height:d})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function $Z(r,t){T(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var JZ=function(){function r(){this.dimensions=WP}return r.prototype.create=function(t,e){var n=[];function a(A){return{nameProperty:A.get("nameProperty"),aspectScale:A.get("aspectScale"),projection:A.get("projection")}}t.eachComponent("geo",function(A,o){var s=A.get("map"),l=new sw(s+o,s,V({nameMap:A.get("nameMap")},a(A)));l.zoomLimit=A.get("scaleLimit"),n.push(l),A.coordinateSystem=l,l.model=A,l.resize=$T,l.resize(A,e)}),t.eachSeries(function(A){var o=A.get("coordinateSystem");if(o==="geo"){var s=A.get("geoIndex")||0;A.coordinateSystem=n[s]}});var i={};return t.eachSeriesByType("map",function(A){if(!A.getHostGeoModel()){var o=A.getMapType();i[o]=i[o]||[],i[o].push(A)}}),T(i,function(A,o){var s=Y(A,function(u){return u.get("nameMap")}),l=new sw(o,o,V({nameMap:NB(s)},a(A[0])));l.zoomLimit=Ge.apply(null,Y(A,function(u){return u.get("scaleLimit")})),n.push(l),l.resize=$T,l.resize(A[0],e),T(A,function(u){u.coordinateSystem=l,$Z(l,u)})}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),A=ft(),o=0;o<i.length;o++)A.set(i[o].name,i[o]);var s=$a.load(e,n,a);return T(s.regions,function(l){var u=l.name;!A.get(u)&&i.push({name:u})}),i},r}(),XP=new JZ,qZ=function(r){H(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,a){var i=$a.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var A=e.itemStyle=e.itemStyle||{};"color"in A||(A.color="#eee")}this.mergeDefaultAndTheme(e,a),co(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,n=this.option;n.regions=XP.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=ha(n.regions||[],function(i,A){var o=A.name;return o&&(i.set(o,new Yt(A,e,e.ecModel)),A.selected&&(a[o]=!0)),i},ft()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Yt(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,n){var a=this.getRegionModel(e),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),A={name:e};if(vt(i))return A.status=n,i(A);if(nt(i))return i.replace("{a}",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,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[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}(Rt);function JT(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function tC(r,t,e,n){var a=r.getZoom(),i=r.getCenter(),A=t.zoom,o=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(o[0]-=t.dx,o[1]-=t.dy,r.setCenter(JT(r,o),n)),A!=null){if(e){var s=e.min||0,l=e.max||1/0;A=Math.max(Math.min(a*A,l),s)/a}r.scaleX*=A,r.scaleY*=A;var u=(t.originX-r.x)*(A-1),f=(t.originY-r.y)*(A-1);r.x-=u,r.y-=f,r.updateTransform(),r.setCenter(JT(r,o),n),r.setZoom(A*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var jZ=function(r){H(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,a,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new zP(a));var A=this._mapDraw;A.draw(e,n,a,this,i),A.group.on("click",this._handleRegionClick,this),A.group.silent=e.get("silent"),this.group.add(A.group),this.updateSelectStatus(e,n,a)},t.prototype._handleRegionClick=function(e){var n;XA(e.target,function(a){return(n=Ct(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(e,n,a){var i=this;this._mapDraw.group.traverse(function(A){var o=Ct(A).eventData;if(o)return i._model.isSelected(o.name)?a.enterSelect(A):a.leaveSelect(A),!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}(de);function t9(r,t,e){$a.registerMap(r,t,e)}function YP(r){r.registerCoordinateSystem("geo",XP),r.registerComponentModel(qZ),r.registerComponentView(jZ),r.registerImpl("registerMap",t9),r.registerImpl("getMap",function(e){return $a.getMapForUser(e)});function t(e,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var A={},o=[];return i.eachComponent({mainType:"geo",query:a},function(s){s[e](a.name);var l=s.coordinateSystem;T(l.regions,function(f){A[f.name]=s.isSelected(f.name)||!1});var u=[];T(A,function(f,c){A[c]&&u.push(c)}),o.push({geoIndex:s.componentIndex,name:u})}),{selected:A,allSelected:o,name:a.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,a){var i=e.componentType||"series";n.eachComponent({mainType:i,query:e},function(A){var o=A.coordinateSystem;if(o.type==="geo"){var s=tC(o,e,A.get("scaleLimit"),a);A.setCenter&&A.setCenter(s.center),A.setZoom&&A.setZoom(s.zoom),i==="series"&&T(A.seriesGroup,function(l){l.setCenter(s.center),l.setZoom(s.zoom)})}})})}function e9(r){Lt(YP),r.registerChartView(KZ),r.registerSeriesModel(zZ),r.registerLayout(YZ),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,XZ),$U("map",r.registerAction)}function r9(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,a;n=e.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,A=i-1;A>=0;A--){var o=a[A];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:A,thread:null},e.push(o)}}function n9(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){A9(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=o9(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function a9(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function qT(r){return arguments.length?r:u9}function au(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function i9(r,t){return Le(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function A9(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function o9(r,t,e,n){if(t){for(var a=r,i=r,A=i.parentNode.children[0],o=t,s=a.hierNode.modifier,l=i.hierNode.modifier,u=A.hierNode.modifier,f=o.hierNode.modifier;o=my(o),i=wy(i),o&&i;){a=my(a),A=wy(A),a.hierNode.ancestor=r;var c=o.hierNode.prelim+f-i.hierNode.prelim-l+n(o,i);c>0&&(l9(s9(o,r,e),r,c),l+=c,s+=c),f+=o.hierNode.modifier,l+=i.hierNode.modifier,s+=a.hierNode.modifier,u+=A.hierNode.modifier}o&&!my(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=f-s),i&&!wy(A)&&(A.hierNode.thread=i,A.hierNode.modifier+=l-u,e=r)}return e}function my(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function wy(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function s9(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function l9(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 u9(r,t){return r.parentNode===t.parentNode?1:2}var f9=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),c9=function(r){H(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 f9},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,A=n.parentPoint,o=a[0],s=a[i-1];if(i===1){e.moveTo(A[0],A[1]),e.lineTo(o[0],o[1]);return}var l=n.orient,u=l==="TB"||l==="BT"?0:1,f=1-u,c=et(n.forkPosition,1),h=[];h[u]=A[u],h[f]=A[f]+(s[f]-A[f])*c,e.moveTo(A[0],A[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[u]=o[u],e.lineTo(h[0],h[1]),h[u]=s[u],e.lineTo(h[0],h[1]),e.lineTo(s[0],s[1]);for(var v=1;v<i-1;v++){var d=a[v];e.moveTo(d[0],d[1]),h[u]=d[u],e.lineTo(h[0],h[1])}},t}(Mt),h9=function(r){H(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 Zf(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,n,a){var i=e.getData(),A=e.layoutInfo,o=this._mainGroup,s=e.get("layout");s==="radial"?(o.x=A.x+A.width/2,o.y=A.y+A.height/2):(o.x=A.x,o.y=A.y),this._updateViewCoordSys(e,a),this._updateController(e,n,a);var l=this._data;i.diff(l).add(function(u){jT(i,u)&&tI(i,u,null,o,e)}).update(function(u,f){var c=l.getItemGraphicEl(f);if(!jT(i,u)){c&&rI(l,f,c,o,e);return}tI(i,u,c,o,e)}).remove(function(u){var f=l.getItemGraphicEl(u);f&&rI(l,u,f,o,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(u,f){u.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:f})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,n){var a=e.getData(),i=[];a.each(function(f){var c=a.getItemLayout(f);c&&!isNaN(c.x)&&!isNaN(c.y)&&i.push([+c.x,+c.y])});var A=[],o=[];zd(i,A,o);var s=this._min,l=this._max;o[0]-A[0]===0&&(A[0]=s?s[0]:A[0]-1,o[0]=l?l[0]:o[0]+1),o[1]-A[1]===0&&(A[1]=s?s[1]:A[1]-1,o[1]=l?l[1]:o[1]+1);var u=e.coordinateSystem=new $f;u.zoomLimit=e.get("scaleLimit"),u.setBoundingRect(A[0],A[1],o[0]-A[0],o[1]-A[1]),u.setCenter(e.get("center"),n),u.setZoom(e.get("zoom")),this.group.attr({x:u.x,y:u.y,scaleX:u.scaleX,scaleY:u.scaleY}),this._min=A,this._max=o},t.prototype._updateController=function(e,n,a){var i=this,A=this._controller,o=this._controllerHost,s=this.group;A.setPointerChecker(function(l,u,f){var c=s.getBoundingRect();return c.applyTransform(s.transform),c.contain(u,f)&&!dp(l,a,e)}),A.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),A.off("pan").off("zoom").on("pan",function(l){J_(o,l.dx,l.dy),a.dispatchAction({seriesId:e.id,type:"treeRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){q_(o,l.scale,l.originX,l.originY),a.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:l.scale,originX:l.originX,originY:l.originY}),i._updateNodeAndLinkScale(e),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var n=e.getData(),a=this._getNodeGlobalScale(e);n.eachItemGraphicEl(function(i,A){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(e){var n=e.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,A=n.getZoom(),o=(A-1)*a+1;return o/i},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}(jt);function jT(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function tI(r,t,e,n,a){var i=!e,A=r.tree.getNodeByDataIndex(t),o=A.getModel(),s=A.getVisual("style").fill,l=A.isExpand===!1&&A.children.length!==0?s:"#fff",u=r.tree.root,f=A.parentNode===u?A:A.parentNode||A,c=r.getItemGraphicEl(f.dataIndex),h=f.getLayout(),v=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:h,d=A.getLayout();i?(e=new Gf(r,t,null,{symbolInnerColor:l,useNameLabel:!0}),e.x=v.x,e.y=v.y):e.updateData(r,t,null,{symbolInnerColor:l,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=d.rawX,e.__radialRawY=d.rawY,n.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,zt(e,{x:d.x,y:d.y},a);var p=e.getSymbolPath();if(a.get("layout")==="radial"){var g=u.children[0],y=g.getLayout(),m=g.children.length,w=void 0,_=void 0;if(d.x===y.x&&A.isExpand===!0&&g.children.length){var B={x:(g.children[0].getLayout().x+g.children[m-1].getLayout().x)/2,y:(g.children[0].getLayout().y+g.children[m-1].getLayout().y)/2};w=Math.atan2(B.y-y.y,B.x-y.x),w<0&&(w=Math.PI*2+w),_=B.x<y.x,_&&(w=w-Math.PI)}else w=Math.atan2(d.y-y.y,d.x-y.x),w<0&&(w=Math.PI*2+w),A.children.length===0||A.children.length!==0&&A.isExpand===!1?(_=d.x<y.x,_&&(w=w-Math.PI)):(_=d.x>y.x,_||(w=w-Math.PI));var C=_?"left":"right",S=o.getModel("label"),x=S.get("rotate"),b=x*(Math.PI/180),I=p.getTextContent();I&&(p.setTextConfig({position:S.get("position")||C,rotation:x==null?-w:b,origin:"center"}),I.setStyle("verticalAlign","middle"))}var F=o.get(["emphasis","focus"]),E=F==="relative"?yv(A.getAncestorsIndices(),A.getDescendantIndices()):F==="ancestor"?A.getAncestorsIndices():F==="descendant"?A.getDescendantIndices():null;E&&(Ct(e).focus=E),v9(a,A,u,e,v,h,d,n),e.__edge&&(e.onHoverStateChange=function(D){if(D!=="blur"){var Q=A.parentNode&&r.getItemGraphicEl(A.parentNode.dataIndex);Q&&Q.hoverState===Lf||Iv(e.__edge,D)}})}function v9(r,t,e,n,a,i,A,o){var s=t.getModel(),l=r.get("edgeShape"),u=r.get("layout"),f=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=s.getModel("lineStyle").getLineStyle(),d=n.__edge;if(l==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=n.__edge=new Uf({shape:lw(u,f,c,a,a)})),zt(d,{shape:lw(u,f,c,i,A)},r));else if(l==="polyline"&&u==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,g=[],y=0;y<p.length;y++){var m=p[y].getLayout();g.push([m.x,m.y])}d||(d=n.__edge=new c9({shape:{parentPoint:[A.x,A.y],childPoints:[[A.x,A.y]],orient:f,forkPosition:h}})),zt(d,{shape:{parentPoint:[A.x,A.y],childPoints:g}},r)}d&&!(l==="polyline"&&!t.isExpand)&&(d.useStyle(gt({strokeNoScale:!0,fill:null},v)),$e(d,s,"lineStyle"),po(d),o.add(d))}function eI(r,t,e,n,a){var i=t.tree.root,A=ZP(i,r),o=A.source,s=A.sourceLayout,l=t.getItemGraphicEl(r.dataIndex);if(l){var u=t.getItemGraphicEl(o.dataIndex),f=u.__edge,c=l.__edge||(o.isExpand===!1||o.children.length===1?f:void 0),h=n.get("edgeShape"),v=n.get("layout"),d=n.get("orient"),p=n.get(["lineStyle","curveness"]);c&&(h==="curve"?Xi(c,{shape:lw(v,d,p,s,s),style:{opacity:0}},n,{cb:function(){e.remove(c)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&Xi(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},n,{cb:function(){e.remove(c)},removeOpt:a}))}}function ZP(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 rI(r,t,e,n,a){var i=r.tree.getNodeByDataIndex(t),A=r.tree.root,o=ZP(A,i).sourceLayout,s={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Xi(e,{x:o.x+1,y:o.y+1},a,{cb:function(){n.remove(e),r.setItemGraphicEl(t,null)},removeOpt:s}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:s}),i.children.forEach(function(l){eI(l,r,n,a,s)}),eI(i,r,n,a,s)}function lw(r,t,e,n,a){var i,A,o,s,l,u,f,c;if(r==="radial"){l=n.rawX,f=n.rawY,u=a.rawX,c=a.rawY;var h=au(l,f),v=au(l,f+(c-f)*e),d=au(u,c+(f-c)*e),p=au(u,c);return{x1:h.x||0,y1:h.y||0,x2:p.x||0,y2:p.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:d.x||0,cpy2:d.y||0}}else l=n.x,f=n.y,u=a.x,c=a.y,(t==="LR"||t==="RL")&&(i=l+(u-l)*e,A=f,o=u+(l-u)*e,s=c),(t==="TB"||t==="BT")&&(i=l,A=f+(c-f)*e,o=u,s=c+(f-c)*e);return{x1:l,y1:f,x2:u,y2:c,cpx1:i,cpy1:A,cpx2:o,cpy2:s}}var dn=Vt();function $P(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,JP(t,e,r),T(e,function(n){T(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,bt(d9,r))})}),t.wrapMethod("cloneShallow",bt(g9,r)),T(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,bt(p9,r))}),Br(e[t.dataType]===t)}function d9(r,t){if(w9(this)){var e=V({},dn(this).datas);e[this.dataType]=t,JP(t,e,r)}else eC(t,this.dataType,dn(this).mainData,r);return t}function p9(r,t){return r.struct&&r.struct.update(),t}function g9(r,t){return T(dn(t).datas,function(e,n){e!==t&&eC(e.cloneShallow(),n,t,r)}),t}function y9(r){var t=dn(this).mainData;return r==null||t==null?t:dn(t).datas[r]}function m9(){var r=dn(this).mainData;return r==null?[{data:r}]:Y(Ht(dn(r).datas),function(t){return{type:t,data:dn(r).datas[t]}})}function w9(r){return dn(r).mainData===r}function JP(r,t,e){dn(r).datas={},T(t,function(n,a){eC(n,a,r,e)})}function eC(r,t,e,n){dn(e).datas[t]=r,dn(r).mainData=e,r.dataType=t,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=r),r.getLinkedData=y9,r.getLinkedDataAll=m9}var B9=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 a=t.order||"preorder",i=this[t.attr||"children"],A;a==="preorder"&&(A=e.call(n,this));for(var o=0;!A&&o<i.length;o++)i[o].eachNode(t,e,n);a==="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 a=this.children[n];a.updateDepthAndHeight(t+1),a.height>e&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e<a;e++){var i=n[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,a=n.length;e<a;e++){var i=n[e].contains(t);if(i)return i}},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}(),rC=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,a=e.length;n<a;n++)e[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)e[t.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,n){var a=new r(e),i=[],A=1;o(t);function o(u,f){var c=u.value;A=Math.max(A,K(c)?c.length:1),i.push(u);var h=new B9(De(u.name,""),a);f?_9(h,f):a.root=h,a._nodes.push(h);var v=u.children;if(v)for(var d=0;d<v.length;d++)o(v[d],h)}a.root.updateDepthAndHeight(0);var s=Nf(i,{coordDimensions:["value"],dimensionsCount:A}).dimensions,l=new mr(s,e);return l.initData(i),n&&n(l),$P({mainData:l,struct:a,structAttr:"tree"}),a.update(),a},r}();function _9(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}function gf(r,t,e){if(r&&Qt(t,r.type)>=0){var n=e.getData().tree.root,a=r.targetNode;if(nt(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function qP(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function nC(r,t){var e=qP(r);return Qt(e,t)>=0}function gp(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 C9=function(r){H(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},a=e.leaves||{},i=new Yt(a,this,this.ecModel),A=rC.createTree(n,this,o);function o(f){f.wrapMethod("getItemModel",function(c,h){var v=A.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(c.parentModel=i),c})}var s=0;A.eachNode("preorder",function(f){f.depth>s&&(s=f.depth)});var l=e.expandAndCollapse,u=l&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return A.root.eachNode("preorder",function(f){var c=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=c&&c.collapsed!=null?!c.collapsed:f.depth<=u}),A.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,a){for(var i=this.getData().tree,A=i.root.children[0],o=i.getNodeByDataIndex(e),s=o.getValue(),l=o.name;o&&o!==A;)l=o.parentNode.name+"."+l,o=o.parentNode;return ke("nameValue",{name:l,value:s,noValue:isNaN(s)||s==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=gp(a,this),n.collapsed=!a.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}(se);function S9(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var A=i.children;if(A.length)for(var o=0;o<A.length;o++)n.push(A[o])}for(;i=a.pop();)t(i,e)}function Pl(r,t){for(var e=[r],n;n=e.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)e.push(a[i])}}function x9(r,t){r.eachSeriesByType("tree",function(e){b9(e,t)})}function b9(r,t){var e=i9(r,t);r.layoutInfo=e;var n=r.get("layout"),a=0,i=0,A=null;n==="radial"?(a=2*Math.PI,i=Math.min(e.height,e.width)/2,A=qT(function(m,w){return(m.parentNode===w.parentNode?1:2)/m.depth})):(a=e.width,i=e.height,A=qT());var o=r.getData().tree.root,s=o.children[0];if(s){r9(o),S9(s,n9,A),o.hierNode.modifier=-s.hierNode.prelim,Pl(s,a9);var l=s,u=s,f=s;Pl(s,function(m){var w=m.getLayout().x;w<l.getLayout().x&&(l=m),w>u.getLayout().x&&(u=m),m.depth>f.depth&&(f=m)});var c=l===u?1:A(l,u)/2,h=c-l.getLayout().x,v=0,d=0,p=0,g=0;if(n==="radial")v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Pl(s,function(m){p=(m.getLayout().x+h)*v,g=(m.depth-1)*d;var w=au(p,g);m.setLayout({x:w.x,y:w.y,rawX:p,rawY:g},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(d=i/(u.getLayout().x+c+h),v=a/(f.depth-1||1),Pl(s,function(m){g=(m.getLayout().x+h)*d,p=y==="LR"?(m.depth-1)*v:a-(m.depth-1)*v,m.setLayout({x:p,y:g},!0)})):(y==="TB"||y==="BT")&&(v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Pl(s,function(m){p=(m.getLayout().x+h)*v,g=y==="TB"?(m.depth-1)*d:i-(m.depth-1)*d,m.setLayout({x:p,y:g},!0)}))}}}function T9(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),A=i.getModel("itemStyle").getItemStyle(),o=e.ensureUniqueItemVisual(a.dataIndex,"style");V(o,A)})})}function I9(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,A=i.getNodeByDataIndex(a);A.isExpand=!A.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,A=tC(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}function F9(r){r.registerChartView(h9),r.registerSeriesModel(C9),r.registerLayout(x9),r.registerVisual(T9),I9(r)}var nI=["treemapZoomToNode","treemapRender","treemapMove"];function E9(r){for(var t=0;t<nI.length;t++)r.registerAction({type:nI[t],update:"updateView"},Be);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"treemap",query:e},a);function a(i,A){var o=["treemapZoomToNode","treemapRootToNode"],s=gf(e,o,i);if(s){var l=i.getViewRoot();l&&(e.direction=nC(l,s.node)?"rollUp":"drillDown"),i.resetViewRoot(s.node)}}})}function jP(r){var t=r.getData(),e=t.tree,n={};e.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var A=R0(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",A)})}var D9=function(r){H(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 a={name:e.name,children:e.data};tR(a);var i=e.levels||[],A=this.designatedVisualItemStyle={},o=new Yt({itemStyle:A},this,n);i=e.levels=Q9(i,n);var s=Y(i||[],function(f){return new Yt(f,o,n)},this),l=rC.createTree(a,this,u);function u(f){f.wrapMethod("getItemModel",function(c,h){var v=l.getNodeByDataIndex(h),d=v?s[v.depth]:null;return c.parentModel=d||o,c})}return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),A=this.getRawValue(e),o=i.getName(e);return ke("nameValue",{name:o,value:A})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=gp(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ft(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},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(){jP(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}(se);function tR(r){var t=0;T(r.children,function(n){tR(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}function Q9(r,t){var e=qt(t.get("color")),n=qt(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;T(r,function(o){var s=new Yt(o),l=s.get("color"),u=s.get("decal");(s.get(["itemStyle","color"])||l&&l!=="none")&&(a=!0),(s.get(["itemStyle","decal"])||u&&u!=="none")&&(i=!0)});var A=r[0]||(r[0]={});return a||(A.color=e.slice()),!i&&n&&(A.decal=n.slice()),r}}var L9=8,aI=8,By=5,M9=function(){function r(t){this.group=new _t,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),A=this.group;if(A.removeAll(),!(!i.get("show")||!n)){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,l),this._renderContent(t,f,o,s,l,u,a),ap(A,f.pos,f.box)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=De(a.getModel().get("name"),""),A=n.getTextRect(i),o=Math.max(A.width+L9*2,e.emptyItemWidth);e.totalWidth+=o+aI,e.renderList.push({node:a,text:i,width:o})}},r.prototype._renderContent=function(t,e,n,a,i,A,o){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),f=K3(e.pos,e.box),c=e.totalWidth,h=e.renderList,v=a.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var p=h[d],g=p.node,y=p.width,m=p.text;c>f.width&&(c-=y-l,y=l,m=null);var w=new Sr({shape:{points:U9(s,0,y,u,d===h.length-1,d===0)},style:gt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gt({style:oe(i,{text:m})}),textConfig:{position:"inside"},z2:Js*1e4,onclick:bt(o,g)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=oe(A,{text:m}),w.ensureState("emphasis").style=v,ye(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),P9(w,t,g),s+=y+aI}},r.prototype.remove=function(){this.group.removeAll()},r}();function U9(r,t,e,n,a,i){var A=[[a?r:r-By,t],[r+e,t],[r+e,t+n],[a?r:r-By,t+n]];return!i&&A.splice(2,0,[r+e+By,t+n/2]),!a&&A.push([r,t+n/2]),A}function P9(r,t,e){Ct(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&&gp(e,t)}}var R9=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var A=this._storage[a];A.el.animateTo(A.target,{duration:A.duration,delay:A.delay,easing:A.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function H9(){return new R9}var uw=_t,iI=Nt,AI=3,oI="label",sI="upperLabel",O9=Js*10,k9=Js*2,N9=Js*3,MA=vo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),lI=function(r){var t=MA(r);return t.stroke=t.fill=t.lineWidth=null,t},$v=Vt(),V9=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=Rl(),e}return t.prototype.render=function(e,n,a,i){var A=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Qt(A,e)<0)){this.seriesModel=e,this.api=a,this.ecModel=n;var o=["treemapZoomToNode","treemapRootToNode"],s=gf(i,o,e),l=i&&i.type,u=e.layoutInfo,f=!this._oldTree,c=this._storage,h=l==="treemapRootToNode"&&s&&c?{rootNodeGroup:c.nodeGroup[s.node.getRawIndex()],direction:i.direction}:null,v=this._giveContainerGroup(u),d=e.get("animation"),p=this._doRender(v,e,h);d&&!f&&(!l||l==="treemapZoomToNode"||l==="treemapRootToNode")?this._doAnimation(v,p,e,h):p.renderFinally(),this._resetController(a),this._renderBreadcrumb(e,a,s)}},t.prototype._giveContainerGroup=function(e){var n=this._containerGroup;return n||(n=this._containerGroup=new uw,this._initEvents(n),this.group.add(n)),n.x=e.x,n.y=e.y,n},t.prototype._doRender=function(e,n,a){var i=n.getData().tree,A=this._oldTree,o=Rl(),s=Rl(),l=this._storage,u=[];function f(y,m,w,_){return G9(n,s,l,a,o,u,y,m,w,_)}d(i.root?[i.root]:[],A&&A.root?[A.root]:[],e,i===A||!A,0);var c=p(l);if(this._oldTree=i,this._storage=s,this._controllerHost){var h=this.seriesModel.layoutInfo,v=i.root.getLayout();v.width===h.width&&v.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:c,renderFinally:g};function d(y,m,w,_,B){_?(m=y,T(y,function(x,b){!x.isRemoved()&&S(b,b)})):new Ya(m,y,C,C).add(S).update(S).remove(bt(S,null)).execute();function C(x){return x.getId()}function S(x,b){var I=x!=null?y[x]:null,F=b!=null?m[b]:null,E=f(I,F,w,B);E&&d(I&&I.viewChildren||[],F&&F.viewChildren||[],E,_,B+1)}}function p(y){var m=Rl();return y&&T(y,function(w,_){var B=m[_];T(w,function(C){C&&(B.push(C),$v(C).willDelete=!0)})}),m}function g(){T(c,function(y){T(y,function(m){m.parent&&m.parent.remove(m)})}),T(u,function(y){y.invisible=!0,y.dirty()})}},t.prototype._doAnimation=function(e,n,a,i){var A=a.get("animationDurationUpdate"),o=a.get("animationEasing"),s=(vt(A)?0:A)||0,l=(vt(o)?null:o)||"cubicOut",u=H9();T(n.willDeleteEls,function(f,c){T(f,function(h,v){if(!h.invisible){var d=h.parent,p,g=$v(d);if(i&&i.direction==="drillDown")p=d===i.rootNodeGroup?{shape:{x:0,y:0,width:g.nodeWidth,height:g.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,m=0;g.willDelete||(y=g.nodeWidth/2,m=g.nodeHeight/2),p=c==="nodeGroup"?{x:y,y:m,style:{opacity:0}}:{shape:{x:y,y:m,width:0,height:0},style:{opacity:0}}}p&&u.add(h,p,s,0,l)}})}),T(this._storage,function(f,c){T(f,function(h,v){var d=n.lastsForAnimation[c][v],p={};d&&(h instanceof _t?d.oldX!=null&&(p.x=h.x,p.y=h.y,h.x=d.oldX,h.y=d.oldY):(d.oldShape&&(p.shape=V({},h.shape),h.setShape(d.oldShape)),d.fadein?(h.setStyle("opacity",0),p.style={opacity:1}):h.style.opacity!==1&&(p.style={opacity:1})),u.add(h,p,s,0,l))})},this),this._state="animating",u.finished(it(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(e){var n=this._controller,a=this._controllerHost;a||(this._controllerHost={target:this.group},a=this._controllerHost),n||(n=this._controller=new Zf(e.getZr()),n.enable(this.seriesModel.get("roam")),a.zoomLimit=this.seriesModel.get("scaleLimit"),a.zoom=this.seriesModel.get("zoom"),n.on("pan",it(this._onPan,this)),n.on("zoom",it(this._onZoom,this)));var i=new Dt(0,0,e.getWidth(),e.getHeight());n.setPointerChecker(function(A,o,s){return i.contain(o,s)})},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)>AI||Math.abs(e.dy)>AI)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY,i=e.scale;if(this._state!=="animating"){var A=this.seriesModel.getData().tree.root;if(!A)return;var o=A.getLayout();if(!o)return;var s=new Dt(o.x,o.y,o.width,o.height),l=null,u=this._controllerHost;l=u.zoomLimit;var f=u.zoom=u.zoom||1;if(f*=i,l){var c=l.min||0,h=l.max||1/0;f=Math.max(Math.min(h,f),c)}var v=f/u.zoom;u.zoom=f;var d=this.seriesModel.layoutInfo;n-=d.x,a-=d.y;var p=Wr();va(p,p,[-n,-a]),WB(p,p,[v,v]),va(p,p,[n,a]),s.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var A=n.findTarget(a.offsetX,a.offsetY);if(A){var o=A.node;if(o.getLayout().isLeafRoot)n._rootToNode(A);else if(i==="zoomToNode")n._zoomToNode(A);else if(i==="link"){var s=o.hostTree.data.getItemModel(o.dataIndex),l=s.get("link",!0),u=s.get("target",!0)||"blank";l&&Mv(l,u)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new M9(this.group))).render(e,n,a.node,function(A){i._state!=="animating"&&(nC(e.getViewRoot(),A)?i._rootToNode({node:A}):i._zoomToNode({node:A}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Rl(),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 a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(A){var o=this._storage.background[A.getRawIndex()];if(o){var s=o.transformCoordToLocal(e,n),l=o.shape;if(l.x<=s[0]&&s[0]<=l.x+l.width&&l.y<=s[1]&&s[1]<=l.y+l.height)a={node:A,offsetX:s[0],offsetY:s[1]};else return!1}},this),a},t.type="treemap",t}(jt);function Rl(){return{nodeGroup:[],background:[],content:[]}}function G9(r,t,e,n,a,i,A,o,s,l){if(!A)return;var u=A.getLayout(),f=r.getData(),c=A.getModel();if(f.setItemGraphicEl(A.dataIndex,null),!u||!u.isInView)return;var h=u.width,v=u.height,d=u.borderWidth,p=u.invisible,g=A.getRawIndex(),y=o&&o.getRawIndex(),m=A.viewChildren,w=u.upperHeight,_=m&&m.length,B=c.getModel("itemStyle"),C=c.getModel(["emphasis","itemStyle"]),S=c.getModel(["blur","itemStyle"]),x=c.getModel(["select","itemStyle"]),b=B.get("borderRadius")||0,I=lt("nodeGroup",uw);if(!I)return;if(s.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),$v(I).nodeWidth=h,$v(I).nodeHeight=v,u.isAboveViewRoot)return I;var F=lt("background",iI,l,k9);F&&O(I,F,_&&u.upperLabelHeight);var E=c.getModel("emphasis"),D=E.get("focus"),Q=E.get("blurScope"),M=E.get("disabled"),R=D==="ancestor"?A.getAncestorsIndices():D==="descendant"?A.getDescendantIndices():D;if(_)nf(I)&&zA(I,!1),F&&(zA(F,!M),f.setItemGraphicEl(A.dataIndex,F),F0(F,R,Q));else{var P=lt("content",iI,l,N9);P&&G(I,P),F.disableMorphing=!0,F&&nf(F)&&zA(F,!1),zA(I,!M),f.setItemGraphicEl(A.dataIndex,I),F0(I,R,Q)}return I;function O(N,z,$){var q=Ct(z);if(q.dataIndex=A.dataIndex,q.seriesIndex=r.seriesIndex,z.setShape({x:0,y:0,width:h,height:v,r:b}),p)X(z);else{z.invisible=!1;var j=A.getVisual("style"),ct=j.stroke,L=lI(B);L.fill=ct;var U=MA(C);U.fill=C.get("borderColor");var k=MA(S);k.fill=S.get("borderColor");var Z=MA(x);if(Z.fill=x.get("borderColor"),$){var W=h-2*d;J(z,ct,j.opacity,{x:d,y:0,width:W,height:w})}else z.removeTextContent();z.setStyle(L),z.ensureState("emphasis").style=U,z.ensureState("blur").style=k,z.ensureState("select").style=Z,po(z)}N.add(z)}function G(N,z){var $=Ct(z);$.dataIndex=A.dataIndex,$.seriesIndex=r.seriesIndex;var q=Math.max(h-2*d,0),j=Math.max(v-2*d,0);if(z.culling=!0,z.setShape({x:d,y:d,width:q,height:j,r:b}),p)X(z);else{z.invisible=!1;var ct=A.getVisual("style"),L=ct.fill,U=lI(B);U.fill=L,U.decal=ct.decal;var k=MA(C),Z=MA(S),W=MA(x);J(z,L,ct.opacity,null),z.setStyle(U),z.ensureState("emphasis").style=k,z.ensureState("blur").style=Z,z.ensureState("select").style=W,po(z)}N.add(z)}function X(N){!N.invisible&&i.push(N)}function J(N,z,$,q){var j=c.getModel(q?sI:oI),ct=De(c.get("name"),null),L=j.getShallow("show");Je(N,Oe(c,q?sI:oI),{defaultText:L?ct:null,inheritColor:z,defaultOpacity:$,labelFetcher:r,labelDataIndex:A.dataIndex});var U=N.getTextContent();if(U){var k=U.style,Z=GB(k.padding||0);q&&(N.setTextConfig({layoutRect:q}),U.disableLabelLayout=!0),U.beforeUpdate=function(){var tt=Math.max((q?q.width:N.shape.width)-Z[1]-Z[3],0),ot=Math.max((q?q.height:N.shape.height)-Z[0]-Z[2],0);(k.width!==tt||k.height!==ot)&&U.setStyle({width:tt,height:ot})},k.truncateMinChar=2,k.lineOverflow="truncate",At(k,q,u);var W=U.getState("emphasis");At(W?W.style:null,q,u)}}function At(N,z,$){var q=N?N.text:null;if(!z&&$.isLeafRoot&&q!=null){var j=r.get("drillDownIcon",!0);N.text=j?j+" "+q:q}}function lt(N,z,$,q){var j=y!=null&&e[N][y],ct=a[N];return j?(e[N][y]=null,wt(ct,j)):p||(j=new z,j instanceof gn&&(j.z2=K9($,q)),Bt(ct,j)),t[N][g]=j}function wt(N,z){var $=N[g]={};z instanceof uw?($.oldX=z.x,$.oldY=z.y):$.oldShape=V({},z.shape)}function Bt(N,z){var $=N[g]={},q=A.parentNode,j=z instanceof _t;if(q&&(!n||n.direction==="drillDown")){var ct=0,L=0,U=a.background[q.getRawIndex()];!n&&U&&U.oldShape&&(ct=U.oldShape.width,L=U.oldShape.height),j?($.oldX=0,$.oldY=L):$.oldShape={x:ct,y:L,width:0,height:0}}$.fadein=!j}}function K9(r,t){return r*O9+t}var yf=T,z9=yt,Jv=-1,He=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=mt(t);this.type=n,this.mappingMethod=e,this._normalizeData=Y9[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(_y(a),W9(a)):e==="category"?a.categories?X9(a):_y(a,!0):(Br(e!=="linear"||a.dataExtent),_y(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return it(this._normalizeData,this)},r.listVisualTypes=function(){return Ht(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){yt(t)?T(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=K(t)?[]:yt(t)?{}:(a=!0,null);return r.eachVisual(t,function(A,o){var s=e.call(n,A,o);a?i=s:i[o]=s}),i},r.retrieveVisuals=function(t){var e={},n;return t&&yf(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(K(t))t=t.slice();else if(z9(t)){var e=[];yf(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="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 a,i=1/0,A=0,o=e.length;A<o;A++){var s=e[A].value;if(s!=null){if(s===t||nt(s)&&s===t+"")return A;n&&c(s,A)}}for(var A=0,o=e.length;A<o;A++){var l=e[A],u=l.interval,f=l.close;if(u){if(u[0]===-1/0){if($c(f[1],t,u[1]))return A}else if(u[1]===1/0){if($c(f[0],u[0],t))return A}else if($c(f[0],u[0],t)&&$c(f[1],t,u[1]))return A;n&&c(u[0],A),n&&c(u[1],A)}}if(n)return t===1/0?e.length-1:t===-1/0?0:a;function c(h,v){var d=Math.abs(h-t);d<i&&(i=d,a=v)}},r.visualHandlers={color:{applyVisual:Hl("color"),getColorMapper:function(){var t=this.option;return it(t.mappingMethod==="category"?function(e,n){return!n&&(e=this._normalizeData(e)),iu.call(this,e)}:function(e,n,a){var i=!!a;return!n&&(e=this._normalizeData(e)),a=rg(e,t.parsedVisual,a),i?a:Oa(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Oa(rg(t,this.option.parsedVisual),"rgba")},category:iu,piecewise:function(t,e){var n=cw.call(this,e);return n==null&&(n=Oa(rg(t,this.option.parsedVisual),"rgba")),n},fixed:UA}},colorHue:Zc(function(t,e){return Su(t,e)}),colorSaturation:Zc(function(t,e){return Su(t,null,e)}),colorLightness:Zc(function(t,e){return Su(t,null,null,e)}),colorAlpha:Zc(function(t,e){return _v(t,e)}),decal:{applyVisual:Hl("decal"),_normalizedToVisual:{linear:null,category:iu,piecewise:null,fixed:null}},opacity:{applyVisual:Hl("opacity"),_normalizedToVisual:fw([0,1])},liftZ:{applyVisual:Hl("liftZ"),_normalizedToVisual:{linear:UA,category:UA,piecewise:UA,fixed:UA}},symbol:{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:uI,category:iu,piecewise:function(t,e){var n=cw.call(this,e);return n==null&&(n=uI.call(this,t)),n},fixed:UA}},symbolSize:{applyVisual:Hl("symbolSize"),_normalizedToVisual:fw([0,1])}},r}();function W9(r){var t=r.pieceList;r.hasSpecialVisual=!1,T(t,function(e,n){e.originIndex=n,e.visual!=null&&(r.hasSpecialVisual=!0)})}function X9(r){var t=r.categories,e=r.categoryMap={},n=r.visual;if(yf(t,function(A,o){e[A]=o}),!K(n)){var a=[];yt(n)?yf(n,function(A,o){var s=e[o];a[s??Jv]=A}):a[Jv]=n,n=eR(r,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function _y(r,t){var e=r.visual,n=[];yt(e)?yf(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),eR(r,n)}function Zc(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:fw([0,1])}}function uI(r){var t=this.option.visual;return t[Math.round($t(r,[0,1],[0,t.length-1],!0))]||{}}function Hl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function iu(r){var t=this.option.visual;return t[this.option.loop&&r!==Jv?r%t.length:r]}function UA(){return this.option.visual[0]}function fw(r){return{linear:function(t){return $t(t,r,this.option.visual,!0)},category:iu,piecewise:function(t,e){var n=cw.call(this,e);return n==null&&(n=$t(t,r,this.option.visual,!0)),n},fixed:UA}}function cw(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=He.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function eR(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var n=Xr(e);return n||[0,0,0,1]})),t}var Y9={linear:function(r){return $t(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=He.findPieceIndex(r,t,!0);if(e!=null)return $t(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Jv},fixed:Be};function $c(r,t,e){return r?t<=e:t<e}var Z9="itemStyle",rR=Vt();const $9={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||nR(e,{},r.getViewRoot().getAncestors(),r)}};function nR(r,t,e,n){var a=r.getModel(),i=r.getLayout(),A=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var o=a.getModel(Z9),s=J9(o,t,n),l=A.ensureUniqueItemVisual(r.dataIndex,"style"),u=o.get("borderColor"),f=o.get("borderColorSaturation"),c;f!=null&&(c=fI(s),u=q9(f,c)),l.stroke=u;var h=r.viewChildren;if(!h||!h.length)c=fI(s),l.fill=c;else{var v=j9(r,a,i,o,s,h);T(h,function(d,p){if(d.depth>=e.length||d===e[d.depth]){var g=t7(a,s,d,p,v,n);nR(d,g,e,n)}})}}}function J9(r,t,e){var n=V({},t),a=e.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var A=r.get(i);a[i]=null,A!=null&&(n[i]=A)}),n}function fI(r){var t=Cy(r,"color");if(t){var e=Cy(r,"colorAlpha"),n=Cy(r,"colorSaturation");return n&&(t=Su(t,null,null,n)),e&&(t=_v(t,e)),t}}function q9(r,t){return t!=null?Su(t,null,null,r):null}function Cy(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function j9(r,t,e,n,a,i){if(!(!i||!i.length)){var A=Sy(t,"color")||a.color!=null&&a.color!=="none"&&(Sy(t,"colorAlpha")||Sy(t,"colorSaturation"));if(A){var o=t.get("visualMin"),s=t.get("visualMax"),l=e.dataExtent.slice();o!=null&&o<l[0]&&(l[0]=o),s!=null&&s>l[1]&&(l[1]=s);var u=t.get("colorMappingBy"),f={type:A.name,dataExtent:l,visual:A.range};f.type==="color"&&(u==="index"||u==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var c=new He(f);return rR(c).drColorMappingBy=u,c}}}function Sy(r,t){var e=r.get(t);return K(e)&&e.length?{name:t,range:e}:null}function t7(r,t,e,n,a,i){var A=V({},t);if(a){var o=a.type,s=o==="color"&&rR(a).drColorMappingBy,l=s==="index"?n:s==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));A[o]=a.mapValueToVisual(l)}return A}var mf=Math.max,qv=Math.min,cI=Ge,aC=T,aR=["itemStyle","borderWidth"],e7=["itemStyle","gapWidth"],r7=["upperLabel","show"],n7=["upperLabel","height"];const a7={seriesType:"treemap",reset:function(r,t,e,n){var a=e.getWidth(),i=e.getHeight(),A=r.option,o=Le(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),s=A.size||[],l=et(cI(o.width,s[0]),a),u=et(cI(o.height,s[1]),i),f=n&&n.type,c=["treemapZoomToNode","treemapRootToNode"],h=gf(n,c,r),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),p=qP(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?u7(r,h,d,l,u):v?[v.width,v.height]:[l,u],y=A.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:A.squareRatio,sort:y,leafDepth:A.leafDepth};d.hostTree.clearLayouts();var w={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(w),iR(d,m,!1,0),w=d.getLayout(),aC(p,function(B,C){var S=(p[C+1]||d).getValue();B.setLayout(V({dataExtent:[S,S],borderWidth:0,upperHeight:0},w))})}var _=r.getData().tree.root;_.setLayout(f7(o,v,h),!0),r.setLayoutInfo(o),AR(_,new Dt(-o.x,-o.y,a,i),p,d,0)}};function iR(r,t,e,n){var a,i;if(!r.isRemoved()){var A=r.getLayout();a=A.width,i=A.height;var o=r.getModel(),s=o.get(aR),l=o.get(e7)/2,u=oR(o),f=Math.max(s,u),c=s-l,h=f-l;r.setLayout({borderWidth:s,upperHeight:f,upperLabelHeight:u},!0),a=mf(a-2*c,0),i=mf(i-c-h,0);var v=a*i,d=i7(r,o,v,t,e,n);if(d.length){var p={x:c,y:h,width:a,height:i},g=qv(a,i),y=1/0,m=[];m.area=0;for(var w=0,_=d.length;w<_;){var B=d[w];m.push(B),m.area+=B.getLayout().area;var C=l7(m,g,t.squareRatio);C<=y?(w++,y=C):(m.area-=m.pop().getLayout().area,hI(m,g,p,l,!1),g=qv(p.width,p.height),m.length=m.area=0,y=1/0)}if(m.length&&hI(m,g,p,l,!0),!e){var S=o.get("childrenVisibleMin");S!=null&&v<S&&(e=!0)}for(var w=0,_=d.length;w<_;w++)iR(d[w],t,e,n+1)}}}function i7(r,t,e,n,a,i){var A=r.children||[],o=n.sort;o!=="asc"&&o!=="desc"&&(o=null);var s=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!s)return r.viewChildren=[];A=Jt(A,function(h){return!h.isRemoved()}),o7(A,o);var l=s7(t,A,o);if(l.sum===0)return r.viewChildren=[];if(l.sum=A7(t,e,l.sum,o,A),l.sum===0)return r.viewChildren=[];for(var u=0,f=A.length;u<f;u++){var c=A[u].getValue()/l.sum*e;A[u].setLayout({area:c})}return s&&(A.length&&r.setLayout({isLeafRoot:!0},!0),A.length=0),r.viewChildren=A,r.setLayout({dataExtent:l.dataExtent},!0),A}function A7(r,t,e,n,a){if(!n)return e;for(var i=r.get("visibleMin"),A=a.length,o=A,s=A-1;s>=0;s--){var l=a[n==="asc"?A-s-1:s].getValue();l/e*t<i&&(o=s,e-=l)}return n==="asc"?a.splice(0,A-o):a.splice(o,A-o),e}function o7(r,t){return t&&r.sort(function(e,n){var a=t==="asc"?e.getValue()-n.getValue():n.getValue()-e.getValue();return a===0?t==="asc"?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:a}),r}function s7(r,t,e){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].getValue();var A=r.get("visualDimension"),o;return!t||!t.length?o=[NaN,NaN]:A==="value"&&e?(o=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&o.reverse()):(o=[1/0,-1/0],aC(t,function(s){var l=s.getValue(A);l<o[0]&&(o[0]=l),l>o[1]&&(o[1]=l)})),{sum:n,dataExtent:o}}function l7(r,t,e){for(var n=0,a=1/0,i=0,A=void 0,o=r.length;i<o;i++)A=r[i].getLayout().area,A&&(A<a&&(a=A),A>n&&(n=A));var s=r.area*r.area,l=t*t*e;return s?mf(l*n/s,s/(l*a)):1/0}function hI(r,t,e,n,a){var i=t===e.width?0:1,A=1-i,o=["x","y"],s=["width","height"],l=e[o[i]],u=t?r.area/t:0;(a||u>e[s[A]])&&(u=e[s[A]]);for(var f=0,c=r.length;f<c;f++){var h=r[f],v={},d=u?h.getLayout().area/u:0,p=v[s[A]]=mf(u-2*n,0),g=e[o[i]]+e[s[i]]-l,y=f===c-1||g<d?g:d,m=v[s[i]]=mf(y-2*n,0);v[o[A]]=e[o[A]]+qv(n,p/2),v[o[i]]=l+qv(n,m/2),l+=y,h.setLayout(v,!0)}e[o[A]]+=u,e[s[A]]-=u}function u7(r,t,e,n,a){var i=(t||{}).node,A=[n,a];if(!i||i===e)return A;for(var o,s=n*a,l=s*r.option.zoomToNodeRatio;o=i.parentNode;){for(var u=0,f=o.children,c=0,h=f.length;c<h;c++)u+=f[c].getValue();var v=i.getValue();if(v===0)return A;l*=u/v;var d=o.getModel(),p=d.get(aR),g=Math.max(p,oR(d));l+=4*p*p+(3*p+g)*Math.pow(l,.5),l>xS&&(l=xS),i=o}l<s&&(l=s);var y=Math.pow(l/s,.5);return[n*y,a*y]}function f7(r,t,e){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!e)return n;var a=e.node,i=a.getLayout();if(!i)return n;for(var A=[i.width/2,i.height/2],o=a;o;){var s=o.getLayout();A[0]+=s.x,A[1]+=s.y,o=o.parentNode}return{x:r.width/2-A[0],y:r.height/2-A[1]}}function AR(r,t,e,n,a){var i=r.getLayout(),A=e[a],o=A&&A===r;if(!(A&&!o||a===e.length&&r!==n)){r.setLayout({isInView:!0,invisible:!o&&!t.intersect(i),isAboveViewRoot:o},!0);var s=new Dt(t.x-i.x,t.y-i.y,t.width,t.height);aC(r.viewChildren||[],function(l){AR(l,s,e,n,a+1)})}}function oR(r){return r.get(r7)?r.get(n7):0}function c7(r){r.registerSeriesModel(D9),r.registerChartView(V9),r.registerVisual($9),r.registerLayout(a7),E9(r)}function h7(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),a=e.getGraph(),i=a.data,A=n.mapArray(n.getName);i.filterSelf(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){Kt(l)&&(l=A[l]);for(var u=0;u<t.length;u++)if(!t[u].isSelected(l))return!1}return!0})})}function v7(r){var t={};r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),a=e.getData(),i={};n.each(function(A){var o=n.getName(A);i["ec-"+o]=A;var s=n.getItemModel(A),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e.getColorFromPalette(o,t)),n.setItemVisual(A,"style",l);for(var u=["symbol","symbolSize","symbolKeepAspect"],f=0;f<u.length;f++){var c=s.getShallow(u[f],!0);c!=null&&n.setItemVisual(A,u[f],c)}}),n.count()&&a.each(function(A){var o=a.getItemModel(A),s=o.getShallow("category");if(s!=null){nt(s)&&(s=i["ec-"+s]);var l=n.getItemVisual(s,"style"),u=a.ensureUniqueItemVisual(A,"style");V(u,l);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++)a.setItemVisual(A,f[c],n.getItemVisual(s,f[c]))}})})}function Jc(r){return r instanceof Array||(r=[r,r]),r}function d7(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),a=Jc(t.get("edgeSymbol")),i=Jc(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(A){var o=n.getItemModel(A),s=e.getEdgeByIndex(A),l=Jc(o.getShallow("symbol",!0)),u=Jc(o.getShallow("symbolSize",!0)),f=o.getModel("lineStyle").getLineStyle(),c=n.ensureUniqueItemVisual(A,"style");switch(V(c,f),c.stroke){case"source":{var h=s.node1.getVisual("style");c.stroke=h&&h.fill;break}case"target":{var h=s.node2.getVisual("style");c.stroke=h&&h.fill;break}}l[0]&&s.setVisual("fromSymbol",l[0]),l[1]&&s.setVisual("toSymbol",l[1]),u[0]&&s.setVisual("fromSymbolSize",u[0]),u[1]&&s.setVisual("toSymbolSize",u[1])})})}var hw="-->",yp=function(r){return r.get("autoCurveness")||null},sR=function(r,t){var e=yp(r),n=20,a=[];if(Kt(e))n=e;else if(K(e)){r.__curvenessList=e;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var A=0;A<i;A++)a.push((A%2?A+1:A)/10*(A%2?-1:1));r.__curvenessList=a},wf=function(r,t,e){var n=[r.id,r.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[e.uid,n,a].join(hw)},lR=function(r){var t=r.split(hw);return[t[0],t[2],t[1]].join(hw)},p7=function(r,t){var e=wf(r.node1,r.node2,t);return t.__edgeMap[e]},g7=function(r,t){var e=vw(wf(r.node1,r.node2,t),t),n=vw(wf(r.node2,r.node1,t),t);return e+n},vw=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function y7(r){yp(r)&&(r.__curvenessList=[],r.__edgeMap={},sR(r))}function m7(r,t,e,n){if(yp(e)){var a=wf(r,t,e),i=e.__edgeMap,A=i[lR(a)];i[a]&&!A?i[a].isForward=!0:A&&i[a]&&(A.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function iC(r,t,e,n){var a=yp(t),i=K(a);if(!a)return null;var A=p7(r,t);if(!A)return null;for(var o=-1,s=0;s<A.length;s++)if(A[s]===e){o=s;break}var l=g7(r,t);sR(t,l),r.lineStyle=r.lineStyle||{};var u=wf(r.node1,r.node2,t),f=t.__curvenessList,c=i||l%2?0:1;if(A.isForward)return f[c+o];var h=lR(u),v=vw(h,t),d=f[o+v+c];return n?i?a&&a[0]===0?(v+c)%2?d:-d:((v%2?0:1)+c)%2?d:-d:(v+c)%2?d:-d:f[o+v+c]}function uR(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),AC(e,r)}}function AC(r,t){r.eachEdge(function(e,n){var a=ua(e.getModel().get(["lineStyle","curveness"]),-iC(e,t,n,!0),0),i=Ra(e.node1.getLayout()),A=Ra(e.node2.getLayout()),o=[i,A];+a&&o.push([(i[0]+A[0])/2-(i[1]-A[1])*a,(i[1]+A[1])/2-(A[0]-i[0])*a]),e.setLayout(o)})}function w7(r,t){r.eachSeriesByType("graph",function(e){var n=e.get("layout"),a=e.coordinateSystem;if(a&&a.type!=="view"){var i=e.getData(),A=[];T(a.dimensions,function(c){A=A.concat(i.mapDimensionsAll(c))});for(var o=0;o<i.count();o++){for(var s=[],l=!1,u=0;u<A.length;u++){var f=i.get(A[u],o);isNaN(f)||(l=!0),s.push(f)}l?i.setItemLayout(o,a.dataToPoint(s)):i.setItemLayout(o,[NaN,NaN])}AC(i.graph,e)}else(!n||n==="none")&&uR(e)})}function Au(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,n=t.scaleX,a=t.getZoom(),i=(a-1)*e+1;return i/n}function ou(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var vI=Math.PI,xy=[];function oC(r,t,e,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),A=r.getData(),o=A.graph,s=i.width/2+i.x,l=i.height/2+i.y,u=Math.min(i.width,i.height)/2,f=A.count();if(A.setLayout({cx:s,cy:l}),!!f){if(e){var c=a.pointToData(n),h=c[0],v=c[1],d=[h-s,v-l];Ys(d,d),Hh(d,d,u),e.setLayout([s+d[0],l+d[1]],!0);var p=r.get(["circular","rotateLabel"]);fR(e,p,s,l)}B7[t](r,o,A,u,s,l,f),o.eachEdge(function(g,y){var m=ua(g.getModel().get(["lineStyle","curveness"]),iC(g,r,y),0),w=Ra(g.node1.getLayout()),_=Ra(g.node2.getLayout()),B,C=(w[0]+_[0])/2,S=(w[1]+_[1])/2;+m&&(m*=3,B=[s*m+C*(1-m),l*m+S*(1-m)]),g.setLayout([w,_,B])})}}}var B7={value:function(r,t,e,n,a,i,A){var o=0,s=e.getSum("value"),l=Math.PI*2/(s||A);t.eachNode(function(u){var f=u.getValue("value"),c=l*(s?f:1)/2;o+=c,u.setLayout([n*Math.cos(o)+a,n*Math.sin(o)+i]),o+=c})},symbolSize:function(r,t,e,n,a,i,A){var o=0;xy.length=A;var s=Au(r);t.eachNode(function(f){var c=ou(f);isNaN(c)&&(c=2),c<0&&(c=0),c*=s;var h=Math.asin(c/2/n);isNaN(h)&&(h=vI/2),xy[f.dataIndex]=h,o+=h*2});var l=(2*vI-o)/A/2,u=0;t.eachNode(function(f){var c=l+xy[f.dataIndex];u+=c,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(u)+a,n*Math.sin(u)+i]),u+=c})}};function fR(r,t,e,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),A=i.get(["label","rotate"])||0,o=a.getSymbolPath();if(t){var s=r.getLayout(),l=Math.atan2(s[1]-n,s[0]-e);l<0&&(l=Math.PI*2+l);var u=s[0]<e;u&&(l=l-Math.PI);var f=u?"left":"right";o.setTextConfig({rotation:-l,position:f,origin:"center"});var c=o.ensureState("emphasis");V(c.textConfig||(c.textConfig={}),{position:f})}else o.setTextConfig({rotation:A*=Math.PI/180})}}function _7(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&oC(t,"symbolSize")})}var Ko=t0;function C7(r,t,e){for(var n=r,a=t,i=e.rect,A=i.width,o=i.height,s=[i.x+A/2,i.y+o/2],l=e.gravity==null?.1:e.gravity,u=0;u<n.length;u++){var f=n[u];f.p||(f.p=_o(A*(Math.random()-.5)+s[0],o*(Math.random()-.5)+s[1])),f.pp=Ra(f.p),f.edges=null}var c=e.friction==null?.6:e.friction,h=c,v,d;return{warmUp:function(){h=c*.8},setFixed:function(p){n[p].fixed=!0},setUnfixed:function(p){n[p].fixed=!1},beforeStep:function(p){v=p},afterStep:function(p){d=p},step:function(p){v&&v(n,a);for(var g=[],y=n.length,m=0;m<a.length;m++){var w=a[m];if(!w.ignoreForceLayout){var _=w.n1,B=w.n2;GA(g,B.p,_.p);var C=e0(g)-w.d,S=B.w/(_.w+B.w);isNaN(S)&&(S=0),Ys(g,g),!_.fixed&&Ko(_.p,_.p,g,S*C*h),!B.fixed&&Ko(B.p,B.p,g,-(1-S)*C*h)}}for(var m=0;m<y;m++){var x=n[m];x.fixed||(GA(g,s,x.p),Ko(x.p,x.p,g,l*h))}for(var m=0;m<y;m++)for(var _=n[m],b=m+1;b<y;b++){var B=n[b];GA(g,B.p,_.p);var C=e0(g);C===0&&(jV(g,Math.random()-.5,Math.random()-.5),C=1);var I=(_.rep+B.rep)/C/C;!_.fixed&&Ko(_.pp,_.pp,g,I),!B.fixed&&Ko(B.pp,B.pp,g,-I)}for(var F=[],m=0;m<y;m++){var x=n[m];x.fixed||(GA(F,x.p,x.pp),Ko(x.p,x.p,F,h),vr(x.pp,x.p))}h=h*.992;var E=h<.01;d&&d(n,a,E),p&&p(E)}}}function S7(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,A=a.edgeData,o=t.getModel("force"),s=o.get("initLayout");t.preservedPoints?i.each(function(m){var w=i.getId(m);i.setItemLayout(m,n[w]||[NaN,NaN])}):!s||s==="none"?uR(t):s==="circular"&&oC(t,"value");var l=i.getDataExtent("value"),u=A.getDataExtent("value"),f=o.get("repulsion"),c=o.get("edgeLength"),h=K(f)?f:[f,f],v=K(c)?c:[c,c];v=[v[1],v[0]];var d=i.mapArray("value",function(m,w){var _=i.getItemLayout(w),B=$t(m,l,h);return isNaN(B)&&(B=(h[0]+h[1])/2),{w:B,rep:B,fixed:i.getItemModel(w).get("fixed"),p:!_||isNaN(_[0])||isNaN(_[1])?null:_}}),p=A.mapArray("value",function(m,w){var _=a.getEdgeByIndex(w),B=$t(m,u,v);isNaN(B)&&(B=(v[0]+v[1])/2);var C=_.getModel(),S=ua(_.getModel().get(["lineStyle","curveness"]),-iC(_,t,w,!0),0);return{n1:d[_.node1.dataIndex],n2:d[_.node2.dataIndex],d:B,curveness:S,ignoreForceLayout:C.get("ignoreForceLayout")}}),g=e.getBoundingRect(),y=C7(d,p,{rect:g,gravity:o.get("gravity"),friction:o.get("friction")});y.beforeStep(function(m,w){for(var _=0,B=m.length;_<B;_++)m[_].fixed&&vr(m[_].p,a.getNodeByIndex(_).getLayout())}),y.afterStep(function(m,w,_){for(var B=0,C=m.length;B<C;B++)m[B].fixed||a.getNodeByIndex(B).setLayout(m[B].p),n[i.getId(B)]=m[B].p;for(var B=0,C=w.length;B<C;B++){var S=w[B],x=a.getEdgeByIndex(B),b=S.n1.p,I=S.n2.p,F=x.getLayout();F=F?F.slice():[],F[0]=F[0]||[],F[1]=F[1]||[],vr(F[0],b),vr(F[1],I),+S.curveness&&(F[2]=[(b[0]+I[0])/2-(b[1]-I[1])*S.curveness,(b[1]+I[1])/2-(I[0]-b[0])*S.curveness]),x.setLayout(F)}}),t.forceLayout=y,t.preservedPoints=n,y.step()}else t.forceLayout=null})}function x7(r,t,e){var n=V(r.getBoxLayoutParams(),{aspect:e});return Le(n,{width:t.getWidth(),height:t.getHeight()})}function b7(r,t){var e=[];return r.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),A=i.mapArray(function(p){var g=i.getItemModel(p);return[+g.get("x"),+g.get("y")]}),o=[],s=[];zd(A,o,s),s[0]-o[0]===0&&(s[0]+=1,o[0]-=1),s[1]-o[1]===0&&(s[1]+=1,o[1]-=1);var l=(s[0]-o[0])/(s[1]-o[1]),u=x7(n,t,l);isNaN(l)&&(o=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var f=s[0]-o[0],c=s[1]-o[1],h=u.width,v=u.height,d=n.coordinateSystem=new $f;d.zoomLimit=n.get("scaleLimit"),d.setBoundingRect(o[0],o[1],f,c),d.setViewRect(u.x,u.y,h,v),d.setCenter(n.get("center"),t),d.setZoom(n.get("zoom")),e.push(d)}}),e}var dI=Pe.prototype,by=Uf.prototype,cR=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(cR);function Ty(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var T7=function(r){H(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 cR},t.prototype.buildPath=function(e,n){Ty(n)?dI.buildPath.call(this,e,n):by.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return Ty(this.shape)?dI.pointAt.call(this,e):by.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,a=Ty(n)?[n.x2-n.x1,n.y2-n.y1]:by.tangentAt.call(this,e);return Ys(a,a)},t}(Mt),Iy=["fromSymbol","toSymbol"];function pI(r){return"_"+r+"Type"}function gI(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),A=t.getItemVisual(e,r+"Offset"),o=t.getItemVisual(e,r+"KeepAspect"),s=ol(a),l=xo(A||0,s);return n+s+l+(i||"")+(o||"")}function yI(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),A=t.getItemVisual(e,r+"Offset"),o=t.getItemVisual(e,r+"KeepAspect"),s=ol(a),l=xo(A||0,s),u=Ie(n,-s[0]/2+l[0],-s[1]/2+l[1],s[0],s[1],null,o);return u.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,u.name=r,u}}function I7(r){var t=new T7({name:"line",subPixelOptimize:!0});return dw(t.shape,r),t}function dw(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 sC=function(r){H(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createLine(e,n,a),i}return t.prototype._createLine=function(e,n,a){var i=e.hostModel,A=e.getItemLayout(n),o=I7(A);o.shape.percent=0,ue(o,{shape:{percent:1}},i,n),this.add(o),T(Iy,function(s){var l=yI(s,e,n);this.add(l),this[pI(s)]=gI(s,e,n)},this),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,A=this.childOfName("line"),o=e.getItemLayout(n),s={shape:{}};dw(s.shape,o),zt(A,s,i,n),T(Iy,function(l){var u=gI(l,e,n),f=pI(l);if(this[f]!==u){this.remove(this.childOfName(l));var c=yI(l,e,n);this.add(c)}this[f]=u},this),this._updateCommonStl(e,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,a){var i=e.hostModel,A=this.childOfName("line"),o=a&&a.emphasisLineStyle,s=a&&a.blurLineStyle,l=a&&a.selectLineStyle,u=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,c=a&&a.focus,h=a&&a.blurScope;if(!a||e.hasItemOption){var v=e.getItemModel(n),d=v.getModel("emphasis");o=d.getModel("lineStyle").getLineStyle(),s=v.getModel(["blur","lineStyle"]).getLineStyle(),l=v.getModel(["select","lineStyle"]).getLineStyle(),f=d.get("disabled"),c=d.get("focus"),h=d.get("blurScope"),u=Oe(v)}var p=e.getItemVisual(n,"style"),g=p.stroke;A.useStyle(p),A.style.fill=null,A.style.strokeNoScale=!0,A.ensureState("emphasis").style=o,A.ensureState("blur").style=s,A.ensureState("select").style=l,T(Iy,function(B){var C=this.childOfName(B);if(C){C.setColor(g),C.style.opacity=p.opacity;for(var S=0;S<_r.length;S++){var x=_r[S],b=A.getState(x);if(b){var I=b.style||{},F=C.ensureState(x),E=F.style||(F.style={});I.stroke!=null&&(E[C.__isEmptyBrush?"stroke":"fill"]=I.stroke),I.opacity!=null&&(E.opacity=I.opacity)}}C.markRedraw()}},this);var y=i.getRawValue(n);Je(this,u,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(B,C){return i.getFormattedLabel(B,C,e.dataType)}},inheritColor:g||"#000",defaultOpacity:p.opacity,defaultText:(y==null?e.getName(n):isFinite(y)?me(y):y)+""});var m=this.getTextContent();if(m){var w=u.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=w.get("position")||"middle";var _=w.get("distance");K(_)||(_=[_,_]),m.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),ye(this,c,h,f)},t.prototype.highlight=function(){Wa(this)},t.prototype.downplay=function(){Xa(this)},t.prototype.updateLayout=function(e,n){this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");dw(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),a=e.childOfName("toSymbol"),i=e.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var A=1,o=this.parent;o;)o.scaleX&&(A/=o.scaleX),o=o.parent;var s=e.childOfName("line");if(!this.__dirty&&!s.__dirty)return;var l=s.shape.percent,u=s.pointAt(0),f=s.pointAt(l),c=GA([],f,u);Ys(c,c);function h(b,I){var F=b.__specifiedRotation;if(F==null){var E=s.tangentAt(I);b.attr("rotation",(I===1?-1:1)*Math.PI/2-Math.atan2(E[1],E[0]))}else b.attr("rotation",F)}if(n&&(n.setPosition(u),h(n,0),n.scaleX=n.scaleY=A*l,n.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=A*l,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var v=void 0,d=void 0,p=i.__labelDistance,g=p[0]*A,y=p[1]*A,m=l/2,w=s.tangentAt(m),_=[w[1],-w[0]],B=s.pointAt(m);_[1]>0&&(_[0]=-_[0],_[1]=-_[1]);var C=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var S=-Math.atan2(w[1],w[0]);f[0]<u[0]&&(S=Math.PI+S),i.rotation=S}var x=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-y,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=y,d="top";break;default:x=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*g+f[0],i.y=c[1]*y+f[1],v=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*g+u[0],i.y=-c[1]*y+u[1],v=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*C+u[0],i.y=u[1]+x,v=w[0]<0?"right":"left",i.originX=-g*C,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=B[0],i.y=B[1]+x,v="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*C+f[0],i.y=f[1]+x,v=w[0]>=0?"right":"left",i.originX=g*C,i.originY=-x;break}i.scaleX=i.scaleY=A,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||v})}},t}(_t),lC=function(){function r(t){this.group=new _t,this._LineCtor=t||sC}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var A=mI(t);t.diff(i).add(function(o){e._doAdd(t,o,A)}).update(function(o,s){e._doUpdate(i,t,s,o,A)}).remove(function(o){a.remove(i.getItemGraphicEl(o))}).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=mI(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(o){!o.isGroup&&!F7(o)&&(o.incremental=!0,o.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=e.getItemLayout(a);if(Fy(i)){var A=new this._LineCtor(e,a,this._seriesScope);A.traverse(n),this.group.add(A),e.setItemGraphicEl(a,A),this._progressiveEls.push(A)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){rA(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var a=t.getItemLayout(e);if(Fy(a)){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,n,a,i){var A=t.getItemGraphicEl(n);if(!Fy(e.getItemLayout(a))){this.group.remove(A);return}A?A.updateData(e,a,i):A=new this._LineCtor(e,a,i),e.setItemGraphicEl(a,A),this.group.add(A)},r}();function F7(r){return r.animators&&r.animators.length>0}function mI(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:Oe(t)}}function wI(r){return isNaN(r[0])||isNaN(r[1])}function Fy(r){return r&&!wI(r[0])&&!wI(r[1])}var Ey=[],Dy=[],Qy=[],zo=Ve,Ly=jA,BI=Math.abs;function _I(r,t,e){for(var n=r[0],a=r[1],i=r[2],A=1/0,o,s=e*e,l=.1,u=.1;u<=.9;u+=.1){Ey[0]=zo(n[0],a[0],i[0],u),Ey[1]=zo(n[1],a[1],i[1],u);var f=BI(Ly(Ey,t)-s);f<A&&(A=f,o=u)}for(var c=0;c<32;c++){var h=o+l;Dy[0]=zo(n[0],a[0],i[0],o),Dy[1]=zo(n[1],a[1],i[1],o),Qy[0]=zo(n[0],a[0],i[0],h),Qy[1]=zo(n[1],a[1],i[1],h);var f=Ly(Dy,t)-s;if(BI(f)<.01)break;var v=Ly(Qy,t)-s;l/=2,f<0?v>=0?o=o+l:o=o-l:v>=0?o=o-l:o=o+l}return o}function My(r,t){var e=[],n=Ju,a=[[],[],[]],i=[[],[]],A=[];t/=2,r.eachEdge(function(o,s){var l=o.getLayout(),u=o.getVisual("fromSymbol"),f=o.getVisual("toSymbol");l.__original||(l.__original=[Ra(l[0]),Ra(l[1])],l[2]&&l.__original.push(Ra(l[2])));var c=l.__original;if(l[2]!=null){if(vr(a[0],c[0]),vr(a[1],c[2]),vr(a[2],c[1]),u&&u!=="none"){var h=ou(o.node1),v=_I(a,c[0],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],v,e),a[0][1]=e[3],a[1][1]=e[4]}if(f&&f!=="none"){var h=ou(o.node2),v=_I(a,c[1],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],v,e),a[1][1]=e[1],a[2][1]=e[2]}vr(l[0],a[0]),vr(l[1],a[2]),vr(l[2],a[1])}else{if(vr(i[0],c[0]),vr(i[1],c[1]),GA(A,i[1],i[0]),Ys(A,A),u&&u!=="none"){var h=ou(o.node1);t0(i[0],i[0],A,h*t)}if(f&&f!=="none"){var h=ou(o.node2);t0(i[1],i[1],A,-h*t)}vr(l[0],i[0]),vr(l[1],i[1])}})}function CI(r){return r.type==="view"}var E7=function(r){H(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 a=new Kf,i=new lC,A=this.group;this._controller=new Zf(n.getZr()),this._controllerHost={target:A},A.add(a.group),A.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,A=e.coordinateSystem;this._model=e;var o=this._symbolDraw,s=this._lineDraw,l=this.group;if(CI(A)){var u={x:A.x,y:A.y,scaleX:A.scaleX,scaleY:A.scaleY};this._firstRender?l.attr(u):zt(l,u,e)}My(e.getGraph(),Au(e));var f=e.getData();o.updateData(f);var c=e.getEdgeData();s.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,n,a),clearTimeout(this._layoutTimeout);var h=e.forceLayout,v=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var d=e.get("layout");f.graph.eachNode(function(m){var w=m.dataIndex,_=m.getGraphicEl(),B=m.getModel();if(_){_.off("drag").off("dragend");var C=B.get("draggable");C&&_.on("drag",function(x){switch(d){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[_.x,_.y]);break;case"circular":f.setItemLayout(w,[_.x,_.y]),m.setLayout({fixed:!0},!0),oC(e,"symbolSize",m,[x.offsetX,x.offsetY]),i.updateLayout(e);break;case"none":default:f.setItemLayout(w,[_.x,_.y]),AC(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),_.setDraggable(C,!!B.get("cursor"));var S=B.get(["emphasis","focus"]);S==="adjacency"&&(Ct(_).focus=m.getAdjacentDataIndices())}}),f.graph.eachEdge(function(m){var w=m.getGraphicEl(),_=m.getModel().get(["emphasis","focus"]);w&&_==="adjacency"&&(Ct(w).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var p=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),g=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(m){fR(m,p,g,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var a=this;(function i(){e.step(function(A){a.updateLayout(a._model),(a._layouting=!A)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,n,a){var i=this,A=this._controller,o=this._controllerHost,s=this.group;if(A.setPointerChecker(function(l,u,f){var c=s.getBoundingRect();return c.applyTransform(s.transform),c.contain(u,f)&&!dp(l,a,e)}),!CI(e.coordinateSystem)){A.disable();return}A.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),A.off("pan").off("zoom").on("pan",function(l){J_(o,l.dx,l.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){q_(o,l.scale,l.originX,l.originY),a.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY}),i._updateNodeAndLinkScale(),My(e.getGraph(),Au(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=Au(e);n.eachItemGraphicEl(function(i,A){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){My(e.getGraph(),Au(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}(jt);function Wo(r){return"_EC_"+r}var D7=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[Wo(t)]){var a=new PA(t,e);return a.hostGraph=this,this.nodes.push(a),n[Wo(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Wo(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Kt(t)&&(t=this.nodes[t]),Kt(e)&&(e=this.nodes[e]),t instanceof PA||(t=a[Wo(t)]),e instanceof PA||(e=a[Wo(e)]),!(!t||!e)){var A=t.id+"-"+e.id,o=new hR(t,e,n);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),i[A]=o,o}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof PA&&(t=t.id),e instanceof PA&&(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,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof PA||(e=this._nodesMap[Wo(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",A=0;A<this.nodes.length;A++)this.nodes[A].__visited=!1;if(!t.call(a,e,null))for(var o=[e];o.length;)for(var s=o.shift(),l=s[i],A=0;A<l.length;A++){var u=l[A],f=u.node1===s?u.node2:u.node1;if(!f.__visited){if(t.call(a,f,s))return;o.push(f),f.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,a=this.edges,i=0,A=n.length;i<A;i++)n[i].dataIndex=-1;for(var i=0,A=t.count();i<A;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(o){var s=a[e.getRawIndex(o)];return s.node1.dataIndex>=0&&s.node2.dataIndex>=0});for(var i=0,A=a.length;i<A;i++)a[i].dataIndex=-1;for(var i=0,A=e.count();i<A;i++)a[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,n=this.edges,a=0;a<e.length;a++)t.addNode(e[a].id,e[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r}(),PA=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,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 a=this.edges[n];if(!(a.dataIndex<0)){t.set(a.dataIndex,!0);for(var i=[a.node1],A=[a.node2],o=0;o<i.length;){var s=i[o];o++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),i.push(s.inEdges[l].node1)}for(o=0;o<A.length;){var u=A[o];o++,e.set(u.dataIndex,!0);for(var l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),A.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},r}(),hR=function(){function r(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=n??-1}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],a=[this.node2],i=0;i<n.length;){var A=n[i];i++,e.set(A.dataIndex,!0);for(var o=0;o<A.inEdges.length;o++)t.set(A.inEdges[o].dataIndex,!0),n.push(A.inEdges[o].node1)}for(i=0;i<a.length;){var s=a[i];i++,e.set(s.dataIndex,!0);for(var o=0;o<s.outEdges.length;o++)t.set(s.outEdges[o].dataIndex,!0),a.push(s.outEdges[o].node2)}return{edge:t.keys(),node:e.keys()}},r}();function vR(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)}}}Fe(PA,vR("hostGraph","data"));Fe(hR,vR("hostGraph","edgeData"));function dR(r,t,e,n,a){for(var i=new D7(n),A=0;A<r.length;A++)i.addNode(Ge(r[A].id,r[A].name,A),A);for(var o=[],s=[],l=0,A=0;A<t.length;A++){var u=t[A],f=u.source,c=u.target;i.addEdge(f,c,l)&&(s.push(u),o.push(Ge(De(u.id,null),f+" > "+c)),l++)}var h=e.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=ri(r,e);else{var d=Of.get(h),p=d?d.dimensions||[]:[];Qt(p,"value")<0&&p.concat(["value"]);var g=Nf(r,{coordDimensions:p,encodeDefine:e.getEncode()}).dimensions;v=new mr(g,e),v.initData(r)}var y=new mr(["value"],e);return y.initData(s,o),a&&a(v,y),$P({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Q7=function(r){H(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 a(){return n._categoriesData}this.legendVisualProvider=new Yf(a,a),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),co(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],A=this;if(i&&a){y7(this);var o=dR(i,a,this,!0,s);return T(o.edges,function(l){m7(l.node1,l.node2,this,l.dataIndex)},this),o.data}function s(l,u){l.wrapMethod("getItemModel",function(v){var d=A._categoriesModels,p=v.getShallow("category"),g=d[p];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var f=Yt.prototype.getModel;function c(v,d){var p=f.call(this,v,d);return p.resolveParentPath=h,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},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,a){if(a==="edge"){var i=this.getData(),A=this.getDataParams(e,a),o=i.graph.getEdgeByIndex(e),s=i.getName(o.node1.dataIndex),l=i.getName(o.node2.dataIndex),u=[];return s!=null&&u.push(s),l!=null&&u.push(l),ke("nameValue",{name:u.join(" > "),value:A.value,noValue:A.value==null})}var f=kU({series:this,dataIndex:e,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(a){return a.value!=null?a:V({value:0},a)}),n=new mr(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},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}(se),L7={type:"graphRoam",event:"graphRoam",update:"none"};function M7(r){r.registerChartView(E7),r.registerSeriesModel(Q7),r.registerProcessor(h7),r.registerVisual(v7),r.registerVisual(d7),r.registerLayout(w7),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,_7),r.registerLayout(S7),r.registerCoordinateSystem("graphView",{dimensions:$f.dimensions,create:b7}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Be),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Be),r.registerAction(L7,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,A=tC(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}var U7=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),P7=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new U7},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,A=n.r,o=n.width,s=n.angle,l=n.x-a(s)*o*(o>=A/3?1:2),u=n.y-i(s)*o*(o>=A/3?1:2);s=n.angle-Math.PI/2,e.moveTo(l,u),e.lineTo(n.x+a(s)*o,n.y+i(s)*o),e.lineTo(n.x+a(n.angle)*A,n.y+i(n.angle)*A),e.lineTo(n.x-a(s)*o,n.y-i(s)*o),e.lineTo(l,u)},t}(Mt);function R7(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),A=et(e[0],t.getWidth()),o=et(e[1],t.getHeight()),s=et(r.get("radius"),i/2);return{cx:A,cy:o,r:s}}function qc(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var H7=function(r){H(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,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),A=R7(e,a);this._renderMain(e,n,a,i,A),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,A){var o=this.group,s=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,f=e.getModel("axisLine"),c=f.get("roundCap"),h=c?Xv:Cr,v=f.get("show"),d=f.getModel("lineStyle"),p=d.get("width"),g=[l,u];e_(g,!s),l=g[0],u=g[1];for(var y=u-l,m=l,w=[],_=0;v&&_<i.length;_++){var B=Math.min(Math.max(i[_][0],0),1);u=l+y*B;var C=new h({shape:{startAngle:m,endAngle:u,cx:A.cx,cy:A.cy,clockwise:s,r0:A.r-p,r:A.r},silent:!0});C.setStyle({fill:i[_][1]}),C.setStyle(d.getLineStyle(["color","width"])),w.push(C),m=u}w.reverse(),T(w,function(x){return o.add(x)});var S=function(x){if(x<=0)return i[0][1];var b;for(b=0;b<i.length;b++)if(i[b][0]>=x&&(b===0?0:i[b-1][0])<x)return i[b][1];return i[b-1][1]};this._renderTicks(e,n,a,S,A,l,u,s,p),this._renderTitleAndDetail(e,n,a,S,A),this._renderAnchor(e,A),this._renderPointer(e,n,a,S,A,l,u,s,p)},t.prototype._renderTicks=function(e,n,a,i,A,o,s,l,u){for(var f=this.group,c=A.cx,h=A.cy,v=A.r,d=+e.get("min"),p=+e.get("max"),g=e.getModel("splitLine"),y=e.getModel("axisTick"),m=e.getModel("axisLabel"),w=e.get("splitNumber"),_=y.get("splitNumber"),B=et(g.get("length"),v),C=et(y.get("length"),v),S=o,x=(s-o)/w,b=x/_,I=g.getModel("lineStyle").getLineStyle(),F=y.getModel("lineStyle").getLineStyle(),E=g.get("distance"),D,Q,M=0;M<=w;M++){if(D=Math.cos(S),Q=Math.sin(S),g.get("show")){var R=E?E+u:u,P=new Pe({shape:{x1:D*(v-R)+c,y1:Q*(v-R)+h,x2:D*(v-B-R)+c,y2:Q*(v-B-R)+h},style:I,silent:!0});I.stroke==="auto"&&P.setStyle({stroke:i(M/w)}),f.add(P)}if(m.get("show")){var R=m.get("distance")+E,O=qc(me(M/w*(p-d)+d),m.get("formatter")),G=i(M/w),X=D*(v-B-R)+c,J=Q*(v-B-R)+h,At=m.get("rotate"),lt=0;At==="radial"?(lt=-S+2*Math.PI,lt>Math.PI/2&&(lt+=Math.PI)):At==="tangential"?lt=-S-Math.PI/2:Kt(At)&&(lt=At*Math.PI/180),lt===0?f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:Q<-.8?"top":Q>.8?"bottom":"middle",align:D<-.4?"left":D>.4?"right":"center"},{inheritColor:G}),silent:!0})):f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:X,originY:J,rotation:lt}))}if(y.get("show")&&M!==w){var R=y.get("distance");R=R?R+u:u;for(var wt=0;wt<=_;wt++){D=Math.cos(S),Q=Math.sin(S);var Bt=new Pe({shape:{x1:D*(v-R)+c,y1:Q*(v-R)+h,x2:D*(v-C-R)+c,y2:Q*(v-C-R)+h},silent:!0,style:F});F.stroke==="auto"&&Bt.setStyle({stroke:i((M+wt/_)/w)}),f.add(Bt),S+=b}S-=b}else S+=x}},t.prototype._renderPointer=function(e,n,a,i,A,o,s,l,u){var f=this.group,c=this._data,h=this._progressEls,v=[],d=e.get(["pointer","show"]),p=e.getModel("progress"),g=p.get("show"),y=e.getData(),m=y.mapDimension("value"),w=+e.get("min"),_=+e.get("max"),B=[w,_],C=[o,s];function S(b,I){var F=y.getItemModel(b),E=F.getModel("pointer"),D=et(E.get("width"),A.r),Q=et(E.get("length"),A.r),M=e.get(["pointer","icon"]),R=E.get("offsetCenter"),P=et(R[0],A.r),O=et(R[1],A.r),G=E.get("keepAspect"),X;return M?X=Ie(M,P-D/2,O-Q,D,Q,null,G):X=new P7({shape:{angle:-Math.PI/2,width:D,r:Q,x:P,y:O}}),X.rotation=-(I+Math.PI/2),X.x=A.cx,X.y=A.cy,X}function x(b,I){var F=p.get("roundCap"),E=F?Xv:Cr,D=p.get("overlap"),Q=D?p.get("width"):u/y.count(),M=D?A.r-Q:A.r-(b+1)*Q,R=D?A.r:A.r-b*Q,P=new E({shape:{startAngle:o,endAngle:I,cx:A.cx,cy:A.cy,clockwise:l,r0:M,r:R}});return D&&(P.z2=_-y.get(m,b)%_),P}(g||d)&&(y.diff(c).add(function(b){var I=y.get(m,b);if(d){var F=S(b,o);ue(F,{rotation:-((isNaN(+I)?C[0]:$t(I,B,C,!0))+Math.PI/2)},e),f.add(F),y.setItemGraphicEl(b,F)}if(g){var E=x(b,o),D=p.get("clip");ue(E,{shape:{endAngle:$t(I,B,C,D)}},e),f.add(E),b0(e.seriesIndex,y.dataType,b,E),v[b]=E}}).update(function(b,I){var F=y.get(m,b);if(d){var E=c.getItemGraphicEl(I),D=E?E.rotation:o,Q=S(b,D);Q.rotation=D,zt(Q,{rotation:-((isNaN(+F)?C[0]:$t(F,B,C,!0))+Math.PI/2)},e),f.add(Q),y.setItemGraphicEl(b,Q)}if(g){var M=h[I],R=M?M.shape.endAngle:o,P=x(b,R),O=p.get("clip");zt(P,{shape:{endAngle:$t(F,B,C,O)}},e),f.add(P),b0(e.seriesIndex,y.dataType,b,P),v[b]=P}}).execute(),y.each(function(b){var I=y.getItemModel(b),F=I.getModel("emphasis"),E=F.get("focus"),D=F.get("blurScope"),Q=F.get("disabled");if(d){var M=y.getItemGraphicEl(b),R=y.getItemVisual(b,"style"),P=R.fill;if(M instanceof Ke){var O=M.style;M.useStyle(V({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},R))}else M.useStyle(R),M.type!=="pointer"&&M.setColor(P);M.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),M.style.fill==="auto"&&M.setStyle("fill",i($t(y.get(m,b),B,[0,1],!0))),M.z2EmphasisLift=0,$e(M,I),ye(M,E,D,Q)}if(g){var G=v[b];G.useStyle(y.getItemVisual(b,"style")),G.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,$e(G,I),ye(G,E,D,Q)}}),this._progressEls=v)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var A=a.get("size"),o=a.get("icon"),s=a.get("offsetCenter"),l=a.get("keepAspect"),u=Ie(o,n.cx-A/2+et(s[0],n.r),n.cy-A/2+et(s[1],n.r),A,A,null,l);u.z2=a.get("showAbove")?1:0,u.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,A){var o=this,s=e.getData(),l=s.mapDimension("value"),u=+e.get("min"),f=+e.get("max"),c=new _t,h=[],v=[],d=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);s.diff(this._data).add(function(g){h[g]=new Gt({silent:!0}),v[g]=new Gt({silent:!0})}).update(function(g,y){h[g]=o._titleEls[y],v[g]=o._detailEls[y]}).execute(),s.each(function(g){var y=s.getItemModel(g),m=s.get(l,g),w=new _t,_=i($t(m,[u,f],[0,1],!0)),B=y.getModel("title");if(B.get("show")){var C=B.get("offsetCenter"),S=A.cx+et(C[0],A.r),x=A.cy+et(C[1],A.r),b=h[g];b.attr({z2:p?0:2,style:oe(B,{x:S,y:x,text:s.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:_})}),w.add(b)}var I=y.getModel("detail");if(I.get("show")){var F=I.get("offsetCenter"),E=A.cx+et(F[0],A.r),D=A.cy+et(F[1],A.r),Q=et(I.get("width"),A.r),M=et(I.get("height"),A.r),R=e.get(["progress","show"])?s.getItemVisual(g,"style").fill:_,b=v[g],P=I.get("formatter");b.attr({z2:p?0:2,style:oe(I,{x:E,y:D,text:qc(m,P),width:isNaN(Q)?null:Q,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:R})}),KM(b,{normal:I},m,function(G){return qc(G,P)}),d&&zM(b,g,s,e,{getFormattedLabel:function(G,X,J,At,lt,wt){return qc(wt?wt.interpolatedValue:m,P)}}),w.add(b)}c.add(w)}),this.group.add(c),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(jt),O7=function(r){H(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 ll(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}(se);function k7(r){r.registerChartView(H7),r.registerSeriesModel(O7)}var N7=["itemStyle","opacity"],V7=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=a,A=new xr,o=new Gt;return i.setTextContent(o),a.setTextGuideLine(A),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,A=e.hostModel,o=e.getItemModel(n),s=e.getItemLayout(n),l=o.getModel("emphasis"),u=o.get(N7);u=u??1,a||Hn(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:s.points}),i.style.opacity=0,ue(i,{style:{opacity:u}},A,n)):zt(i,{style:{opacity:u},shape:{points:s.points}},A,n),$e(i,o),this._updateLabel(e,n),ye(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),A=a.getTextContent(),o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=l.label,f=e.getItemVisual(n,"style"),c=f.fill;Je(A,Oe(s),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:e.getName(n)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),a.setTextConfig({local:!0,inside:!!u.inside,insideStroke:c,outsideFill:c});var h=u.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new It(h[0][0],h[0][1]):null},zt(A,{style:{x:u.x,y:u.y}},o,n),A.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),k_(a,N_(s),{stroke:c})},t}(Sr),G7=function(r){H(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,a){var i=e.getData(),A=this._data,o=this.group;i.diff(A).add(function(s){var l=new V7(i,s);i.setItemGraphicEl(s,l),o.add(l)}).update(function(s,l){var u=A.getItemGraphicEl(l);u.updateData(i,s),o.add(u),i.setItemGraphicEl(s,u)}).remove(function(s){var l=A.getItemGraphicEl(s);af(l,e,s)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(jt),K7=function(r){H(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 Yf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return ll(this,{coordDimensions:["value"],encodeDefaulter:bt(y_,this)})},t.prototype._defaultLabelLine=function(e){co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),A=n.getSum(i);return a.percent=A?+(n.get(i,e)/A*100).toFixed(2):0,a.$vars.push("percent"),a},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}(se);function z7(r,t){return Le(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function W7(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(s){return s}),a=[],i=t==="ascending",A=0,o=r.count();A<o;A++)a[A]=A;return vt(t)?a.sort(t):t!=="none"&&a.sort(function(s,l){return i?n[s]-n[l]:n[l]-n[s]}),a}function X7(r){var t=r.hostModel,e=t.get("orient");r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),A=i.get("position"),o=a.getModel("labelLine"),s=r.getItemLayout(n),l=s.points,u=A==="inner"||A==="inside"||A==="center"||A==="insideLeft"||A==="insideRight",f,c,h,v;if(u)A==="insideLeft"?(c=(l[0][0]+l[3][0])/2+5,h=(l[0][1]+l[3][1])/2,f="left"):A==="insideRight"?(c=(l[1][0]+l[2][0])/2-5,h=(l[1][1]+l[2][1])/2,f="right"):(c=(l[0][0]+l[1][0]+l[2][0]+l[3][0])/4,h=(l[0][1]+l[1][1]+l[2][1]+l[3][1])/4,f="center"),v=[[c,h],[c,h]];else{var d=void 0,p=void 0,g=void 0,y=void 0,m=o.get("length");A==="left"?(d=(l[3][0]+l[0][0])/2,p=(l[3][1]+l[0][1])/2,g=d-m,c=g-5,f="right"):A==="right"?(d=(l[1][0]+l[2][0])/2,p=(l[1][1]+l[2][1])/2,g=d+m,c=g+5,f="left"):A==="top"?(d=(l[3][0]+l[0][0])/2,p=(l[3][1]+l[0][1])/2,y=p-m,h=y-5,f="center"):A==="bottom"?(d=(l[1][0]+l[2][0])/2,p=(l[1][1]+l[2][1])/2,y=p+m,h=y+5,f="center"):A==="rightTop"?(d=e==="horizontal"?l[3][0]:l[1][0],p=e==="horizontal"?l[3][1]:l[1][1],e==="horizontal"?(y=p-m,h=y-5,f="center"):(g=d+m,c=g+5,f="top")):A==="rightBottom"?(d=l[2][0],p=l[2][1],e==="horizontal"?(y=p+m,h=y+5,f="center"):(g=d+m,c=g+5,f="bottom")):A==="leftTop"?(d=l[0][0],p=e==="horizontal"?l[0][1]:l[1][1],e==="horizontal"?(y=p-m,h=y-5,f="center"):(g=d-m,c=g-5,f="right")):A==="leftBottom"?(d=e==="horizontal"?l[1][0]:l[3][0],p=e==="horizontal"?l[1][1]:l[2][1],e==="horizontal"?(y=p+m,h=y+5,f="center"):(g=d-m,c=g-5,f="right")):(d=(l[1][0]+l[2][0])/2,p=(l[1][1]+l[2][1])/2,e==="horizontal"?(y=p+m,h=y+5,f="center"):(g=d+m,c=g+5,f="left")),e==="horizontal"?(g=d,c=g):(y=p,h=y),v=[[d,p],[g,y]]}s.label={linePoints:v,x:c,y:h,verticalAlign:"middle",textAlign:f,inside:u}})}function Y7(r,t){r.eachSeriesByType("funnel",function(e){var n=e.getData(),a=n.mapDimension("value"),i=e.get("sort"),A=z7(e,t),o=e.get("orient"),s=A.width,l=A.height,u=W7(n,i),f=A.x,c=A.y,h=o==="horizontal"?[et(e.get("minSize"),l),et(e.get("maxSize"),l)]:[et(e.get("minSize"),s),et(e.get("maxSize"),s)],v=n.getDataExtent(a),d=e.get("min"),p=e.get("max");d==null&&(d=Math.min(v[0],0)),p==null&&(p=v[1]);var g=e.get("funnelAlign"),y=e.get("gap"),m=o==="horizontal"?s:l,w=(m-y*(n.count()-1))/n.count(),_=function(D,Q){if(o==="horizontal"){var M=n.get(a,D)||0,R=$t(M,[d,p],h,!0),P=void 0;switch(g){case"top":P=c;break;case"center":P=c+(l-R)/2;break;case"bottom":P=c+(l-R);break}return[[Q,P],[Q,P+R]]}var O=n.get(a,D)||0,G=$t(O,[d,p],h,!0),X;switch(g){case"left":X=f;break;case"center":X=f+(s-G)/2;break;case"right":X=f+s-G;break}return[[X,Q],[X+G,Q]]};i==="ascending"&&(w=-w,y=-y,o==="horizontal"?f+=s:c+=l,u=u.reverse());for(var B=0;B<u.length;B++){var C=u[B],S=u[B+1],x=n.getItemModel(C);if(o==="horizontal"){var b=x.get(["itemStyle","width"]);b==null?b=w:(b=et(b,s),i==="ascending"&&(b=-b));var I=_(C,f),F=_(S,f+b);f+=b+y,n.setItemLayout(C,{points:I.concat(F.slice().reverse())})}else{var E=x.get(["itemStyle","height"]);E==null?E=w:(E=et(E,l),i==="ascending"&&(E=-E));var I=_(C,c),F=_(S,c+E);c+=E+y,n.setItemLayout(C,{points:I.concat(F.slice().reverse())})}}X7(n)})}function Z7(r){r.registerChartView(G7),r.registerSeriesModel(K7),r.registerLayout(Y7),r.registerProcessor(Xf("funnel"))}var $7=.3,J7=function(r){H(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,a,i){this._progressiveEls=null;var A=this._dataGroup,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.dimensions,f=xI(e);o.diff(s).add(c).update(h).remove(v).execute();function c(p){var g=SI(o,A,p,u,l);Uy(g,o,p,f)}function h(p,g){var y=s.getItemGraphicEl(g),m=pR(o,p,u,l);o.setItemGraphicEl(p,y),zt(y,{shape:{points:m}},e,p),Hn(y),Uy(y,o,p,f)}function v(p){var g=s.getItemGraphicEl(p);A.remove(g)}if(!this._initialized){this._initialized=!0;var d=q7(l,e,function(){setTimeout(function(){A.removeClipPath()})});A.setClipPath(d)}this._data=o},t.prototype.incrementalPrepareRender=function(e,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,n,a){for(var i=n.getData(),A=n.coordinateSystem,o=A.dimensions,s=xI(n),l=this._progressiveEls=[],u=e.start;u<e.end;u++){var f=SI(i,this._dataGroup,u,o,A);f.incremental=!0,Uy(f,i,u,s),l.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(jt);function q7(r,t,e){var n=r.model,a=r.getRect(),i=new Nt({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),A=n.get("layout")==="horizontal"?"width":"height";return i.setShape(A,0),ue(i,{shape:{width:a.width,height:a.height}},t,e),i}function pR(r,t,e,n){for(var a=[],i=0;i<e.length;i++){var A=e[i],o=r.get(r.mapDimension(A),t);j7(o,n.getAxis(A).type)||a.push(n.dataToPoint(o,A))}return a}function SI(r,t,e,n,a){var i=pR(r,e,n,a),A=new xr({shape:{points:i},z2:10});return t.add(A),r.setItemGraphicEl(e,A),A}function xI(r){var t=r.get("smooth",!0);return t===!0&&(t=$7),t=za(t),$u(t)&&(t=0),{smooth:t}}function Uy(r,t,e,n){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=t.getItemModel(e),i=a.getModel("emphasis");$e(r,a,"lineStyle"),ye(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function j7(r,t){return t==="category"?r==null:r==null||isNaN(r)}var t$=function(r){H(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 ri(null,this,{useEncodeDefaulter:it(e$,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(A,o){e===A&&i.push(a.getRawIndex(o))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(se);function e$(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return T(t.dimensions,function(n){var a=r$(n);e[n]=a}),e}}function r$(r){return+r.replace("dim","")}var n$=["lineStyle","opacity"],a$={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(a,i){e.eachActiveState(i,function(A,o){var s=n[A];if(A==="normal"&&i.hasItemOption){var l=i.getItemModel(o).get(n$,!0);l!=null&&(s=l)}var u=i.ensureUniqueItemVisual(o,"style");u.opacity=s},a.start,a.end)}}}};function i$(r){A$(r),o$(r)}function A$(r){if(!r.parallel){var t=!1;T(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function o$(r){var t=qt(r.parallelAxis);T(t,function(e){if(yt(e)){var n=e.parallelIndex||0,a=qt(r.parallel)[n];a&&a.parallelAxisDefault&&Et(e,a.parallelAxisDefault,!1)}})}var s$=5,l$=function(r){H(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,a){this._model=e,this._api=a,this._handlers||(this._handlers={},T(u$,function(i,A){a.getZr().on(A,this._handlers[A]=it(i,this))},this)),Al(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,n){lf(this,"_throttledDispatchExpand"),T(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(V({type:"parallelAxisExpand"},e))},t.type="parallel",t}(de),u$={mousedown:function(r){Py(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(Py(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>s$)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Py(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 Py(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var f$=function(r){H(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&&Et(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){T(["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=[],a=Jt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);T(a,function(i){e.push("dim"+i.get("dim")),n.push(i.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}(Rt),c$=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o.axisIndex=A,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(kn);function Fo(r,t,e,n,a,i){r=r||0;var A=e[1]-e[0];if(a!=null&&(a=Xo(a,[0,A])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var o=Math.abs(t[1]-t[0]);o=Xo(o,[0,A]),a=i=Xo(o,[a,i]),n=0}t[0]=Xo(t[0],e),t[1]=Xo(t[1],e);var s=Ry(t,n);t[n]+=r;var l=a||0,u=e.slice();s.sign<0?u[0]+=l:u[1]-=l,t[n]=Xo(t[n],u);var f;return f=Ry(t,n),a!=null&&(f.sign!==s.sign||f.span<a)&&(t[1-n]=t[n]+s.sign*a),f=Ry(t,n),i!=null&&f.span>i&&(t[1-n]=t[n]+f.sign*i),t}function Ry(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 Xo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Hy=T,gR=Math.min,yR=Math.max,bI=Math.floor,h$=Math.ceil,TI=me,v$=Math.PI,d$=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 a=t.dimensions,i=t.parallelAxisIndex;Hy(a,function(A,o){var s=i[o],l=e.getComponent("parallelAxis",s),u=this._axesMap.set(A,new c$(A,hp(l),[0,0],l.get("type"),s)),f=u.type==="category";u.onBand=f&&l.get("boundaryGap"),u.inverse=l.get("inverse"),l.axis=u,u.model=l,u.coordinateSystem=l.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,a=e.layoutBase,i=e.pixelDimIndex,A=t[1-i],o=t[i];return A>=n&&A<=n+e.axisLength&&o>=a&&o<=a+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 a=n.getData();Hy(this.dimensions,function(i){var A=this._axesMap.get(i);A.scale.unionExtentFromData(a,a.mapDimension(i)),Os(A.scale,A.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=Le(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"],a=["width","height"],i=t.get("layout"),A=i==="horizontal"?0:1,o=e[a[A]],s=[0,o],l=this.dimensions.length,u=jc(t.get("axisExpandWidth"),s),f=jc(t.get("axisExpandCount")||0,[0,l]),c=t.get("axisExpandable")&&l>3&&l>f&&f>1&&u>0&&o>0,h=t.get("axisExpandWindow"),v;if(h)v=jc(h[1]-h[0],s),h[1]=h[0]+v;else{v=jc(u*(f-1),s);var d=t.get("axisExpandCenter")||bI(l/2);h=[u*d-v/2],h[1]=h[0]+v}var p=(o-v)/(l-f);p<3&&(p=0);var g=[bI(TI(h[0]/u,1))+1,h$(TI(h[1]/u,1))-1],y=p/u*h[0];return{layout:i,pixelDimIndex:A,layoutBase:e[n[A]],layoutLength:o,axisBase:e[n[1-A]],axisLength:e[a[1-A]],axisExpandable:c,axisExpandWidth:u,axisCollapseWidth:p,axisExpandWindow:h,axisCount:l,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;e.each(function(A){var o=[0,a.axisLength],s=A.inverse?1:0;A.setExtent(o[s],o[1-s])}),Hy(n,function(A,o){var s=(a.axisExpandable?g$:p$)(o,a),l={horizontal:{x:s.position,y:a.axisLength},vertical:{x:0,y:s.position}},u={horizontal:v$/2,vertical:0},f=[l[i].x+t.x,l[i].y+t.y],c=u[i],h=Wr();Co(h,h,c),va(h,h,f),this._axesLayout[A]={position:f,rotation:c,transform:h,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.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,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,A=this.dimensions,o=[],s=[];T(A,function(p){o.push(t.mapDimension(p)),s.push(i.get(p).model)});for(var l=this.hasAxisBrushed(),u=n;u<a;u++){var f=void 0;if(!l)f="normal";else{f="active";for(var c=t.getValues(o,u),h=0,v=A.length;h<v;h++){var d=s[h].getActiveState(c[h]);if(d==="inactive"){f="inactive";break}}}e(f,u)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)e.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return Un([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,a=e.axisExpandWindow.slice(),i=a[1]-a[0],A=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var o=t[n]-e.layoutBase-e.axisExpandWindow0Pos,s,l="slide",u=e.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),c=f[0]!=null;if(u)c&&u&&o<i*f[0]?(l="jump",s=o-i*f[2]):c&&u&&o>i*(1-f[0])?(l="jump",s=o-i*(1-f[2])):(s=o-i*f[1])>=0&&(s=o-i*(1-f[1]))<=0&&(s=0),s*=e.axisExpandWidth/u,s?Fo(s,a,A,"all"):l="none";else{var h=a[1]-a[0],v=A[1]*o/h;a=[yR(0,v-h/2)],a[1]=gR(A[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:l}},r}();function jc(r,t){return gR(yR(r,t[0]),t[1])}function p$(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function g$(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,A=t.winInnerIndices,o,s=i,l=!1,u;return r<A[0]?(o=r*i,u=i):r<=A[1]?(o=t.axisExpandWindow0Pos+r*n-t.axisExpandWindow[0],s=n,l=!0):(o=e-(a-1-r)*i,u=i),{position:o,axisNameAvailableWidth:s,axisLabelShow:l,nameTruncateMaxWidth:u}}function y$(r,t){var e=[];return r.eachComponent("parallel",function(n,a){var i=new d$(n,r,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",Te).models[0];n.coordinateSystem=a.coordinateSystem}}),e}var m$={create:y$},pw=function(r){H(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 vo([["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 a=n.length-1;a>=0;a--)fn(n[a])},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 a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,A=n.length;i<A;i++)if(n[i][0]<=e&&e<=n[i][1])return"active";return"inactive"},t}(Rt);Fe(pw,Vf);var yo=!0,Bf=Math.min,Vs=Math.max,w$=Math.pow,B$=1e4,_$=6,C$=6,II="globalPan",S$={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},x$={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},FI={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},b$=0,uC=function(r){H(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_"+b$++,T(L$,function(a,i){this._handlers[i]=it(a,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||pZ(n,II,this._uid),T(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=Et(mt(FI),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;gZ(e,II,this._uid),T(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};T(e,function(a){n[a.panelId]=mt(a)})}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=Y(e,function(c){return Et(mt(FI),c,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],A=this,o=this._creatingCover;return new Ya(a,e,l,s).add(u).update(u).remove(f).execute(),this;function s(c,h){return(c.id!=null?c.id:n+h)+"-"+c.brushType}function l(c,h){return s(c.__brushOption,h)}function u(c,h){var v=e[c];if(h!=null&&a[h]===o)i[c]=a[h];else{var d=i[c]=h!=null?(a[h].__brushOption=v,a[h]):wR(A,mR(A,v));fC(A,d)}}function f(c){a[c]!==o&&A.group.remove(a[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),gw(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(yn);function mR(r,t){var e=mp[t.brushType].createCover(r,t);return e.__brushOption=t,_R(e,t),r.group.add(e),e}function wR(r,t){var e=cC(t);return e.endCreating&&(e.endCreating(r,t),_R(t,t.__brushOption)),t}function BR(r,t){var e=t.__brushOption;cC(t).updateCoverShape(r,t,e.range,e)}function _R(r,t){var e=t.z;e==null&&(e=B$),r.traverse(function(n){n.z=e,n.z2=e})}function fC(r,t){cC(t).updateCommon(r,t),BR(r,t)}function cC(r){return mp[r.__brushOption.brushType]}function hC(r,t,e){var n=r._panels;if(!n)return yo;var a,i=r._transform;return T(n,function(A){A.isTargetByCursor(t,e,i)&&(a=A)}),a}function CR(r,t){var e=r._panels;if(!e)return yo;var n=t.__brushOption.panelId;return n!=null?e[n]:yo}function gw(r){var t=r._covers,e=t.length;return T(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function mo(r,t){var e=Y(r._covers,function(n){var a=n.__brushOption,i=mt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function T$(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],A=w$(a*a+i*i,.5);return A>_$}function SR(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function xR(r,t,e,n){var a=new _t;return a.add(new Nt({name:"main",style:vC(e),silent:!0,draggable:!0,cursor:"move",drift:bt(EI,r,t,a,["n","s","w","e"]),ondragend:bt(mo,t,{isEnd:!0})})),T(n,function(i){a.add(new Nt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:bt(EI,r,t,a,i),ondragend:bt(mo,t,{isEnd:!0})}))}),a}function bR(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Vs(a,C$),A=e[0][0],o=e[1][0],s=A-a/2,l=o-a/2,u=e[0][1],f=e[1][1],c=u-i+a/2,h=f-i+a/2,v=u-A,d=f-o,p=v+a,g=d+a;Ta(r,t,"main",A,o,v,d),n.transformable&&(Ta(r,t,"w",s,l,i,g),Ta(r,t,"e",c,l,i,g),Ta(r,t,"n",s,l,p,i),Ta(r,t,"s",s,h,p,i),Ta(r,t,"nw",s,l,i,i),Ta(r,t,"ne",c,l,i,i),Ta(r,t,"sw",s,h,i,i),Ta(r,t,"se",c,h,i,i))}function yw(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(vC(e)),a.attr({silent:!n,cursor:n?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var A=t.childOfName(i.join("")),o=i.length===1?mw(r,i[0]):F$(r,i);A&&A.attr({silent:!n,invisible:!n,cursor:n?x$[o]+"-resize":null})})}function Ta(r,t,e,n,a,i,A){var o=t.childOfName(e);o&&o.setShape(D$(dC(r,t,[[n,a],[n+i,a+A]])))}function vC(r){return gt({strokeNoScale:!0},r.brushStyle)}function TR(r,t,e,n){var a=[Bf(r,e),Bf(t,n)],i=[Vs(r,e),Vs(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function I$(r){return ao(r.group)}function mw(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Jd(e[t],I$(r));return n[a]}function F$(r,t){var e=[mw(r,t[0]),mw(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function EI(r,t,e,n,a,i){var A=e.__brushOption,o=r.toRectRange(A.range),s=IR(t,a,i);T(n,function(l){var u=S$[l];o[u[0]][u[1]]+=s[u[0]]}),A.range=r.fromRectRange(TR(o[0][0],o[1][0],o[0][1],o[1][1])),fC(t,e),mo(t,{isEnd:!1})}function E$(r,t,e,n){var a=t.__brushOption.range,i=IR(r,e,n);T(a,function(A){A[0]+=i[0],A[1]+=i[1]}),fC(r,t),mo(r,{isEnd:!1})}function IR(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function dC(r,t,e){var n=CR(r,t);return n&&n!==yo?n.clipPath(e,r._transform):mt(e)}function D$(r){var t=Bf(r[0][0],r[1][0]),e=Bf(r[0][1],r[1][1]),n=Vs(r[0][0],r[1][0]),a=Vs(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function Q$(r,t,e){if(!(!r._brushType||M$(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=hC(r,t,e);if(!r._dragging)for(var A=0;A<a.length;A++){var o=a[A].__brushOption;if(i&&(i===yo||o.panelId===i.panelId)&&mp[o.brushType].contain(a[A],e[0],e[1]))return}i&&n.setCursorStyle("crosshair")}}function ww(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Bw(r,t,e){return r.childOfName("main").contain(t,e)}function FR(r,t,e,n){var a=r._creatingCover,i=r._creatingPanel,A=r._brushOption,o;if(r._track.push(e.slice()),T$(r)||a){if(i&&!a){A.brushMode==="single"&&gw(r);var s=mt(A);s.brushType=DI(s.brushType,i),s.panelId=i===yo?null:i.panelId,a=r._creatingCover=mR(r,s),r._covers.push(a)}if(a){var l=mp[DI(r._brushType,i)],u=a.__brushOption;u.range=l.getCreatingRange(dC(r,a,r._track)),n&&(wR(r,a),l.updateCommon(r,a)),BR(r,a),o={isEnd:n}}}else n&&A.brushMode==="single"&&A.removeOnClick&&hC(r,t,e)&&gw(r)&&(o={isEnd:n,removeOnClick:!0});return o}function DI(r,t){return r==="auto"?t.defaultBrushType:r}var L$={mousedown:function(r){if(this._dragging)QI(this,r);else if(!r.target||!r.target.draggable){ww(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=hC(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(Q$(this,r,n),this._dragging){ww(r);var a=FR(this,r,n,!1);a&&mo(this,a)}},mouseup:function(r){QI(this,r)}};function QI(r,t){if(r._dragging){ww(t);var e=t.offsetX,n=t.offsetY,a=r.group.transformCoordToLocal(e,n),i=FR(r,t,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&mo(r,i)}}function M$(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var mp={lineX:LI(0),lineY:LI(1),rect:{createCover:function(r,t){function e(n){return n}return xR({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=SR(r);return TR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){bR(r,t,e,n)},updateCommon:yw,contain:Bw},polygon:{createCover:function(r,t){var e=new _t;return e.add(new xr({name:"main",style:vC(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Sr({name:"main",draggable:!0,drift:bt(E$,r,t),ondragend:bt(mo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:dC(r,t,e)})},updateCommon:yw,contain:Bw}};function LI(r){return{createCover:function(t,e){return xR({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=SR(t),n=Bf(e[0][r],e[1][r]),a=Vs(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,A=CR(t,e);if(A!==yo&&A.getLinearBrushOtherExtent)i=A.getLinearBrushOtherExtent(r);else{var o=t._zr;i=[0,[o.getWidth(),o.getHeight()][1-r]]}var s=[n,i];r&&s.reverse(),bR(t,e,s,a)},updateCommon:yw,contain:Bw}}function ER(r){return r=pC(r),function(t){return NM(t,r)}}function DR(r,t){return r=pC(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function QR(r,t,e){var n=pC(r);return function(a,i){return n.contain(i[0],i[1])&&!dp(a,t,e)}}function pC(r){return Dt.create(r)}var U$=["axisLine","axisTickLabel","axisName"],P$=function(r){H(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 uC(n.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!R$(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var A=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var o=O$(e,n),s=o.coordinateSystem,l=e.getAreaSelectStyle(),u=l.width,f=e.axis.dim,c=s.getAxisLayout(f),h=V({strokeContainThreshold:u},c),v=new wr(e,h);T(U$,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,l,e,o,u,a),Rf(A,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,A,o){var s=a.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,Math.abs(l)*.1),f=Dt.create({x:s[0],y:-A/2,width:l,height:A});f.x-=u,f.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:ER(f),isTargetByCursor:QR(f,o,i),getLinearBrushOtherExtent:DR(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(H$(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,A=Y(n,function(o){return[i.coordToData(o.range[0],!0),i.coordToData(o.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:A})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(de);function R$(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function H$(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function O$(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var k$={type:"axisAreaSelect",event:"axisAreaSelected"};function N$(r){r.registerAction(k$,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 V$={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function LR(r){r.registerComponentView(l$),r.registerComponentModel(f$),r.registerCoordinateSystem("parallel",m$),r.registerPreprocessor(i$),r.registerComponentModel(pw),r.registerComponentView(P$),Ns(r,"parallel",pw,V$),N$(r)}function G$(r){Lt(LR),r.registerChartView(J7),r.registerSeriesModel(t$),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,a$)}var K$=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}(),z$=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new K$},t.prototype.buildPath=function(e,n){var a=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+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){Wa(this)},t.prototype.downplay=function(){Xa(this)},t}(Mt),W$=function(r){H(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,a){var i=this,A=e.getGraph(),o=this.group,s=e.layoutInfo,l=s.width,u=s.height,f=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=s.x,o.y=s.y,A.eachEdge(function(v){var d=new z$,p=Ct(d);p.dataIndex=v.dataIndex,p.seriesIndex=e.seriesIndex,p.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),w=v.node1.getLayout(),_=v.node1.getModel(),B=_.get("localX"),C=_.get("localY"),S=v.node2.getLayout(),x=v.node2.getModel(),b=x.get("localX"),I=x.get("localY"),F=v.getLayout(),E,D,Q,M,R,P,O,G;d.shape.extent=Math.max(1,F.dy),d.shape.orient=h,h==="vertical"?(E=(B!=null?B*l:w.x)+F.sy,D=(C!=null?C*u:w.y)+w.dy,Q=(b!=null?b*l:S.x)+F.ty,M=I!=null?I*u:S.y,R=E,P=D*(1-m)+M*m,O=Q,G=D*m+M*(1-m)):(E=(B!=null?B*l:w.x)+w.dx,D=(C!=null?C*u:w.y)+F.sy,Q=b!=null?b*l:S.x,M=(I!=null?I*u:S.y)+F.ty,R=E*(1-m)+Q*m,P=D,O=E*m+Q*(1-m),G=M),d.setShape({x1:E,y1:D,x2:Q,y2:M,cpx1:R,cpy1:P,cpx2:O,cpy2:G}),d.useStyle(y.getItemStyle()),MI(d.style,h,v);var X=""+g.get("value"),J=Oe(g,"edgeLabel");Je(d,J,{labelFetcher:{getFormattedLabel:function(wt,Bt,N,z,$,q){return e.getFormattedLabel(wt,Bt,"edge",z,ua($,J.normal&&J.normal.get("formatter"),X),q)}},labelDataIndex:v.dataIndex,defaultText:X}),d.setTextConfig({position:"inside"});var At=g.getModel("emphasis");$e(d,g,"lineStyle",function(wt){var Bt=wt.getItemStyle();return MI(Bt,h,v),Bt}),o.add(d),c.setItemGraphicEl(v.dataIndex,d);var lt=At.get("focus");ye(d,lt==="adjacency"?v.getAdjacentDataIndices():lt==="trajectory"?v.getTrajectoryDataIndices():lt,At.get("blurScope"),At.get("disabled"))}),A.eachNode(function(v){var d=v.getLayout(),p=v.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),w=p.get(["itemStyle","borderRadius"])||0,_=new Nt({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:w},style:p.getModel("itemStyle").getItemStyle(),z2:10});Je(_,Oe(p),{labelFetcher:{getFormattedLabel:function(C,S){return e.getFormattedLabel(C,S,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),$e(_,p),o.add(_),f.setItemGraphicEl(v.dataIndex,_),Ct(_).dataType="node";var B=m.get("focus");ye(_,B==="adjacency"?v.getAdjacentDataIndices():B==="trajectory"?v.getTrajectoryDataIndices():B,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(v,d){var p=f.getItemModel(d);p.get("draggable")&&(v.drift=function(g,y){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&e.isAnimationEnabled()&&o.setClipPath(X$(o.getBoundingRect(),e,function(){o.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(jt);function MI(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"),a=e.node2.getVisual("color");nt(n)&&nt(a)&&(r.fill=new Pf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function X$(r,t,e){var n=new Nt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ue(n,{shape:{width:r.width+20}},t,e),n}var Y$=function(r){H(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 a=e.edges||e.links,i=e.data||e.nodes,A=e.levels;this.levelModels=[];for(var o=this.levelModels,s=0;s<A.length;s++)A[s].depth!=null&&A[s].depth>=0&&(o[A[s].depth]=new Yt(A[s],this,n));if(i&&a){var l=dR(i,a,this,!0,u);return l.data}function u(f,c){f.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getData().getItemLayout(v);if(p){var g=p.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getGraph().getEdgeByIndex(v),g=p.node1.getLayout();if(g){var y=g.depth,m=d.levelModels[y];m&&(h.parentModel=m)}return h})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];i.localX=n[0],i.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,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var A=this.getDataParams(e,a),o=A.data,s=A.value,l=o.source+" -- "+o.target;return ke("nameValue",{name:l,value:s,noValue:i(s)})}else{var u=this.getGraph().getNodeByIndex(e),f=u.getLayout().value,c=this.getDataParams(e,a).data.name;return ke("nameValue",{name:c!=null?c+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),A=i.getLayout().value;a.value=A}return a},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}(se);function Z$(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=$$(e,t);e.layoutInfo=i;var A=i.width,o=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;q$(l);var f=Jt(l,function(d){return d.getLayout().value===0}),c=f.length!==0?0:e.get("layoutIterations"),h=e.get("orient"),v=e.get("nodeAlign");J$(l,u,n,a,A,o,c,h,v)})}function $$(r,t){return Le(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function J$(r,t,e,n,a,i,A,o,s){j$(r,t,e,a,i,o,s),nJ(r,t,i,a,n,A,o),cJ(r,o)}function q$(r){T(r,function(t){var e=ki(t.outEdges,jv),n=ki(t.inEdges,jv),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function j$(r,t,e,n,a,i,A){for(var o=[],s=[],l=[],u=[],f=0,c=0;c<t.length;c++)o[c]=1;for(var c=0;c<r.length;c++)s[c]=r[c].inEdges.length,s[c]===0&&l.push(r[c]);for(var h=-1;l.length;){for(var v=0;v<l.length;v++){var d=l[v],p=d.hostGraph.data.getRawDataItem(d.dataIndex),g=p.depth!=null&&p.depth>=0;g&&p.depth>h&&(h=p.depth),d.setLayout({depth:g?p.depth:f},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var y=0;y<d.outEdges.length;y++){var m=d.outEdges[y],w=t.indexOf(m);o[w]=0;var _=m.node2,B=r.indexOf(_);--s[B]===0&&u.indexOf(_)<0&&u.push(_)}}++f,l=u,u=[]}for(var c=0;c<o.length;c++)if(o[c]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=h>f-1?h:f-1;A&&A!=="left"&&tJ(r,A,i,C);var S=i==="vertical"?(a-e)/C:(n-e)/C;rJ(r,S,i)}function MR(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function tJ(r,t,e,n){if(t==="right"){for(var a=[],i=r,A=0;i.length;){for(var o=0;o<i.length;o++){var s=i[o];s.setLayout({skNodeHeight:A},!0);for(var l=0;l<s.inEdges.length;l++){var u=s.inEdges[l];a.indexOf(u.node1)<0&&a.push(u.node1)}}i=a,a=[],++A}T(r,function(f){MR(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&eJ(r,n)}function eJ(r,t){T(r,function(e){!MR(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function rJ(r,t,e){T(r,function(n){var a=n.getLayout().depth*t;e==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function nJ(r,t,e,n,a,i,A){var o=aJ(r,A);iJ(o,t,e,n,a,A),Oy(o,a,e,n,A);for(var s=1;i>0;i--)s*=.99,AJ(o,s,A),Oy(o,a,e,n,A),fJ(o,s,A),Oy(o,a,e,n,A)}function aJ(r,t){var e=[],n=t==="vertical"?"y":"x",a=_0(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,A){return i-A}),T(a.keys,function(i){e.push(a.buckets.get(i))}),e}function iJ(r,t,e,n,a,i){var A=1/0;T(r,function(o){var s=o.length,l=0;T(o,function(f){l+=f.getLayout().value});var u=i==="vertical"?(n-(s-1)*a)/l:(e-(s-1)*a)/l;u<A&&(A=u)}),T(r,function(o){T(o,function(s,l){var u=s.getLayout().value*A;i==="vertical"?(s.setLayout({x:l},!0),s.setLayout({dx:u},!0)):(s.setLayout({y:l},!0),s.setLayout({dy:u},!0))})}),T(t,function(o){var s=+o.getValue()*A;o.setLayout({dy:s},!0)})}function Oy(r,t,e,n,a){var i=a==="vertical"?"x":"y";T(r,function(A){A.sort(function(d,p){return d.getLayout()[i]-p.getLayout()[i]});for(var o,s,l,u=0,f=A.length,c=a==="vertical"?"dx":"dy",h=0;h<f;h++)s=A[h],l=u-s.getLayout()[i],l>0&&(o=s.getLayout()[i]+l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]+s.getLayout()[c]+t;var v=a==="vertical"?n:e;if(l=u-t-v,l>0){o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(var h=f-2;h>=0;--h)s=A[h],l=s.getLayout()[i]+s.getLayout()[c]+t-u,l>0&&(o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]}})}function AJ(r,t,e){T(r.slice().reverse(),function(n){T(n,function(a){if(a.outEdges.length){var i=ki(a.outEdges,oJ,e)/ki(a.outEdges,jv);if(isNaN(i)){var A=a.outEdges.length;i=A?ki(a.outEdges,sJ,e)/A:0}if(e==="vertical"){var o=a.getLayout().x+(i-$i(a,e))*t;a.setLayout({x:o},!0)}else{var s=a.getLayout().y+(i-$i(a,e))*t;a.setLayout({y:s},!0)}}})})}function oJ(r,t){return $i(r.node2,t)*r.getValue()}function sJ(r,t){return $i(r.node2,t)}function lJ(r,t){return $i(r.node1,t)*r.getValue()}function uJ(r,t){return $i(r.node1,t)}function $i(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function jv(r){return r.getValue()}function ki(r,t,e){for(var n=0,a=r.length,i=-1;++i<a;){var A=+t(r[i],e);isNaN(A)||(n+=A)}return n}function fJ(r,t,e){T(r,function(n){T(n,function(a){if(a.inEdges.length){var i=ki(a.inEdges,lJ,e)/ki(a.inEdges,jv);if(isNaN(i)){var A=a.inEdges.length;i=A?ki(a.inEdges,uJ,e)/A:0}if(e==="vertical"){var o=a.getLayout().x+(i-$i(a,e))*t;a.setLayout({x:o},!0)}else{var s=a.getLayout().y+(i-$i(a,e))*t;a.setLayout({y:s},!0)}}})})}function cJ(r,t){var e=t==="vertical"?"x":"y";T(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[e]-i.node2.getLayout()[e]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[e]-i.node1.getLayout()[e]})}),T(r,function(n){var a=0,i=0;T(n.outEdges,function(A){A.setLayout({sy:a},!0),a+=A.getLayout().dy}),T(n.inEdges,function(A){A.setLayout({ty:i},!0),i+=A.getLayout().dy})})}function hJ(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes,a=e.edges;if(n.length){var i=1/0,A=-1/0;T(n,function(o){var s=o.getLayout().value;s<i&&(i=s),s>A&&(A=s)}),T(n,function(o){var s=new He({type:"color",mappingMethod:"linear",dataExtent:[i,A],visual:t.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}a.length&&T(a,function(o){var s=o.getModel().get("lineStyle");o.setVisual("style",s)})})}function vJ(r){r.registerChartView(W$),r.registerSeriesModel(Y$),r.registerLayout(Z$),r.registerVisual(hJ),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 UR=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),A=a.get("type"),o=i.get("type"),s;A==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),s=!0):o==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u=t.layout==="horizontal"?0:1,f=this._baseAxisDim=l[u],c=l[1-u],h=[a,i],v=h[u].get("type"),d=h[1-u].get("type"),p=t.data;if(p&&s){var g=[];T(p,function(w,_){var B;K(w)?(B=w.slice(),w.unshift(_)):K(w.value)?(B=V({},w),B.value=B.value.slice(),w.value.unshift(_)):B=w,g.push(B)}),t.data=g}var y=this.defaultValueDimensions,m=[{name:f,type:Vv(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Vv(d),dimsDef:y.slice()}];return ll(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:bt(hU,m,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),PR=function(r){H(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}(se);Fe(PR,UR,!0);var dJ=function(r){H(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,a){var i=e.getData(),A=this.group,o=this._data;this._data||A.removeAll();var s=e.get("layout")==="horizontal"?1:0;i.diff(o).add(function(l){if(i.hasValue(l)){var u=i.getItemLayout(l),f=UI(u,i,l,s,!0);i.setItemGraphicEl(l,f),A.add(f)}}).update(function(l,u){var f=o.getItemGraphicEl(u);if(!i.hasValue(l)){A.remove(f);return}var c=i.getItemLayout(l);f?(Hn(f),RR(c,f,i,l)):f=UI(c,i,l,s),A.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&A.remove(u)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(jt),pJ=function(){function r(){}return r}(),gJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new pJ},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();i<a.length;i++)e.moveTo(a[i][0],a[i][1]),i++,e.lineTo(a[i][0],a[i][1])},t}(Mt);function UI(r,t,e,n,a){var i=r.ends,A=new gJ({shape:{points:a?yJ(i,n,r):i}});return RR(r,A,t,e,a),A}function RR(r,t,e,n,a){var i=e.hostModel,A=So[a?"initProps":"updateProps"];A(t,{shape:{points:r.ends}},i,n),t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var o=e.getItemModel(n),s=o.getModel("emphasis");$e(t,o),ye(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function yJ(r,t,e){return Y(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}var Pu=T;function mJ(r){var t=wJ(r);Pu(t,function(e){var n=e.seriesModels;n.length&&(BJ(e),Pu(n,function(a,i){_J(a,e.boxOffsetList[i],e.boxWidthList[i])}))})}function wJ(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=Qt(e,a);i<0&&(i=e.length,e[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(n)}),t}function BJ(r){var t=r.axis,e=r.seriesModels,n=e.length,a=r.boxWidthList=[],i=r.boxOffsetList=[],A=[],o;if(t.type==="category")o=t.getBandWidth();else{var s=0;Pu(e,function(v){s=Math.max(s,v.getData().count())});var l=t.getExtent();o=Math.abs(l[1]-l[0])/s}Pu(e,function(v){var d=v.get("boxWidth");K(d)||(d=[d,d]),A.push([et(d[0],o)||0,et(d[1],o)||0])});var u=o*.8-2,f=u/n*.3,c=(u-f*(n-1))/n,h=c/2-u/2;Pu(e,function(v,d){i.push(h),h+=f+c,a.push(Math.min(Math.max(c,A[d][0]),A[d][1]))})}function _J(r,t,e){var n=r.coordinateSystem,a=r.getData(),i=e/2,A=r.get("layout")==="horizontal"?0:1,o=1-A,s=["x","y"],l=a.mapDimension(s[A]),u=a.mapDimensionsAll(s[o]);if(l==null||u.length<5)return;for(var f=0;f<a.count();f++){var c=a.get(l,f),h=m(c,u[2],f),v=m(c,u[0],f),d=m(c,u[1],f),p=m(c,u[3],f),g=m(c,u[4],f),y=[];w(y,d,!1),w(y,p,!0),y.push(v,d,g,p),_(y,v),_(y,g),_(y,h),a.setItemLayout(f,{initBaseline:h[o],ends:y})}function m(B,C,S){var x=a.get(C,S),b=[];b[A]=B,b[o]=x;var I;return isNaN(B)||isNaN(x)?I=[NaN,NaN]:(I=n.dataToPoint(b),I[A]+=t),I}function w(B,C,S){var x=C.slice(),b=C.slice();x[A]+=i,b[A]-=i,S?B.push(x,b):B.push(b,x)}function _(B,C){var S=C.slice(),x=C.slice();S[A]-=i,x[A]+=i,B.push(S,x)}}function CJ(r,t){t=t||{};for(var e=[],n=[],a=t.boundIQR,i=a==="none"||a===0,A=0;A<r.length;A++){var o=fn(r[A].slice()),s=vg(o,.25),l=vg(o,.5),u=vg(o,.75),f=o[0],c=o[o.length-1],h=(a??1.5)*(u-s),v=i?f:Math.max(f,s-h),d=i?c:Math.min(c,u+h),p=t.itemNameFormatter,g=vt(p)?p({value:A}):nt(p)?p.replace("{value}",A+""):A+"";e.push([g,v,s,l,u,d]);for(var y=0;y<o.length;y++){var m=o[y];if(m<v||m>d){var w=[g,m];n.push(w)}}}return{boxData:e,outliers:n}}var SJ={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==lr){var n="";Xt(n)}var a=CJ(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function xJ(r){r.registerSeriesModel(PR),r.registerChartView(dJ),r.registerLayout(mJ),r.registerTransform(SJ)}var bJ=["color","borderColor"],TJ=function(r){H(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,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){rA(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(),a=this._data,i=this.group,A=n.getLayout("isSimpleBox"),o=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),n.diff(a).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u);if(o&&PI(l,f))return;var c=ky(f,u,!0);ue(c,{shape:{points:f.ends}},e,u),Ny(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}}).update(function(u,f){var c=a.getItemGraphicEl(f);if(!n.hasValue(u)){i.remove(c);return}var h=n.getItemLayout(u);if(o&&PI(l,h)){i.remove(c);return}c?(zt(c,{shape:{points:h.ends}},e,u),Hn(c)):c=ky(h),Ny(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}).remove(function(u){var f=a.getItemGraphicEl(u);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),RI(e,this.group);var n=e.get("clip",!0)?zf(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),A;(A=e.next())!=null;){var o=a.getItemLayout(A),s=ky(o);Ny(s,a,A,i),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},t.prototype._incrementalRenderLarge=function(e,n){RI(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}(jt),IJ=function(){function r(){}return r}(),FJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new IJ},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Mt);function ky(r,t,e){var n=r.ends;return new FJ({shape:{points:e?EJ(n,r):n},z2:100})}function PI(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 Ny(r,t,e,n){var a=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,$e(r,a)}function EJ(r,t){return Y(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var DJ=function(){function r(){}return r}(),Vy=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new DJ},t.prototype.buildPath=function(e,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var A=a[i++];e.moveTo(A,a[i++]),e.lineTo(A,a[i++])}else i+=3},t}(Mt);function RI(r,t,e,n){var a=r.getData(),i=a.getLayout("largePoints"),A=new Vy({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(A);var o=new Vy({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(o);var s=new Vy({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(s),Gy(1,A,r),Gy(-1,o,r),Gy(0,s,r),n&&(A.incremental=!0,o.incremental=!0),e&&e.push(A,o)}function Gy(r,t,e,n){var a=e.get(["itemStyle",r>0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(bJ);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var HR=function(r){H(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,a){var i=n.getItemLayout(e);return i&&a.rect(i.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:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(se);Fe(HR,UR,!0);function QJ(r){!r||!K(r.series)||T(r.series,function(t){yt(t)&&t.type==="k"&&(t.type="candlestick")})}var LJ=["itemStyle","borderColor"],MJ=["itemStyle","borderColor0"],UJ=["itemStyle","borderColorDoji"],PJ=["itemStyle","color"],RJ=["itemStyle","color0"],HJ={seriesType:"candlestick",plan:il(),performRawSeries:!0,reset:function(r,t){function e(i,A){return A.get(i>0?PJ:RJ)}function n(i,A){return A.get(i===0?UJ:i>0?LJ:MJ)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,A){for(var o;(o=i.next())!=null;){var s=A.getItemModel(o),l=A.getItemLayout(o).sign,u=s.getItemStyle();u.fill=e(l,s),u.stroke=n(l,s)||u.fill;var f=A.ensureUniqueItemVisual(o,"style");V(f,u)}}}}}},OJ={seriesType:"candlestick",plan:il(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=kJ(r,e),a=0,i=1,A=["x","y"],o=e.getDimensionIndex(e.mapDimension(A[a])),s=Y(e.mapDimensionsAll(A[i]),e.getDimensionIndex,e),l=s[0],u=s[1],f=s[2],c=s[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),o<0||s.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,p){for(var g,y=p.getStore();(g=d.next())!=null;){var m=y.get(o,g),w=y.get(l,g),_=y.get(u,g),B=y.get(f,g),C=y.get(c,g),S=Math.min(w,_),x=Math.max(w,_),b=R(S,m),I=R(x,m),F=R(B,m),E=R(C,m),D=[];P(D,I,0),P(D,b,1),D.push(G(E),G(I),G(F),G(b));var Q=p.getItemModel(g),M=!!Q.get(["itemStyle","borderColorDoji"]);p.setItemLayout(g,{sign:HI(y,g,w,_,u,M),initBaseline:w>_?I[i]:b[i],ends:D,brushRect:O(B,C,m)})}function R(X,J){var At=[];return At[a]=J,At[i]=X,isNaN(J)||isNaN(X)?[NaN,NaN]:t.dataToPoint(At)}function P(X,J,At){var lt=J.slice(),wt=J.slice();lt[a]=Xh(lt[a]+n/2,1,!1),wt[a]=Xh(wt[a]-n/2,1,!0),At?X.push(lt,wt):X.push(wt,lt)}function O(X,J,At){var lt=R(X,At),wt=R(J,At);return lt[a]-=n/2,wt[a]-=n/2,{x:lt[0],y:lt[1],width:n,height:wt[1]-lt[1]}}function G(X){return X[a]=Xh(X[a],1),X}}function v(d,p){for(var g=Aa(d.count*4),y=0,m,w=[],_=[],B,C=p.getStore(),S=!!r.get(["itemStyle","borderColorDoji"]);(B=d.next())!=null;){var x=C.get(o,B),b=C.get(l,B),I=C.get(u,B),F=C.get(f,B),E=C.get(c,B);if(isNaN(x)||isNaN(F)||isNaN(E)){g[y++]=NaN,y+=3;continue}g[y++]=HI(C,B,b,I,u,S),w[a]=x,w[i]=F,m=t.dataToPoint(w,null,_),g[y++]=m?m[0]:NaN,g[y++]=m?m[1]:NaN,w[i]=E,m=t.dataToPoint(w,null,_),g[y++]=m?m[1]:NaN}p.setLayout("largePoints",g)}}};function HI(r,t,e,n,a,i){var A;return e>n?A=-1:e<n?A=1:A=i?0:t>0?r.get(a,t-1)<=n?1:-1:1,A}function kJ(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=et(xt(r.get("barMaxWidth"),a),a),A=et(xt(r.get("barMinWidth"),1),a),o=r.get("barWidth");return o!=null?et(o,a):Math.max(Math.min(a/2,i),A)}function NJ(r){r.registerChartView(TJ),r.registerSeriesModel(HR),r.registerPreprocessor(QJ),r.registerVisual(HJ),r.registerLayout(OJ)}function OI(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 VJ=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=new Gf(e,n),A=new _t;return a.add(i),a.add(A),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,A=this.childAt(1),o=0;o<i;o++){var s=Ie(n,-1,-1,2,2,a);s.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var l=-o/i*e.period+e.effectOffset;s.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(l).start(),s.animateStyle(!0).when(e.period,{opacity:0}).delay(l).start(),A.add(s)}OI(A,e)},t.prototype.updateEffectAnimation=function(e){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],A=0;A<i.length;A++){var o=i[A];if(n[o]!==e[o]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}OI(a,e)},t.prototype.highlight=function(){Wa(this)},t.prototype.downplay=function(){Xa(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,n){var a=this,i=e.hostModel;this.childAt(0).updateData(e,n);var A=this.childAt(1),o=e.getItemModel(n),s=e.getItemVisual(n,"symbol"),l=ol(e.getItemVisual(n,"symbolSize")),u=e.getItemVisual(n,"style"),f=u&&u.fill,c=o.getModel("emphasis");A.setScale(l),A.traverse(function(p){p.setStyle("fill",f)});var h=xo(e.getItemVisual(n,"symbolOffset"),l);h&&(A.x=h[0],A.y=h[1]);var v=e.getItemVisual(n,"symbolRotate");A.rotation=(v||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=o.get(["rippleEffect","scale"]),d.brushType=o.get(["rippleEffect","brushType"]),d.period=o.get(["rippleEffect","period"])*1e3,d.effectOffset=n/e.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=s,d.color=f,d.rippleEffectColor=o.get(["rippleEffect","color"]),d.rippleNumber=o.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(p){p==="emphasis"?d.showEffectOn!=="render"&&a.startEffectAnimation(d):p==="normal"&&d.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=d,ye(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(_t),GJ=function(r){H(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 Kf(VJ)},t.prototype.render=function(e,n,a){var i=e.getData(),A=this._symbolDraw;A.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(A.group)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,a=n&&n.getArea&&n.getArea();return e.get("clip",!0)?a:null},t.prototype.updateTransform=function(e,n,a){var i=e.getData();this.group.dirty();var A=Wf("").reset(e,n,a);A.progress&&A.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var n=e.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=dG(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(jt),KJ=function(r){H(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 ri(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,n,a){return a.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}(se);function zJ(r){r.registerChartView(GJ),r.registerSeriesModel(KJ),r.registerLayout(Wf("effectScatter"))}var OR=function(r){H(t,r);function t(e,n,a){var i=r.call(this)||this;return i.add(i.createLine(e,n,a)),i._updateEffectSymbol(e,n),i}return t.prototype.createLine=function(e,n,a){return new sC(e,n,a)},t.prototype._updateEffectSymbol=function(e,n){var a=e.getItemModel(n),i=a.getModel("effect"),A=i.get("symbolSize"),o=i.get("symbol");K(A)||(A=[A,A]);var s=e.getItemVisual(n,"style"),l=i.get("color")||s&&s.stroke,u=this.childAt(1);this._symbolType!==o&&(this.remove(u),u=Ie(o,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(i.getItemStyle(["color"])),u.scaleX=A[0],u.scaleY=A[1],u.setColor(l),this._symbolType=o,this._symbolScale=A,this._updateEffectAnimation(e,i,n))},t.prototype._updateEffectAnimation=function(e,n,a){var i=this.childAt(1);if(i){var A=e.getItemLayout(a),o=n.get("period")*1e3,s=n.get("loop"),l=n.get("roundTrip"),u=n.get("constantSpeed"),f=Ge(n.get("delay"),function(h){return h/e.count()*o/3});if(i.ignore=!0,this._updateAnimationPoints(i,A),u>0&&(o=this._getLineLength(i)/u*1e3),o!==this._period||s!==this._loop||l!==this._roundTrip){i.stopAnimation();var c=void 0;vt(f)?c=f(a):c=f,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,s,l)}this._period=o,this._loop=s,this._roundTrip=l}},t.prototype._animateSymbol=function(e,n,a,i,A){if(n>0){e.__t=0;var o=this,s=e.animate("",i).when(A?n*2:n,{__t:A?2:1}).delay(a).during(function(){o._updateSymbolPosition(e)});i||s.done(function(){o.remove(e)}),s.start()}},t.prototype._getLineLength=function(e){return xi(e.__p1,e.__cp1)+xi(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,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,A=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],s=o.slice(),l=Ve,u=o0;o[0]=l(n[0],i[0],a[0],A),o[1]=l(n[1],i[1],a[1],A);var f=e.__t<1?u(n[0],i[0],a[0],A):u(a[0],i[0],n[0],1-A),c=e.__t<1?u(n[1],i[1],a[1],A):u(a[1],i[1],n[1],1-A);e.rotation=-Math.atan2(c,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=xi(s,o)*1.05,A===1&&(o[0]=s[0]+(o[0]-s[0])/2,o[1]=s[1]+(o[1]-s[1])/2)):e.__lastT===1?e.scaleY=2*xi(n,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,n){this.childAt(0).updateLayout(e,n);var a=e.getItemModel(n).getModel("effect");this._updateEffectAnimation(e,a,n)},t}(_t),kR=function(r){H(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createPolyline(e,n,a),i}return t.prototype._createPolyline=function(e,n,a){var i=e.getItemLayout(n),A=new xr({shape:{points:i}});this.add(A),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,A=this.childAt(0),o={shape:{points:e.getItemLayout(n)}};zt(A,o,i,n),this._updateCommonStl(e,n,a)},t.prototype._updateCommonStl=function(e,n,a){var i=this.childAt(0),A=e.getItemModel(n),o=a&&a.emphasisLineStyle,s=a&&a.focus,l=a&&a.blurScope,u=a&&a.emphasisDisabled;if(!a||e.hasItemOption){var f=A.getModel("emphasis");o=f.getModel("lineStyle").getLineStyle(),u=f.get("disabled"),s=f.get("focus"),l=f.get("blurScope")}i.useStyle(e.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=o,ye(this,s,l,u)},t.prototype.updateLayout=function(e,n){var a=this.childAt(0);a.setShape("points",e.getItemLayout(n))},t}(_t),WJ=function(r){H(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,a){return new kR(e,n,a)},t.prototype._updateAnimationPoints=function(e,n){this._points=n;for(var a=[0],i=0,A=1;A<n.length;A++){var o=n[A-1],s=n[A];i+=xi(o,s),a.push(i)}if(i===0){this._length=0;return}for(var A=0;A<a.length;A++)a[A]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var n=e.__t<1?e.__t:2-e.__t,a=this._points,i=this._offsets,A=a.length;if(i){var o=this._lastFrame,s;if(n<this._lastFramePercent){var l=Math.min(o+1,A-1);for(s=l;s>=0&&!(i[s]<=n);s--);s=Math.min(s,A-2)}else{for(s=o;s<A&&!(i[s]>n);s++);s=Math.min(s-1,A-2)}var u=(n-i[s])/(i[s+1]-i[s]),f=a[s],c=a[s+1];e.x=f[0]*(1-u)+u*c[0],e.y=f[1]*(1-u)+u*c[1];var h=e.__t<1?c[0]-f[0]:f[0]-c[0],v=e.__t<1?c[1]-f[1]:f[1]-c[1];e.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=n,e.ignore=!1}},t}(OR),XJ=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),YJ=function(r){H(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 XJ},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,A;if(n.polyline)for(A=this._off;A<a.length;){var o=a[A++];if(o>0){e.moveTo(a[A++],a[A++]);for(var s=1;s<o;s++)e.lineTo(a[A++],a[A++])}}else for(A=this._off;A<a.length;){var l=a[A++],u=a[A++],f=a[A++],c=a[A++];if(e.moveTo(l,u),i>0){var h=(l+f)/2-(u-c)*i,v=(u+c)/2-(f-l)*i;e.quadraticCurveTo(h,v,f,c)}else e.lineTo(f,c)}this.incremental&&(this._off=A,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,A=a.curveness,o=this.style.lineWidth;if(a.polyline)for(var s=0,l=0;l<i.length;){var u=i[l++];if(u>0)for(var f=i[l++],c=i[l++],h=1;h<u;h++){var v=i[l++],d=i[l++];if(Bi(f,c,v,d,o,e,n))return s}s++}else for(var s=0,l=0;l<i.length;){var f=i[l++],c=i[l++],v=i[l++],d=i[l++];if(A>0){var p=(f+v)/2-(c-d)*A,g=(c+d)/2-(v-f)*A;if(hM(f,c,p,g,v,d,o,e,n))return s}else if(Bi(f,c,v,d,o,e,n))return s;s++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.segs,i=1/0,A=1/0,o=-1/0,s=-1/0,l=0;l<a.length;){var u=a[l++],f=a[l++];i=Math.min(u,i),o=Math.max(u,o),A=Math.min(f,A),s=Math.max(f,s)}e=this._rect=new Dt(i,A,o,s)}return e},t}(Mt),ZJ=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],a=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var A=i.length,o=new Float32Array(A+a.length);o.set(i),o.set(a,A),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:a}),this._setCommon(s,e),s.__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 YJ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var A=Ct(t);A.seriesIndex=a.seriesIndex,t.on("mousemove",function(o){A.dataIndex=null;var s=t.hoverDataIdx;s>0&&(A.dataIndex=s+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),NR={seriesType:"lines",plan:il(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var A=[];if(n){var o=void 0,s=a.end-a.start;if(e){for(var l=0,u=a.start;u<a.end;u++)l+=r.getLineCoordsCount(u);o=new Float32Array(s+l*2)}else o=new Float32Array(s*4);for(var f=0,c=[],u=a.start;u<a.end;u++){var h=r.getLineCoords(u,A);e&&(o[f++]=h);for(var v=0;v<h;v++)c=t.dataToPoint(A[v],!1,c),o[f++]=c[0],o[f++]=c[1]}i.setLayout("linesPoints",o)}else for(var u=a.start;u<a.end;u++){var d=i.getItemModel(u),h=r.getLineCoords(u,A),p=[];if(e)for(var g=0;g<h;g++)p.push(t.dataToPoint(A[g]));else{p[0]=t.dataToPoint(A[0]),p[1]=t.dataToPoint(A[1]);var y=d.get(["lineStyle","curveness"]);+y&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*y,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*y])}i.setItemLayout(u,p)}}}}}},$J=function(r){H(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,a){var i=e.getData(),A=this._updateLineDraw(i,e),o=e.get("zlevel"),s=e.get(["effect","trailLength"]),l=a.getZr(),u=l.painter.getType()==="svg";u||l.painter.getLayer(o).clear(!0),this._lastZlevel!=null&&!u&&l.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&s>0&&(u||l.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),A.updateData(i);var f=e.get("clip",!0)&&zf(e.coordinateSystem,!1,e);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateLineDraw(i,e);A.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){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,a){var i=e.getData(),A=e.pipelineContext;if(!this._finished||A.large||A.progressiveRender)return{update:!0};var o=NR.reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),A=!!n.get("polyline"),o=n.pipelineContext,s=o.large;return(!a||i!==this._hasEffet||A!==this._isPolyline||s!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=s?new ZJ:new lC(A?i?WJ:kR:i?OR:sC),this._hasEffet=i,this._isPolyline=A,this._isLargeDraw=s),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),a=n.painter.getType()==="svg";!a&&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}(jt),JJ=typeof Uint32Array>"u"?Array:Uint32Array,qJ=typeof Float64Array>"u"?Array:Float64Array;function kI(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),NB([a,e[0],e[1]])}))}var jJ=function(r){H(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||[],kI(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(kI(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=yv(this._flatCoords,n.flatCoords),this._flatCoordsOffset=yv(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),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},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 a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],A=0;A<i;A++)n[A]=n[A]||[],n[A][0]=this._flatCoords[a+A*2],n[A][1]=this._flatCoords[a+A*2+1];return i}else{for(var o=this._getCoordsFromItemModel(e),A=0;A<o.length;A++)n[A]=n[A]||[],n[A][0]=o[A][0],n[A][1]=o[A][1];return o.length}},t.prototype._processFlatCoordsArray=function(e){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Kt(e[0])){for(var a=e.length,i=new JJ(a),A=new qJ(a),o=0,s=0,l=0,u=0;u<a;){l++;var f=e[u++];i[s++]=o+n,i[s++]=f;for(var c=0;c<f;c++){var h=e[u++],v=e[u++];A[o++]=h,A[o++]=v}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,s),flatCoords:A,count:l}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,n){var a=new mr(["value"],this);return a.hasItemOption=!1,a.initData(e.data,[],function(i,A,o,s){if(i instanceof Array)return NaN;a.hasItemOption=!0;var l=i.value;if(l!=null)return l instanceof Array?l[s]:l}),a},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),A=i.getItemModel(e),o=A.get("name");if(o)return o;var s=A.get("fromName"),l=A.get("toName"),u=[];return s!=null&&u.push(s),l!=null&&u.push(l),ke("nameValue",{name:u.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),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}(se);function th(r){return r instanceof Array||(r=[r,r]),r}var tq={seriesType:"lines",reset:function(r){var t=th(r.get("symbol")),e=th(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 a(i,A){var o=i.getItemModel(A),s=th(o.getShallow("symbol",!0)),l=th(o.getShallow("symbolSize",!0));s[0]&&i.setItemVisual(A,"fromSymbol",s[0]),s[1]&&i.setItemVisual(A,"toSymbol",s[1]),l[0]&&i.setItemVisual(A,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(A,"toSymbolSize",l[1])}return{dataEach:n.hasItemOption?a:null}}};function eq(r){r.registerChartView($J),r.registerSeriesModel(jJ),r.registerLayout(NR),r.registerVisual(tq)}var rq=256,nq=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=zi.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,A){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,f=this.canvas,c=f.getContext("2d"),h=t.length;f.width=e,f.height=n;for(var v=0;v<h;++v){var d=t[v],p=d[0],g=d[1],y=d[2],m=a(y);c.globalAlpha=m,c.drawImage(o,p-u,g-u)}if(!f.width||!f.height)return f;for(var w=c.getImageData(0,0,f.width,f.height),_=w.data,B=0,C=_.length,S=this.minOpacity,x=this.maxOpacity,b=x-S;B<C;){var m=_[B+3]/256,I=Math.floor(m*(rq-1))*4;if(m>0){var F=A(m)?s:l;m>0&&(m=m*b+S),_[B++]=F[I],_[B++]=F[I+1],_[B++]=F[I+2],_[B++]=F[I+3]*m*256}else B+=4}return c.putImageData(w,0,0),f},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=zi.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],A=0,o=0;o<256;o++)t[e](o/255,!0,i),a[A++]=i[0],a[A++]=i[1],a[A++]=i[2],a[A++]=i[3];return a},r}();function aq(r,t,e){var n=r[1]-r[0];t=Y(t,function(A){return{interval:[(A.interval[0]-r[0])/n,(A.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(A){var o;for(o=i;o<a;o++){var s=t[o].interval;if(s[0]<=A&&A<=s[1]){i=o;break}}if(o===a)for(o=i-1;o>=0;o--){var s=t[o].interval;if(s[0]<=A&&A<=s[1]){i=o;break}}return o>=0&&o<a&&e[o]}}function iq(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 NI(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Aq=function(r){H(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,a){var i;n.eachComponent("visualMap",function(o){o.eachTargetSeries(function(s){s===e&&(i=o)})}),this._progressiveEls=null,this.group.removeAll();var A=e.coordinateSystem;A.type==="cartesian2d"||A.type==="calendar"?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):NI(A)&&this._renderOnGeo(A,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var A=n.coordinateSystem;A&&(NI(A)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){rA(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,a,i,A){var o=e.coordinateSystem,s=To(o,"cartesian2d"),l,u,f,c;if(s){var h=o.getAxis("x"),v=o.getAxis("y");l=h.getBandWidth()+.5,u=v.getBandWidth()+.5,f=h.scale.getExtent(),c=v.scale.getExtent()}for(var d=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),w=e.get(["itemStyle","borderRadius"]),_=Oe(e),B=e.getModel("emphasis"),C=B.get("focus"),S=B.get("blurScope"),x=B.get("disabled"),b=s?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],I=a;I<i;I++){var F=void 0,E=p.getItemVisual(I,"style");if(s){var D=p.get(b[0],I),Q=p.get(b[1],I);if(isNaN(p.get(b[2],I))||isNaN(D)||isNaN(Q)||D<f[0]||D>f[1]||Q<c[0]||Q>c[1])continue;var M=o.dataToPoint([D,Q]);F=new Nt({shape:{x:M[0]-l/2,y:M[1]-u/2,width:l,height:u},style:E})}else{if(isNaN(p.get(b[1],I)))continue;F=new Nt({z2:1,shape:o.dataToRect([p.get(b[0],I)]).contentShape,style:E})}if(p.hasItemOption){var R=p.getItemModel(I),P=R.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=R.getModel(["blur","itemStyle"]).getItemStyle(),m=R.getModel(["select","itemStyle"]).getItemStyle(),w=R.get(["itemStyle","borderRadius"]),C=P.get("focus"),S=P.get("blurScope"),x=P.get("disabled"),_=Oe(R)}F.shape.r=w;var O=e.getRawValue(I),G="-";O&&O[2]!=null&&(G=O[2]+""),Je(F,_,{labelFetcher:e,labelDataIndex:I,defaultOpacity:E.opacity,defaultText:G}),F.ensureState("emphasis").style=g,F.ensureState("blur").style=y,F.ensureState("select").style=m,ye(F,C,S,x),F.incremental=A,A&&(F.states.emphasis.hoverLayer=!0),d.add(F),p.setItemGraphicEl(I,F),this._progressiveEls&&this._progressiveEls.push(F)}},t.prototype._renderOnGeo=function(e,n,a,i){var A=a.targetVisuals.inRange,o=a.targetVisuals.outOfRange,s=n.getData(),l=this._hmLayer||this._hmLayer||new nq;l.blurSize=n.get("blurSize"),l.pointSize=n.get("pointSize"),l.minOpacity=n.get("minOpacity"),l.maxOpacity=n.get("maxOpacity");var u=e.getViewRect().clone(),f=e.getRoamTransform();u.applyTransform(f);var c=Math.max(u.x,0),h=Math.max(u.y,0),v=Math.min(u.width+u.x,i.getWidth()),d=Math.min(u.height+u.y,i.getHeight()),p=v-c,g=d-h,y=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],m=s.mapArray(y,function(C,S,x){var b=e.dataToPoint([C,S]);return b[0]-=c,b[1]-=h,b.push(x),b}),w=a.getExtent(),_=a.type==="visualMap.continuous"?iq(w,a.option.range):aq(w,a.getPieceList(),a.option.selected);l.update(m,p,g,A.color.getNormalizer(),{inRange:A.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var B=new Ke({style:{width:p,height:g,x:c,y:h,image:l.canvas},silent:!0});this.group.add(B)},t.type="heatmap",t}(jt),oq=function(r){H(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 ri(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Of.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}(se);function sq(r){r.registerChartView(Aq),r.registerSeriesModel(oq)}var lq=["itemStyle","borderWidth"],VI=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ky=new ei,uq=function(r){H(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,a){var i=this.group,A=e.getData(),o=this._data,s=e.coordinateSystem,l=s.getBaseAxis(),u=l.isHorizontal(),f=s.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:u,valueDim:VI[+u],categoryDim:VI[1-+u]};A.diff(o).add(function(v){if(A.hasValue(v)){var d=KI(A,v),p=GI(A,v,d,c),g=zI(A,c,p);A.setItemGraphicEl(v,g),i.add(g),XI(g,c,p)}}).update(function(v,d){var p=o.getItemGraphicEl(d);if(!A.hasValue(v)){i.remove(p);return}var g=KI(A,v),y=GI(A,v,g,c),m=XR(A,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),A.setItemGraphicEl(v,null),p=null),p?gq(p,c,y):p=zI(A,c,y,!0),A.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),XI(p,c,y)}).remove(function(v){var d=o.getItemGraphicEl(v);d&&WI(o,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=e.get("clip",!0)?zf(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=A,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(A){WI(i,Ct(A).dataIndex,e,A)}):a.removeAll()},t.type="pictorialBar",t}(jt);function GI(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),A=e.get("symbolClip"),o=e.get("symbolPosition")||"start",s=e.get("symbolRotate"),l=(s||0)*Math.PI/180||0,u=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),c={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:A,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};fq(e,i,a,n,c),cq(r,t,a,i,A,c.boundingLength,c.pxSign,u,n,c),hq(e,c.symbolScale,l,n,c);var h=c.symbolSize,v=xo(e.get("symbolOffset"),h);return vq(e,h,a,i,A,v,o,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function fq(r,t,e,n,a){var i=n.valueDim,A=r.get("symbolBoundingData"),o=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),s=o.toGlobalCoord(o.dataToCoord(0)),l=1-+(e[i.wh]<=0),u;if(K(A)){var f=[zy(o,A[0])-s,zy(o,A[1])-s];f[1]<f[0]&&f.reverse(),u=f[l]}else A!=null?u=zy(o,A)-s:t?u=n.coordSysExtent[i.index][l]-s:u=e[i.wh];a.boundingLength=u,t&&(a.repeatCutLength=e[i.wh]),a.pxSign=u>0?1:-1}function zy(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function cq(r,t,e,n,a,i,A,o,s,l){var u=s.valueDim,f=s.categoryDim,c=Math.abs(e[f.wh]),h=r.getItemVisual(t,"symbolSize"),v;K(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=et(v[f.index],c),v[u.index]=et(v[u.index],n?c:Math.abs(i)),l.symbolSize=v;var d=l.symbolScale=[v[0]/o,v[1]/o];d[u.index]*=(s.isHorizontal?-1:1)*A}function hq(r,t,e,n,a){var i=r.get(lq)||0;i&&(Ky.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Ky.updateTransform(),i/=Ky.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function vq(r,t,e,n,a,i,A,o,s,l,u,f){var c=u.categoryDim,h=u.valueDim,v=f.pxSign,d=Math.max(t[h.index]+o,0),p=d;if(n){var g=Math.abs(s),y=Ge(r.get("symbolMargin"),"15%")+"",m=!1;y.lastIndexOf("!")===y.length-1&&(m=!0,y=y.slice(0,y.length-1));var w=et(y,t[h.index]),_=Math.max(d+w*2,0),B=m?0:w*2,C=jL(n),S=C?n:YI((g+B)/_),x=g-S*d;w=x/2/(m?S:Math.max(S-1,1)),_=d+w*2,B=m?0:w*2,!C&&n!=="fixed"&&(S=l?YI((Math.abs(l)+B)/_):0),p=S*_-B,f.repeatTimes=S,f.symbolMargin=w}var b=v*(p/2),I=f.pathPosition=[];I[c.index]=e[c.wh]/2,I[h.index]=A==="start"?b:A==="end"?s-b:s/2,i&&(I[0]+=i[0],I[1]+=i[1]);var F=f.bundlePosition=[];F[c.index]=e[c.xy],F[h.index]=e[h.xy];var E=f.barRectShape=V({},e);E[h.wh]=v*Math.max(Math.abs(e[h.wh]),Math.abs(I[h.index]+b)),E[c.wh]=e[c.wh];var D=f.clipShape={};D[c.xy]=-e[c.xy],D[c.wh]=u.ecSize[c.wh],D[h.xy]=0,D[h.wh]=e[h.wh]}function VR(r){var t=r.symbolPatternSize,e=Ie(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function GR(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,A=e.valueLineWidth,o=e.pathPosition,s=t.valueDim,l=e.repeatTimes||0,u=0,f=i[t.valueDim.index]+A+e.symbolMargin*2;for(gC(r,function(d){d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=l,u<l?Fs(d,null,v(u),e,n):Fs(d,null,{scaleX:0,scaleY:0},e,n,function(){a.remove(d)}),u++});u<l;u++){var c=VR(e);c.__pictorialAnimationIndex=u,c.__pictorialRepeatTimes=l,a.add(c);var h=v(u);Fs(c,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},e,n)}function v(d){var p=o.slice(),g=e.pxSign,y=d;return(e.symbolRepeatDirection==="start"?g>0:g<0)&&(y=l-1-d),p[s.index]=f*(y-l/2+.5)+o[s.index],{x:p[0],y:p[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function KR(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Fs(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=VR(e),a.add(i),Fs(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function zR(r,t,e){var n=V({},t.barRectShape),a=r.__pictorialBarRect;a?Fs(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new Nt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function WR(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=V({},e.clipShape),A=t.valueDim,o=e.animationModel,s=e.dataIndex;if(a)zt(a,{shape:i},o,s);else{i[A.wh]=0,a=new Nt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var l={};l[A.wh]=e.clipShape[A.wh],So[n?"updateProps":"initProps"](a,{shape:l},o,s)}}}function KI(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=dq,e.isAnimationEnabled=pq,e}function dq(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function pq(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function zI(r,t,e,n){var a=new _t,i=new _t;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?GR(a,t,e):KR(a,t,e),zR(a,e,n),WR(a,t,e,n),a.__pictorialShapeStr=XR(r,e),a.__pictorialSymbolMeta=e,a}function gq(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;zt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?GR(r,t,e,!0):KR(r,t,e,!0),zR(r,e,!0),WR(r,t,e,!0)}function WI(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];gC(n,function(A){i.push(A)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),T(i,function(A){Xi(A,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function XR(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function gC(r,t,e){T(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Fs(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&So[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function XI(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),A=i.getModel("itemStyle").getItemStyle(),o=a.getModel(["blur","itemStyle"]).getItemStyle(),s=a.getModel(["select","itemStyle"]).getItemStyle(),l=a.getShallow("cursor"),u=i.get("focus"),f=i.get("blurScope"),c=i.get("scale");gC(r,function(d){if(d instanceof Ke){var p=d.style;d.useStyle(V({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},e.style))}else d.useStyle(e.style);var g=d.ensureState("emphasis");g.style=A,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=o,d.ensureState("select").style=s,l&&(d.cursor=l),d.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,Je(v,Oe(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:ks(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),ye(r,u,f,i.get("disabled"))}function YI(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var yq=function(r){H(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=nA(df.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}(df);function mq(r){r.registerChartView(uq),r.registerSeriesModel(yq),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(E2,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D2("pictorialBar"))}var wq=function(r){H(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,a){var i=e.getData(),A=this,o=this.group,s=e.getLayerSeries(),l=i.getLayout("layoutInfo"),u=l.rect,f=l.boundaryGap;o.x=0,o.y=u.y+f[0];function c(p){return p.name}var h=new Ya(this._layersSeries||[],s,c,c),v=[];h.add(it(d,this,"add")).update(it(d,this,"update")).remove(it(d,this,"remove")).execute();function d(p,g,y){var m=A._layers;if(p==="remove"){o.remove(m[g]);return}for(var w=[],_=[],B,C=s[g].indices,S=0;S<C.length;S++){var x=i.getItemLayout(C[S]),b=x.x,I=x.y0,F=x.y;w.push(b,I),_.push(b,I+F),B=i.getItemVisual(C[S],"style")}var E,D=i.getItemLayout(C[0]),Q=e.getModel("label"),M=Q.get("margin"),R=e.getModel("emphasis");if(p==="add"){var P=v[g]=new _t;E=new mP({shape:{points:w,stackedOnPoints:_,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),P.add(E),o.add(P),e.isAnimationEnabled()&&E.setClipPath(Bq(E.getBoundingRect(),e,function(){E.removeClipPath()}))}else{var P=m[y];E=P.childAt(0),o.add(P),v[g]=P,zt(E,{shape:{points:w,stackedOnPoints:_}},e),Hn(E)}Je(E,Oe(e),{labelDataIndex:C[S-1],defaultText:i.getName(C[S-1]),inheritColor:B.fill},{normal:{verticalAlign:"middle"}}),E.setTextConfig({position:null,local:!0});var O=E.getTextContent();O&&(O.x=D.x-M,O.y=D.y0+D.y/2),E.useStyle(B),i.setItemGraphicEl(g,E),$e(E,e),ye(E,R.get("focus"),R.get("blurScope"),R.get("disabled"))}this._layersSeries=s,this._layers=v},t.type="themeRiver",t}(jt);function Bq(r,t,e){var n=new Nt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ue(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),n}var Wy=2,_q=function(r){H(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 Yf(it(this.getData,this),it(this.getRawData,this))},t.prototype.fixData=function(e){var n=e.length,a={},i=_0(e,function(c){return a.hasOwnProperty(c[0]+"")||(a[c[0]+""]=-1),c[2]}),A=[];i.buckets.each(function(c,h){A.push({name:h,dataList:c})});for(var o=A.length,s=0;s<o;++s){for(var l=A[s].name,u=0;u<A[s].dataList.length;++u){var f=A[s].dataList[u][0]+"";a[f]=s}for(var f in a)a.hasOwnProperty(f)&&a[f]!==s&&(a[f]=s,e[n]=[f,0,l],n++)}return e},t.prototype.getInitialData=function(e,n){for(var a=this.getReferringComponents("singleAxis",Te).models[0],i=a.get("type"),A=Jt(e.data,function(v){return v[2]!==void 0}),o=this.fixData(A||[]),s=[],l=this.nameMap=ft(),u=0,f=0;f<o.length;++f)s.push(o[f][Wy]),l.get(o[f][Wy])||(l.set(o[f][Wy],u),u++);var c=Nf(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Vv(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new mr(c,this);return h.initData(o),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),n=e.count(),a=[],i=0;i<n;++i)a[i]=i;var A=e.mapDimension("single"),o=_0(a,function(l){return e.get("name",l)}),s=[];return o.buckets.each(function(l,u){l.sort(function(f,c){return e.get(A,f)-e.get(A,c)}),s.push({name:u,indices:l})}),s},t.prototype.getAxisTooltipData=function(e,n,a){K(e)||(e=e?[e]:[]);for(var i=this.getData(),A=this.getLayerSeries(),o=[],s=A.length,l,u=0;u<s;++u){for(var f=Number.MAX_VALUE,c=-1,h=A[u].indices.length,v=0;v<h;++v){var d=i.get(e[0],A[u].indices[v]),p=Math.abs(d-n);p<=f&&(l=d,f=p,c=A[u].indices[v])}o.push(c)}return{dataIndices:o,nestestValue:l}},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),A=i.getName(e),o=i.get(i.mapDimension("value"),e);return ke("nameValue",{name:A,value:o})},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}(se);function Cq(r,t){r.eachSeriesByType("themeRiver",function(e){var n=e.getData(),a=e.coordinateSystem,i={},A=a.getRect();i.rect=A;var o=e.get("boundaryGap"),s=a.getAxis();if(i.boundaryGap=o,s.orient==="horizontal"){o[0]=et(o[0],A.height),o[1]=et(o[1],A.height);var l=A.height-o[0]-o[1];ZI(n,e,l)}else{o[0]=et(o[0],A.width),o[1]=et(o[1],A.width);var u=A.width-o[0]-o[1];ZI(n,e,u)}n.setLayout("layoutInfo",i)})}function ZI(r,t,e){if(r.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=r.mapDimension("single"),A=r.mapDimension("value"),o=Y(a,function(p){return Y(p.indices,function(g){var y=n.dataToPoint(r.get(i,g));return y[1]=r.get(A,g),y})}),s=Sq(o),l=s.y0,u=e/s.max,f=a.length,c=a[0].indices.length,h,v=0;v<c;++v){h=l[v]*u,r.setItemLayout(a[0].indices[v],{layerIndex:0,x:o[0][v][0],y0:h,y:o[0][v][1]*u});for(var d=1;d<f;++d)h+=o[d-1][v][1]*u,r.setItemLayout(a[d].indices[v],{layerIndex:d,x:o[d][v][0],y0:h,y:o[d][v][1]*u})}}function Sq(r){for(var t=r.length,e=r[0].length,n=[],a=[],i=0,A=0;A<e;++A){for(var o=0,s=0;s<t;++s)o+=r[s][A][1];o>i&&(i=o),n.push(o)}for(var l=0;l<e;++l)a[l]=(i-n[l])/2;i=0;for(var u=0;u<e;++u){var f=n[u]+a[u];f>i&&(i=f)}return{y0:a,max:i}}function xq(r){r.registerChartView(wq),r.registerSeriesModel(_q),r.registerLayout(Cq),r.registerProcessor(Xf("themeRiver"))}var bq=2,Tq=4,$I=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;A.z2=bq,A.textConfig={inside:!0},Ct(A).seriesIndex=n.seriesIndex;var o=new Gt({z2:Tq,silent:e.getModel().get(["label","silent"])});return A.setTextContent(o),A.updateData(!0,e,n,a,i),A}return t.prototype.updateData=function(e,n,a,i,A){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var o=this;Ct(o).dataIndex=n.dataIndex;var s=n.getModel(),l=s.getModel("emphasis"),u=n.getLayout(),f=V({},u);f.label=null;var c=n.getVisual("style");c.lineJoin="bevel";var h=n.getVisual("decal");h&&(c.decal=Hs(h,A));var v=$A(s.getModel("itemStyle"),f,!0);V(f,v),T(_r,function(y){var m=o.ensureState(y),w=s.getModel([y,"itemStyle"]);m.style=w.getItemStyle();var _=$A(w,f);_&&(m.shape=_)}),e?(o.setShape(f),o.shape.r=u.r0,ue(o,{shape:{r:u.r}},a,n.dataIndex)):(zt(o,{shape:f},a),Hn(o)),o.useStyle(c),this._updateLabel(a);var d=s.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=l.get("focus"),g=p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;ye(this,g,l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.getModel("label"),A=this.node.getLayout(),o=A.endAngle-A.startAngle,s=(A.startAngle+A.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=this,c=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(v!=null&&Math.abs(o)<v);c.ignore=!d,T(rf,function(g){var y=g==="normal"?a.getModel("label"):a.getModel([g,"label"]),m=g==="normal",w=m?c:c.ensureState(g),_=e.getFormattedLabel(h,g);m&&(_=_||n.node.name),w.style=oe(y,{},null,g!=="normal",!0),_&&(w.style.text=_);var B=y.get("show");B!=null&&!m&&(w.ignore=!B);var C=p(y,"position"),S=m?f:f.states[g],x=S.style.fill;S.textConfig={outsideFill:y.get("color")==="inherit"?x:null,inside:C!=="outside"};var b,I=p(y,"distance")||0,F=p(y,"align"),E=p(y,"rotate"),D=Math.PI*.5,Q=Math.PI*1.5,M=zr(E==="tangential"?Math.PI/2-s:s),R=M>D&&!tf(M-D)&&M<Q;C==="outside"?(b=A.r+I,F=R?"right":"left"):!F||F==="center"?(o===2*Math.PI&&A.r0===0?b=0:b=(A.r+A.r0)/2,F="center"):F==="left"?(b=A.r0+I,F=R?"right":"left"):F==="right"&&(b=A.r-I,F=R?"left":"right"),w.style.align=F,w.style.verticalAlign=p(y,"verticalAlign")||"middle",w.x=b*l+A.cx,w.y=b*u+A.cy;var P=0;E==="radial"?P=zr(-s)+(R?Math.PI:0):E==="tangential"?P=zr(Math.PI/2-s)+(R?Math.PI:0):Kt(E)&&(P=E*Math.PI/180),w.rotation=zr(P)});function p(g,y){var m=g.get(y);return m??i.get(y)}c.dirtyStyle()},t}(Cr),_w="sunburstRootToNode",JI="sunburstHighlight",Iq="sunburstUnhighlight";function Fq(r){r.registerAction({type:_w,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var A=gf(t,[_w],a);if(A){var o=a.getViewRoot();o&&(t.direction=nC(o,A.node)?"rollUp":"drillDown"),a.resetViewRoot(A.node)}}}),r.registerAction({type:JI,update:"none"},function(t,e,n){t=V({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var A=gf(t,[JI],i);A&&(t.dataIndex=A.node.dataIndex)}n.dispatchAction(V(t,{type:"highlight"}))}),r.registerAction({type:Iq,update:"updateView"},function(t,e,n){t=V({},t),n.dispatchAction(V(t,{type:"downplay"}))})}var Eq=function(r){H(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,a,i){var A=this;this.seriesModel=e,this.api=a,this.ecModel=n;var o=e.getData(),s=o.tree.root,l=e.getViewRoot(),u=this.group,f=e.get("renderLabelForZeroData"),c=[];l.eachNode(function(y){c.push(y)});var h=this._oldChildren||[];v(c,h),g(s,l),this._initEvents(),this._oldChildren=c;function v(y,m){if(y.length===0&&m.length===0)return;new Ya(m,y,w,w).add(_).update(_).remove(bt(_,null)).execute();function w(B){return B.getId()}function _(B,C){var S=B==null?null:y[B],x=C==null?null:m[C];d(S,x)}}function d(y,m){if(!f&&y&&!y.getValue()&&(y=null),y!==s&&m!==s){if(m&&m.piece)y?(m.piece.updateData(!1,y,e,n,a),o.setItemGraphicEl(y.dataIndex,m.piece)):p(m);else if(y){var w=new $I(y,e,n,a);u.add(w),o.setItemGraphicEl(y.dataIndex,w)}}}function p(y){y&&y.piece&&(u.remove(y.piece),y.piece=null)}function g(y,m){m.depth>0?(A.virtualPiece?A.virtualPiece.updateData(!1,y,e,n,a):(A.virtualPiece=new $I(y,e,n,a),u.add(A.virtualPiece)),m.piece.off("click"),A.virtualPiece.on("click",function(w){A._rootToNode(m.parentNode)})):A.virtualPiece&&(u.remove(A.virtualPiece),A.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(A){if(!a&&A.piece&&A.piece===n.target){var o=A.getModel().get("nodeClick");if(o==="rootToNode")e._rootToNode(A);else if(o==="link"){var s=A.getModel(),l=s.get("link");if(l){var u=s.get("target",!0)||"_blank";Mv(l,u)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:_w,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var A=e[0]-i.cx,o=e[1]-i.cy,s=Math.sqrt(A*A+o*o);return s<=i.r&&s>=i.r0}},t.type="sunburst",t}(jt),Dq=function(r){H(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 a={name:e.name,children:e.data};YR(a);var i=this._levelModels=Y(e.levels||[],function(s){return new Yt(s,this,n)},this),A=rC.createTree(a,this,o);function o(s){s.wrapMethod("getItemModel",function(l,u){var f=A.getNodeByDataIndex(u),c=i[f.depth];return c&&(l.parentModel=c),l})}return A.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=gp(a,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(){jP(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}(se);function YR(r){var t=0;T(r.children,function(n){YR(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}var qI=Math.PI/180;function Qq(r,t,e){t.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");K(i)||(i=[0,i]),K(a)||(a=[a,a]);var A=e.getWidth(),o=e.getHeight(),s=Math.min(A,o),l=et(a[0],A),u=et(a[1],o),f=et(i[0],s/2),c=et(i[1],s/2),h=-n.get("startAngle")*qI,v=n.get("minAngle")*qI,d=n.getData().tree.root,p=n.getViewRoot(),g=p.depth,y=n.get("sort");y!=null&&ZR(p,y);var m=0;T(p.children,function(M){!isNaN(M.getValue())&&m++});var w=p.getValue(),_=Math.PI/(w||m)*2,B=p.depth>0,C=p.height-(B?-1:1),S=(c-f)/(C||1),x=n.get("clockwise"),b=n.get("stillShowZeroSum"),I=x?1:-1,F=function(M,R){if(M){var P=R;if(M!==d){var O=M.getValue(),G=w===0&&b?_:O*_;G<v&&(G=v),P=R+I*G;var X=M.depth-g-(B?-1:1),J=f+S*X,At=f+S*(X+1),lt=n.getLevelModel(M);if(lt){var wt=lt.get("r0",!0),Bt=lt.get("r",!0),N=lt.get("radius",!0);N!=null&&(wt=N[0],Bt=N[1]),wt!=null&&(J=et(wt,s/2)),Bt!=null&&(At=et(Bt,s/2))}M.setLayout({angle:G,startAngle:R,endAngle:P,clockwise:x,cx:l,cy:u,r0:J,r:At})}if(M.children&&M.children.length){var z=0;T(M.children,function($){z+=F($,R+z)})}return P-R}};if(B){var E=f,D=f+S,Q=Math.PI*2;d.setLayout({angle:Q,startAngle:h,endAngle:h+Q,clockwise:x,cx:l,cy:u,r0:E,r:D})}F(p,h)})}function ZR(r,t){var e=r.children||[];r.children=Lq(e,t),e.length&&T(r.children,function(n){ZR(n,t)})}function Lq(r,t){if(vt(t)){var e=Y(r,function(a,i){var A=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return A}},index:i}});return e.sort(function(a,i){return t(a.params,i.params)}),Y(e,function(a){return r[a.index]})}else{var n=t==="asc";return r.sort(function(a,i){var A=(a.getValue()-i.getValue())*(n?1:-1);return A===0?(a.dataIndex-i.dataIndex)*(n?-1:1):A})}}function Mq(r){var t={};function e(n,a,i){for(var A=n;A&&A.depth>1;)A=A.parentNode;var o=a.getColorFromPalette(A.name||A.dataIndex+"",t);return n.depth>1&&nt(o)&&(o=u0(o,(n.depth-1)/(i-1)*.5)),o}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(A){var o=A.getModel(),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e(A,n,i.root.height));var l=a.ensureUniqueItemVisual(A.dataIndex,"style");V(l,s)})})}function Uq(r){r.registerChartView(Eq),r.registerSeriesModel(Dq),r.registerLayout(bt(Qq,"sunburst")),r.registerProcessor(bt(Xf,"sunburst")),r.registerVisual(Mq),Fq(r)}var jI={color:"fill",borderColor:"stroke"},Pq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ka=Vt(),Rq=function(r){H(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 ri(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=ka(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(se);function Hq(r,t){return t=t||[0,0],Y(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],A=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-A)-a.dataToCoord(i+A))},this)}function Oq(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:it(Hq,r)}}}function kq(r,t){return t=t||[0,0],Y([0,1],function(e){var n=t[e],a=r[e]/2,i=[],A=[];return i[e]=n-a,A[e]=n+a,i[1-e]=A[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(A)[e])},this)}function Nq(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:it(kq,r)}}}function Vq(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function Gq(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:it(Vq,r)}}}function Kq(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),A=t[n],o=r[n]/2,s=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(A-o)-i.dataToCoord(A+o));return e==="Angle"&&(s=s*Math.PI/180),s},this)}function zq(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(a){var i=t.dataToRadius(a[0]),A=e.dataToAngle(a[1]),o=r.coordToPoint([i,A]);return o.push(i,A*Math.PI/180),o},size:it(Kq,r)}}}function Wq(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,a){return r.dataToPoint(n,a)}}}}function $R(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function JR(r,t,e){var n=r,a,i,A;if(t==="text")A=n;else{A={},st(n,"text")&&(A.text=n.text),st(n,"rich")&&(A.rich=n.rich),st(n,"textFill")&&(A.fill=n.textFill),st(n,"textStroke")&&(A.stroke=n.textStroke),st(n,"fontFamily")&&(A.fontFamily=n.fontFamily),st(n,"fontSize")&&(A.fontSize=n.fontSize),st(n,"fontStyle")&&(A.fontStyle=n.fontStyle),st(n,"fontWeight")&&(A.fontWeight=n.fontWeight),i={type:"text",style:A,silent:!0},a={};var o=st(n,"textPosition");e?a.position=o?n.textPosition:"inside":o&&(a.position=n.textPosition),st(n,"textPosition")&&(a.position=n.textPosition),st(n,"textOffset")&&(a.offset=n.textOffset),st(n,"textRotation")&&(a.rotation=n.textRotation),st(n,"textDistance")&&(a.distance=n.textDistance)}return tF(A,r),T(A.rich,function(s){tF(s,s)}),{textConfig:a,textContent:i}}function tF(r,t){t&&(t.font=t.textFont||t.font,st(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),st(t,"textAlign")&&(r.align=t.textAlign),st(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),st(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),st(t,"textWidth")&&(r.width=t.textWidth),st(t,"textHeight")&&(r.height=t.textHeight),st(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),st(t,"textPadding")&&(r.padding=t.textPadding),st(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),st(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),st(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),st(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),st(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),st(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),st(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function eF(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 a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";rF(n,t);var A=n.textFill==null;return a?A&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(A&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,T(t.rich,function(o){rF(o,o)}),n}function rF(r,t){t&&(st(t,"fill")&&(r.textFill=t.fill),st(t,"stroke")&&(r.textStroke=t.fill),st(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),st(t,"font")&&(r.font=t.font),st(t,"fontStyle")&&(r.fontStyle=t.fontStyle),st(t,"fontWeight")&&(r.fontWeight=t.fontWeight),st(t,"fontSize")&&(r.fontSize=t.fontSize),st(t,"fontFamily")&&(r.fontFamily=t.fontFamily),st(t,"align")&&(r.textAlign=t.align),st(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),st(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),st(t,"width")&&(r.textWidth=t.width),st(t,"height")&&(r.textHeight=t.height),st(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),st(t,"padding")&&(r.textPadding=t.padding),st(t,"borderColor")&&(r.textBorderColor=t.borderColor),st(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),st(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),st(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),st(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),st(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),st(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),st(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),st(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),st(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),st(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var qR={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},nF=Ht(qR);ha(da,function(r,t){return r[t]=1,r},{});da.join(", ");var td=["","style","shape","extra"],Gs=Vt();function yC(r,t,e,n,a){var i=r+"Animation",A=qs(r,n,a)||{},o=Gs(t).userDuring;return A.duration>0&&(A.during=o?it(Jq,{el:t,userDuring:o}):null,A.setToFinal=!0,A.scope=r),V(A,e[i]),A}function jh(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,A=n.clearStyle,o=e.isAnimationEnabled(),s=Gs(r),l=t.style;s.userDuring=t.during;var u={},f={};if(jq(r,t,f),iF("shape",t,f),iF("extra",t,f),!i&&o&&(qq(r,t,u),aF("shape",r,t,u),aF("extra",r,t,u),tj(r,t,l,u)),f.style=l,Xq(r,f,A),Zq(r,t),o)if(i){var c={};T(td,function(v){var d=v?t[v]:t;d&&d.enterFrom&&(v&&(c[v]=c[v]||{}),V(v?c[v]:c,d.enterFrom))});var h=yC("enter",r,t,e,a);h.duration>0&&r.animateFrom(c,h)}else Yq(r,t,a||0,e,u);jR(r,t),l?r.dirty():r.markRedraw()}function jR(r,t){for(var e=Gs(r).leaveToProps,n=0;n<td.length;n++){var a=td[n],i=a?t[a]:t;i&&i.leaveTo&&(e||(e=Gs(r).leaveToProps={}),a&&(e[a]=e[a]||{}),V(a?e[a]:e,i.leaveTo))}}function wp(r,t,e,n){if(r){var a=r.parent,i=Gs(r).leaveToProps;if(i){var A=yC("update",r,t,e,0);A.done=function(){a.remove(r)},r.animateTo(i,A)}else a.remove(r)}}function oo(r){return r==="all"}function Xq(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var A=a[i];A.targetName==="style"&&A.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function Yq(r,t,e,n,a){if(a){var i=yC("update",r,t,n,e);i.duration>0&&r.animateFrom(a,i)}}function Zq(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof gn&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Mt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var $n={},$q={setTransform:function(r,t){return $n.el[r]=t,this},getTransform:function(r){return $n.el[r]},setShape:function(r,t){var e=$n.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=$n.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=$n.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=$n.el.style;if(t)return t[r]},setExtra:function(r,t){var e=$n.el.extra||($n.el.extra={});return e[r]=t,this},getExtra:function(r){var t=$n.el.extra;if(t)return t[r]}};function Jq(){var r=this,t=r.el;if(t){var e=Gs(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}$n.el=t,n($q)}}function aF(r,t,e,n){var a=e[r];if(a){var i=t[r],A;if(i){var o=e.transition,s=a.transition;if(s)if(!A&&(A=n[r]={}),oo(s))V(A,i);else for(var l=qt(s),u=0;u<l.length;u++){var f=l[u],c=i[f];A[f]=c}else if(oo(o)||Qt(o,r)>=0){!A&&(A=n[r]={});for(var h=Ht(i),u=0;u<h.length;u++){var f=h[u],c=i[f];ej(a[f],c)&&(A[f]=c)}}}}}function iF(r,t,e){var n=t[r];if(n)for(var a=e[r]={},i=Ht(n),A=0;A<i.length;A++){var o=i[A];a[o]=xu(n[o])}}function qq(r,t,e){for(var n=t.transition,a=oo(n)?da:qt(n||[]),i=0;i<a.length;i++){var A=a[i];if(!(A==="style"||A==="shape"||A==="extra")){var o=r[A];e[A]=o}}}function jq(r,t,e){for(var n=0;n<nF.length;n++){var a=nF[n],i=qR[a],A=t[a];A&&(e[i[0]]=A[0],e[i[1]]=A[1])}for(var n=0;n<da.length;n++){var o=da[n];t[o]!=null&&(e[o]=t[o])}}function tj(r,t,e,n){if(e){var a=r.style,i;if(a){var A=e.transition,o=t.transition;if(A&&!oo(A)){var s=qt(A);!i&&(i=n.style={});for(var l=0;l<s.length;l++){var u=s[l],f=a[u];i[u]=f}}else if(r.getAnimationStyleProps&&(oo(o)||oo(A)||Qt(o,"style")>=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=n.style={});for(var v=Ht(e),l=0;l<v.length;l++){var u=v[l];if(h[u]){var f=a[u];i[u]=f}}}}}}}function ej(r,t){return sr(r)?r!==t:r!=null&&isFinite(r)}var tH=Vt(),rj=["percent","easing","shape","style","extra"];function eH(r){r.stopAnimation("keyframe"),r.attr(tH(r))}function ed(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(K(t)){T(t,function(o){ed(r,o,e)});return}var n=t.keyframes,a=t.duration;if(e&&a==null){var i=qs("enter",e,0);a=i&&i.duration}if(!(!n||!a)){var A=tH(r);T(td,function(o){if(!(o&&!r[o])){var s;n.sort(function(l,u){return l.percent-u.percent}),T(n,function(l){var u=r.animators,f=o?l[o]:l;if(f){var c=Ht(f);if(o||(c=Jt(c,function(d){return Qt(rj,d)<0})),!!c.length){s||(s=r.animate(o,t.loop,!0),s.scope="keyframe");for(var h=0;h<u.length;h++)u[h]!==s&&u[h].targetName===s.targetName&&u[h].stopTracks(c);o&&(A[o]=A[o]||{});var v=o?A[o]:A;T(c,function(d){v[d]=((o?r[o]:r)||{})[d]}),s.whenWithKeys(a*l.percent,f,c,l.easing)}}}),s&&s.delay(t.delay||0).duration(a).start(t.easing)}})}}}var Na="emphasis",Qi="normal",mC="blur",wC="select",Ji=[Qi,Na,mC,wC],Xy={normal:["itemStyle"],emphasis:[Na,"itemStyle"],blur:[mC,"itemStyle"],select:[wC,"itemStyle"]},Yy={normal:["label"],emphasis:[Na,"label"],blur:[mC,"label"],select:[wC,"label"]},nj=["x","y"],aj="e\0\0",qr={normal:{},emphasis:{},blur:{},select:{}},ij={cartesian2d:Oq,geo:Nq,single:Gq,polar:zq,calendar:Wq};function Cw(r){return r instanceof Mt}function Sw(r){return r instanceof gn}function Aj(r,t){t.copyTransform(r),Sw(t)&&Sw(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,Cw(t)&&Cw(r)&&t.setShape(r.shape))}var oj=function(r){H(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,a,i){this._progressiveEls=null;var A=this._data,o=e.getData(),s=this.group,l=AF(e,o,n,a);A||s.removeAll(),o.diff(A).add(function(f){Zy(a,null,f,l(f,i),e,s,o)}).remove(function(f){var c=A.getItemGraphicEl(f);c&&wp(c,ka(c).option,e)}).update(function(f,c){var h=A.getItemGraphicEl(c);Zy(a,h,f,l(f,i),e,s,o)}).execute();var u=e.get("clip",!0)?zf(e.coordinateSystem,!1,e):null;u?s.setClipPath(u):s.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,n,a,i,A){var o=n.getData(),s=AF(n,o,a,i),l=this._progressiveEls=[];function u(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=e.start;f<e.end;f++){var c=Zy(null,null,f,s(f,A),n,this.group,o);c&&(c.traverse(u),l.push(c))}},t.prototype.eachRendered=function(e){rA(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,n,a,i){var A=n.element;if(A==null||a.name===A)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===A)return!0;return!1},t.type="custom",t}(jt);function BC(r){var t=r.type,e;if(t==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=aH(n);e=$d(i,null,a,n.layout||"center"),ka(e).customPathData=i}else if(t==="image")e=new Ke({}),ka(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 A=u_(t);if(!A){var o="";Xt(o)}e=new A}return ka(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function _C(r,t,e,n,a,i,A){eH(t);var o=a&&a.normal.cfg;o&&t.setTextConfig(o),n&&n.transition==null&&(n.transition=nj);var s=n&&n.style;if(s){if(t.type==="text"){var l=s;st(l,"textFill")&&(l.fill=l.textFill),st(l,"textStroke")&&(l.stroke=l.textStroke)}var u=void 0,f=Cw(t)?s.decal:null;r&&f&&(f.dirty=!0,u=Hs(f,r)),s.__decalPattern=u}if(Sw(t)&&s){var u=s.__decalPattern;u&&(s.decal=u)}jh(t,n,i,{dataIndex:e,isInit:A,clearStyle:!0}),ed(t,n.keyframeAnimation,i)}function rH(r,t,e,n,a){var i=t.isGroup?null:t,A=a&&a[r].cfg;if(i){var o=i.ensureState(r);if(n===!1){var s=i.getState(r);s&&(s.style=null)}else o.style=n||null;A&&(o.textConfig=A),po(i)}}function sj(r,t,e){if(!r.isGroup){var n=r,a=e.currentZ,i=e.currentZLevel;n.z=a,n.zlevel=i;var A=t.z2;A!=null&&(n.z2=A||0);for(var o=0;o<Ji.length;o++)lj(n,t,Ji[o])}}function lj(r,t,e){var n=e===Qi,a=n?t:rd(t,e),i=a?a.z2:null,A;i!=null&&(A=n?r:r.ensureState(e),A.z2=i||0)}function AF(r,t,e,n){var a=r.get("renderItem"),i=r.coordinateSystem,A={};i&&(A=i.prepareCustoms?i.prepareCustoms(i):ij[i.type](i));for(var o=gt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:w,style:B,ordinalRawValue:_,styleEmphasis:C,visual:b,barLayout:I,currentSeriesIndices:F,font:E},A.api||{}),s={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:A.coordSys,dataInsideLength:t.count(),encode:uj(r.getData())},l,u,f={},c={},h={},v={},d=0;d<Ji.length;d++){var p=Ji[d];h[p]=r.getModel(Xy[p]),v[p]=r.getModel(Yy[p])}function g(D){return D===l?u||(u=t.getItemModel(D)):t.getItemModel(D)}function y(D,Q){return t.hasItemOption?D===l?f[Q]||(f[Q]=g(D).getModel(Xy[Q])):g(D).getModel(Xy[Q]):h[Q]}function m(D,Q){return t.hasItemOption?D===l?c[Q]||(c[Q]=g(D).getModel(Yy[Q])):g(D).getModel(Yy[Q]):v[Q]}return function(D,Q){return l=D,u=null,f={},c={},a&&a(gt({dataIndexInside:D,dataIndex:t.getRawIndex(D),actionType:Q?Q.type:null},s),o)};function w(D,Q){return Q==null&&(Q=l),t.getStore().get(t.getDimensionIndex(D||0),Q)}function _(D,Q){Q==null&&(Q=l),D=D||0;var M=t.getDimensionInfo(D);if(!M){var R=t.getDimensionIndex(D);return R>=0?t.getStore().get(R,Q):void 0}var P=t.get(M.name,Q),O=M&&M.ordinalMeta;return O?O.categories[P]:P}function B(D,Q){Q==null&&(Q=l);var M=t.getItemVisual(Q,"style"),R=M&&M.fill,P=M&&M.opacity,O=y(Q,Qi).getItemStyle();R!=null&&(O.fill=R),P!=null&&(O.opacity=P);var G={inheritColor:nt(R)?R:"#000"},X=m(Q,Qi),J=oe(X,null,G,!1,!0);J.text=X.getShallow("show")?xt(r.getFormattedLabel(Q,Qi),ks(t,Q)):null;var At=Qv(X,G,!1);return x(D,O),O=eF(O,J,At),D&&S(O,D),O.legacy=!0,O}function C(D,Q){Q==null&&(Q=l);var M=y(Q,Na).getItemStyle(),R=m(Q,Na),P=oe(R,null,null,!0,!0);P.text=R.getShallow("show")?ua(r.getFormattedLabel(Q,Na),r.getFormattedLabel(Q,Qi),ks(t,Q)):null;var O=Qv(R,null,!0);return x(D,M),M=eF(M,P,O),D&&S(M,D),M.legacy=!0,M}function S(D,Q){for(var M in Q)st(Q,M)&&(D[M]=Q[M])}function x(D,Q){D&&(D.textFill&&(Q.textFill=D.textFill),D.textPosition&&(Q.textPosition=D.textPosition))}function b(D,Q){if(Q==null&&(Q=l),st(jI,D)){var M=t.getItemVisual(Q,"style");return M?M[jI[D]]:null}if(st(Pq,D))return t.getItemVisual(Q,D)}function I(D){if(i.type==="cartesian2d"){var Q=i.getBaseAxis();return j8(gt({axis:Q},D))}}function F(){return e.getCurrentSeriesIndices()}function E(D){return f_(D,e)}}function uj(r){var t={};return T(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Zy(r,t,e,n,a,i,A){if(!n){i.remove(t);return}var o=CC(r,t,e,n,a,i);return o&&A.setItemGraphicEl(e,o),o&&ye(o,n.focus,n.blurScope,n.emphasisDisabled),o}function CC(r,t,e,n,a,i){var A=-1,o=t;t&&nH(t,n,a)&&(A=Qt(i.childrenRef(),t),t=null);var s=!t,l=t;l?l.clearStates():(l=BC(n),o&&Aj(o,l)),n.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),qr.normal.cfg=qr.normal.conOpt=qr.emphasis.cfg=qr.emphasis.conOpt=qr.blur.cfg=qr.blur.conOpt=qr.select.cfg=qr.select.conOpt=null,qr.isLegacy=!1,cj(l,e,n,a,s,qr),fj(l,e,n,a,s),_C(r,l,e,n,qr,a,s),st(n,"info")&&(ka(l).info=n.info);for(var u=0;u<Ji.length;u++){var f=Ji[u];if(f!==Qi){var c=rd(n,f),h=SC(n,c,f);rH(f,l,c,h,qr)}}return sj(l,n,a),n.type==="group"&&hj(r,l,e,n,a),A>=0?i.replaceAt(l,A):i.add(l),l}function nH(r,t,e){var n=ka(r),a=t.type,i=t.shape,A=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&gj(i)&&aH(i)!==n.customPathData||a==="image"&&st(A,"image")&&A.image!==n.customImagePath}function fj(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var A=r.getClipPath();A&&nH(A,i,n)&&(A=null),A||(A=BC(i),r.setClipPath(A)),_C(null,A,t,i,null,n,a)}}function cj(r,t,e,n,a,i){if(!r.isGroup){oF(e,null,i),oF(e,Na,i);var A=i.normal.conOpt,o=i.emphasis.conOpt,s=i.blur.conOpt,l=i.select.conOpt;if(A!=null||o!=null||l!=null||s!=null){var u=r.getTextContent();if(A===!1)u&&r.removeTextContent();else{A=i.normal.conOpt=A||{type:"text"},u?u.clearStates():(u=BC(A),r.setTextContent(u)),_C(null,u,t,A,null,n,a);for(var f=A&&A.style,c=0;c<Ji.length;c++){var h=Ji[c];if(h!==Qi){var v=i[h].conOpt;rH(h,u,v,SC(A,v,h),null)}}f?u.dirty():u.markRedraw()}}}}function oF(r,t,e){var n=t?rd(r,t):r,a=t?SC(r,n,Na):r.style,i=r.type,A=n?n.textConfig:null,o=r.textContent,s=o?t?rd(o,t):o:null;if(a&&(e.isLegacy||$R(a,i,!!A,!!s))){e.isLegacy=!0;var l=JR(a,i,!t);!A&&l.textConfig&&(A=l.textConfig),!s&&l.textContent&&(s=l.textContent)}if(!t&&s){var u=s;!u.type&&(u.type="text")}var f=t?e[t]:e.normal;f.cfg=A,f.conOpt=s}function rd(r,t){return t?r?r[t]:null:r}function SC(r,t,e){var n=t&&t.style;return n==null&&e===Na&&r&&(n=r.styleEmphasis),n}function hj(r,t,e,n,a){var i=n.children,A=i?i.length:0,o=n.$mergeChildren,s=o==="byName"||n.diffChildrenByName,l=o===!1;if(!(!A&&!s&&!l)){if(s){dj({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:a,group:t});return}l&&t.removeAll();for(var u=0;u<A;u++){var f=i[u],c=t.childAt(u);f?(f.ignore==null&&(f.ignore=!1),CC(r,c,e,f,a,t)):c.ignore=!0}for(var h=t.childCount()-1;h>=u;h--){var v=t.childAt(h);vj(t,v,a)}}}function vj(r,t,e){t&&wp(t,ka(r).option,e)}function dj(r){new Ya(r.oldChildren,r.newChildren,sF,sF,r).add(lF).update(lF).remove(pj).execute()}function sF(r,t){var e=r&&r.name;return e??aj+t}function lF(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;CC(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function pj(r){var t=this.context,e=t.oldChildren[r];e&&wp(e,ka(e).option,t.seriesModel)}function aH(r){return r&&(r.pathData||r.d)}function gj(r){return r&&(st(r,"pathData")||st(r,"d"))}function yj(r){r.registerChartView(oj),r.registerSeriesModel(Rq)}var kA=Vt(),uF=mt,$y=it,xC=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),A=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===A)){this._lastValue=i,this._lastStatus=A;var o=this._group,s=this._handle;if(!A||A==="hide"){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var f=this._moveAnimation=this.determineAnimation(t,e);if(!o)o=this._group=new _t,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);else{var c=bt(fF,e,f);this.updatePointerEl(o,l,c),this.updateLabelEl(o,l,c,e)}hF(o,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",A=e.get("snap");if(!A&&!i)return!1;if(n==="auto"||n==null){var o=this.animationThreshold;if(i&&a.getBandWidth()>o)return!0;if(A){var s=Z_(t).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var A=kA(t).pointerEl=new So[i.type](uF(e.pointer));t.add(A)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=kA(t).labelEl=new Gt(uF(e.label));t.add(i),cF(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=kA(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=kA(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),cF(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),A=e.get("status");if(!i.get("show")||!A||A==="hide"){a&&n.remove(a),this._handle=null;return}var o;this._handle||(o=!0,a=this._handle=Hf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Ka(l.event)},onmousedown:$y(this._onHandleDragMove,this,0,0),drift:$y(this._onHandleDragMove,this),ondragend:$y(this._onHandleDragEnd,this)}),n.add(a)),hF(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");K(s)||(s=[s,s]),a.scaleX=s[0]/2,a.scaleY=s[1]/2,Al(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},r.prototype._moveHandleToValue=function(t,e){fF(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Jy(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Jy(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Jy(a)),kA(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,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),lf(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 fF(r,t,e,n){iH(kA(e).lastProp,n)||(kA(e).lastProp=n,t?zt(e,n,r):(e.stopAnimation(),e.attr(n)))}function iH(r,t){if(yt(r)&&yt(t)){var e=!0;return T(t,function(n,a){e=e&&iH(r[a],n)}),!!e}else return r===t}function cF(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Jy(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function hF(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function bC(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 AH(r,t,e,n,a){var i=e.get("value"),A=oH(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),o=e.getModel("label"),s=rl(o.get("padding")||0),l=o.getFont(),u=Df(A,l),f=a.position,c=u.width+s[1]+s[3],h=u.height+s[0]+s[2],v=a.align;v==="right"&&(f[0]-=c),v==="center"&&(f[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(f[1]-=h),d==="middle"&&(f[1]-=h/2),mj(f,c,h,n);var p=o.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:oe(o,{text:A,font:l,fill:o.getTextColor(),padding:s,backgroundColor:p}),z2:10}}function mj(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function oH(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),A=a.formatter;if(A){var o={value:H_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(n,function(s){var l=e.getSeriesByIndex(s.seriesIndex),u=s.dataIndexInside,f=l&&l.getDataParams(u);f&&o.seriesData.push(f)}),nt(A)?i=A.replace("{value}",i):vt(A)&&(i=A(o))}return i}function TC(r,t,e){var n=Wr();return Co(n,n,e.rotation),va(n,n,e.position),Un([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function sH(r,t,e,n,a,i){var A=wr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),AH(t,n,a,i,{position:TC(n.axis,r,e),align:A.textAlign,verticalAlign:A.textVerticalAlign})}function IC(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function lH(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function vF(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var wj=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.grid,l=i.get("type"),u=dF(s,o).getOtherAxis(o).getGlobalExtent(),f=o.toGlobalCoord(o.dataToCoord(n,!0));if(l&&l!=="none"){var c=bC(i),h=Bj[l](o,f,u);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=aw(s.model,a);sH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=aw(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=TC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.grid,s=A.getGlobalExtent(!0),l=dF(o,A).getOtherAxis(A).getGlobalExtent(),u=A.dim==="x"?0:1,f=[e.x,e.y];f[u]+=n[u],f[u]=Math.min(s[1],f[u]),f[u]=Math.max(s[0],f[u]);var c=(l[1]+l[0])/2,h=[c,c];h[u]=f[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:v[u]}},t}(xC);function dF(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Bj={line:function(r,t,e){var n=IC([t,e[0]],[t,e[1]],pF(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:lH([t-n/2,e[0]],[n,a],pF(r))}}};function pF(r){return r.dim==="x"?0:1}var _j=function(r){H(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}(Rt),Ma=Vt(),Cj=T;function uH(r,t,e){if(!Ut.node){var n=t.getZr();Ma(n).records||(Ma(n).records={}),Sj(n,t);var a=Ma(n).records[r]||(Ma(n).records[r]={});a.handler=e}}function Sj(r,t){if(Ma(r).initialized)return;Ma(r).initialized=!0,e("click",bt(gF,"click")),e("mousemove",bt(gF,"mousemove")),e("globalout",bj);function e(n,a){r.on(n,function(i){var A=Tj(t);Cj(Ma(r).records,function(o){o&&a(o,i,A.dispatchAction)}),xj(A.pendings,t)})}}function xj(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function bj(r,t,e){r.handler("leave",null,e)}function gF(r,t,e,n){t.handler(r,e,n)}function Tj(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function xw(r,t){if(!Ut.node){var e=t.getZr(),n=(Ma(e).records||{})[r];n&&(Ma(e).records[r]=null)}}var Ij=function(r){H(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,a){var i=n.getComponent("tooltip"),A=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";uH("axisPointer",a,function(o,s,l){A!=="none"&&(o==="leave"||A.indexOf(o)>=0)&&l({type:"updateAxisPointer",currTrigger:o,x:s&&s.offsetX,y:s&&s.offsetY})})},t.prototype.remove=function(e,n){xw("axisPointer",n)},t.prototype.dispose=function(e,n){xw("axisPointer",n)},t.type="axisPointer",t}(de);function fH(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),A=ho(i,r);if(A==null||A<0||K(A))return{point:[]};var o=i.getItemGraphicEl(A),s=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(A)||[];else if(s&&s.dataToPoint)if(r.isStacked){var l=s.getBaseAxis(),u=s.getOtherAxis(l),f=u.dim,c=l.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(c),d=[];d[h]=i.get(v,A),d[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),A),e=s.dataToPoint(d)||[]}else e=s.dataToPoint(i.getValues(Y(s.dimensions,function(g){return i.mapDimension(g)}),A))||[];else if(o){var p=o.getBoundingRect().clone();p.applyTransform(o.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:o}}var yF=Vt();function Fj(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,A=r.dispatchAction||it(e.dispatchAction,e),o=t.getComponent("axisPointer").coordSysAxesInfo;if(o){tv(a)&&(a=fH({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var s=tv(a),l=i.axesInfo,u=o.axesInfo,f=n==="leave"||tv(a),c={},h={},v={list:[],map:{}},d={showPointer:bt(Dj,h),showTooltip:bt(Qj,v)};T(o.coordSysMap,function(g,y){var m=s||g.containPoint(a);T(o.coordSysAxesInfo[y],function(w,_){var B=w.axis,C=Pj(l,w);if(!f&&m&&(!l||C)){var S=C&&C.value;S==null&&!s&&(S=B.pointToData(a)),S!=null&&mF(w,S,d,!1,c)}})});var p={};return T(u,function(g,y){var m=g.linkGroup;m&&!h[y]&&T(m.axesInfo,function(w,_){var B=h[_];if(w!==g&&B){var C=B.value;m.mapper&&(C=g.axis.scale.parse(m.mapper(C,wF(w),wF(g)))),p[g.key]=C}})}),T(p,function(g,y){mF(u[y],g,d,!0,c)}),Lj(h,u,c),Mj(v,a,r,A),Uj(u,A,e),c}}function mF(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var A=Ej(t,r),o=A.payloadBatch,s=A.snapToValue;o[0]&&a.seriesIndex==null&&V(a,o[0]),!n&&r.snap&&i.containData(s)&&s!=null&&(t=s),e.showPointer(r,t,o),e.showTooltip(r,A,s)}}function Ej(r,t){var e=t.axis,n=e.dim,a=r,i=[],A=Number.MAX_VALUE,o=-1;return T(t.seriesModels,function(s,l){var u=s.getData().mapDimensionsAll(n),f,c;if(s.getAxisTooltipData){var h=s.getAxisTooltipData(u,r,e);c=h.dataIndices,f=h.nestestValue}else{if(c=s.getData().indicesOfNearest(u[0],r,e.type==="category"?.5:null),!c.length)return;f=s.getData().get(u[0],c[0])}if(!(f==null||!isFinite(f))){var v=r-f,d=Math.abs(v);d<=A&&((d<A||v>=0&&o<0)&&(A=d,o=v,a=f,i.length=0),T(c,function(p){i.push({seriesIndex:s.seriesIndex,dataIndexInside:p,dataIndex:s.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function Dj(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function Qj(r,t,e,n){var a=e.payloadBatch,i=t.axis,A=i.model,o=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var s=t.coordSys.model,l=pf(s),u=r.map[l];u||(u=r.map[l]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},r.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:A.componentIndex,axisType:A.type,axisId:A.id,value:n,valueLabelOpt:{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Lj(r,t,e){var n=e.axesInfo=[];T(t,function(a,i){var A=a.axisPointerModel.option,o=r[i];o?(!a.useHandle&&(A.status="show"),A.value=o.value,A.seriesDataIndices=(o.payloadBatch||[]).slice()):!a.useHandle&&(A.status="hide"),A.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:A.value})})}function Mj(r,t,e,n){if(tv(t)||!r.list.length){n({type:"hideTip"});return}var a=((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:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Uj(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=yF(n)[a]||{},A=yF(n)[a]={};T(r,function(l,u){var f=l.axisPointerModel.option;f.status==="show"&&l.triggerEmphasis&&T(f.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;A[h]=c})});var o=[],s=[];T(i,function(l,u){!A[u]&&s.push(l)}),T(A,function(l,u){!i[u]&&o.push(l)}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),o.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:o})}function Pj(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 wF(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 tv(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Jf(r){Io.registerAxisPointerClass("CartesianAxisPointer",wj),r.registerComponentModel(_j),r.registerComponentView(Ij),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!K(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=WY(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Fj)}function Rj(r){Lt(OP),Lt(Jf)}var Hj=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis;o.dim==="angle"&&(this.animationThreshold=Math.PI/18);var s=o.polar,l=s.getOtherAxis(o),u=l.getExtent(),f=o.dataToCoord(n),c=i.get("type");if(c&&c!=="none"){var h=bC(i),v=kj[c](o,s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=i.get(["label","margin"]),p=Oj(n,a,i,s,d);AH(e,a,i,A,p)},t}(xC);function Oj(r,t,e,n,a){var i=t.axis,A=i.dataToCoord(r),o=n.getAngleAxis().getExtent()[0];o=o/180*Math.PI;var s=n.getRadiusAxis().getExtent(),l,u,f;if(i.dim==="radius"){var c=Wr();Co(c,c,o),va(c,c,[n.cx,n.cy]),l=Un([A,-a],c);var h=t.getModel("axisLabel").get("rotate")||0,v=wr.innerTextLayout(o,h*Math.PI/180,-1);u=v.textAlign,f=v.textVerticalAlign}else{var d=s[1];l=n.coordToPoint([d+a,A]);var p=n.cx,g=n.cy;u=Math.abs(l[0]-p)/d<.3?"center":l[0]>p?"left":"right",f=Math.abs(l[1]-g)/d<.3?"middle":l[1]>g?"top":"bottom"}return{position:l,align:u,verticalAlign:f}}var kj={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:IC(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 a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:vF(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:vF(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},Nj=function(r){H(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,a=this.ecModel;return a.eachComponent(e,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Rt),FC=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Te).models[0]},t.type="polarAxis",t}(Rt);Fe(FC,Vf);var Vj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(FC),Gj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(FC),EC=function(r){H(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}(kn);EC.prototype.dataToRadius=kn.prototype.dataToCoord;EC.prototype.radiusToData=kn.prototype.coordToData;var Kj=Vt(),DC=function(r){H(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(),a=e.scale,i=a.getExtent(),A=a.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),l=Math.abs(s),u=Df(o==null?"":o+"",n.getFont(),"center","top"),f=Math.max(u.height,7),c=f/l;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),v=Kj(e.model),d=v.lastAutoInterval,p=v.lastTickCount;return d!=null&&p!=null&&Math.abs(d-h)<=1&&Math.abs(p-A)<=1&&d>h?h=d:(v.lastTickCount=A,v.lastAutoInterval=h),h},t}(kn);DC.prototype.dataToAngle=kn.prototype.dataToCoord;DC.prototype.angleToData=kn.prototype.coordToData;var cH=["radius","angle"],zj=function(){function r(t){this.dimensions=cH,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new EC,this._angleAxis=new DC,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,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),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,a=this.getAngleAxis(),i=a.getExtent(),A=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);a.inverse?A=o-360:o=A+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<A?1:-1;l<A||l>o;)l+=u*360;return[s,l]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[a,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(A,o){var s=A-this.cx,l=o-this.cy,u=s*s+l*l-1e-4,f=this.r,c=this.r0;return u<=f*f&&u>=c*c}}},r.prototype.convertToPixel=function(t,e,n){var a=BF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=BF(e);return a===this?this.pointToData(n):null},r}();function BF(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Wj(r,t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight();r.cx=et(n[0],a),r.cy=et(n[1],i);var A=r.getRadiusAxis(),o=Math.min(a,i)/2,s=t.get("radius");s==null?s=[0,"100%"]:K(s)||(s=[0,s]);var l=[et(s[0],o),et(s[1],o)];A.inverse?A.setExtent(l[1],l[0]):A.setExtent(l[0],l[1])}function Xj(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(o){if(o.coordinateSystem===e){var s=o.getData();T(Gv(s,"radius"),function(l){a.scale.unionExtentFromData(s,l)}),T(Gv(s,"angle"),function(l){n.scale.unionExtentFromData(s,l)})}}),Os(n.scale,n.model),Os(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),A=360/n.scale.count();n.inverse?i[1]+=A:i[1]-=A,n.setExtent(i[0],i[1])}}function Yj(r){return r.mainType==="angleAxis"}function _F(r,t){var e;if(r.type=t.get("type"),r.scale=hp(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),Yj(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var Zj={dimensions:cH,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new zj(a+"");i.update=Xj;var A=i.getRadiusAxis(),o=i.getAngleAxis(),s=n.findAxisModel("radiusAxis"),l=n.findAxisModel("angleAxis");_F(A,s),_F(o,l),Wj(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",Te).models[0];n.coordinateSystem=a.coordinateSystem}}),e}},$j=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function eh(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function rh(r){var t=r.getRadiusAxis();return t.inverse?0:1}function CF(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 Jj=function(r){H(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 a=e.axis,i=a.polar,A=i.getRadiusAxis().getExtent(),o=a.getTicksCoords(),s=a.getMinorTicksCoords(),l=Y(a.getViewLabels(),function(u){u=mt(u);var f=a.scale,c=f.type==="ordinal"?f.getRawOrdinalNumber(u.tickValue):u.tickValue;return u.coord=a.dataToCoord(c),u});CF(l),CF(o),T($j,function(u){e.get([u,"show"])&&(!a.scale.isBlank()||u==="axisLine")&&qj[u](this.group,e,i,o,s,A,l)},this)}},t.type="angleAxis",t}(Io),qj={axisLine:function(r,t,e,n,a,i){var A=t.getModel(["axisLine","lineStyle"]),o=e.getAngleAxis(),s=Math.PI/180,l=o.getExtent(),u=rh(e),f=u?0:1,c,h=Math.abs(l[1]-l[0])===360?"Circle":"Arc";i[f]===0?c=new So[h]({shape:{cx:e.cx,cy:e.cy,r:i[u],startAngle:-l[0]*s,endAngle:-l[1]*s,clockwise:o.inverse},style:A.getLineStyle(),z2:1,silent:!0}):c=new Mf({shape:{cx:e.cx,cy:e.cy,r:i[u],r0:i[f]},style:A.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,t,e,n,a,i){var A=t.getModel("axisTick"),o=(A.get("inside")?-1:1)*A.get("length"),s=i[rh(e)],l=Y(n,function(u){return new Pe({shape:eh(e,[s,s+o],u.coord)})});r.add(ln(l,{style:gt(A.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var A=t.getModel("axisTick"),o=t.getModel("minorTick"),s=(A.get("inside")?-1:1)*o.get("length"),l=i[rh(e)],u=[],f=0;f<a.length;f++)for(var c=0;c<a[f].length;c++)u.push(new Pe({shape:eh(e,[l,l+s],a[f][c].coord)}));r.add(ln(u,{style:gt(o.getModel("lineStyle").getLineStyle(),gt(A.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,a,i,A){var o=t.getCategories(!0),s=t.getModel("axisLabel"),l=s.get("margin"),u=t.get("triggerEvent");T(A,function(f,c){var h=s,v=f.tickValue,d=i[rh(e)],p=e.coordToPoint([d+l,f.coord]),g=e.cx,y=e.cy,m=Math.abs(p[0]-g)/d<.3?"center":p[0]>g?"left":"right",w=Math.abs(p[1]-y)/d<.3?"middle":p[1]>y?"top":"bottom";if(o&&o[v]){var _=o[v];yt(_)&&_.textStyle&&(h=new Yt(_.textStyle,s,s.ecModel))}var B=new Gt({silent:wr.isLabelSilent(t),style:oe(h,{x:p[0],y:p[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:m,verticalAlign:w})});if(r.add(B),u){var C=wr.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=f.rawLabel,Ct(B).eventData=C}},this)},splitLine:function(r,t,e,n,a,i){var A=t.getModel("splitLine"),o=A.getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],f=0;f<n.length;f++){var c=l++%s.length;u[c]=u[c]||[],u[c].push(new Pe({shape:eh(e,i,n[f].coord)}))}for(var f=0;f<u.length;f++)r.add(ln(u[f],{style:gt({stroke:s[f%s.length]},o.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,a,i){if(a.length){for(var A=t.getModel("minorSplitLine"),o=A.getModel("lineStyle"),s=[],l=0;l<a.length;l++)for(var u=0;u<a[l].length;u++)s.push(new Pe({shape:eh(e,i,a[l][u].coord)}));r.add(ln(s,{style:o.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,a,i){if(n.length){var A=t.getModel("splitArea"),o=A.getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],f=Math.PI/180,c=-n[0].coord*f,h=Math.min(i[0],i[1]),v=Math.max(i[0],i[1]),d=t.get("clockwise"),p=1,g=n.length;p<=g;p++){var y=p===g?n[0].coord:n[p].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new Cr({shape:{cx:e.cx,cy:e.cy,r0:h,r:v,startAngle:c,endAngle:-y*f,clockwise:d},silent:!0})),c=-y*f}for(var p=0;p<u.length;p++)r.add(ln(u[p],{style:gt({fill:s[p%s.length]},o.getAreaStyle()),silent:!0}))}}},jj=["axisLine","axisTickLabel","axisName"],ttt=["splitLine","splitArea","minorSplitLine"],ett=function(r){H(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 a=this._axisGroup,i=this._axisGroup=new _t;this.group.add(i);var A=e.axis,o=A.polar,s=o.getAngleAxis(),l=A.getTicksCoords(),u=A.getMinorTicksCoords(),f=s.getExtent()[0],c=A.getExtent(),h=ntt(o,e,f),v=new wr(e,h);T(jj,v.add,v),i.add(v.getGroup()),Rf(a,i,e),T(ttt,function(d){e.get([d,"show"])&&!A.scale.isBlank()&&rtt[d](this.group,e,o,f,c,l,u)},this)}},t.type="radiusAxis",t}(Io),rtt={splitLine:function(r,t,e,n,a,i){var A=t.getModel("splitLine"),o=A.getModel("lineStyle"),s=o.get("color"),l=0,u=e.getAngleAxis(),f=Math.PI/180,c=u.getExtent(),h=Math.abs(c[1]-c[0])===360?"Circle":"Arc";s=s instanceof Array?s:[s];for(var v=[],d=0;d<i.length;d++){var p=l++%s.length;v[p]=v[p]||[],v[p].push(new So[h]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[d].coord,0),startAngle:-c[0]*f,endAngle:-c[1]*f,clockwise:u.inverse}}))}for(var d=0;d<v.length;d++)r.add(ln(v[d],{style:gt({stroke:s[d%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,a,i,A){if(A.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<A.length;u++)for(var f=0;f<A[u].length;f++)l.push(new ei({shape:{cx:e.cx,cy:e.cy,r:A[u][f].coord}}));r.add(ln(l,{style:gt({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,a,i){if(i.length){var A=t.getModel("splitArea"),o=A.getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],f=i[0].coord,c=1;c<i.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new Cr({shape:{cx:e.cx,cy:e.cy,r0:f,r:i[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[c].coord}for(var c=0;c<u.length;c++)r.add(ln(u[c],{style:gt({fill:s[c%s.length]},o.getAreaStyle()),silent:!0}))}}};function ntt(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}}function hH(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function vH(r,t){return t.dim+r.model.componentIndex}function att(r,t,e){var n={},a=itt(Jt(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var A=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=vH(o,s),u=hH(i),f=a[l][u],c=f.offset,h=f.width,v=o.getOtherAxis(s),d=i.coordinateSystem.cx,p=i.coordinateSystem.cy,g=i.get("barMinHeight")||0,y=i.get("barMinAngle")||0;n[u]=n[u]||[];for(var m=A.mapDimension(v.dim),w=A.mapDimension(s.dim),_=Zi(A,m),B=s.dim!=="radius"||!i.get("roundCap",!0),C=v.model,S=C.get("startValue"),x=v.dataToCoord(S||0),b=0,I=A.count();b<I;b++){var F=A.get(m,b),E=A.get(w,b),D=F>=0?"p":"n",Q=x;_&&(n[u][E]||(n[u][E]={p:x,n:x}),Q=n[u][E][D]);var M=void 0,R=void 0,P=void 0,O=void 0;if(v.dim==="radius"){var G=v.dataToCoord(F)-x,X=s.dataToCoord(E);Math.abs(G)<g&&(G=(G<0?-1:1)*g),M=Q,R=Q+G,P=X-c,O=P-h,_&&(n[u][E][D]=R)}else{var J=v.dataToCoord(F,B)-x,At=s.dataToCoord(E);Math.abs(J)<y&&(J=(J<0?-1:1)*y),M=At+c,R=M+h,P=Q,O=Q+J,_&&(n[u][E][D]=O)}A.setItemLayout(b,{cx:d,cy:p,r0:M,r:R,startAngle:-P*Math.PI/180,endAngle:-O*Math.PI/180,clockwise:P>=O})}}})}function itt(r){var t={};T(r,function(n,a){var i=n.getData(),A=n.coordinateSystem,o=A.getBaseAxis(),s=vH(A,o),l=o.getExtent(),u=o.type==="category"?o.getBandWidth():Math.abs(l[1]-l[0])/i.count(),f=t[s]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=f.stacks;t[s]=f;var h=hH(n);c[h]||f.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var v=et(n.get("barWidth"),u),d=et(n.get("barMaxWidth"),u),p=n.get("barGap"),g=n.get("barCategoryGap");v&&!c[h].width&&(v=Math.min(f.remainedWidth,v),c[h].width=v,f.remainedWidth-=v),d&&(c[h].maxWidth=d),p!=null&&(f.gap=p),g!=null&&(f.categoryGap=g)});var e={};return T(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=et(n.categoryGap,A),s=et(n.gap,1),l=n.remainedWidth,u=n.autoWidthCount,f=(l-o)/(u+(u-1)*s);f=Math.max(f,0),T(i,function(d,p){var g=d.maxWidth;g&&g<f&&(g=Math.min(g,l),d.width&&(g=Math.min(g,d.width)),l-=g,d.width=g,u--)}),f=(l-o)/(u+(u-1)*s),f=Math.max(f,0);var c=0,h;T(i,function(d,p){d.width||(d.width=f),h=d,c+=d.width*(1+s)}),h&&(c-=h.width*s);var v=-c/2;T(i,function(d,p){e[a][p]=e[a][p]||{offset:v,width:d.width},v+=d.width*(1+s)})}),e}var Att={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},ott={splitNumber:5},stt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(de);function ltt(r){Lt(Jf),Io.registerAxisPointerClass("PolarAxisPointer",Hj),r.registerCoordinateSystem("polar",Zj),r.registerComponentModel(Nj),r.registerComponentView(stt),Ns(r,"angle",Vj,Att),Ns(r,"radius",Gj,ott),r.registerComponentView(Jj),r.registerComponentView(ett),r.registerLayout(bt(att,"bar"))}function bw(r,t){t=t||{};var e=r.coordinateSystem,n=r.axis,a={},i=n.position,A=n.orient,o=e.getRect(),s=[o.x,o.x+o.width,o.y,o.y+o.height],l={horizontal:{top:s[2],bottom:s[3]},vertical:{left:s[0],right:s[1]}};a.position=[A==="vertical"?l.vertical[i]:s[0],A==="horizontal"?l.horizontal[i]:s[3]];var u={horizontal:0,vertical:1};a.rotation=Math.PI/2*u[A];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ge(t.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var c=t.rotate;return c==null&&(c=r.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-c:c,a.z2=1,a}var utt=["axisLine","axisTickLabel","axisName"],ftt=["splitArea","splitLine"],ctt=function(r){H(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,a,i){var A=this.group;A.removeAll();var o=this._axisGroup;this._axisGroup=new _t;var s=bw(e),l=new wr(e,s);T(utt,l.add,l),A.add(this._axisGroup),A.add(l.getGroup()),T(ftt,function(u){e.get([u,"show"])&&htt[u](this,this.group,this._axisGroup,e)},this),Rf(o,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)},t.prototype.remove=function(){PP(this)},t.type="singleAxis",t}(Io),htt={splitLine:function(r,t,e,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),A=i.getModel("lineStyle"),o=A.get("color");o=o instanceof Array?o:[o];for(var s=A.get("width"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=[],c=0,h=a.getTicksCoords({tickModel:i}),v=[],d=[],p=0;p<h.length;++p){var g=a.toGlobalCoord(h[p].coord);u?(v[0]=g,v[1]=l.y,d[0]=g,d[1]=l.y+l.height):(v[0]=l.x,v[1]=g,d[0]=l.x+l.width,d[1]=g);var y=new Pe({shape:{x1:v[0],y1:v[1],x2:d[0],y2:d[1]},silent:!0});Ps(y.shape,s);var m=c++%o.length;f[m]=f[m]||[],f[m].push(y)}for(var w=A.getLineStyle(["color"]),p=0;p<f.length;++p)t.add(ln(f[p],{style:gt({stroke:o[p%o.length]},w),silent:!0}))}},splitArea:function(r,t,e,n){UP(r,e,n,n)}},ev=function(r){H(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}(Rt);Fe(ev,Vf.prototype);var vtt=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o.position=A||"bottom",o}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}(kn),dH=["single"],dtt=function(){function r(t,e,n){this.type="single",this.dimension="single",this.dimensions=dH,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=this.dimension,i=new vtt(a,hp(t),[0,0],t.get("type"),t.get("position")),A=i.type==="category";i.onBand=A&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(t,e){t.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();T(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Os(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=Le({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(),a=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(a[i],a[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(A){return A+e}:function(A){return a-A+e},t.toLocalCoord=i?function(A){return A-e}:function(A){return a-A+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(),a=n.orient;return a==="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(),a=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=e.toGlobalCoord(e.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(t,e,n){var a=SF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=SF(e);return a===this?this.pointToData(n):null},r}();function SF(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function ptt(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new dtt(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",Te).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),e}var gtt={create:ptt,dimensions:dH},xF=["x","y"],ytt=["width","height"],mtt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.coordinateSystem,l=qy(s,1-nd(o)),u=s.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var c=bC(i),h=wtt[f](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=bw(a);sH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=bw(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=TC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.coordinateSystem,s=nd(A),l=qy(o,s),u=[e.x,e.y];u[s]+=n[s],u[s]=Math.min(l[1],u[s]),u[s]=Math.max(l[0],u[s]);var f=qy(o,1-s),c=(f[1]+f[0])/2,h=[c,c];return h[s]=u[s],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(xC),wtt={line:function(r,t,e){var n=IC([t,e[0]],[t,e[1]],nd(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),a=e[1]-e[0];return{type:"Rect",shape:lH([t-n/2,e[0]],[n,a],nd(r))}}};function nd(r){return r.isHorizontal()?0:1}function qy(r,t){var e=r.getRect();return[e[xF[t]],e[xF[t]]+e[ytt[t]]]}var Btt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(de);function _tt(r){Lt(Jf),Io.registerAxisPointerClass("SingleAxisPointer",mtt),r.registerComponentView(Btt),r.registerComponentView(ctt),r.registerComponentModel(ev),Ns(r,"single",ev,ev.defaultOption),r.registerCoordinateSystem("single",gtt)}var Ctt=function(r){H(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,a){var i=nl(e);r.prototype.init.apply(this,arguments),bF(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),bF(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}(Rt);function bF(r,t){var e=r.cellSize,n;K(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=Y([0,1],function(i){return z3(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Yi(r,t,{type:"box",ignoreSize:a})}var Stt=function(r){H(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,a){var i=this.group;i.removeAll();var A=e.coordinateSystem,o=A.getRangeInfo(),s=A.getOrient(),l=n.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,s,i),this._renderYearText(e,o,s,i),this._renderMonthText(e,l,s,i),this._renderWeekText(e,l,o,s,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,A=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),l=n.start.time;l<=n.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,f=new Nt({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:A});a.add(f)}},t.prototype._renderLines=function(e,n,a,i){var A=this,o=e.coordinateSystem,s=e.getModel(["splitLine","lineStyle"]).getLineStyle(),l=e.get(["splitLine","show"]),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,c=0;f.time<=n.end.time;c++){v(f.formatedDate),c===0&&(f=o.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=o.getDateInfo(h)}v(o.getNextNDay(n.end.time,1).formatedDate);function v(d){A._firstDayOfMonth.push(o.getDateInfo(d)),A._firstDayPoints.push(o.dataToRect([d],!1).tl);var p=A._getLinePointsOfOneWeek(e,d,a);A._tlpoints.push(p[0]),A._blpoints.push(p[p.length-1]),l&&A._drawSplitline(p,s,i)}l&&this._drawSplitline(A._getEdgesPoints(A._tlpoints,u,a),s,i),l&&this._drawSplitline(A._getEdgesPoints(A._blpoints,u,a),s,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],A=a==="horizontal"?0:1;return i[0][A]=i[0][A]-n/2,i[1][A]=i[1][A]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new xr({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,A=i.getDateInfo(n),o=[],s=0;s<7;s++){var l=i.getNextNDay(A.time,s),u=i.dataToRect([l.time],!1);o[2*l.day]=u.tl,o[2*l.day+1]=u[a==="horizontal"?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?V3(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,A){var o=n[0],s=n[1],l=["center","bottom"];i==="bottom"?(s+=A,l=["center","top"]):i==="left"?o-=A:i==="right"?(o+=A,l=["center","top"]):s-=A;var u=0;return(i==="left"||i==="right")&&(u=Math.PI/2),{rotation:u,x:o,y:s,style:{align:l[0],verticalAlign:l[1]}}},t.prototype._renderYearText=function(e,n,a,i){var A=e.getModel("yearLabel");if(A.get("show")){var o=A.get("margin"),s=A.get("position");s||(s=a!=="horizontal"?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,f=(l[0][1]+l[1][1])/2,c=a==="horizontal"?0:1,h={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],f],right:[l[c][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var d=A.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:v},g=this._formatterLabel(d,p),y=new Gt({z2:30,style:oe(A,{text:g})});y.attr(this._yearTextPositionControl(y,h[s],a,s,o)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,n,a,i,A){var o="left",s="top",l=e[0],u=e[1];return a==="horizontal"?(u=u+A,n&&(o="center"),i==="start"&&(s="bottom")):(l=l+A,n&&(s="middle"),i==="start"&&(o="right")),{x:l,y:u,align:o,verticalAlign:s}},t.prototype._renderMonthText=function(e,n,a,i){var A=e.getModel("monthLabel");if(A.get("show")){var o=A.get("nameMap"),s=A.get("margin"),l=A.get("position"),u=A.get("align"),f=[this._tlpoints,this._blpoints];(!o||nt(o))&&(o&&(n=M0(o)||n),o=n.get(["time","monthAbbr"])||[]);var c=l==="start"?0:1,h=a==="horizontal"?0:1;s=l==="start"?-s:s;for(var v=u==="center",d=0;d<f[c].length-1;d++){var p=f[c][d].slice(),g=this._firstDayOfMonth[d];if(v){var y=this._firstDayPoints[d];p[h]=(y[h]+f[0][d+1][h])/2}var m=A.get("formatter"),w=o[+g.m-1],_={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:w},B=this._formatterLabel(m,_),C=new Gt({z2:30,style:V(oe(A,{text:B}),this._monthTextPositionControl(p,v,a,l,s))});i.add(C)}}},t.prototype._weekTextPositionControl=function(e,n,a,i,A){var o="center",s="middle",l=e[0],u=e[1],f=a==="start";return n==="horizontal"?(l=l+i+(f?1:-1)*A[0]/2,o=f?"right":"left"):(u=u+i+(f?1:-1)*A[1]/2,s=f?"bottom":"top"),{x:l,y:u,align:o,verticalAlign:s}},t.prototype._renderWeekText=function(e,n,a,i,A){var o=e.getModel("dayLabel");if(o.get("show")){var s=e.coordinateSystem,l=o.get("position"),u=o.get("nameMap"),f=o.get("margin"),c=s.getFirstDayOfWeek();if(!u||nt(u)){u&&(n=M0(u)||n);var h=n.get(["time","dayOfWeekShort"]);u=h||Y(n.get(["time","dayOfWeekAbbr"]),function(_){return _[0]})}var v=s.getNextNDay(a.end.time,7-a.lweek).time,d=[s.getCellWidth(),s.getCellHeight()];f=et(f,Math.min(d[1],d[0])),l==="start"&&(v=s.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var p=0;p<7;p++){var g=s.getNextNDay(v,p),y=s.dataToRect([g.time],!1).center,m=p;m=Math.abs((p+c)%7);var w=new Gt({z2:30,style:V(oe(o,{text:u[m]}),this._weekTextPositionControl(y,i,l,f,d))});A.add(w)}}},t.type="calendar",t}(de),jy=864e5,xtt=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=pa(t);var e=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),A=i<10?"0"+i:""+i,o=t.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:e+"",m:a,d:A,day:o,time:t.getTime(),formatedDate:e+"-"+a+"-"+A,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,a=["width","height"],i=this._model.getCellSize().slice(),A=this._model.getBoxLayoutParams(),o=this._orient==="horizontal"?[n,7]:[7,n];T([0,1],function(f){u(i,f)&&(A[a[f]]=i[f]*o[f])});var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Le(A,s);T([0,1],function(f){u(i,f)||(i[f]=l[a[f]]/o[f])});function u(f,c){return f[c]!=null&&f[c]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e){K(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),a=this._rangeInfo,i=n.formatedDate;if(e&&!(n.time>=a.start.time&&n.time<a.end.time+jy))return[NaN,NaN];var A=n.day,o=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+A*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+A*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,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,e-1,a):this._getDateByWeeksAndDay(e,n-1,a)},r.prototype.convertToPixel=function(t,e,n){var a=TF(e);return a===this?a.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=TF(e);return a===this?a.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(K(t)&&t.length===1&&(t=t[0]),K(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 a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var A=this.getNextNDay(i,-1);e=[a.formatedDate,A.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var o=this._getRangeInfo(e);return o.start.time>o.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 a=Math.floor(e[1].time/jy)-Math.floor(e[0].time/jy)+1,i=new Date(e[0].time),A=i.getDate(),o=e[1].date.getDate();i.setDate(A+a-1);var s=i.getDate();if(s!==o)for(var l=i.getTime()-e[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-e[1].time)*l>0;)a-=l,i.setDate(s-l);var u=Math.floor((a+e[0].day+6)/7),f=n?-u+1:u-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:u,nthWeek:f,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&e<a.fweek||t===a.weeks&&e>a.lweek)return null;var i=(t-1)*7-a.fweek+e,A=new Date(a.start.time);return A.setDate(+a.start.d+i),this.getDateInfo(A)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function TF(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function btt(r){r.registerComponentModel(Ctt),r.registerComponentView(Stt),r.registerCoordinateSystem("calendar",xtt)}function Ttt(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 IF(r,t){var e;return T(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function Itt(r,t,e){var n=V({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(Et(a,n,!0),Yi(a,n,{ignoreSize:!0}),sU(e,a),nh(e,a),nh(e,a,"shape"),nh(e,a,"style"),nh(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var pH=["transition","enterFrom","leaveTo"],Ftt=pH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function nh(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?pH:Ftt,a=0;a<n.length;a++){var i=n[a];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function Ett(r,t){if(r&&(r.hv=t.hv=[IF(t,["left","right"]),IF(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 Dtt=function(r){H(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 a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,n),this.option.elements=a},t.prototype.optionUpdated=function(e,n){var a=this.option,i=(n?a:e).elements,A=a.elements=n?[]:a.elements,o=[];this._flatten(i,o,null);var s=aM(A,o,"normalMerge"),l=this._elOptionsToUpdate=[];T(s,function(u,f){var c=u.newOption;c&&(l.push(c),Ttt(u,c),Itt(A,f,c),Ett(A[f],c))},this),a.elements=Jt(A,function(u){return u&&delete u.$action,u!=null})},t.prototype._flatten=function(e,n,a){T(e,function(i){if(i){a&&(i.parentOption=a),n.push(i);var A=i.children;A&&A.length&&this._flatten(A,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Rt),FF={path:null,compoundPath:null,group:_t,image:Ke,text:Gt},an=Vt(),Qtt=function(r){H(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,a){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,a)},t.prototype._updateElements=function(e){var n=e.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,A=e.get("z"),o=e.get("zlevel");T(n,function(s){var l=De(s.id,null),u=l!=null?a.get(l):null,f=De(s.parentId,null),c=f!=null?a.get(f):i,h=s.type,v=s.style;h==="text"&&v&&s.hv&&s.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var d=s.textContent,p=s.textConfig;if(v&&$R(v,h,!!p,!!d)){var g=JR(v,h,!0);!p&&g.textConfig&&(p=s.textConfig=g.textConfig),!d&&g.textContent&&(d=g.textContent)}var y=Ltt(s),m=s.$action||"merge",w=m==="merge",_=m==="replace";if(w){var B=!u,C=u;B?C=EF(l,c,s.type,a):(C&&(an(C).isNew=!1),eH(C)),C&&(jh(C,y,e,{isInit:B}),DF(C,s,A,o))}else if(_){rv(u,s,a,e);var S=EF(l,c,s.type,a);S&&(jh(S,y,e,{isInit:!0}),DF(S,s,A,o))}else m==="remove"&&(jR(u,s),rv(u,s,a,e));var x=a.get(l);if(x&&d)if(w){var b=x.getTextContent();b?b.attr(d):x.setTextContent(new Gt(d))}else _&&x.setTextContent(new Gt(d));if(x){var I=s.clipPath;if(I){var F=I.type,E=void 0,B=!1;if(w){var D=x.getClipPath();B=!D||an(D).type!==F,E=B?Tw(F):D}else _&&(B=!0,E=Tw(F));x.setClipPath(E),jh(E,I,e,{isInit:B}),ed(E,I.keyframeAnimation,e)}var Q=an(x);x.setTextConfig(p),Q.option=s,Mtt(x,e,s),js({el:x,componentModel:e,itemName:x.name,itemTooltipOption:s.tooltip}),ed(x,s.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,n){for(var a=e.option.elements,i=this.group,A=this._elMap,o=n.getWidth(),s=n.getHeight(),l=["x","y"],u=0;u<a.length;u++){var f=a[u],c=De(f.id,null),h=c!=null?A.get(c):null;if(!(!h||!h.isGroup)){var v=h.parent,d=v===i,p=an(h),g=an(v);p.width=et(p.option.width,d?o:g.width)||0,p.height=et(p.option.height,d?s:g.height)||0}}for(var u=a.length-1;u>=0;u--){var f=a[u],c=De(f.id,null),h=c!=null?A.get(c):null;if(h){var v=h.parent,g=an(v),y=v===i?{width:o,height:s}:{width:g.width,height:g.height},m={},w=ap(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},m);if(!an(h).isNew&&w){for(var _=f.transition,B={},C=0;C<l.length;C++){var S=l[C],x=m[S];_&&(oo(_)||Qt(_,S)>=0)?B[S]=x:h[S]=x}zt(h,B,e,0)}else h.attr(m)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){rv(a,an(a).option,n,e._lastGraphicModel)}),this._elMap=ft()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(de);function Tw(r){var t=st(FF,r)?FF[r]:u_(r),e=new t({});return an(e).type=r,e}function EF(r,t,e,n){var a=Tw(e);return t.add(a),n.set(r,a),an(a).id=r,an(a).isNew=!0,a}function rv(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){rv(i,t,e,n)}),wp(r,t,n),e.removeKey(an(r).id))}function DF(r,t,e,n){r.isGroup||T([["cursor",gn.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];st(t,i)?r[i]=xt(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),T(Ht(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=vt(i)?i:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Ltt(r){return r=V({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(oU),function(t){delete r[t]}),r}function Mtt(r,t,e){var n=Ct(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Ct(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function Utt(r){r.registerComponentModel(Dtt),r.registerComponentView(Qtt),r.registerPreprocessor(function(t){var e=t.graphic;K(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var QF=["x","y","radius","angle","single"],Ptt=["cartesian2d","polar","singleAxis"];function Rtt(r){var t=r.get("coordinateSystem");return Qt(Ptt,t)>=0}function Li(r){return r+"Axis"}function Htt(r,t){var e=ft(),n=[],a=ft();r.eachComponent({mainType:"dataZoom",query:t},function(u){a.get(u.uid)||o(u)});var i;do i=!1,r.eachComponent("dataZoom",A);while(i);function A(u){!a.get(u.uid)&&s(u)&&(o(u),i=!0)}function o(u){a.set(u.uid,!0),n.push(u),l(u)}function s(u){var f=!1;return u.eachTargetAxis(function(c,h){var v=e.get(c);v&&v[h]&&(f=!0)}),f}function l(u){u.eachTargetAxis(function(f,c){(e.get(f)||e.set(f,[]))[c]=!0})}return n}function gH(r){var t=r.ecModel,e={infoList:[],infoMap:ft()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(Li(n),a);if(i){var A=i.getCoordSysModel();if(A){var o=A.uid,s=e.infoMap.get(o);s||(s={model:A,axisModels:[]},e.infoList.push(s),e.infoMap.set(o,s)),s.axisModels.push(i)}}}),e}var tm=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}(),_f=function(r){H(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,a){var i=LF(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=LF(e);Et(this.option,e,!0),Et(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i,A){this._rangePropMode[A]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ft(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return T(QF,function(a){var i=this.getReferringComponents(Li(a),DK);if(i.specified){n=!0;var A=new tm;T(i.models,function(o){A.add(o.componentIndex)}),e.set(a,A)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var A=n==="vertical"?"y":"x",o=a.findComponents({mainType:A+"Axis"});s(o,A)}if(i){var o=a.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===n}});s(o,"single")}function s(l,u){var f=l[0];if(f){var c=new tm;if(c.add(f.componentIndex),e.set(u,c),i=!1,u==="x"||u==="y"){var h=f.getReferringComponents("grid",Te).models[0];h&&T(l,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Te).models[0]&&c.add(v.componentIndex)})}}}i&&T(QF,function(l){if(i){var u=a.findComponents({mainType:Li(l),filter:function(c){return c.get("type",!0)==="category"}});if(u[0]){var f=new tm;f.add(u[0].componentIndex),e.set(l,f),i=!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,a=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(i,A){var o=e[i[0]]!=null,s=e[i[1]]!=null;o&&!s?n[A]="percent":!o&&s?n[A]="value":a?n[A]=a[A]:o&&(n[A]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Li(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){T(a.indexList,function(A){e.call(n,i,A)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Li(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;T(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},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 a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var A=a[i],o=this._targetAxisInfoMap.get(A),s=0;s<o.indexList.length;s++){var l=this.getAxisProxy(A,o.indexList[s]);if(l.hostedBy(this))return l;n||(n=l)}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}(Rt);function LF(r){var t={};return T(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var Ott=function(r){H(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}(_f),QC=function(r){H(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,a,i){this.dataZoomModel=e,this.ecModel=n,this.api=a},t.type="dataZoom",t}(de),ktt=function(r){H(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}(QC),ls=T,MF=fn,Ntt=function(){function r(t,e,n,a){this._dimName=t,this._axisIndex=e,this.ecModel=a,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(Rtt(e)){var n=Li(this._dimName),a=e.getReferringComponents(n,Te).models[0];a&&this._axisIndex===a.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(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),A=[0,100],o=[],s=[],l;ls(["start","end"],function(c,h){var v=t[c],d=t[c+"Value"];i[h]==="percent"?(v==null&&(v=A[h]),d=a.parse($t(v,A,e))):(l=!0,d=d==null?e[h]:a.parse(d),v=$t(d,e,A)),s[h]=d==null||isNaN(d)?e[h]:d,o[h]=v==null||isNaN(v)?A[h]:v}),MF(s),MF(o);var u=this._minMaxSpan;l?f(s,o,e,A,!1):f(o,s,A,e,!0);function f(c,h,v,d,p){var g=p?"Span":"ValueSpan";Fo(0,c,v,"all",u["min"+g],u["max"+g]);for(var y=0;y<2;y++)h[y]=$t(c[y],v,d,!0),p&&(h[y]=a.parse(h[y]))}return{valueWindow:s,percentWindow:o}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Vtt(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,a=this.getTargetSeriesModels(),i=t.get("filterMode"),A=this._valueWindow;if(i==="none")return;ls(a,function(s){var l=s.getData(),u=l.mapDimensionsAll(n);if(u.length){if(i==="weakFilter"){var f=l.getStore(),c=Y(u,function(h){return l.getDimensionIndex(h)},l);l.filterSelf(function(h){for(var v,d,p,g=0;g<u.length;g++){var y=f.get(c[g],h),m=!isNaN(y),w=y<A[0],_=y>A[1];if(m&&!w&&!_)return!0;m&&(p=!0),w&&(v=!0),_&&(d=!0)}return p&&v&&d})}else ls(u,function(h){if(i==="empty")s.setData(l=l.map(h,function(d){return o(d)?d:NaN}));else{var v={};v[h]=A,l.selectRange(v)}});ls(u,function(h){l.setApproximateExtent(A,h)})}});function o(s){return s>=A[0]&&s<=A[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ls(["min","max"],function(a){var i=e.get(a+"Span"),A=e.get(a+"ValueSpan");A!=null&&(A=this.getAxisModel().axis.scale.parse(A)),A!=null?i=$t(n[0]+A,n,[0,100],!0):i!=null&&(A=$t(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=A},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=$L(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Vtt(r,t,e){var n=[1/0,-1/0];ls(e,function(A){BX(n,A.getData(),t)});var a=r.getAxisModel(),i=U2(a.axis.scale,a,n).calculate();return[i.min,i.max]}var Gtt={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(A,o){var s=r.getComponent(Li(A),o);a(A,o,s,i)})})}t(function(a,i,A,o){A.__dzAxisProxy=null});var e=[];t(function(a,i,A,o){A.__dzAxisProxy||(A.__dzAxisProxy=new Ntt(a,i,o,r),e.push(A.__dzAxisProxy))});var n=ft();return T(e,function(a){T(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Ktt(r){r.registerAction("dataZoom",function(t,e){var n=Htt(e,t);T(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var UF=!1;function LC(r){UF||(UF=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Gtt),Ktt(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function ztt(r){r.registerComponentModel(Ott),r.registerComponentView(ktt),LC(r)}var on=function(){function r(){}return r}(),yH={};function us(r,t){yH[r]=t}function mH(r){return yH[r]}var Wtt=function(r){H(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;T(this.option.feature,function(n,a){var i=mH(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Et(n,i.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}(Rt);function Xtt(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},A=Le(n,i,a);io(t.get("orient"),r,t.get("itemGap"),A.width,A.height),ap(r,n,i,a)}function wH(r,t){var e=rl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Nt({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 Ytt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var A=this.group;if(A.removeAll(),!e.get("show"))return;var o=+e.get("itemSize"),s=e.get("orient")==="vertical",l=e.get("feature")||{},u=this._features||(this._features={}),f=[];T(l,function(v,d){f.push(d)}),new Ya(this._featureNames||[],f).add(c).update(c).remove(bt(c,null)).execute(),this._featureNames=f;function c(v,d){var p=f[v],g=f[d],y=l[p],m=new Yt(y,e,e.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!g){if(Ztt(p))w={onclick:m.option.onclick,featureName:p};else{var _=mH(p);if(!_)return;w=new _}u[p]=w}else if(w=u[g],!w)return;w.uid=el("toolbox-feature"),w.model=m,w.ecModel=n,w.api=a;var B=w instanceof on;if(!p&&g){B&&w.dispose&&w.dispose(n,a);return}if(!m.get("show")||B&&w.unusable){B&&w.remove&&w.remove(n,a);return}h(m,w,p),m.setIconStatus=function(C,S){var x=this.option,b=this.iconPaths;x.iconStatus=x.iconStatus||{},x.iconStatus[C]=S,b[C]&&(S==="emphasis"?Wa:Xa)(b[C])},w instanceof on&&w.render&&w.render(m,n,a,i)}function h(v,d,p){var g=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),m=d instanceof on&&d.getIcons?d.getIcons():v.get("icon"),w=v.get("title")||{},_,B;nt(m)?(_={},_[p]=m):_=m,nt(w)?(B={},B[p]=w):B=w;var C=v.iconPaths={};T(_,function(S,x){var b=Hf(S,{},{x:-o/2,y:-o/2,width:o,height:o});b.setStyle(g.getItemStyle());var I=b.ensureState("emphasis");I.style=y.getItemStyle();var F=new Gt({style:{text:B[x],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:f_({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});b.setTextContent(F),js({el:b,componentModel:e,itemName:x,formatterParamsExtra:{title:B[x]}}),b.__title=B[x],b.on("mouseover",function(){var E=y.getItemStyle(),D=s?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";F.setStyle({fill:y.get("textFill")||E.fill||E.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),b.setTextConfig({position:y.get("textPosition")||D}),F.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",x])!=="emphasis"&&a.leaveEmphasis(this),F.hide()}),(v.get(["iconStatus",x])==="emphasis"?Wa:Xa)(b),A.add(b),b.on("click",it(d.onclick,d,n,a,x)),C[x]=b})}Xtt(A,e,a),A.add(wH(A.getBoundingRect(),e)),s||A.eachChild(function(v){var d=v.__title,p=v.ensureState("emphasis"),g=p.textConfig||(p.textConfig={}),y=v.getTextContent(),m=y&&y.ensureState("emphasis");if(m&&!vt(m)&&d){var w=m.style||(m.style={}),_=Df(d,Gt.makeFont(w)),B=v.x+A.x,C=v.y+A.y+o,S=!1;C+_.height>a.getHeight()&&(g.position="top",S=!0);var x=S?-5-_.height:o+10;B+_.width/2>a.getWidth()?(g.position=["100%",x],w.align="right"):B-_.width/2<0&&(g.position=[0,x],w.align="left")}})},t.prototype.updateView=function(e,n,a,i){T(this._features,function(A){A instanceof on&&A.updateView&&A.updateView(A.model,n,a,i)})},t.prototype.remove=function(e,n){T(this._features,function(a){a instanceof on&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){T(this._features,function(a){a instanceof on&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(de);function Ztt(r){return r.indexOf("my")===0}var $tt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",A=n.getZr().painter.getType()==="svg",o=A?"svg":a.get("type",!0)||"png",s=n.getConnectedDataURL({type:o,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),l=Ut.browser;if(typeof MouseEvent=="function"&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=i+"."+o,u.target="_blank",u.href=s;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||A){var c=s.split(","),h=c[0].indexOf("base64")>-1,v=A?decodeURIComponent(c[1]):c[1];h&&(v=window.atob(v));var d=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=v.length,g=new Uint8Array(p);p--;)g[p]=v.charCodeAt(p);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var w=m.contentWindow,_=w.document;_.open("image/svg+xml","replace"),_.write(v),_.close(),w.focus(),_.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var B=a.get("lang"),C='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(B&&B[0]||"")+'" /></body>',S=window.open();S.document.write(C),S.document.title=i}},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}(on),PF="__ec_magicType_stack__",Jtt=[["line","bar"],["stack"]],qtt=function(r){H(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"),a={};return T(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},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,a){var i=this.model,A=i.get(["seriesIndex",a]);if(RF[a]){var o={series:[]},s=function(f){var c=f.subType,h=f.id,v=RF[a](c,h,f,i);v&&(gt(v,f.option),o.series.push(v));var d=f.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=d.getAxesByScale("ordinal")[0];if(p){var g=p.dim,y=g+"Axis",m=f.getReferringComponents(y,Te).models[0],w=m.componentIndex;o[y]=o[y]||[];for(var _=0;_<=w;_++)o[y][w]=o[y][w]||{};o[y][w].boundaryGap=a==="bar"}}};T(Jtt,function(f){Qt(f,a)>=0&&T(f,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:A==null?null:{seriesIndex:A}},s);var l,u=a;a==="stack"&&(l=Et({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(u="tiled")),n.dispatchAction({type:"changeMagicType",currentType:u,newOption:o,newTitle:l,featureName:"magicType"})}},t}(on),RF={line:function(r,t,e,n){if(r==="bar")return Et({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 Et({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 a=e.get("stack")===PF;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Et({id:t,stack:a?"":PF},n.get(["option","stack"])||{},!0)}};ma({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var Bp=new Array(60).join("-"),Ks=" ";function jtt(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var A=i.getBaseAxis();if(A.type==="category"){var o=A.dim+"_"+A.index;t[o]||(t[o]={categoryAxis:A,valueAxis:i.getOtherAxis(A),series:[]},n.push({axisDim:A.dim,axisIndex:A.index})),t[o].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function tet(r){var t=[];return T(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,A=i.dim,o=[" "].concat(Y(e.series,function(h){return h.name})),s=[a.model.getCategories()];T(e.series,function(h){var v=h.getRawData();s.push(h.getRawData().mapArray(v.mapDimension(A),function(d){return d}))});for(var l=[o.join(Ks)],u=0;u<s[0].length;u++){for(var f=[],c=0;c<s.length;c++)f.push(s[c][u]);l.push(f.join(Ks))}t.push(l.join(`
|
||
`))}),t.join(`
|
||
|
||
`+Bp+`
|
||
|
||
`)}function eet(r){return Y(r,function(t){var e=t.getRawData(),n=[t.name],a=[];return e.each(e.dimensions,function(){for(var i=arguments.length,A=arguments[i-1],o=e.getName(A),s=0;s<i-1;s++)a[s]=arguments[s];n.push((o?o+Ks:"")+a.join(Ks))}),n.join(`
|
||
`)}).join(`
|
||
|
||
`+Bp+`
|
||
|
||
`)}function ret(r){var t=jtt(r);return{value:Jt([tet(t.seriesGroupByCategoryAxis),eet(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
||
`+Bp+`
|
||
|
||
`),meta:t.meta}}function ad(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function net(r){var t=r.slice(0,r.indexOf(`
|
||
`));if(t.indexOf(Ks)>=0)return!0}var Iw=new RegExp("["+Ks+"]+","g");function aet(r){for(var t=r.split(/\n+/g),e=ad(t.shift()).split(Iw),n=[],a=Y(e,function(s){return{name:s,data:[]}}),i=0;i<t.length;i++){var A=ad(t[i]).split(Iw);n.push(A.shift());for(var o=0;o<A.length;o++)a[o]&&(a[o].data[i]=A[o])}return{series:a,categories:n}}function iet(r){for(var t=r.split(/\n+/g),e=ad(t.shift()),n=[],a=0;a<t.length;a++){var i=ad(t[a]);if(i){var A=i.split(Iw),o="",s=void 0,l=!1;isNaN(A[0])?(l=!0,o=A[0],A=A.slice(1),n[a]={name:o,value:[]},s=n[a].value):s=n[a]=[];for(var u=0;u<A.length;u++)s.push(+A[u]);s.length===1&&(l?n[a].value=s[0]:n[a]=s[0])}}return{name:e,data:n}}function Aet(r,t){var e=r.split(new RegExp(`
|
||
*`+Bp+`
|
||
*`,"g")),n={series:[]};return T(e,function(a,i){if(net(a)){var A=aet(a),o=t[i],s=o.axisDim+"Axis";o&&(n[s]=n[s]||[],n[s][o.axisIndex]={data:A.categories},n.series=n.series.concat(A.series))}else{var A=iet(a);n.series.push(A)}}),n}var oet=function(r){H(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 a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var A=document.createElement("div");A.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",A.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),s=i.get("lang")||[];o.innerHTML=s[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="overflow:auto";var f=i.get("optionToContent"),c=i.get("contentToOption"),h=ret(e);if(vt(f)){var v=f(n.getOption());nt(v)?l.innerHTML=v:Ms(v)&&l.appendChild(v)}else{u.readOnly=i.get("readOnly");var d=u.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),u.value=h.value,l.appendChild(u)}var p=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),w=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var _=this;function B(){a.removeChild(A),_._dom=null}A0(m,"click",B),A0(w,"click",function(){if(c==null&&f!=null||c!=null&&f==null){B();return}var C;try{vt(c)?C=c(l,n.getOption()):C=Aet(u.value,p)}catch(S){throw B(),new Error("Data view format error "+S)}C&&n.dispatchAction({type:"changeDataView",newOption:C}),B()}),m.innerHTML=s[1],w.innerHTML=s[2],w.style.cssText=m.style.cssText=y,!i.get("readOnly")&&g.appendChild(w),g.appendChild(m),A.appendChild(o),A.appendChild(l),A.appendChild(g),l.style.height=a.clientHeight-80+"px",a.appendChild(A),this._dom=A},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}(on);function set(r,t){return Y(r,function(e,n){var a=t&&t[n];if(yt(a)&&!K(a)){var i=yt(e)&&!K(e);i||(e={value:e});var A=a.name!=null&&e.name==null;return e=gt(e,a),A&&delete e.name,e}else return e})}ma({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];T(r.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)e.push(V({type:"scatter"},n));else{var i=a.get("data");e.push({name:n.name,data:set(n.data,i)})}}),t.mergeOption(gt({series:e},r.newOption))});var BH=T,_H=Vt();function uet(r,t){var e=MC(r);BH(t,function(n,a){for(var i=e.length-1;i>=0;i--){var A=e[i];if(A[a])break}if(i<0){var o=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(o){var s=o.getPercentRange();e[0][a]={dataZoomId:a,start:s[0],end:s[1]}}}}),e.push(t)}function fet(r){var t=MC(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return BH(e,function(a,i){for(var A=t.length-1;A>=0;A--)if(a=t[A][i],a){n[i]=a;break}}),n}function cet(r){_H(r).snapshots=null}function het(r){return MC(r).length}function MC(r){var t=_H(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var vet=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){cet(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}(on);ma({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var det=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],UC=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=HF(e,t);T(pet,function(A,o){(!n||!n.include||Qt(n.include,o)>=0)&&A(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var A=em[n.brushType](0,i,a);n.__rangeOffset={offset:VF[n.brushType](A.values,n.range,[1,1]),xyMinMax:A.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){T(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&T(i.coordSyses,function(A){var o=em[a.brushType](1,A,a.range,!0);n(a,o.values,A,e)})},this)},r.prototype.setInputRanges=function(t,e){T(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=em[n.brushType](0,a.coordSys,n.coordRange),A=n.__rangeOffset;n.range=A?VF[n.brushType](i.values,A.offset,get(i.xyMinMax,A.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:ER(a),isTargetByCursor:QR(a,t,n.coordSysModel),getLinearBrushOtherExtent:DR(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&Qt(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=HF(e,t),i=0;i<n.length;i++){var A=n[i],o=t.panelId;if(o){if(A.panelId===o)return A}else for(var s=0;s<OF.length;s++)if(OF[s](a,A))return A}return!0},r}();function Fw(r){return r[0]>r[1]&&r.reverse(),r}function HF(r,t){return Tu(r,t,{includeMainTypes:det})}var pet={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=ft(),A={},o={};!e&&!n&&!a||(T(e,function(s){var l=s.axis.grid.model;i.set(l.id,l),A[l.id]=!0}),T(n,function(s){var l=s.axis.grid.model;i.set(l.id,l),o[l.id]=!0}),T(a,function(s){i.set(s.id,s),A[s.id]=!0,o[s.id]=!0}),i.each(function(s){var l=s.coordinateSystem,u=[];T(l.getCartesians(),function(f,c){(Qt(e,f.getAxis("x").model)>=0||Qt(n,f.getAxis("y").model)>=0)&&u.push(f)}),t.push({panelId:"grid--"+s.id,gridModel:s,coordSysModel:s,coordSys:u[0],coordSyses:u,getPanelRect:kF.grid,xAxisDeclared:A[s.id],yAxisDeclared:o[s.id]})}))},geo:function(r,t){T(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:kF.geo})})}},OF=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],kF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(ao(r)),t}},em={lineX:bt(NF,0),lineY:bt(NF,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),A=[Fw([a[0],i[0]]),Fw([a[1],i[1]])];return{values:A,xyMinMax:A}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(A){var o=r?t.pointToData(A,n):t.dataToPoint(A,n);return a[0][0]=Math.min(a[0][0],o[0]),a[1][0]=Math.min(a[1][0],o[1]),a[0][1]=Math.max(a[0][1],o[0]),a[1][1]=Math.max(a[1][1],o[1]),o});return{values:i,xyMinMax:a}}};function NF(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Fw(Y([0,1],function(o){return t?a.coordToData(a.toLocalCoord(n[o]),!0):a.toGlobalCoord(a.dataToCoord(n[o]))})),A=[];return A[r]=i,A[1-r]=[NaN,NaN],{values:i,xyMinMax:A}}var VF={lineX:bt(GF,0),lineY:bt(GF,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 Y(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function GF(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function get(r,t){var e=KF(r),n=KF(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function KF(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Ew=T,yet=bK("toolbox-dataZoom_"),met=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new uC(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),_et(e,n,this,i,a),Bet(e,n)},t.prototype.onclick=function(e,n,a){wet[a].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 a={},i=this.ecModel;this._brushController.updateCovers([]);var A=new UC(PC(this.model),i,{include:["grid"]});A.matchOutputRanges(n,i,function(l,u,f){if(f.type==="cartesian2d"){var c=l.brushType;c==="rect"?(o("x",f,u[0]),o("y",f,u[1])):o({lineX:"x",lineY:"y"}[c],f,u)}}),uet(i,a),this._dispatchZoomAction(a);function o(l,u,f){var c=u.getAxis(l),h=c.model,v=s(l,h,i),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(f=Fo(0,f.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function s(l,u,f){var c;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(l,u.componentIndex);v&&(c=h)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Ew(e,function(a,i){n.push(mt(a))}),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}(on),wet={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(fet(this.ecModel))}};function PC(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 Bet(r,t){r.setIconStatus("back",het(t)>1?"emphasis":"normal")}function _et(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var A=new UC(PC(r),t,{include:["grid"]}),o=A.makePanelOpts(a,function(s){return s.xAxisDeclared&&!s.yAxisDeclared?"lineX":!s.xAxisDeclared&&s.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(o).enableBrush(i&&o.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}J3("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=PC(n),A=Tu(r,i);Ew(A.xAxisModels,function(s){return o(s,"xAxis","xAxisIndex")}),Ew(A.yAxisModels,function(s){return o(s,"yAxis","yAxisIndex")});function o(s,l,u){var f=s.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:yet+l+f};c[u]=f,a.push(c)}return a});function Cet(r){r.registerComponentModel(Wtt),r.registerComponentView(Ytt),us("saveAsImage",$tt),us("magicType",qtt),us("dataView",oet),us("dataZoom",met),us("restore",vet),Lt(ztt)}var xet=function(r){H(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}(Rt);function CH(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function SH(r){if(Ut.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var xH=SH(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),bet=SH(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function bH(r,t){if(!r)return t;t=iU(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function Tet(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var Iet=bH(bet,"transition"),RC=bH(xH,"transform"),Fet="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ut.transform3dSupported?"will-change:transform;":"");function Eet(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Det(r,t,e){if(!nt(e)||e==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");t=go(t);var i=Eet(e),A=Math.max(Math.round(a)*1.5,6),o="",s=RC+":",l;Qt(["left","right"],i)>-1?(o+="top:50%",s+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(o+="left:50%",s+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var u=l*Math.PI/180,f=A+a,c=f*Math.abs(Math.cos(u))+f*Math.abs(Math.sin(u)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-f)/2)*100)/100;o+=";"+i+":-"+h+"px";var v=t+" solid "+a+"px;",d=["position:absolute;width:"+A+"px;height:"+A+"px;z-index:-1;",o+";"+s+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+d.join("")+'"></div>'}function Qet(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=Ut.transformSupported?","+RC+n:",left"+n+",top"+n),Iet+":"+a}function zF(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Ut.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Ut.transform3dSupported,A="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+RC+":"+A+";":[["top",0],["left",0],[xH,A]]}function Let(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,A=r.get("textShadowOffsetX")||0,o=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+A+"px "+o+"px "+i+"px "+a),T(["decoration","align"],function(s){var l=r.get(s);l&&t.push("text-"+s+":"+l)}),t.join(";")}function Met(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),A=r.get("shadowBlur"),o=r.get("shadowColor"),s=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),u=r.getModel("textStyle"),f=OU(r,"html"),c=s+"px "+l+"px "+A+"px "+o;return n.push("box-shadow:"+c),t&&a&&n.push(Qet(a,e)),i&&n.push("background-color:"+i),T(["width","color","radius"],function(h){var v="border-"+h,d=iU(v),p=r.get(d);p!=null&&n.push(v+":"+p+(h==="color"?"":"px"))}),n.push(Let(u)),f!=null&&n.push("padding:"+rl(f).join("px ")+"px"),n.join(";")+";"}function WF(r,t,e,n,a){var i=t&&t.painter;if(e){var A=i&&i.getViewportRoot();A&&aG(r,A,e,n,a)}else{r[0]=n,r[1]=a;var o=i&&i.getViewportRootOffset();o&&(r[0]+=o.offsetLeft,r[1]+=o.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Uet=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,Ut.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,A=i&&(nt(i)?document.querySelector(i):Ms(i)?i:vt(i)&&i(t.getDom()));WF(this._styleCoord,a,A,t.getWidth()/2,t.getHeight()/2),(A||t.getDom()).appendChild(n),this._api=t,this._container=A;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(s){if(s=s||window.event,!o._enterable){var l=a.handler,u=a.painter.getViewportRoot();tn(u,s,!0),l.dispatch("mousemove",s)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=Tet(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Fet+Met(t,!this._firstShow,this._longHide)+zF(i[0],i[1],!0)+("border-color:"+go(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var A=this.el;if(t==null){A.innerHTML="";return}var o="";if(nt(i)&&n.get("trigger")==="item"&&!CH(n)&&(o=Det(n,a,i)),nt(t))A.innerHTML=t+o;else if(t){A.innerHTML="",K(t)||(t=[t]);for(var s=0;s<t.length;s++)Ms(t[s])&&t[s].parentNode!==A&&A.appendChild(t[s]);if(o&&A.childNodes.length){var l=document.createElement("div");l.innerHTML=o,A.appendChild(l)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var n=this._styleCoord;if(WF(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var a=this.el.style,i=zF(n[0],n[1]);T(i,function(A){a[A[0]]=A[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",Ut.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(it(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}(),Pet=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),YF(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,a,i){var A=this;yt(t)&&Xt(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new Gt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:o.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:OU(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){A.el.style[l]=n.get(l)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){A.el.style[l]=o.get(l)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=XF(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 a=this._styleCoord;YF(a,this._zr,t,e),t=a[0],e=a[1];var i=n.style,A=di(i.borderWidth||0),o=XF(i);n.x=t+A+o.left,n.y=e+A+o.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(it(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function di(r){return Math.max(0,r)}function XF(r){var t=di(r.shadowBlur||0),e=di(r.shadowOffsetX||0),n=di(r.shadowOffsetY||0);return{left:di(t-e),right:di(t+e),top:di(t-n),bottom:di(t+n)}}function YF(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Ret=new Nt({shape:{x:-1,y:-1,width:2,height:2}}),Het=function(r){H(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(!(Ut.node||!n.getDom())){var a=e.getComponent("tooltip"),i=this._renderMode=LK(a.get("renderMode"));this._tooltipContent=i==="richText"?new Pet(n):new Uet(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(e,n,a){if(!(Ut.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Al(this,"_updatePosition",50,"fixRate"):lf(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");uH("itemTooltip",this._api,it(function(a,i,A){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,A):a==="leave"&&this._hide(A))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var A=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&A.manuallyShowTip(e,n,a,{x:A._lastX,y:A._lastY,dataByCoordSys:A._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||Ut.node||!a.getDom())){var A=ZF(i,a);this._ticket="";var o=i.dataByCoordSys,s=Vet(i,n,a);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},A)}else if(i.tooltip&&i.x!=null&&i.y!=null){var u=Ret;u.x=i.x,u.y=i.y,u.update(),Ct(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},A)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},A);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=fH(i,n),c=f.point[0],h=f.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},A)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},A))}},t.prototype.manuallyHideTip=function(e,n,a,i){var A=this._tooltipContent;this._tooltipModel&&A.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(ZF(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var A=i.seriesIndex,o=i.dataIndex,s=n.getComponent("axisPointer").coordSysAxesInfo;if(!(A==null||o==null||s==null)){var l=n.getSeriesByIndex(A);if(l){var u=l.getData(),f=Ol([u.getItemModel(o),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:A,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var A=e.dataByCoordSys;if(A&&A.length)this._showAxisTooltip(A,e);else if(a){var o=Ct(a);if(o.ssrType==="legend")return;this._lastDataByCoordSys=null;var s,l;XA(a,function(u){if(Ct(u).dataIndex!=null)return s=u,!0;if(Ct(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=it(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,A=[n.offsetX,n.offsetY],o=Ol([n.tooltipOption],i),s=this._renderMode,l=[],u=ke("section",{blocks:[],noHeader:!0}),f=[],c=new kg;T(e,function(y){T(y.dataByAxis,function(m){var w=a.getComponent(m.axisDim+"Axis",m.axisIndex),_=m.value;if(!(!w||_==null)){var B=oH(_,w.axis,a,m.seriesDataIndices,m.valueLabelOpt),C=ke("section",{header:B,noHeader:!Dn(B),sortBlocks:!0,blocks:[]});u.blocks.push(C),T(m.seriesDataIndices,function(S){var x=a.getSeriesByIndex(S.seriesIndex),b=S.dataIndexInside,I=x.getDataParams(b);if(!(I.dataIndex<0)){I.axisDim=m.axisDim,I.axisIndex=m.axisIndex,I.axisType=m.axisType,I.axisId=m.axisId,I.axisValue=H_(w.axis,{value:_}),I.axisValueLabel=B,I.marker=c.makeTooltipMarker("item",go(I.color),s);var F=Ux(x.formatTooltip(b,!0,null)),E=F.frag;if(E){var D=Ol([x],i).get("valueFormatter");C.blocks.push(D?V({valueFormatter:D},E):E)}F.text&&f.push(F.text),l.push(I)}})}})}),u.blocks.reverse(),f.reverse();var h=n.position,v=o.get("order"),d=Nx(u,c,s,v,a.get("useUTC"),o.get("textStyle"));d&&f.unshift(d);var p=s==="richText"?`
|
||
|
||
`:"<br/>",g=f.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(o,h,A[0],A[1],this._tooltipContent,l):this._showTooltipContent(o,g,l,Math.random()+"",A[0],A[1],h,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,A=Ct(n),o=A.seriesIndex,s=i.getSeriesByIndex(o),l=A.dataModel||s,u=A.dataIndex,f=A.dataType,c=l.getData(f),h=this._renderMode,v=e.positionDefault,d=Ol([c.getItemModel(u),l,s&&(s.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=d.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(u,f),y=new kg;g.marker=y.makeTooltipMarker("item",go(g.color),h);var m=Ux(l.formatTooltip(u,!1,f)),w=d.get("order"),_=d.get("valueFormatter"),B=m.frag,C=B?Nx(_?V({valueFormatter:_},B):B,y,h,w,i.get("useUTC"),d.get("textStyle")):m.text,S="item_"+l.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,C,g,S,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",A=Ct(n),o=A.tooltipConfig,s=o.option||{},l=s.encodeHTMLContent;if(nt(s)){var u=s;s={content:u,formatter:u},l=!0}l&&i&&s.content&&(s=mt(s),s.content=Dr(s.content));var f=[s],c=this._ecModel.getComponent(A.componentMainType,A.componentIndex);c&&f.push(c),f.push({formatter:s.content});var h=e.positionDefault,v=Ol(f,this._tooltipModel,h?{position:h}:null),d=v.get("content"),p=Math.random()+"",g=new kg;this._showOrMove(v,function(){var y=mt(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,p,e.offsetX,e.offsetY,e.position,n,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,A,o,s,l,u){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var c=e.get("formatter");s=s||e.get("position");var h=n,v=this._getNearestPoint([A,o],a,e.get("trigger"),e.get("borderColor")),d=v.color;if(c)if(nt(c)){var p=e.ecModel.get("useUTC"),g=K(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=jd(g.axisValue,h,p)),h=AU(h,a,!0)}else if(vt(c)){var m=it(function(w,_){w===this._ticket&&(f.setContent(_,u,e,d,s),this._updatePosition(e,s,A,o,f,a,l))},this);this._ticket=i,h=c(a,i,m)}else h=c;f.setContent(h,u,e,d,s),f.show(e,d),this._updatePosition(e,s,A,o,f,a,l)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||K(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!K(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,A,o,s){var l=this._api.getWidth(),u=this._api.getHeight();n=n||e.get("position");var f=A.getSize(),c=e.get("align"),h=e.get("verticalAlign"),v=s&&s.getBoundingRect().clone();if(s&&v.applyTransform(s.transform),vt(n)&&(n=n([a,i],o,A.el,v,{viewSize:[l,u],contentSize:f.slice()})),K(n))a=et(n[0],l),i=et(n[1],u);else if(yt(n)){var d=n;d.width=f[0],d.height=f[1];var p=Le(d,{width:l,height:u});a=p.x,i=p.y,c=null,h=null}else if(nt(n)&&s){var g=Net(n,v,f,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=Oet(a,i,A,l,u,c?null:20,h?null:20);a=g[0],i=g[1]}if(c&&(a-=$F(c)?f[0]/2:c==="right"?f[0]:0),h&&(i-=$F(h)?f[1]/2:h==="bottom"?f[1]:0),CH(e)){var g=ket(a,i,A,l,u);a=g[0],i=g[1]}A.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,A=!!a&&a.length===e.length;return A&&T(a,function(o,s){var l=o.dataByAxis||[],u=e[s]||{},f=u.dataByAxis||[];A=A&&l.length===f.length,A&&T(l,function(c,h){var v=f[h]||{},d=c.seriesDataIndices||[],p=v.seriesDataIndices||[];A=A&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===p.length,A&&T(d,function(g,y){var m=p[y];A=A&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),i&&T(c.seriesDataIndices,function(g){var y=g.seriesIndex,m=n[y],w=i[y];m&&w&&w.data!==m.data&&(A=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!A},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Ut.node||!n.getDom()||(lf(this,"_updatePosition"),this._tooltipContent.dispose(),xw("itemTooltip",n))},t.type="tooltip",t}(de);function Ol(r,t,e){var n=t.ecModel,a;e?(a=new Yt(e,n,n),a=new Yt(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var A=r[i];A&&(A instanceof Yt&&(A=A.get("tooltip",!0)),nt(A)&&(A={formatter:A}),A&&(a=new Yt(A,a,n)))}return a}function ZF(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function Oet(r,t,e,n,a,i,A){var o=e.getSize(),s=o[0],l=o[1];return i!=null&&(r+s+i+2>n?r-=s+i:r+=i),A!=null&&(t+l+A>a?t-=l+A:t+=A),[r,t]}function ket(r,t,e,n,a){var i=e.getSize(),A=i[0],o=i[1];return r=Math.min(r+A,n)-A,t=Math.min(t+o,a)-o,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Net(r,t,e,n){var a=e[0],i=e[1],A=Math.ceil(Math.SQRT2*n)+8,o=0,s=0,l=t.width,u=t.height;switch(r){case"inside":o=t.x+l/2-a/2,s=t.y+u/2-i/2;break;case"top":o=t.x+l/2-a/2,s=t.y-i-A;break;case"bottom":o=t.x+l/2-a/2,s=t.y+u+A;break;case"left":o=t.x-a-A,s=t.y+u/2-i/2;break;case"right":o=t.x+l+A,s=t.y+u/2-i/2}return[o,s]}function $F(r){return r==="center"||r==="middle"}function Vet(r,t,e){var n=qB(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Qf(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),A=i.models[0];if(A){var o=e.getViewOfComponentModel(A),s;if(o.group.traverse(function(l){var u=Ct(l).tooltipConfig;if(u&&u.name===r.name)return s=l,!0}),s)return{componentMainType:a,componentIndex:A.componentIndex,el:s}}}}function Get(r){Lt(Jf),r.registerComponentModel(xet),r.registerComponentView(Het),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Be),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Be)}var Ket=["rect","polygon","keep","clear"];function zet(r,t){var e=qt(r?r.brush:[]);if(e.length){var n=[];T(e,function(s){var l=s.hasOwnProperty("toolbox")?s.toolbox:[];l instanceof Array&&(n=n.concat(l))});var a=r&&r.toolbox;K(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),A=i.brush||(i.brush={}),o=A.type||(A.type=[]);o.push.apply(o,n),Wet(o),t&&!o.length&&o.push.apply(o,Ket)}}function Wet(r){var t={};T(r,function(e){t[e]=1}),r.length=0,T(t,function(e,n){r.push(n)})}var JF=T;function qF(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Dw(r,t,e){var n={};return JF(t,function(i){var A=n[i]=a();JF(r[i],function(o,s){if(He.isValidType(s)){var l={type:s,visual:o};e&&e(l,i),A[s]=new He(l),s==="opacity"&&(l=mt(l),l.type="colorAlpha",A.__hidden.__alphaForOpacity=new He(l))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var A=new i;return A}}function TH(r,t,e){var n;T(e,function(a){t.hasOwnProperty(a)&&qF(t[a])&&(n=!0)}),n&&T(e,function(a){t.hasOwnProperty(a)&&qF(t[a])?r[a]=mt(t[a]):delete r[a]})}function Xet(r,t,e,n,a,i){var A={};T(r,function(f){var c=He.prepareVisualTypes(t[f]);A[f]=c});var o;function s(f){return T_(e,o,f)}function l(f,c){ZU(e,o,f,c)}e.each(u);function u(f,c){o=f;var h=e.getRawDataItem(o);if(!(h&&h.visualMap===!1))for(var v=n.call(a,f),d=t[v],p=A[v],g=0,y=p.length;g<y;g++){var m=p[g];d[m]&&d[m].applyVisual(f,s,l)}}}function Yet(r,t,e,n){var a={};return T(r,function(i){var A=He.prepareVisualTypes(t[i]);a[i]=A}),{progress:function(A,o){var s;n!=null&&(s=o.getDimensionIndex(n));function l(_){return T_(o,f,_)}function u(_,B){ZU(o,f,_,B)}for(var f,c=o.getStore();(f=A.next())!=null;){var h=o.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var v=n!=null?c.get(s,f):f,d=e(v),p=t[d],g=a[d],y=0,m=g.length;y<m;y++){var w=g[y];p[w]&&p[w].applyVisual(v,l,u)}}}}}function Zet(r){var t=r.brushType,e={point:function(n){return jF[t].point(n,e,r)},rect:function(n){return jF[t].rect(n,e,r)}};return e}var jF={lineX:tE(0),lineY:tE(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])&&HA(e.range,r[0],r[1])},rect:function(r,t,e){var n=e.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,A=r.width,o=r.height,s=n[0];if(HA(n,a,i)||HA(n,a+A,i)||HA(n,a,i+o)||HA(n,a+A,i+o)||Dt.create(r).contain(s[0],s[1])||tu(a,i,a+A,i,n)||tu(a,i,a,i+o,n)||tu(a+A,i,a+A,i+o,n)||tu(a,i+o,a+A,i+o,n))return!0}}};function tE(r){var t=["x","y"],e=["width","height"];return{point:function(n,a,i){if(n){var A=i.range,o=n[r];return kl(o,A)}},rect:function(n,a,i){if(n){var A=i.range,o=[n[t[r]],n[t[r]]+n[e[r]]];return o[1]<o[0]&&o.reverse(),kl(o[0],A)||kl(o[1],A)||kl(A[0],o)||kl(A[1],o)}}}}function kl(r,t){return t[0]<=r&&r<=t[1]}var eE=["inBrush","outOfBrush"],rm="__ecBrushSelect",Qw="__ecInBrushSelectEvent";function IH(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new UC(t.option,r);e.setInputRanges(t.areas,r)})}function $et(r,t,e){var n=[],a,i;r.eachComponent({mainType:"brush"},function(A){e&&e.type==="takeGlobalCursor"&&A.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),IH(r),r.eachComponent({mainType:"brush"},function(A,o){var s={brushId:A.id,brushIndex:o,brushName:A.name,areas:mt(A.areas),selected:[]};n.push(s);var l=A.option,u=l.brushLink,f=[],c=[],h=[],v=!1;o||(a=l.throttleType,i=l.throttleDelay);var d=Y(A.areas,function(_){var B=trt[_.brushType],C=gt({boundingRect:B?B(_):void 0},_);return C.selectors=Zet(C),C}),p=Dw(A.option,eE,function(_){_.mappingMethod="fixed"});K(u)&&T(u,function(_){f[_]=1});function g(_){return u==="all"||!!f[_]}function y(_){return!!_.length}r.eachSeries(function(_,B){var C=h[B]=[];_.subType==="parallel"?m(_,B):w(_,B,C)});function m(_,B){var C=_.coordinateSystem;v=v||C.hasAxisBrushed(),g(B)&&C.eachActiveState(_.getData(),function(S,x){S==="active"&&(c[x]=1)})}function w(_,B,C){if(!(!_.brushSelector||jet(A,B))&&(T(d,function(x){A.brushTargetManager.controlSeries(x,_,r)&&C.push(x),v=v||y(C)}),g(B)&&y(C))){var S=_.getData();S.each(function(x){rE(_,C,S,x)&&(c[x]=1)})}}r.eachSeries(function(_,B){var C={seriesId:_.id,seriesIndex:B,seriesName:_.name,dataIndex:[]};s.selected.push(C);var S=h[B],x=_.getData(),b=g(B)?function(I){return c[I]?(C.dataIndex.push(x.getRawIndex(I)),"inBrush"):"outOfBrush"}:function(I){return rE(_,S,x,I)?(C.dataIndex.push(x.getRawIndex(I)),"inBrush"):"outOfBrush"};(g(B)?v:y(S))&&Xet(eE,p,x,b)})}),Jet(t,a,i,n,e)}function Jet(r,t,e,n,a){if(a){var i=r.getZr();if(!i[Qw]){i[rm]||(i[rm]=qet);var A=Al(i,rm,e,t);A(r,n)}}}function qet(r,t){if(!r.isDisposed()){var e=r.getZr();e[Qw]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[Qw]=!1}}function rE(r,t,e,n){for(var a=0,i=t.length;a<i;a++){var A=t[a];if(r.brushSelector(n,e,A.selectors,A))return!0}}function jet(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(K(e)?Qt(e,t)<0:t!==e)}var trt={rect:function(r){return nE(r.range)},polygon:function(r){for(var t,e=r.range,n=0,a=e.length;n<a;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=e[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&nE(t)}};function nE(r){return new Dt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var ert=function(r){H(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 uC(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){IH(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:mt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:mt(a),$from:n})},t.type="brush",t}(de),rrt="#ddd",nrt=function(r){H(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 a=this.option;!n&&TH(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:rrt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(n){return aE(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=aE(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}(Rt);function aE(r,t){return Et({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Yt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var art=["rect","polygon","lineX","lineY","keep","clear"],irt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,A,o;n.eachComponent({mainType:"brush"},function(s){i=s.brushType,A=s.brushOption.brushMode||"single",o=o||!!s.areas.length}),this._brushType=i,this._brushMode=A,T(e.get("type",!0),function(s){e.setIconStatus(s,(s==="keep"?A==="multiple":s==="clear"?o:s===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return T(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,A=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?A==="multiple"?"single":"multiple":A}})},t.getDefaultOption=function(e){var n={show:!0,type:art.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}(on);function Art(r){r.registerComponentView(ert),r.registerComponentModel(nrt),r.registerPreprocessor(zet),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,$et),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"},Be),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Be),us("brush",irt)}var ort=function(r){H(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}(Rt),srt=function(r){H(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,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,A=e.getModel("textStyle"),o=e.getModel("subtextStyle"),s=e.get("textAlign"),l=xt(e.get("textBaseline"),e.get("textVerticalAlign")),u=new Gt({style:oe(A,{text:e.get("text"),fill:A.getTextColor()},{disableBox:!0}),z2:10}),f=u.getBoundingRect(),c=e.get("subtext"),h=new Gt({style:oe(o,{text:c,fill:o.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),d=e.get("sublink"),p=e.get("triggerEvent",!0);u.silent=!v&&!p,h.silent=!d&&!p,v&&u.on("click",function(){Mv(v,"_"+e.get("target"))}),d&&h.on("click",function(){Mv(d,"_"+e.get("subtarget"))}),Ct(u).eventData=Ct(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(u),c&&i.add(h);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=Le(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));s||(s=e.get("left")||e.get("right"),s==="middle"&&(s="center"),s==="right"?m.x+=m.width:s==="center"&&(m.x+=m.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?m.y+=m.height:l==="middle"&&(m.y+=m.height/2),l=l||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var w={align:s,verticalAlign:l};u.setStyle(w),h.setStyle(w),g=i.getBoundingRect();var _=m.margin,B=e.getItemStyle(["color","opacity"]);B.fill=e.get("backgroundColor");var C=new Nt({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(de);function lrt(r){r.registerComponentModel(ort),r.registerComponentView(srt)}var iE=function(r){H(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,a){this.mergeDefaultAndTheme(e,a),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||[],a=e.axisType,i=this._names=[],A;a==="category"?(A=[],T(n,function(l,u){var f=De($s(l),""),c;yt(l)?(c=mt(l),c.value=u):c=u,A.push(c),i.push(f)})):A=n;var o={category:"ordinal",time:"time",value:"number"}[a]||"number",s=this._data=new mr([{name:"value",type:o}],this);s.initData(A,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Rt),FH=function(r){H(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=nA(iE.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}(iE);Fe(FH,Ap.prototype);var urt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(de),frt=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this,e,n,a)||this;return A.type=i||"value",A}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(kn),nm=Math.PI,AE=Vt(),crt=function(r){H(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,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),A=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(l){var u=s.scale.getLabel({value:l});return ke("nameValue",{noName:!0,value:u})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(l){this["_render"+l](i,A,s,e)},this),this._renderAxisLabel(i,o,s,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),A=vrt(e,n),o;a==null||a==="auto"?o=i==="horizontal"?A.y+A.height/2<n.getHeight()/2?"-":"+":A.x+A.width/2<n.getWidth()/2?"+":"-":nt(a)?o={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:o=a;var s={horizontal:"center",vertical:o>=0||o==="+"?"left":"right"},l={horizontal:o>=0||o==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:nm/2},f=i==="vertical"?A.height:A.width,c=e.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,p=v+d,g=e.get(["label","rotate"])||0;g=g*nm/180;var y,m,w,_=c.get("position",!0),B=h&&c.get("showPlayBtn",!0),C=h&&c.get("showPrevBtn",!0),S=h&&c.get("showNextBtn",!0),x=0,b=f;_==="left"||_==="bottom"?(B&&(y=[0,0],x+=p),C&&(m=[x,0],x+=p),S&&(w=[b-v,0],b-=p)):(B&&(y=[b-v,0],b-=p),C&&(m=[0,0],x+=p),S&&(w=[b-v,0],b-=p));var I=[x,b];return e.get("inverse")&&I.reverse(),{viewRect:A,mainLength:f,orient:i,rotation:u[i],labelRotation:g,labelPosOpt:o,labelAlign:e.get(["label","align"])||s[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||l[i],playPosition:y,prevBtnPosition:m,nextBtnPosition:w,axisExtent:I,controlSize:v,controlGap:d}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,A=e.viewRect;if(e.orient==="vertical"){var o=Wr(),s=A.x,l=A.y+A.height;va(o,o,[-s,-l]),Co(o,o,-nm/2),va(o,o,[s,l]),A=A.clone(),A.applyTransform(o)}var u=y(A),f=y(a.getBoundingRect()),c=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=u[0][0];var d=e.labelPosOpt;if(d==null||nt(d)){var p=d==="+"?0:1;m(h,f,u,1,p),m(v,c,u,1,1-p)}else{var p=d>=0?0:1;m(h,f,u,1,p),v[1]=h[1]+d}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=e.rotation,g(a),g(i);function g(w){w.originX=u[0][0]-w.x,w.originY=u[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function m(w,_,B,C,S){w[C]+=B[C][S]-_[C][S]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType"),A=hrt(n,i);A.getTicks=function(){return a.mapArray(["value"],function(l){return{value:l}})};var o=a.getDataExtent("value");A.setExtent(o[0],o[1]),A.calcNiceTicks();var s=new frt("value",A,e.axisExtent,i);return s.model=n,s},t.prototype._createGroup=function(e){var n=this[e]=new _t;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var A=a.getExtent();if(i.get(["lineStyle","show"])){var o=new Pe({shape:{x1:A[0],y1:0,x2:A[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(o);var s=this._progressLine=new Pe({shape:{x1:A[0],x2:this._currentPointer?this._currentPointer.x:A[0],y1:0,y2:0},style:gt({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(s)}},t.prototype._renderAxisTick=function(e,n,a,i){var A=this,o=i.getData(),s=a.scale.getTicks();this._tickSymbols=[],T(s,function(l){var u=a.dataToCoord(l.value),f=o.getItemModel(l.value),c=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),d={x:u,y:0,onclick:it(A._changeTimeline,A,l.value)},p=oE(f,c,n,d);p.ensureState("emphasis").style=h.getItemStyle(),p.ensureState("progress").style=v.getItemStyle(),no(p);var g=Ct(p);f.get("tooltip")?(g.dataIndex=l.value,g.dataModel=i):g.dataIndex=g.dataModel=null,A._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(e,n,a,i){var A=this,o=a.getLabelModel();if(o.get("show")){var s=i.getData(),l=a.getViewLabels();this._tickLabels=[],T(l,function(u){var f=u.tickValue,c=s.getItemModel(f),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),p=a.dataToCoord(u.tickValue),g=new Gt({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:it(A._changeTimeline,A,f),silent:!1,style:oe(h,{text:u.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});g.ensureState("emphasis").style=oe(v),g.ensureState("progress").style=oe(d),n.add(g),no(g),AE(g).dataIndex=f,A._tickLabels.push(g)})}},t.prototype._renderControl=function(e,n,a,i){var A=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),f=i.get("inverse",!0);c(e.nextBtnPosition,"next",it(this._changeTimeline,this,f?"-":"+")),c(e.prevBtnPosition,"prev",it(this._changeTimeline,this,f?"+":"-")),c(e.playPosition,u?"stop":"play",it(this._handlePlayClick,this,!u),!0);function c(h,v,d,p){if(h){var g=Rn(xt(i.get(["controlStyle",v+"BtnSize"]),A),A),y=[0,-g/2,g,g],m=drt(i,v+"Icon",y,{x:h[0],y:h[1],originX:A/2,originY:0,rotation:p?-o:0,rectHover:!0,style:s,onclick:d});m.ensureState("emphasis").style=l,n.add(m),no(m)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var A=i.getData(),o=i.getCurrentIndex(),s=A.getItemModel(o).getModel("checkpointStyle"),l=this,u={onCreate:function(f){f.draggable=!0,f.drift=it(l._handlePointerDrag,l),f.ondragend=it(l._handlePointerDragend,l),sE(f,l._progressLine,o,a,i,!0)},onUpdate:function(f){sE(f,l._progressLine,o,a,i)}};this._currentPointer=oE(s,s,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,A=fn(i.getExtent().slice());a>A[1]&&(a=A[1]),a<A[0]&&(a=A[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=a,o.dirty());var s=this._findNearestTick(a),l=this.model;(n||s!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(s)},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 Un(e,n,!0)},t.prototype._findNearestTick=function(e){var n=this.model.getData(),a=1/0,i,A=this._axis;return n.each(["value"],function(o,s){var l=A.dataToCoord(o),u=Math.abs(l-e);u<a&&(a=u,i=s)}),i},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,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<e);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",AE(a[i]).dataIndex<=e)},t.type="timeline.slider",t}(urt);function hrt(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new cp({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new P_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Za}}function vrt(r,t){return Le(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function drt(r,t,e,n){var a=n.style,i=Hf(r.get(["controlStyle",t]),n||{},new Dt(e[0],e[1],e[2],e[3]));return a&&i.setStyle(a),i}function oE(r,t,e,n,a,i){var A=t.get("color");if(a)a.setColor(A),e.add(a),i&&i.onUpdate(a);else{var o=r.get("symbol");a=Ie(o,-1,-1,2,2,A),a.setStyle("strokeNoScale",!0),e.add(a),i&&i.onCreate(a)}var s=t.getItemStyle(["color"]);a.setStyle(s),n=Et({rectHover:!0,z2:100},n,!0);var l=ol(r.get("symbolSize"));n.scaleX=l[0]/2,n.scaleY=l[1]/2;var u=xo(r.get("symbolOffset"),l);u&&(n.x=(n.x||0)+u[0],n.y=(n.y||0)+u[1]);var f=r.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function sE(r,t,e,n,a,i){if(!r.dragging){var A=a.getModel("checkpointStyle"),o=n.dataToCoord(a.getData().get("value",e));if(i||!A.get("animation",!0))r.attr({x:o,y:0}),t&&t.attr({shape:{x2:o}});else{var s={duration:A.get("animationDuration",!0),easing:A.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:o,y:0},s),t&&t.animateTo({shape:{x2:o}},s)}}}function prt(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var a=e.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),gt({currentIndex:a.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 grt(r){var t=r&&r.timeline;K(t)||(t=t?[t]:[]),T(t,function(e){e&&yrt(e)})}function yrt(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),lE(r),NA(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});NA(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!NA(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}T(r.data||[],function(a){yt(a)&&!K(a)&&(!NA(a,"value")&&NA(a,"name")&&(a.value=a.name),lE(a))})}function lE(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};T(n,function(A,o){!i[o]&&!NA(a,o)&&(a[o]=A)}),e.label&&!NA(n,"emphasis")&&(n.emphasis=e.label,delete e.label)}function NA(r,t){return r.hasOwnProperty(t)}function mrt(r){r.registerComponentModel(FH),r.registerComponentView(crt),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),prt(r),r.registerPreprocessor(grt)}function HC(r,t){if(!r)return!1;for(var e=K(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function ah(r){co(r,"label",["show"])}var ih=Vt(),Ja=function(r){H(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,a){this.mergeDefaultAndTheme(e,a),this._mergeOption(e,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Ut.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,a,i){var A=this.mainType;a||n.eachSeries(function(o){var s=o.get(this.mainType,!0),l=ih(o)[A];if(!s||!s.data){ih(o)[A]=null;return}l?l._mergeOption(s,n,!0):(i&&ah(s),T(s.data,function(u){u instanceof Array?(ah(u[0]),ah(u[1])):ah(u)}),l=this.createMarkerModelFromSeries(s,this,n),V(l,{mainType:this.mainType,seriesIndex:o.seriesIndex,name:o.name,createdBySelf:!0}),l.__hostSeries=o),ih(o)[A]=l},this)},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),A=this.getRawValue(e),o=i.getName(e);return ke("section",{header:this.name,blocks:[ke("nameValue",{name:o,value:A,noName:!o,noValue:A==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,n){var a=Ap.prototype.getDataParams.call(this,e,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},t.getMarkerModelFromSeries=function(e,n){return ih(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Rt);Fe(Ja,Ap.prototype);var wrt=function(r){H(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,a){return new t(e,n,a)},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}(Ja);function Lw(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Brt(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Ah(r,t,e,n,a,i){var A=[],o=Zi(t,n),s=o?t.getCalculationInfo("stackResultDimension"):n,l=OC(t,s,r),u=t.indicesOfNearest(s,l)[0];A[a]=t.get(e,u),A[i]=t.get(s,u);var f=t.get(n,u),c=aa(t.get(n,u));return c=Math.min(c,20),c>=0&&(A[i]=+A[i].toFixed(c)),[A,f]}var am={min:bt(Ah,"min"),max:bt(Ah,"max"),average:bt(Ah,"average"),median:bt(Ah,"median")};function Cf(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!Brt(t)&&!K(t.coord)&&K(a)){var i=EH(t,e,n,r);if(t=mt(t),t.type&&am[t.type]&&i.baseAxis&&i.valueAxis){var A=Qt(a,i.baseAxis.dim),o=Qt(a,i.valueAxis.dim),s=am[t.type](e,i.baseDataDim,i.valueDataDim,A,o);t.coord=s[0],t.value=s[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!K(a))t.coord=[];else for(var l=t.coord,u=0;u<2;u++)am[l[u]]&&(l[u]=OC(e,e.mapDimension(a[u]),l[u]));return t}}function EH(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(_rt(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function _rt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Sf(r,t){return r&&r.containData&&t.coord&&!Lw(t)?r.containData(t.coord):!0}function Crt(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Lw(t)&&!Lw(e)?r.containZone(t.coord,e.coord):!0}function DH(r,t){return r?function(e,n,a,i){var A=i<2?e.coord&&e.coord[i]:e.value;return Oi(A,t[i])}:function(e,n,a,i){return Oi(e.value,t[i])}}function OC(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,A){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var im=Vt(),kC=function(r){H(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,a){var i=this,A=this.markerGroupMap;A.each(function(o){im(o).keep=!1}),n.eachSeries(function(o){var s=Ja.getMarkerModelFromSeries(o,i.type);s&&i.renderSeries(o,s,n,a)}),A.each(function(o){!im(o).keep&&i.group.remove(o.group)})},t.prototype.markKeep=function(e){im(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;T(e,function(i){var A=Ja.getMarkerModelFromSeries(i,a.type);if(A){var o=A.getData();o.eachItemGraphicEl(function(s){s&&(n?CM(s):i_(s))})}})},t.type="marker",t}(de);function uE(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),A,o=et(i.get("x"),e.getWidth()),s=et(i.get("y"),e.getHeight());if(!isNaN(o)&&!isNaN(s))A=[o,s];else if(t.getMarkerPosition)A=t.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var l=r.get(n.dimensions[0],a),u=r.get(n.dimensions[1],a);A=n.dataToPoint([l,u])}isNaN(o)||(A[0]=o),isNaN(s)||(A[1]=s),r.setItemLayout(a,A)})}var Srt=function(r){H(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,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markPoint");A&&(uE(A.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new Kf),f=xrt(A,e,n);n.setData(f),uE(n.getData(),e,i),f.each(function(c){var h=f.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),p=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(vt(v)||vt(d)||vt(p)||vt(g)){var m=n.getRawValue(c),w=n.getDataParams(c);vt(v)&&(v=v(m,w)),vt(d)&&(d=d(m,w)),vt(p)&&(p=p(m,w)),vt(g)&&(g=g(m,w))}var _=h.getModel("itemStyle").getItemStyle(),B=kf(s,"color");_.fill||(_.fill=B),f.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:p,symbolOffset:g,symbolKeepAspect:y,style:_})}),u.updateData(f),this.group.add(u.group),f.eachItemGraphicEl(function(c){c.traverse(function(h){Ct(h).dataModel=n})}),this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(kC);function xrt(r,t,e){var n;r?n=Y(r&&r.dimensions,function(o){var s=t.getData().getDimensionInfo(t.getData().mapDimension(o))||{};return V(V({},s),{name:o,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=Y(e.get("data"),bt(Cf,t));r&&(i=Jt(i,bt(Sf,r)));var A=DH(!!r,n);return a.initData(i,null,A),a}function brt(r){r.registerComponentModel(wrt),r.registerComponentView(Srt),r.registerPreprocessor(function(t){HC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Trt=function(r){H(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,a){return new t(e,n,a)},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}(Ja),oh=Vt(),Irt=function(r,t,e,n){var a=r.getData(),i;if(K(n))i=n;else{var A=n.type;if(A==="min"||A==="max"||A==="average"||A==="median"||n.xAxis!=null||n.yAxis!=null){var o=void 0,s=void 0;if(n.yAxis!=null||n.xAxis!=null)o=t.getAxis(n.yAxis!=null?"y":"x"),s=Ge(n.yAxis,n.xAxis);else{var l=EH(n,a,t,r);o=l.valueAxis;var u=S2(a,l.valueDataDim);s=OC(a,u,A)}var f=o.dim==="x"?0:1,c=1-f,h=mt(n),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=e.get("precision");d>=0&&Kt(s)&&(s=+s.toFixed(Math.min(d,20))),h.coord[f]=v.coord[f]=s,i=[h,v,{type:A,valueIndex:n.valueIndex,value:s}]}else i=[]}var p=[Cf(r,i[0]),Cf(r,i[1]),V({},i[2])];return p[2].type=p[2].type||null,Et(p[2],p[0]),Et(p[2],p[1]),p};function id(r){return!isNaN(r)&&!isFinite(r)}function fE(r,t,e,n){var a=1-r,i=n.dimensions[r];return id(t[a])&&id(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function Frt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(fE(1,e,n,r)||fE(0,e,n,r)))return!0}return Sf(r,t[0])&&Sf(r,t[1])}function Am(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get("x"),a.getWidth()),l=et(A.get("y"),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition)o=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var u=i.dimensions,f=r.get(u[0],t),c=r.get(u[1],t);o=i.dataToPoint([f,c])}if(To(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),u=i.dimensions;id(r.get(u[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):id(r.get(u[1],t))&&(o[1]=v.toGlobalCoord(v.getExtent()[e?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}r.setItemLayout(t,o)}var Ert=function(r){H(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,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markLine");if(A){var o=A.getData(),s=oh(A).from,l=oh(A).to;s.each(function(u){Am(s,u,!0,i,a),Am(l,u,!1,i,a)}),o.each(function(u){o.setItemLayout(u,[s.getItemLayout(u),l.getItemLayout(u)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new lC);this.group.add(u.group);var f=Drt(A,e,n),c=f.from,h=f.to,v=f.line;oh(n).from=c,oh(n).to=h,n.setData(v);var d=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),y=n.get("symbolOffset");K(d)||(d=[d,d]),K(p)||(p=[p,p]),K(g)||(g=[g,g]),K(y)||(y=[y,y]),f.from.each(function(w){m(c,w,!0),m(h,w,!1)}),v.each(function(w){var _=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[c.getItemLayout(w),h.getItemLayout(w)]),_.stroke==null&&(_.stroke=c.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:c.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(w,"symbolOffset"),fromSymbolRotate:c.getItemVisual(w,"symbolRotate"),fromSymbolSize:c.getItemVisual(w,"symbolSize"),fromSymbol:c.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:_})}),u.updateData(v),f.line.eachItemGraphicEl(function(w){Ct(w).dataModel=n,w.traverse(function(_){Ct(_).dataModel=n})});function m(w,_,B){var C=w.getItemModel(_);Am(w,_,B,e,i);var S=C.getModel("itemStyle").getItemStyle();S.fill==null&&(S.fill=kf(s,"color")),w.setItemVisual(_,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:xt(C.get("symbolOffset",!0),y[B?0:1]),symbolRotate:xt(C.get("symbolRotate",!0),g[B?0:1]),symbolSize:xt(C.get("symbolSize"),p[B?0:1]),symbol:xt(C.get("symbol",!0),d[B?0:1]),style:S})}this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(kC);function Drt(r,t,e){var n;r?n=Y(r&&r.dimensions,function(l){var u=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return V(V({},u),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=new mr(n,e),A=new mr([],e),o=Y(e.get("data"),bt(Irt,t,r,e));r&&(o=Jt(o,bt(Frt,r)));var s=DH(!!r,n);return a.initData(Y(o,function(l){return l[0]}),null,s),i.initData(Y(o,function(l){return l[1]}),null,s),A.initData(Y(o,function(l){return l[2]})),A.hasItemOption=!0,{from:a,to:i,line:A}}function Qrt(r){r.registerComponentModel(Trt),r.registerComponentView(Ert),r.registerPreprocessor(function(t){HC(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Lrt=function(r){H(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,a){return new t(e,n,a)},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}(Ja),sh=Vt(),Mrt=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var A=Cf(r,a),o=Cf(r,i),s=A.coord,l=o.coord;s[0]=Ge(s[0],-1/0),s[1]=Ge(s[1],-1/0),l[0]=Ge(l[0],1/0),l[1]=Ge(l[1],1/0);var u=NB([{},A,o]);return u.coord=[A.coord,o.coord],u.x0=A.x,u.y0=A.y,u.x1=o.x,u.y1=o.y,u}};function Ad(r){return!isNaN(r)&&!isFinite(r)}function cE(r,t,e,n){var a=1-r;return Ad(t[a])&&Ad(e[a])}function Urt(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return To(r,"cartesian2d")?e&&n&&(cE(1,e,n)||cE(0,e,n))?!0:Crt(r,a,i):Sf(r,a)||Sf(r,i)}function hE(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get(e[0]),a.getWidth()),l=et(A.get(e[1]),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition){var u=r.getValues(["x0","y0"],t),f=r.getValues(["x1","y1"],t),c=i.clampData(u),h=i.clampData(f),v=[];e[0]==="x0"?v[0]=c[0]>h[0]?f[0]:u[0]:v[0]=c[0]>h[0]?u[0]:f[0],e[1]==="y0"?v[1]=c[1]>h[1]?f[1]:u[1]:v[1]=c[1]>h[1]?u[1]:f[1],o=n.getMarkerPosition(v,e,!0)}else{var d=r.get(e[0],t),p=r.get(e[1],t),g=[d,p];i.clampData&&i.clampData(g,g),o=i.dataToPoint(g,!0)}if(To(i,"cartesian2d")){var y=i.getAxis("x"),m=i.getAxis("y"),d=r.get(e[0],t),p=r.get(e[1],t);Ad(d)?o[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):Ad(p)&&(o[1]=m.toGlobalCoord(m.getExtent()[e[1]==="y0"?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}return o}var vE=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Prt=function(r){H(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,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markArea");if(A){var o=A.getData();o.each(function(s){var l=Y(vE,function(f){return hE(o,s,f,i,a)});o.setItemLayout(s,l);var u=o.getItemGraphicEl(s);u.setShape("points",l)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new _t});this.group.add(u.group),this.markKeep(u);var f=Rrt(A,e,n);n.setData(f),f.each(function(c){var h=Y(vE,function(S){return hE(f,c,S,e,i)}),v=A.getAxis("x").scale,d=A.getAxis("y").scale,p=v.getExtent(),g=d.getExtent(),y=[v.parse(f.get("x0",c)),v.parse(f.get("x1",c))],m=[d.parse(f.get("y0",c)),d.parse(f.get("y1",c))];fn(y),fn(m);var w=!(p[0]>y[1]||p[1]<y[0]||g[0]>m[1]||g[1]<m[0]),_=!w;f.setItemLayout(c,{points:h,allClipped:_});var B=f.getItemModel(c).getModel("itemStyle").getItemStyle(),C=kf(s,"color");B.fill||(B.fill=C,nt(B.fill)&&(B.fill=_v(B.fill,.4))),B.stroke||(B.stroke=C),f.setItemVisual(c,"style",B)}),f.diff(sh(u).data).add(function(c){var h=f.getItemLayout(c);if(!h.allClipped){var v=new Sr({shape:{points:h.points}});f.setItemGraphicEl(c,v),u.group.add(v)}}).update(function(c,h){var v=sh(u).data.getItemGraphicEl(h),d=f.getItemLayout(c);d.allClipped?v&&u.group.remove(v):(v?zt(v,{shape:{points:d.points}},n,c):v=new Sr({shape:{points:d.points}}),f.setItemGraphicEl(c,v),u.group.add(v))}).remove(function(c){var h=sh(u).data.getItemGraphicEl(c);u.group.remove(h)}).execute(),f.eachItemGraphicEl(function(c,h){var v=f.getItemModel(h),d=f.getItemVisual(h,"style");c.useStyle(f.getItemVisual(h,"style")),Je(c,Oe(v),{labelFetcher:n,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:nt(d.fill)?_v(d.fill,1):"#000"}),$e(c,v),ye(c,null,null,v.get(["emphasis","disabled"])),Ct(c).dataModel=n}),sh(u).data=f,u.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(kC);function Rrt(r,t,e){var n,a,i=["x0","y0","x1","y1"];if(r){var A=Y(r&&r.dimensions,function(l){var u=t.getData(),f=u.getDimensionInfo(u.mapDimension(l))||{};return V(V({},f),{name:l,ordinalMeta:null})});a=Y(i,function(l,u){return{name:l,type:A[u%2].type}}),n=new mr(a,e)}else a=[{name:"value",type:"float"}],n=new mr(a,e);var o=Y(e.get("data"),bt(Mrt,t,r,e));r&&(o=Jt(o,bt(Urt,r)));var s=r?function(l,u,f,c){var h=l.coord[Math.floor(c/2)][c%2];return Oi(h,a[c])}:function(l,u,f,c){return Oi(l.value,a[c])};return n.initData(o,null,s),n.hasItemOption=!0,n}function Hrt(r){r.registerComponentModel(Lrt),r.registerComponentView(Prt),r.registerPreprocessor(function(t){HC(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Ort=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"])}},Mw=function(r){H(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,a){this.mergeDefaultAndTheme(e,a),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,a=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),K(n)&&T(n,function(i,A){nt(i)&&(i={type:i}),n[A]=Et(i,Ort(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<e.length;a++){var i=e[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],a=[];e.eachRawSeries(function(s){var l=s.name;a.push(l);var u;if(s.legendVisualProvider){var f=s.legendVisualProvider,c=f.getAllNames();e.isSeriesFiltered(s)||(a=a.concat(c)),c.length?n=n.concat(c):u=!0}else u=!0;u&&JB(s)&&n.push(s.name)}),this._availableNames=a;var i=this.get("data")||n,A=ft(),o=Y(i,function(s){return(nt(s)||Kt(s))&&(s={name:s}),A.get(s.name)?null:(A.set(s.name,!0),new Yt(s,this,this.ecModel))},this);this._data=Jt(o,function(s){return!!s})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;T(i,function(A){n[A.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;T(e,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;T(e,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&Qt(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}(Rt),Yo=bt,Uw=T,lh=_t,QH=function(r){H(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 lh),this.group.add(this._selectorGroup=new lh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var A=e.get("align"),o=e.get("orient");(!A||A==="auto")&&(A=e.get("left")==="right"&&o==="vertical"?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);s&&(!l||l==="auto")&&(l=o==="horizontal"?"end":"start"),this.renderInner(A,e,n,a,s,o,l);var u=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},c=e.get("padding"),h=Le(u,f,c),v=this.layoutInner(e,A,h,i,s,l),d=Le(gt({width:v.width,height:v.height},u),f,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wH(v,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,A,o,s){var l=this.getContentGroup(),u=ft(),f=n.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),Uw(n.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===`
|
||
`)){var p=new lh;p.newline=!0,l.add(p);return}var g=a.getSeriesByName(d)[0];if(!u.get(d))if(g){var y=g.getData(),m=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),_=y.getVisual("style"),B=this._createItem(g,d,v,h,n,e,m,_,w,f,i);B.on("click",Yo(dE,d,null,i,c)).on("mouseover",Yo(Pw,g.name,null,i,c)).on("mouseout",Yo(Rw,g.name,null,i,c)),a.ssr&&B.eachChild(function(C){var S=Ct(C);S.seriesIndex=g.seriesIndex,S.dataIndex=v,S.ssrType="legend"}),u.set(d,!0)}else a.eachRawSeries(function(C){if(!u.get(d)&&C.legendVisualProvider){var S=C.legendVisualProvider;if(!S.containName(d))return;var x=S.indexOfName(d),b=S.getItemVisual(x,"style"),I=S.getItemVisual(x,"legendIcon"),F=Xr(b.fill);F&&F[3]===0&&(F[3]=.2,b=V(V({},b),{fill:Oa(F,"rgba")}));var E=this._createItem(C,d,v,h,n,e,{},b,I,f,i);E.on("click",Yo(dE,null,d,i,c)).on("mouseover",Yo(Pw,null,d,i,c)).on("mouseout",Yo(Rw,null,d,i,c)),a.ssr&&E.eachChild(function(D){var Q=Ct(D);Q.seriesIndex=C.seriesIndex,Q.dataIndex=v,Q.ssrType="legend"}),u.set(d,!0)}},this)},this),A&&this._createSelector(A,n,i,o,s)},t.prototype._createSelector=function(e,n,a,i,A){var o=this.getSelectorGroup();Uw(e,function(l){var u=l.type,f=new Gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});o.add(f);var c=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Je(f,{normal:c,emphasis:h},{defaultText:l.title}),no(f)})},t.prototype._createItem=function(e,n,a,i,A,o,s,l,u,f,c){var h=e.visualDrawType,v=A.get("itemWidth"),d=A.get("itemHeight"),p=A.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");u=m||u||"roundRect";var w=krt(u,i,s,l,h,p,c),_=new lh,B=i.getModel("textStyle");if(vt(e.getLegendIcon)&&(!m||m==="inherit"))_.add(e.getLegendIcon({itemWidth:v,itemHeight:d,icon:u,iconRotate:g,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var C=m==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;_.add(Nrt({itemWidth:v,itemHeight:d,icon:u,iconRotate:C,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var S=o==="left"?v+5:-5,x=o,b=A.get("formatter"),I=n;nt(b)&&b?I=b.replace("{name}",n??""):vt(b)&&(I=b(n));var F=p?B.getTextColor():i.get("inactiveColor");_.add(new Gt({style:oe(B,{text:I,x:S,y:d/2,fill:F,align:x,verticalAlign:"middle"},{inheritColor:F})}));var E=new Nt({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&js({el:E,componentModel:A,itemName:n,itemTooltipOption:D.option}),_.add(E),_.eachChild(function(Q){Q.silent=!0}),E.silent=!f,this.getContentGroup().add(_),no(_),_.__legendDataIndex=a,_},t.prototype.layoutInner=function(e,n,a,i,A,o){var s=this.getContentGroup(),l=this.getSelectorGroup();io(e.get("orient"),s,e.get("itemGap"),a.width,a.height);var u=s.getBoundingRect(),f=[-u.x,-u.y];if(l.markRedraw(),s.markRedraw(),A){io("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),h=[-c.x,-c.y],v=e.get("selectorButtonGap",!0),d=e.getOrient().index,p=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";o==="end"?h[d]+=u[p]+v:f[d]+=c[p]+v,h[1-d]+=u[g]/2-c[g]/2,l.x=h[0],l.y=h[1],s.x=f[0],s.y=f[1];var m={x:0,y:0};return m[p]=u[p]+v+c[p],m[g]=Math.max(u[g],c[g]),m[y]=Math.min(0,c[y]+h[1-d]),m}else return s.x=f[0],s.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(de);function krt(r,t,e,n,a,i,A){function o(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),Uw(p,function(y,m){p[m]==="inherit"&&(p[m]=g[m])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=s.getShallow("decal");l.decal=!f||f==="inherit"?n.decal:Hs(f,A),l.fill==="inherit"&&(l.fill=n[a]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(a==="fill"?n:e).opacity),o(l,n);var c=t.getModel("lineStyle"),h=c.getLineStyle();if(o(h,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=t.get("inactiveBorderWidth"),d=l[u];l.lineWidth=v==="auto"?n.lineWidth>0&&d?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function Nrt(r){var t=r.icon||"roundRect",e=Ie(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 dE(r,t,e,n){Rw(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Pw(r,t,e,n)}function LH(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;n<a&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function Pw(r,t,e,n){LH(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Rw(r,t,e,n){LH(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}function Vrt(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 Nl(r,t,e){var n={},a=r==="toggleSelected",i;return e.eachComponent("legend",function(A){a&&i!=null?A[i?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?A[r]():(A[r](t.name),i=A.isSelected(t.name));var o=A.getData();T(o,function(s){var l=s.get("name");if(!(l===`
|
||
`||l==="")){var u=A.isSelected(l);n.hasOwnProperty(l)?n[l]=n[l]&&u:n[l]=u}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function Grt(r){r.registerAction("legendToggleSelect","legendselectchanged",bt(Nl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",bt(Nl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",bt(Nl,"inverseSelect")),r.registerAction("legendSelect","legendselected",bt(Nl,"select")),r.registerAction("legendUnSelect","legendunselected",bt(Nl,"unSelect"))}function MH(r){r.registerComponentModel(Mw),r.registerComponentView(QH),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Vrt),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Grt(r)}var Krt=function(r){H(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,a){var i=nl(e);r.prototype.init.call(this,e,n,a),pE(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),pE(this,this.option,e)},t.type="legend.scroll",t.defaultOption=nA(Mw.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}(Mw);function pE(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,Yi(t,e,{type:"box",ignoreSize:!!a})}var gE=_t,om=["width","height"],sm=["x","y"],zrt=function(r){H(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 gE),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new gE)},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,a,i,A,o,s){var l=this;r.prototype.renderInner.call(this,e,n,a,i,A,o,s);var u=this._controllerGroup,f=n.get("pageIconSize",!0),c=K(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");u.add(new Gt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,p){var g=d+"DataIndex",y=Hf(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:it(l._pageGo,l,g,n,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=d,u.add(y)}},t.prototype.layoutInner=function(e,n,a,i,A,o){var s=this.getSelectorGroup(),l=e.getOrient().index,u=om[l],f=sm[l],c=om[1-l],h=sm[1-l];A&&io("horizontal",s,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),d=s.getBoundingRect(),p=[-d.x,-d.y],g=mt(a);A&&(g[u]=a[u]-d[u]-v);var y=this._layoutContentAndController(e,i,g,l,u,c,h,f);if(A){if(o==="end")p[l]+=y[u]+v;else{var m=d[u]+v;p[l]-=m,y[f]-=m}y[u]+=d[u]+v,p[1-l]+=y[h]+y[c]/2-d[c]/2,y[c]=Math.max(y[c],d[c]),y[h]=Math.min(y[h],d[h]+p[1-l]),s.x=p[0],s.y=p[1],s.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,n,a,i,A,o,s,l){var u=this.getContentGroup(),f=this._containerGroup,c=this._controllerGroup;io(e.get("orient"),u,e.get("itemGap"),i?a.width:null,i?null:a.height),io("horizontal",c,e.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),v=c.getBoundingRect(),d=this._showController=h[A]>a[A],p=[-h.x,-h.y];n||(p[i]=u[l]);var g=[0,0],y=[-v.x,-v.y],m=xt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var w=e.get("pageButtonPosition",!0);w==="end"?y[i]+=a[A]-v[A]:g[i]+=v[A]+m}y[1-i]+=h[o]/2-v[o]/2,u.setPosition(p),f.setPosition(g),c.setPosition(y);var _={x:0,y:0};if(_[A]=d?a[A]:h[A],_[o]=Math.max(h[o],v[o]),_[s]=Math.min(0,v[s]+y[1-i]),f.__rectSize=a[A],d){var B={x:0,y:0};B[A]=Math.max(a[A]-v[A]-m,0),B[o]=_[o],f.setClipPath(new Nt({shape:B})),f.__rectSize=B[A]}else c.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&zt(u,{x:C.contentPosition[0],y:C.contentPosition[1]},d?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;T(["pagePrev","pageNext"],function(u){var f=u+"DataIndex",c=n[f]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),A=e.get("pageFormatter"),o=n.pageIndex,s=o!=null?o+1:0,l=n.pageCount;i&&A&&i.setStyle("text",nt(A)?A.replace("{current}",s==null?"":s+"").replace("{total}",l==null?"":l+""):A({current:s,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,A=e.getOrient().index,o=om[A],s=sm[A],l=this._findTargetItemIndex(n),u=a.children(),f=u[l],c=u.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var d=w(f);v.contentPosition[A]=-d.s;for(var p=l+1,g=d,y=d,m=null;p<=c;++p)m=w(u[p]),(!m&&y.e>g.s+i||m&&!_(m,g.s))&&(y.i>g.i?g=y:g=m,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=m;for(var p=l-1,g=d,y=d,m=null;p>=-1;--p)m=w(u[p]),(!m||!_(y,m.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=m;return v;function w(B){if(B){var C=B.getBoundingRect(),S=C[s]+B[s];return{s:S,e:S+C[o],i:B.__legendDataIndex}}}function _(B,C){return B.e>=C&&B.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(A,o){var s=A.__legendDataIndex;i==null&&s!=null&&(i=o),s===e&&(n=o)}),n??i},t.type="legend.scroll",t}(QH);function Wrt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Xrt(r){Lt(MH),r.registerComponentModel(Krt),r.registerComponentView(zrt),Wrt(r)}function Yrt(r){Lt(MH),Lt(Xrt)}var Zrt=function(r){H(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=nA(_f.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(_f),NC=Vt();function $rt(r,t,e){NC(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function Jrt(r,t){for(var e=NC(r).coordSysRecordMap,n=e.keys(),a=0;a<n.length;a++){var i=n[a],A=e.get(i),o=A.dataZoomInfoMap;if(o){var s=t.uid,l=o.get(s);l&&(o.removeKey(s),o.keys().length||UH(e,A))}}}function UH(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function qrt(r,t){var e={model:t,containsPoint:bt(tnt,t),dispatchAction:bt(jrt,r),dataZoomInfoMap:null,controller:null},n=e.controller=new Zf(r.getZr());return T(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var A=[];e.dataZoomInfoMap.each(function(o){if(i.isAvailableBehavior(o.model.option)){var s=(o.getRange||{})[a],l=s&&s(o.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!o.model.get("disabled",!0)&&l&&A.push({dataZoomId:o.model.id,start:l[0],end:l[1]})}}),A.length&&e.dispatchAction(A)})}),e}function jrt(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function tnt(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function ent(r){var t,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(i){var A=i.model,o=A.get("disabled",!0)?!1:A.get("zoomLock",!0)?"move":!0;n[e+o]>n[e+t]&&(t=o),a=a&&A.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function rnt(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=NC(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ft());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var A=gH(i);T(A.infoList,function(o){var s=o.model.uid,l=a.get(s)||a.set(s,qrt(e,o.model)),u=l.dataZoomInfoMap||(l.dataZoomInfoMap=ft());u.set(i.uid,{dzReferCoordSysInfo:o,model:i,getRange:null})})}),a.each(function(i){var A=i.controller,o,s=i.dataZoomInfoMap;if(s){var l=s.keys()[0];l!=null&&(o=s.get(l))}if(!o){UH(a,i);return}var u=ent(s);A.enable(u.controlType,u.opt),A.setPointerChecker(i.containsPoint),Al(i,"dispatchAction",o.model.get("throttle",!0),"fixRate")})})}var nnt=function(r){H(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,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),$rt(a,e,{pan:it(lm.pan,this),zoom:it(lm.zoom,this),scrollMove:it(lm.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Jrt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(QC),lm={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),A=r.axisModels[0];if(A){var o=um[t](null,[n.originX,n.originY],A,e,r),s=(o.signal>0?o.pixelStart+o.pixelLength-o.pixel:o.pixel-o.pixelStart)/o.pixelLength*(i[1]-i[0])+i[0],l=Math.max(1/n.scale,0);i[0]=(i[0]-s)*l+s,i[1]=(i[1]-s)*l+s;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Fo(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:yE(function(r,t,e,n,a,i){var A=um[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return A.signal*(r[1]-r[0])*A.pixel/A.pixelLength}),scrollMove:yE(function(r,t,e,n,a,i){var A=um[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return A.signal*(r[1]-r[0])*i.scrollDelta})};function yE(r){return function(t,e,n,a){var i=this.range,A=i.slice(),o=t.axisModels[0];if(o){var s=r(A,o,t,e,n,a);if(Fo(s,A,[0,100],"all"),this.range=A,i[0]!==A[0]||i[1]!==A[1])return A}}}var um={grid:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(A.pixel=t[0]-r[0],A.pixelLength=o.width,A.pixelStart=o.x,A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=o.height,A.pixelStart=o.y,A.signal=i.inverse?-1:1),A},polar:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return r=r?o.pointToCoord(r):[0,0],t=o.pointToCoord(t),e.mainType==="radiusAxis"?(A.pixel=t[0]-r[0],A.pixelLength=s[1]-s[0],A.pixelStart=s[0],A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=l[1]-l[0],A.pixelStart=l[0],A.signal=i.inverse?-1:1),A},singleAxis:function(r,t,e,n,a){var i=e.axis,A=a.model.coordinateSystem.getRect(),o={};return r=r||[0,0],i.orient==="horizontal"?(o.pixel=t[0]-r[0],o.pixelLength=A.width,o.pixelStart=A.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=A.height,o.pixelStart=A.y,o.signal=i.inverse?-1:1),o}};function PH(r){LC(r),r.registerComponentModel(Zrt),r.registerComponentView(nnt),rnt(r)}var ant=function(r){H(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=nA(_f.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(_f),Vl=Nt,mE=7,int=1,fm=30,Ant=7,Gl="horizontal",wE="vertical",ont=5,snt=["line","bar","candlestick","scatter"],lnt={easing:"cubicOut",duration:100,delay:0},unt=function(r){H(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=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),Al(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lf(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,a=e.get("brushSelect"),i=a?Ant:0,A=this._findCoordRect(),o={width:n.getWidth(),height:n.getHeight()},s=this._orient===Gl?{right:o.width-A.x-A.width,top:o.height-fm-mE-i,width:A.width,height:fm}:{right:mE,top:A.y,width:fm,height:A.height},l=nl(e.option);T(["right","top","width","height"],function(f){l[f]==="ph"&&(l[f]=s[f])});var u=Le(l,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===wE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),A=i&&i.get("inverse"),o=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(a===Gl&&!A?{scaleY:s?1:-1,scaleX:1}:a===Gl&&A?{scaleY:s?1:-1,scaleX:-1}:a===wE&&!A?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([o]);e.x=n.x-l.x,e.y=n.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Vl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var A=new Vl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),o=this.api.getZr();i?(A.on("mousedown",this._onBrushStart,this),A.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),a.add(A)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,A=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),s=o&&A.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(A!==this._shadowData||s!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=A.getDataExtent(s),c=(f[1]-f[0])*.3;f=[f[0]-c,f[1]+c];var h=[0,n[1]],v=[0,n[0]],d=[[n[0],0],[0,0]],p=[],g=v[1]/(A.count()-1),y=0,m=Math.round(A.count()/n[0]),w;A.each([s],function(x,b){if(m>0&&b%m){y+=g;return}var I=x==null||isNaN(x)||x==="",F=I?0:$t(x,f,h,!0);I&&!w&&b?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!I&&w&&(d.push([y,0]),p.push([y,0])),d.push([y,F]),p.push([y,F]),y+=g,w=I}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=A,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function B(x){var b=_.getModel(x?"selectedDataBackground":"dataBackground"),I=new _t,F=new Sr({shape:{points:l},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new xr({shape:{points:u},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(F),I.add(E),I}for(var C=0;C<3;C++){var S=B(C===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(A,o){var s=e.getAxisProxy(A,o).getTargetSeriesModels();T(s,function(l){if(!a&&!(n!==!0&&Qt(snt,l.get("type"))<0)){var u=i.getComponent(Li(A),o).axis,f=fnt(A),c,h=l.coordinateSystem;f!=null&&h.getOtherAxis&&(c=h.getOtherAxis(u).inverse),f=l.getData().mapDimension(f),a={thisAxis:u,series:l,thisDim:A,otherDim:f,otherAxisInverse:c}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],A=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,l=this.api,u=s.get("borderRadius")||0,f=s.get("brushSelect"),c=n.filler=new Vl({silent:f,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});A.add(c),A.add(new Vl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:int,fill:"rgba(0,0,0,0)"}})),T([0,1],function(m){var w=s.get("handleIcon");!Rv[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var _=Ie(w,-1,0,2,2,null,!0);_.attr({cursor:BE(this._orient),draggable:!0,drift:it(this._onDragMove,this,m),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var B=_.getBoundingRect(),C=s.get("handleSize");this._handleHeight=et(C,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,_.setStyle(s.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),no(_);var S=s.get("handleColor");S!=null&&(_.style.fill=S),A.add(a[m]=_);var x=s.getModel("textStyle");e.add(i[m]=new Gt({silent:!0,invisible:!0,style:oe(x,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:x.getTextColor(),font:x.getFont()}),z2:10}))},this);var h=c;if(f){var v=et(s.get("moveHandleSize"),o[1]),d=n.moveHandle=new Nt({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:v}}),p=v*.8,g=n.moveHandleIcon=Ie(s.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+v/2-.5,d.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(v,10));h=n.moveZone=new Nt({invisible:!0,shape:{y:o[1]-y,height:v+y}}),h.on("mouseover",function(){l.enterEmphasis(d)}).on("mouseout",function(){l.leaveEmphasis(d)}),A.add(d),A.add(g),A.add(h)}h.attr({draggable:!0,cursor:BE(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$t(e[0],[0,100],n,!0),$t(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,A=this._getViewExtent(),o=a.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];Fo(n,i,A,a.get("zoomLock")?"all":e,o.minSpan!=null?$t(o.minSpan,s,A,!0):null,o.maxSpan!=null?$t(o.maxSpan,s,A,!0):null);var l=this._range,u=this._range=fn([$t(i[0],A,s,!0),$t(i[1],A,s,!0)]);return!l||l[0]!==u[0]||l[1]!==u[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=fn(a.slice()),A=this._size;T([0,1],function(h){var v=n.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:A[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:A[1]});var o={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(o),n.moveZone.setShape(o),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=n.dataShadowSegs,l=[0,i[0],i[1],A[0]],u=0;u<s.length;u++){var f=s[u],c=f.getClipPath();c||(c=new Nt,f.setClipPath(c)),c.setShape({x:l[u],y:0,width:l[u+1]-l[u],height:A[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,A=this._orient,o=["",""];if(n.get("showDetail")){var s=n.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,f=e?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(f[0],l),this._formatLabel(f[1],l)]}}var c=fn(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var d=ao(a.handles[v].parent,this.group),p=Jd(v===0?"right":"left",d),g=this._handleWidth/2+ont,y=Un([c[v]+(v===0?-g:g),this._size[1]/2],d);i[v].setStyle({x:y[0],y:y[1],verticalAlign:A===Gl?"middle":p,align:A===Gl?p:"center",text:o[v]})}},t.prototype._formatLabel=function(e,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),A=a.get("labelPrecision");(A==null||A==="auto")&&(A=n.getPixelPrecision());var o=e==null||isNaN(e)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(A,20));return vt(i)?i(e,o):nt(i)?i.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!e),a[1].attr("invisible",!e),n.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(e,n,a,i){this._dragging=!0,Ka(i.event);var A=this._displayables.sliderGroup.getLocalTransform(),o=Un([n,a],A,!0),s=this._updateInterval(e,o[0]),l=this.dataZoomModel.get("realtime");this._updateView(!l),s&&l&&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,a=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,A=(i[0]+i[1])/2,o=this._updateInterval("all",a[0]-A);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new It(n,a),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 a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var A=this._getViewExtent(),o=[0,100];this._range=fn([$t(a.x,A,o,!0),$t(a.x+a.width,A,o,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ka(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,A=a.brushRect;A||(A=a.brushRect=new Vl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(A)),A.attr("ignore",!1);var o=this._brushStart,s=this._displayables.sliderGroup,l=s.transformCoordToLocal(e,n),u=s.transformCoordToLocal(o.x,o.y),f=this._size;l[0]=Math.max(Math.min(f[0],l[0]),0),A.setShape({x:u[0],y:0,width:l[0]-u[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?lnt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=gH(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),A=this.api.getHeight();e={x:i*.2,y:A*.2,width:i*.6,height:A*.6}}return e},t.type="dataZoom.slider",t}(QC);function fnt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function BE(r){return r==="vertical"?"ns-resize":"ew-resize"}function RH(r){r.registerComponentModel(ant),r.registerComponentView(unt),LC(r)}function cnt(r){Lt(PH),Lt(RH)}var HH={get:function(r,t,e){var n=mt((hnt[r]||{})[t]);return e&&K(n)?n[n.length-1]:n}},hnt={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]}},_E=He.mapVisual,vnt=He.eachVisual,dnt=K,CE=T,pnt=fn,gnt=$t,od=function(r){H(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,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&TH(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Dw(this.option.controller,n,e),this.targetVisuals=Dw(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(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){T(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,A=i.precision,o=this.dataBound,s=i.formatter,l;a=a||["<",">"],K(e)&&(e=e.slice(),l=!0);var u=n?e:l?[f(e[0]),f(e[1])]:f(e);if(nt(s))return s.replace("{value}",l?u[0]:u).replace("{value2}",l?u[1]:u);if(vt(s))return l?s(e[0],e[1]):s(e);if(l)return e[0]===o[0]?a[0]+" "+u[1]:e[1]===o[1]?a[1]+" "+u[0]:u[0]+" - "+u[1];return u;function f(c){return c===o[0]?"min":c===o[1]?"max":(+c).toFixed(Math.min(A,20))}},t.prototype.resetExtent=function(){var e=this.option,n=pnt([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 a=e.dimensions,i=a.length-1;i>=0;i--){var A=a[i],o=e.getDimensionInfo(A);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),A=n.controller||(n.controller={});Et(i,a),Et(A,a);var o=this.isCategory();s.call(this,i),s.call(this,A),l.call(this,i,"inRange","outOfRange"),u.call(this,A);function s(f){dnt(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function l(f,c,h){var v=f[c],d=f[h];v&&!d&&(d=f[h]={},CE(v,function(p,g){if(He.isValidType(g)){var y=HH.get(g,"inactive",o);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function u(f){var c=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),p=d||"roundRect";CE(this.stateList,function(g){var y=this.itemSize,m=f[g];m||(m=f[g]={color:o?v:[v]}),m.symbol==null&&(m.symbol=c&&mt(c)||(o?p:[p])),m.symbolSize==null&&(m.symbolSize=h&&mt(h)||(o?y[0]:[y[0],y[0]])),m.symbol=_E(m.symbol,function(B){return B==="none"?p:B});var w=m.symbolSize;if(w!=null){var _=-1/0;vnt(w,function(B){B>_&&(_=B)}),m.symbolSize=_E(w,function(B){return gnt(B,[0,_],[0,y[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}(Rt),SE=[20,140],ynt=function(r){H(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(a){a.mappingMethod="linear",a.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]=SE[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=SE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):K(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),T(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=fn((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,a=this.getExtent();return(n[0]<=a[0]||n[0]<=e)&&(n[1]>=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],A=a.getData();A.each(this.getDataDimensionIndex(A),function(o,s){e[0]<=o&&o<=e[1]&&i.push(s)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=xE(this,"outOfRange",this.getExtent()),a=xE(this,"inRange",this.option.range.slice()),i=[];function A(h,v){i.push({value:h,color:e(h,v)})}for(var o=0,s=0,l=a.length,u=n.length;s<u&&(!a.length||n[s]<=a[0]);s++)n[s]<a[o]&&A(n[s],"outOfRange");for(var f=1;o<l;o++,f=0)f&&i.length&&A(a[o],"outOfRange"),A(a[o],"inRange");for(var f=1;s<u;s++)(!a.length||a[a.length-1]<n[s])&&(f&&(i.length&&A(i[i.length-1].value,"outOfRange"),f=0),A(n[s],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=nA(od.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}(od);function xE(r,t,e){if(e[0]===e[1])return e.slice();for(var n=200,a=(e[1]-e[0])/n,i=e[0],A=[],o=0;o<=n&&i<e[1];o++)A.push(i),i+=a;return A.push(e[1]),A}var OH=function(r){H(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,a,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,n,a,i)},t.prototype.renderBackground=function(e){var n=this.visualMapModel,a=rl(n.get("padding")||0),i=e.getBoundingRect();e.add(new Nt({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,n,a){a=a||{};var i=a.forceState,A=this.visualMapModel,o={};if(n==="color"){var s=A.get("contentColor");o.color=s}function l(h){return o[h]}function u(h,v){o[h]=v}var f=A.controllerVisuals[i||A.getValueState(e)],c=He.prepareVisualTypes(f);return T(c,function(h){var v=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),He.dependsOn(h,n)&&v&&v.applyVisual(e,l,u)}),o[n]},t.prototype.positionGroup=function(e){var n=this.visualMapModel,a=this.api;ap(e,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(e,n,a,i){},t.type="visualMap",t}(de),bE=[["left","right","width"],["top","bottom","height"]];function kH(r,t,e){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},A=n.orient==="horizontal"?1:0,o=bE[A],s=[0,null,10],l={},u=0;u<3;u++)l[bE[1-A][u]]=s[u],l[o[u]]=u===2?e[0]:n[o[u]];var f=[["x","width",3],["y","height",0]][A],c=Le(l,i,n.padding);return o[(c.margin[f[2]]||0)+c[f[0]]+c[f[1]]*.5<i[f[1]]*.5?0:1]}function nv(r,t){return T(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var Jn=$t,mnt=T,TE=Math.min,cm=Math.max,wnt=12,Bnt=6,_nt=function(r){H(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=it(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=it(this._hideIndicator,this)},t.prototype.doRender=function(e,n,a,i){(!i||i.type!=="selectDataRange"||i.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 a=e.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(e,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var A=this.visualMapModel,o=A.get("textGap"),s=A.itemSize,l=this._shapes.mainGroup,u=this._applyTransform([s[0]/2,a===0?-o:s[1]+o],l),f=this._applyTransform(a===0?"bottom":"top",l),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Gt({style:oe(h,{x:u[0],y:u[1],verticalAlign:c==="horizontal"?"middle":f,align:c==="horizontal"?f:"center",text:i})}))}},t.prototype._renderBar=function(e){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,A=this._orient,o=this._useHandle,s=kH(n,this.api,i),l=a.mainGroup=this._createBarGroup(s),u=new _t;l.add(u),u.add(a.outOfRange=IE()),u.add(a.inRange=IE(null,o?EE(this._orient):null,it(this._dragHandle,this,"all",!1),it(this._dragHandle,this,"all",!0))),u.setClipPath(new Nt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),c=cm(f.width,f.height);o&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,l,0,i,c,A),this._createHandle(n,l,1,i,c,A)),this._createIndicator(n,l,i,c,A),e.add(l)},t.prototype._createHandle=function(e,n,a,i,A,o){var s=it(this._dragHandle,this,a,!1),l=it(this._dragHandle,this,a,!0),u=Rn(e.get("handleSize"),i[0]),f=Ie(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),c=EE(this._orient);f.attr({cursor:c,draggable:!0,drift:s,ondragend:l,onmousemove:function(g){Ka(g.event)}}),f.x=i[0]/2,f.useStyle(e.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),zA(f,!0),n.add(f);var h=this.visualMapModel.textStyleModel,v=new Gt({cursor:c,draggable:!0,drift:s,onmousemove:function(g){Ka(g.event)},ondragend:l,style:oe(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var d=[u,0],p=this._shapes;p.handleThumbs[a]=f,p.handleLabelPoints[a]=d,p.handleLabels[a]=v},t.prototype._createIndicator=function(e,n,a,i,A){var o=Rn(e.get("indicatorSize"),a[0]),s=Ie(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var l=e.getModel("indicatorStyle").getItemStyle();if(s instanceof Ke){var u=s.style;s.useStyle(V({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l);n.add(s);var f=this.visualMapModel.textStyleModel,c=new Gt({silent:!0,invisible:!0,style:oe(f,{x:0,y:0,text:""})});this.group.add(c);var h=[(A==="horizontal"?i/2:Bnt)+a[0]/2,0],v=this._shapes;v.indicator=s,v.indicatorLabel=c,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var A=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(e,A[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():FE(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,n=this._dataInterval=e.getSelected(),a=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[Jn(n[0],a,i,!0),Jn(n[1],a,i,!0)]},t.prototype._updateInterval=function(e,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,A=[0,a.itemSize[1]];Fo(n,i,A,e,0);var o=a.getExtent();this._dataInterval=[Jn(i[0],A,o,!0),Jn(i[1],A,o,!0)]},t.prototype._updateView=function(e){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,A=[0,n.itemSize[1]],o=e?A:this._handleEnds,s=this._createBarVisual(this._dataInterval,a,o,"inRange"),l=this._createBarVisual(a,a,A,"outOfRange");i.inRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),i.outOfRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),this._updateHandle(o,s)},t.prototype._createBarVisual=function(e,n,a,i){var A={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,A),s=[this.getControllerVisual(e[0],"symbolSize",A),this.getControllerVisual(e[1],"symbolSize",A)],l=this._createBarPoints(a,s);return{barColor:new Pf(0,0,0,1,o),barPoints:l,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,n){var a=100,i=[],A=(e[1]-e[0])/a;i.push({color:this.getControllerVisual(e[0],"color",n),offset:0});for(var o=1;o<a;o++){var s=e[0]+A*o;if(s>e[1])break;i.push({color:this.getControllerVisual(s,"color",n),offset:o/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new _t(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,A=a.handleThumbs,o=a.handleLabels,s=i.itemSize,l=i.getExtent();mnt([0,1],function(u){var f=A[u];f.setStyle("fill",n.handlesColor[u]),f.y=e[u];var c=Jn(e[u],[0,s[1]],l,!0),h=this.getControllerVisual(c,"symbolSize");f.scaleX=f.scaleY=h/s[0],f.x=s[0]-h/2;var v=Un(a.handleLabelPoints[u],ao(f,this.group));o[u].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var A=this.visualMapModel,o=A.getExtent(),s=A.itemSize,l=[0,s[1]],u=this._shapes,f=u.indicator;if(f){f.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),v=this.getControllerVisual(e,"symbolSize"),d=Jn(e,o,l,!0),p=s[0]-v/2,g={x:f.x,y:f.y};f.y=d,f.x=p;var y=Un(u.indicatorLabelPoint,ao(f,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var w=this._applyTransform("left",u.mainGroup),_=this._orient,B=_==="horizontal";m.setStyle({text:(a||"")+A.formatValueText(n),verticalAlign:B?w:"middle",align:B?"center":w});var C={x:p,y:d,style:{fill:h}},S={style:{x:y[0],y:y[1]}};if(A.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(C,x),m.animateTo(S,x)}else f.attr(C),m.attr(S);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var I=0;I<b.length;I++)this.api.enterBlur(b[I])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(n){if(e._hovering=!0,!e._dragging){var a=e.visualMapModel.itemSize,i=e._applyTransform([n.offsetX,n.offsetY],e._shapes.mainGroup,!0,!0);i[1]=TE(cm(0,i[1]),a[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[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 a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var A=[0,i[1]],o=a.getExtent();e=TE(cm(A[0],e),A[1]);var s=Cnt(a,o,A),l=[e-s,e+s],u=Jn(e,A,o,!0),f=[Jn(l[0],A,o,!0),Jn(l[1],A,o,!0)];l[0]<A[0]&&(f[0]=-1/0),l[1]>A[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(u,f[1],"< ",s):f[1]===1/0?this._showIndicator(u,f[0],"> ",s):this._showIndicator(u,u,"≈ ",s));var c=this._hoverLinkDataIndices,h=[];(n||FE(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=FK(c,h);this._dispatchHighDown("downplay",nv(v[0],a)),this._dispatchHighDown("highlight",nv(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(XA(e.target,function(s){var l=Ct(s);if(l.dataIndex!=null)return n=l,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var A=a.getData(n.dataType),o=A.getStore().get(i.getDataDimensionIndex(A),n.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},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 a=0;a<n.length;a++)this.api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",nv(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,a,i){var A=ao(n,i?null:this.group);return K(e)?Un(e,A,a):Jd(e,A,a)},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}(OH);function IE(r,t,e,n){return new Sr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(a){Ka(a.event)},ondragend:n})}function Cnt(r,t,e){var n=wnt/2,a=r.get("hoverLinkDataSize");return a&&(n=Jn(a,t,e,!0)/2),n}function FE(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function EE(r){return r==="vertical"?"ns-resize":"ew-resize"}var Snt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},xnt=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},bnt=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||e.push(Yet(n.stateList,n.targetVisuals,it(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(it(Tnt,null,r,a))||{stops:[],outerColors:[]},A=a.getDataDimensionIndex(e);A>=0&&(i.dimension=A,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function Tnt(r,t,e,n){for(var a=t.targetVisuals[n],i=He.prepareVisualTypes(a),A={color:kf(r.getData(),"color")},o=0,s=i.length;o<s;o++){var l=i[o],u=a[l==="opacity"?"__alphaForOpacity":l];u&&u.applyVisual(e,f,c)}return A.color;function f(h){return A[h]}function c(h,v){A[h]=v}}var DE=T;function Int(r){var t=r&&r.visualMap;K(t)||(t=t?[t]:[]),DE(t,function(e){if(e){Zo(e,"splitList")&&!Zo(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var n=e.pieces;n&&K(n)&&DE(n,function(a){yt(a)&&(Zo(a,"start")&&!Zo(a,"min")&&(a.min=a.start),Zo(a,"end")&&!Zo(a,"max")&&(a.max=a.end))})}})}function Zo(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var QE=!1;function NH(r){QE||(QE=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Snt,xnt),T(bnt,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Int))}function VH(r){r.registerComponentModel(ynt),r.registerComponentView(_nt),NH(r)}var Fnt=function(r){H(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 a=this._mode=this._determineMode();this._pieceList=[],Ent[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(A,o){a==="categories"?(A.mappingMethod="category",A.categories=mt(i)):(A.dataExtent=this.getExtent(),A.mappingMethod="piecewise",A.pieceList=Y(this._pieceList,function(s){return s=mt(s),o!=="inRange"&&(s.visual=null),s}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=He.listVisualTypes(),i=this.isCategory();T(e.pieces,function(o){T(a,function(s){o.hasOwnProperty(s)&&(n[s]=1)})}),T(n,function(o,s){var l=!1;T(this.stateList,function(u){l=l||A(e,u,s)||A(e.target,u,s)},this),!l&&T(this.stateList,function(u){(e[u]||(e[u]={}))[s]=HH.get(s,u==="inRange"?"active":"inactive",i)})},this);function A(o,s,l){return o&&o[s]&&o[s].hasOwnProperty(l)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,A=(n?a:e).selected||{};if(a.selected=A,T(i,function(s,l){var u=this.getSelectedMapKey(s);A.hasOwnProperty(u)||(A[u]=!0)},this),a.selectedMode==="single"){var o=!1;T(i,function(s,l){var u=this.getSelectedMapKey(s);A[u]&&(o?A[u]=!1:o=!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=He.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var A=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){var u=He.findPieceIndex(s,a);u===e&&A.push(l)},this),n.push({seriesId:i.id,dataIndex:A})},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 a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function A(u,f){var c=i.getRepresentValue({interval:u});f||(f=i.getValueState(c));var h=e(c,f);u[0]===-1/0?a[0]=h:u[1]===1/0?a[1]=h:n.push({value:u[0],color:h},{value:u[1],color:h})}var o=this._pieceList.slice();if(!o.length)o.push({interval:[-1/0,1/0]});else{var s=o[0].interval[0];s!==-1/0&&o.unshift({interval:[-1/0,s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}var l=-1/0;return T(o,function(u){var f=u.interval;f&&(f[0]>l&&A([l,f[0]],"outOfRange"),A(f.slice()),l=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=nA(od.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}(od),Ent={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var A=0,o=n[0];A<a;o+=i,A++){var s=A===a-1?n[1]:o+i;r.push({interval:[o,s],close:[1,1]})}t.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),bS(r),T(r,function(l,u){l.index=u,l.text=this.formatValueText(l.interval)},this)},categories:function(r){var t=this.option;T(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),LE(t,r)},pieces:function(r){var t=this.option;T(t.pieces,function(e,n){yt(e)||(e={value:e});var a={text:"",index:n};if(e.label!=null&&(a.text=e.label),e.hasOwnProperty("value")){var i=a.value=e.value;a.interval=[i,i],a.close=[1,1]}else{for(var A=a.interval=[],o=a.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],f=0;f<2;f++){for(var c=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&A[f]==null;h++)A[f]=e[c[h]],o[f]=s[h],u[f]=h===2;A[f]==null&&(A[f]=l[f])}u[0]&&A[1]===1/0&&(o[0]=0),u[1]&&A[0]===-1/0&&(o[1]=0),A[0]===A[1]&&o[0]&&o[1]&&(a.value=A[0])}a.visual=He.retrieveVisuals(e),r.push(a)},this),LE(t,r),bS(r),T(r,function(e){var n=e.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function LE(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Dnt=function(r){H(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,a=n.get("textGap"),i=n.textStyleModel,A=i.getFont(),o=i.getTextColor(),s=this._getItemAlign(),l=n.itemSize,u=this._getViewData(),f=u.endsText,c=Ge(n.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],l,c,s),T(u.viewPieceList,function(h){var v=h.piece,d=new _t;d.onclick=it(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,l[0],l[1]]),c){var g=this.visualMapModel.getValueState(p);d.add(new Gt({style:{x:s==="right"?-a:l[0]+a,y:l[1]/2,text:v.text,verticalAlign:"middle",align:s,font:A,fill:o,opacity:g==="outOfRange"?.5:1}}))}e.add(d)},this),f&&this._renderEndsText(e,f[1],l,c,s),io(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(A){var o=a.visualMapModel;o.option.hoverLink&&a.api.dispatchAction({type:A,batch:nv(o.findTargetDataIndices(n),o)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return kH(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,A){if(n){var o=new _t,s=this.visualMapModel.textStyleModel;o.add(new Gt({style:oe(s,{x:i?A==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?A:"center",text:n})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Y(e.getPieceList(),function(o,s){return{piece:o,indexInModelPieceList:s}}),a=e.get("text"),i=e.get("orient"),A=e.get("inverse");return(i==="horizontal"?A:!A)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(Ie(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var A=mt(a.selected),o=n.getSelectedMapKey(e);i==="single"||i===!0?(A[o]=!0,T(A,function(s,l){A[l]=l===o})):A[o]=!A[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:A})}},t.type="visualMap.piecewise",t}(OH);function GH(r){r.registerComponentModel(Fnt),r.registerComponentView(Dnt),NH(r)}function Qnt(r){Lt(VH),Lt(GH)}var Lnt={label:{enabled:!0},decal:{show:!1}},ME=Vt(),Mnt={};function Unt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(Lnt);Et(n.label,r.getLocaleModel().get("aria"),!1),Et(e.option,n,!1),a(),i();function a(){var l=e.getModel("decal"),u=l.get("show");if(u){var f=ft();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=f.get(c.type);h||(h={},f.set(c.type,h)),ME(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(vt(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=R0(c.ecModel,c.name,Mnt,r.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",w(m,y))}else{var v=c.getRawData(),d={},p=ME(c).scope;h.each(function(_){var B=h.getRawIndex(_);d[B]=_});var g=v.count();v.each(function(_){var B=d[_],C=v.getName(_)||_+"",S=R0(c.ecModel,C,p,g),x=h.getItemVisual(B,"decal");h.setItemVisual(B,"decal",w(x,S))})}function w(_,B){var C=_?V(V({},B),_):B;return C.dirty=!0,C}})}}function i(){var l=t.getZr().dom;if(l){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=gt(f.option,u),!!f.get("enabled")){if(f.get("description")){l.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),p;if(!(c<1)){var g=o();if(g){var y=f.get(["general","withTitle"]);p=A(y,{title:g})}else p=f.get(["general","withoutTitle"]);var m=[],w=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=A(w,{seriesCount:c}),r.eachSeries(function(S,x){if(x<d){var b=void 0,I=S.get("name"),F=I?"withName":"withoutName";b=c>1?f.get(["series","multiple",F]):f.get(["series","single",F]),b=A(b,{seriesId:S.seriesIndex,seriesName:S.get("name"),seriesType:s(S.subType)});var E=S.getData();if(E.count()>h){var D=f.get(["data","partialData"]);b+=A(D,{displayCnt:h})}else b+=f.get(["data","allData"]);for(var Q=f.get(["data","separator","middle"]),M=f.get(["data","separator","end"]),R=[],P=0;P<E.count();P++)if(P<h){var O=E.getName(P),G=E.getValues(P),X=f.get(["data",O?"withName":"withoutName"]);R.push(A(X,{name:O,value:G.join(Q)}))}b+=R.join(Q)+M,m.push(b)}});var _=f.getModel(["series","multiple","separator"]),B=_.get("middle"),C=_.get("end");p+=m.join(B)+C,l.setAttribute("aria-label",p)}}}}function A(l,u){if(!nt(l))return l;var f=l;return T(u,function(c,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),c)}),f}function o(){var l=r.get("title");return l&&l.length&&(l=l[0]),l&&l.text}function s(l){var u=r.getLocaleModel().get(["series","typeNames"]);return u[l]||u.chart}}function Pnt(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},T(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function Rnt(r){r.registerPreprocessor(Pnt),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Unt)}var UE={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Hnt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):ZV(t)?t:null;if(e==null){var n="";Xt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Kt(e)?this._condVal.test(t+""):!1},r}(),Ont=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),knt=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}(),Nnt=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}(),Vnt=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),Gnt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},r}();function VC(r,t){if(r===!0||r===!1){var e=new Ont;return e.value=r,e}var n="";return KH(r)||Xt(n),r.and?PE("and",r,t):r.or?PE("or",r,t):r.not?Knt(r,t):znt(r,t)}function PE(r,t,e){var n=t[r],a="";K(n)||Xt(a),n.length||Xt(a);var i=r==="and"?new knt:new Nnt;return i.children=Y(n,function(A){return VC(A,e)}),i.children.length||Xt(a),i}function Knt(r,t){var e=r.not,n="";KH(e)||Xt(n);var a=new Vnt;return a.child=VC(e,t),a.child||Xt(n),a}function znt(r,t){for(var e="",n=t.prepareGetValue(r),a=[],i=Ht(r),A=r.parser,o=A?bU(A):null,s=0;s<i.length;s++){var l=i[s];if(!(l==="parser"||t.valueGetterAttrMap.get(l))){var u=st(UE,l)?UE[l]:l,f=r[l],c=o?o(f):f,h=Qz(u,c)||u==="reg"&&new Hnt(c);h||Xt(e),a.push(h)}}a.length||Xt(e);var v=new Gnt;return v.valueGetterParam=n,v.valueParser=o,v.getValue=t.getValue,v.subCondList=a,v}function KH(r){return yt(r)&&!sr(r)}var Wnt=function(){function r(t,e){this._cond=VC(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function Xnt(r,t){return new Wnt(r,t)}var Ynt={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=Xnt(r.config,{valueGetterAttrMap:ft({dimension:!0}),prepareGetValue:function(o){var s="",l=o.dimension;st(o,"dimension")||Xt(s);var u=t.getDimensionInfo(l);return u||Xt(s),{dimIdx:u.index}},getValue:function(o){return t.retrieveValueFromItem(e,o.dimIdx)}}),a=[],i=0,A=t.count();i<A;i++)e=t.getRawDataItem(i),n.evaluate()&&a.push(e);return{data:a}}},Znt={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",a=qt(e);a.length||Xt(n);var i=[];T(a,function(u){var f=u.dimension,c=u.order,h=u.parser,v=u.incomparable;if(f==null&&Xt(n),c!=="asc"&&c!=="desc"&&Xt(n),v&&v!=="min"&&v!=="max"){var d="";Xt(d)}if(c!=="asc"&&c!=="desc"){var p="";Xt(p)}var g=t.getDimensionInfo(f);g||Xt(n);var y=h?bU(h):null;h&&!y&&Xt(n),i.push({dimIdx:g.index,parser:y,comparator:new IU(c,v)})});var A=t.sourceFormat;A!==lr&&A!==wn&&Xt(n);for(var o=[],s=0,l=t.count();s<l;s++)o.push(t.getRawDataItem(s));return o.sort(function(u,f){for(var c=0;c<i.length;c++){var h=i[c],v=t.retrieveValueFromItem(u,h.dimIdx),d=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(v=h.parser(v),d=h.parser(d));var p=h.comparator.evaluate(v,d);if(p!==0)return p}return 0}),{data:o}}};function $nt(r){r.registerTransform(Ynt),r.registerTransform(Znt)}var Jnt=function(r){H(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,a){r.prototype.init.call(this,e,n,a),this._sourceManager=new QU(this),Ox(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),Ox(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:fa},t}(Rt),qnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(de);function jnt(r){r.registerComponentModel(Jnt),r.registerComponentView(qnt)}var Yn=ga.CMD;function gs(r,t){return Math.abs(r-t)<1e-5}function Hw(r){var t=r.data,e=r.len(),n=[],a,i=0,A=0,o=0,s=0;function l(E,D){a&&a.length>2&&n.push(a),a=[E,D]}function u(E,D,Q,M){gs(E,Q)&&gs(D,M)||a.push(E,D,Q,M,Q,M)}function f(E,D,Q,M,R,P){var O=Math.abs(D-E),G=Math.tan(O/4)*4/3,X=D<E?-1:1,J=Math.cos(E),At=Math.sin(E),lt=Math.cos(D),wt=Math.sin(D),Bt=J*R+Q,N=At*P+M,z=lt*R+Q,$=wt*P+M,q=R*G*X,j=P*G*X;a.push(Bt-q*At,N+j*J,z+q*wt,$-j*lt,z,$)}for(var c,h,v,d,p=0;p<e;){var g=t[p++],y=p===1;switch(y&&(i=t[p],A=t[p+1],o=i,s=A,(g===Yn.L||g===Yn.C||g===Yn.Q)&&(a=[o,s])),g){case Yn.M:i=o=t[p++],A=s=t[p++],l(o,s);break;case Yn.L:c=t[p++],h=t[p++],u(i,A,c,h),i=c,A=h;break;case Yn.C:a.push(t[p++],t[p++],t[p++],t[p++],i=t[p++],A=t[p++]);break;case Yn.Q:c=t[p++],h=t[p++],v=t[p++],d=t[p++],a.push(i+2/3*(c-i),A+2/3*(h-A),v+2/3*(c-v),d+2/3*(h-d),v,d),i=v,A=d;break;case Yn.A:var m=t[p++],w=t[p++],_=t[p++],B=t[p++],C=t[p++],S=t[p++]+C;p+=1;var x=!t[p++];c=Math.cos(C)*_+m,h=Math.sin(C)*B+w,y?(o=c,s=h,l(o,s)):u(i,A,c,h),i=Math.cos(S)*_+m,A=Math.sin(S)*B+w;for(var b=(x?-1:1)*Math.PI/2,I=C;x?I>S:I<S;I+=b){var F=x?Math.max(I+b,S):Math.min(I+b,S);f(I,F,m,w,_,B)}break;case Yn.R:o=i=t[p++],s=A=t[p++],c=o+t[p++],h=s+t[p++],l(c,s),u(c,s,c,h),u(c,h,o,h),u(o,h,o,s),u(o,s,c,s);break;case Yn.Z:a&&u(i,A,o,s),i=o,A=s;break}}return a&&a.length>2&&n.push(a),n}function Ow(r,t,e,n,a,i,A,o,s,l){if(gs(r,e)&&gs(t,n)&&gs(a,A)&&gs(i,o)){s.push(A,o);return}var u=2/l,f=u*u,c=A-r,h=o-t,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=e-r,p=n-t,g=a-A,y=i-o,m=d*d+p*p,w=g*g+y*y;if(m<f&&w<f){s.push(A,o);return}var _=c*d+h*p,B=-c*g-h*y,C=m-_*_,S=w-B*B;if(C<f&&_>=0&&S<f&&B>=0){s.push(A,o);return}var x=[],b=[];Wi(r,e,a,A,.5,x),Wi(t,n,i,o,.5,b),Ow(x[0],b[0],x[1],b[1],x[2],b[2],x[3],b[3],s,l),Ow(x[4],b[4],x[5],b[5],x[6],b[6],x[7],b[7],s,l)}function tat(r,t){var e=Hw(r),n=[];t=t||1;for(var a=0;a<e.length;a++){var i=e[a],A=[],o=i[0],s=i[1];A.push(o,s);for(var l=2;l<i.length;){var u=i[l++],f=i[l++],c=i[l++],h=i[l++],v=i[l++],d=i[l++];Ow(o,s,u,f,c,h,v,d,A,t),o=v,s=d}n.push(A)}return n}function zH(r,t,e){var n=r[t],a=r[1-t],i=Math.abs(n/a),A=Math.ceil(Math.sqrt(i*e)),o=Math.floor(e/A);o===0&&(o=1,A=e);for(var s=[],l=0;l<A;l++)s.push(o);var u=A*o,f=e-u;if(f>0)for(var l=0;l<f;l++)s[l%A]+=1;return s}function RE(r,t,e){for(var n=r.r0,a=r.r,i=r.startAngle,A=r.endAngle,o=Math.abs(A-i),s=o*a,l=a-n,u=s>Math.abs(l),f=zH([s,l],u?0:1,t),c=(u?o:l)/f.length,h=0;h<f.length;h++)for(var v=(u?l:o)/f[h],d=0;d<f[h];d++){var p={};u?(p.startAngle=i+c*h,p.endAngle=i+c*(h+1),p.r0=n+v*d,p.r=n+v*(d+1)):(p.startAngle=i+v*d,p.endAngle=i+v*(d+1),p.r0=n+c*h,p.r=n+c*(h+1)),p.clockwise=r.clockwise,p.cx=r.cx,p.cy=r.cy,e.push(p)}}function eat(r,t,e){for(var n=r.width,a=r.height,i=n>a,A=zH([n,a],i?0:1,t),o=i?"width":"height",s=i?"height":"width",l=i?"x":"y",u=i?"y":"x",f=r[o]/A.length,c=0;c<A.length;c++)for(var h=r[s]/A[c],v=0;v<A[c];v++){var d={};d[l]=c*f,d[u]=v*h,d[o]=f,d[s]=h,d.x+=r.x,d.y+=r.y,e.push(d)}}function HE(r,t,e,n){return r*n-e*t}function rat(r,t,e,n,a,i,A,o){var s=e-r,l=n-t,u=A-a,f=o-i,c=HE(u,f,s,l);if(Math.abs(c)<1e-6)return null;var h=r-a,v=t-i,d=HE(h,v,u,f)/c;return d<0||d>1?null:new It(d*s+r,d*l+t)}function nat(r,t,e){var n=new It;It.sub(n,e,t),n.normalize();var a=new It;It.sub(a,r,t);var i=a.dot(n);return i}function $o(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function aat(r,t,e){for(var n=r.length,a=[],i=0;i<n;i++){var A=r[i],o=r[(i+1)%n],s=rat(A[0],A[1],o[0],o[1],t.x,t.y,e.x,e.y);s&&a.push({projPt:nat(s,t,e),pt:s,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(p,g){return p.projPt-g.projPt});var l=a[0],u=a[a.length-1];if(u.idx<l.idx){var f=l;l=u,u=f}for(var c=[l.pt.x,l.pt.y],h=[u.pt.x,u.pt.y],v=[c],d=[h],i=l.idx+1;i<=u.idx;i++)$o(v,r[i].slice());$o(v,h),$o(v,c);for(var i=u.idx+1;i<=l.idx+n;i++)$o(d,r[i%n].slice());return $o(d,c),$o(d,h),[{points:v},{points:d}]}function OE(r){var t=r.points,e=[],n=[];zd(t,e,n);var a=new Dt(e[0],e[1],n[0]-e[0],n[1]-e[1]),i=a.width,A=a.height,o=a.x,s=a.y,l=new It,u=new It;return i>A?(l.x=u.x=o+i/2,l.y=s,u.y=s+A):(l.y=u.y=s+A/2,l.x=o,u.x=o+i),aat(t,l,u)}function sd(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);sd(r,i[0],a,n),sd(r,i[1],e-a,n)}return n}function iat(r,t){for(var e=[],n=0;n<t;n++)e.push(o_(r));return e}function Aat(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function oat(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function sat(r,t){var e=[],n=r.shape,a;switch(r.type){case"rect":eat(n,t,e),a=Nt;break;case"sector":RE(n,t,e),a=Cr;break;case"circle":RE({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),a=Cr;break;default:var i=r.getComputedTransform(),A=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,o=Y(tat(r.getUpdatedPathProxy(),A),function(g){return oat(g)}),s=o.length;if(s===0)sd(OE,{points:o[0]},t,e);else if(s===t)for(var l=0;l<s;l++)e.push({points:o[l]});else{var u=0,f=Y(o,function(g){var y=[],m=[];zd(g,y,m);var w=(m[1]-y[1])*(m[0]-y[0]);return u+=w,{poly:g,area:w}});f.sort(function(g,y){return y.area-g.area});for(var c=t,l=0;l<s;l++){var h=f[l];if(c<=0)break;var v=l===s-1?c:Math.ceil(h.area/u*t);v<0||(sd(OE,{points:h.poly},v,e),c-=v)}}a=Sr;break}if(!a)return iat(r,t);for(var d=[],l=0;l<e.length;l++){var p=new a;p.setShape(e[l]),Aat(r,p),d.push(p)}return d}function lat(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var a=[],i=[],A=e<n?r:t,o=Math.min(e,n),s=Math.abs(n-e)/6,l=(o-2)/6,u=Math.ceil(s/l)+1,f=[A[0],A[1]],c=s,h=2;h<o;){var v=A[h-2],d=A[h-1],p=A[h++],g=A[h++],y=A[h++],m=A[h++],w=A[h++],_=A[h++];if(c<=0){f.push(p,g,y,m,w,_);continue}for(var B=Math.min(c,u-1)+1,C=1;C<=B;C++){var S=C/B;Wi(v,p,y,w,S,a),Wi(d,g,m,_,S,i),v=a[3],d=i[3],f.push(a[1],i[1],a[2],i[2],v,d),p=a[5],g=i[5],y=a[6],m=i[6]}c-=B-1}return A===r?[f,t]:[r,f]}function kE(r,t){for(var e=r.length,n=r[e-2],a=r[e-1],i=[],A=0;A<t.length;)i[A++]=n,i[A++]=a;return i}function uat(r,t){for(var e,n,a,i=[],A=[],o=0;o<Math.max(r.length,t.length);o++){var s=r[o],l=t[o],u=void 0,f=void 0;s?l?(e=lat(s,l),u=e[0],f=e[1],n=u,a=f):(f=kE(a||s,s),u=s):(u=kE(n||l,l),f=l),i.push(u),A.push(f)}return[i,A]}function NE(r){for(var t=0,e=0,n=0,a=r.length,i=0,A=a-2;i<a;A=i,i+=2){var o=r[A],s=r[A+1],l=r[i],u=r[i+1],f=o*u-l*s;t+=f,e+=(o+l)*f,n+=(s+u)*f}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function fat(r,t,e,n){for(var a=(r.length-2)/6,i=1/0,A=0,o=r.length,s=o-2,l=0;l<a;l++){for(var u=l*6,f=0,c=0;c<o;c+=2){var h=c===0?u:(u+c-2)%s+2,v=r[h]-e[0],d=r[h+1]-e[1],p=t[c]-n[0],g=t[c+1]-n[1],y=p-v,m=g-d;f+=y*y+m*m}f<i&&(i=f,A=l)}return A}function cat(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 hat(r,t,e,n){for(var a=[],i,A=0;A<r.length;A++){var o=r[A],s=t[A],l=NE(o),u=NE(s);i==null&&(i=l[2]<0!=u[2]<0);var f=[],c=[],h=0,v=1/0,d=[],p=o.length;i&&(o=cat(o));for(var g=fat(o,s,l,u)*6,y=p-2,m=0;m<y;m+=2){var w=(g+m)%y+2;f[m+2]=o[w]-l[0],f[m+3]=o[w+1]-l[1]}f[0]=o[g]-l[0],f[1]=o[g+1]-l[1];for(var _=n/e,B=-n/2;B<=n/2;B+=_){for(var C=Math.sin(B),S=Math.cos(B),x=0,m=0;m<o.length;m+=2){var b=f[m],I=f[m+1],F=s[m]-u[0],E=s[m+1]-u[1],D=F*S-E*C,Q=F*C+E*S;d[m]=D,d[m+1]=Q;var M=D-b,R=Q-I;x+=M*M+R*R}if(x<v){v=x,h=B;for(var P=0;P<d.length;P++)c[P]=d[P]}}a.push({from:f,to:c,fromCp:l,toCp:u,rotation:-h})}return a}function ld(r){return r.__isCombineMorphing}var WH="__mOriginal_";function ud(r,t,e){var n=WH+t,a=r[n]||r[t];r[n]||(r[n]=r[t]);var i=e.replace,A=e.after,o=e.before;r[t]=function(){var s=arguments,l;return o&&o.apply(this,s),i?l=i.apply(this,s):l=a.apply(this,s),A&&A.apply(this,s),l}}function Ru(r,t){var e=WH+t;r[e]&&(r[t]=r[e],r[e]=null)}function VE(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],a=0;a<n.length;){var i=n[a],A=n[a+1];n[a++]=t[0]*i+t[2]*A+t[4],n[a++]=t[1]*i+t[3]*A+t[5]}}function XH(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=uat(Hw(e),Hw(n)),i=a[0],A=a[1],o=r.getComputedTransform(),s=t.getComputedTransform();function l(){this.transform=null}o&&VE(i,o),s&&VE(A,s),ud(t,"updateTransform",{replace:l}),t.transform=null;var u=hat(i,A,10,Math.PI),f=[];ud(t,"buildPath",{replace:function(c){for(var h=t.__morphT,v=1-h,d=[],p=0;p<u.length;p++){var g=u[p],y=g.from,m=g.to,w=g.rotation*h,_=g.fromCp,B=g.toCp,C=Math.sin(w),S=Math.cos(w);Oh(d,_,B,h);for(var x=0;x<y.length;x+=2){var b=y[x],I=y[x+1],F=m[x],E=m[x+1],D=b*v+F*h,Q=I*v+E*h;f[x]=D*S-Q*C+d[0],f[x+1]=D*C+Q*S+d[1]}var M=f[0],R=f[1];c.moveTo(M,R);for(var x=2;x<y.length;){var F=f[x++],E=f[x++],P=f[x++],O=f[x++],G=f[x++],X=f[x++];M===F&&R===E&&P===G&&O===X?c.lineTo(G,X):c.bezierCurveTo(F,E,P,O,G,X),M=G,R=X}}}})}function GC(r,t,e){if(!r||!t)return t;var n=e.done,a=e.during;XH(r,t),t.__morphT=0;function i(){Ru(t,"buildPath"),Ru(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},gt({during:function(A){t.dirtyShape(),a&&a(A)},done:function(){i(),n&&n()}},e)),t}function vat(r,t,e,n,a,i){var A=16;r=a===e?0:Math.round(32767*(r-e)/(a-e)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var o=0,s,l=(1<<A)/2;l>0;l/=2){var u=0,f=0;(r&l)>0&&(u=1),(t&l)>0&&(f=1),o+=l*l*(3*u^f),f===0&&(u===1&&(r=l-1-r,t=l-1-t),s=r,r=t,t=s)}return o}function fd(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=Y(r,function(o){var s=o.getBoundingRect(),l=o.getComputedTransform(),u=s.x+s.width/2+(l?l[4]:0),f=s.y+s.height/2+(l?l[5]:0);return t=Math.min(u,t),e=Math.min(f,e),n=Math.max(u,n),a=Math.max(f,a),[u,f]}),A=Y(i,function(o,s){return{cp:o,z:vat(o[0],o[1],t,e,n,a),path:r[s]}});return A.sort(function(o,s){return o.z-s.z}).map(function(o){return o.path})}function YH(r){return sat(r.path,r.count)}function kw(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dat(r,t,e){var n=[];function a(_){for(var B=0;B<_.length;B++){var C=_[B];ld(C)?a(C.childrenRef()):C instanceof Mt&&n.push(C)}}a(r);var i=n.length;if(!i)return kw();var A=e.dividePath||YH,o=A({path:t,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),kw();n=fd(n),o=fd(o);for(var s=e.done,l=e.during,u=e.individualDelay,f=new La,c=0;c<i;c++){var h=n[c],v=o[c];v.parent=t,v.copyTransform(f),u||XH(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function d(_){for(var B=0;B<o.length;B++)o[B].addSelfToZr(_)}ud(t,"addSelfToZr",{after:function(_){d(_)}}),ud(t,"removeSelfFromZr",{after:function(_){for(var B=0;B<o.length;B++)o[B].removeSelfFromZr(_)}});function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Ru(t,"addSelfToZr"),Ru(t,"removeSelfFromZr")}var g=o.length;if(u)for(var y=g,m=function(){y--,y===0&&(p(),s&&s())},c=0;c<g;c++){var w=u?gt({delay:(e.delay||0)+u(c,g,n[c],o[c]),done:m},e):e;GC(n[c],o[c],w)}else t.__morphT=0,t.animateTo({__morphT:1},gt({during:function(_){for(var B=0;B<g;B++){var C=o[B];C.__morphT=t.__morphT,C.dirtyShape()}l&&l(_)},done:function(){p();for(var _=0;_<r.length;_++)Ru(r[_],"updateTransform");s&&s()}},e));return t.__zr&&d(t.__zr),{fromIndividuals:n,toIndividuals:o,count:g}}function pat(r,t,e){var n=t.length,a=[],i=e.dividePath||YH;function A(h){for(var v=0;v<h.length;v++){var d=h[v];ld(d)?A(d.childrenRef()):d instanceof Mt&&a.push(d)}}if(ld(r)){A(r.childrenRef());var o=a.length;if(o<n)for(var s=0,l=o;l<n;l++)a.push(o_(a[s++%o]));a.length=n}else{a=i({path:r,count:n});for(var u=r.getComputedTransform(),l=0;l<a.length;l++)a[l].setLocalTransform(u);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),kw()}a=fd(a),t=fd(t);for(var f=e.individualDelay,l=0;l<n;l++){var c=f?gt({delay:(e.delay||0)+f(l,n,a[l],t[l])},e):e;GC(a[l],t[l],c)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function GE(r){return K(r[0])}function KE(r,t){for(var e=[],n=r.length,a=0;a<n;a++)e.push({one:r[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,A=void 0;for(A=0;A<i;A++)e[A%n].many.push(t[a][A])}for(var o=0,a=n-1;a>=0;a--)if(!e[a].many.length){var s=e[o].many;if(s.length<=1)if(o)o=0;else return e;var i=s.length,l=Math.ceil(i/2);e[a].many=s.slice(l,i),e[o].many=s.slice(0,l),o++}return e}var gat={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 a=o_(r.path);a.setStyle("opacity",e),t.push(a)}return t},split:null};function hm(r,t,e,n,a,i){if(!r.length||!t.length)return;var A=qs("update",n,a);if(!(A&&A.duration>0))return;var o=n.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},A),l,u;GE(r)&&(l=r,u=t),GE(t)&&(l=t,u=r);function f(g,y,m,w,_){var B=g.many,C=g.one;if(B.length===1&&!_){var S=y?B[0]:C,x=y?C:B[0];if(ld(S))f({many:[S],one:x},!0,m,w,!0);else{var b=o?gt({delay:o(m,w)},s):s;GC(S,x,b),i(S,x,S,x,b)}}else for(var I=gt({dividePath:gat[e],individualDelay:o&&function(R,P,O,G){return o(R+m,w)}},s),F=y?dat(B,C,I):pat(C,B,I),E=F.fromIndividuals,D=F.toIndividuals,Q=E.length,M=0;M<Q;M++){var b=o?gt({delay:o(M,Q)},s):s;i(E[M],D[M],y?B[M]:g.one,y?g.one:B[M],b)}}for(var c=l?l===r:r.length>t.length,h=l?KE(u,l):KE(c?t:r,[c?r:t]),v=0,d=0;d<h.length;d++)v+=h[d].many.length;for(var p=0,d=0;d<h.length;d++)f(h[d],c,p,v),p+=h[d].many.length}function RA(r){if(!r)return[];if(K(r)){for(var t=[],e=0;e<r.length;e++)t.push(RA(r[e]));return t}var n=[];return r.traverse(function(a){a instanceof Mt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var ZH=1e4,yat=0,zE=1,WE=2,mat=Vt();function wat(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var a=r.getDimensionInfo(e[n]);if(a&&a.otherDims[t]===0)return e[n]}}function Bat(r,t,e){var n=r.getDimensionInfo(e),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,t);return a&&a.categories[i]||i+""}}function XE(r,t,e,n){var a=n?"itemChildGroupId":"itemGroupId",i=wat(r,a);if(i){var A=Bat(r,t,i);return A}var o=r.getRawDataItem(t),s=n?"childGroupId":"groupId";if(o&&o[s])return o[s]+"";if(!n)return e||r.getId(t)}function YE(r){var t=[];return T(r,function(e){var n=e.data,a=e.dataGroupId;if(!(n.count()>ZH))for(var i=n.getIndices(),A=0;A<i.length;A++)t.push({data:n,groupId:XE(n,A,a,!1),childGroupId:XE(n,A,a,!0),divide:e.divide,dataIndex:A})}),t}function vm(r,t,e){r.traverse(function(n){n instanceof Mt&&ue(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function dm(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Jo(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function _at(r,t,e){var n=qs("update",e,t);n&&r.traverse(function(a){if(a instanceof gn){var i=d3(a);i&&a.animateFrom({style:i},n)}})}function Cat(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var a=r[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function $H(r,t,e){var n=YE(r),a=YE(t);function i(m,w,_,B,C){(_||m)&&w.animateFrom({style:_&&_!==m?V(V({},_.style),m.style):m.style},C)}var A=!1,o=yat,s=ft(),l=ft();n.forEach(function(m){m.groupId&&s.set(m.groupId,!0),m.childGroupId&&l.set(m.childGroupId,!0)});for(var u=0;u<a.length;u++){var f=a[u].groupId;if(l.get(f)){o=zE;break}var c=a[u].childGroupId;if(c&&s.get(c)){o=WE;break}}function h(m,w){return function(_){var B=_.data,C=_.dataIndex;return w?B.getId(C):m?o===zE?_.childGroupId:_.groupId:o===WE?_.childGroupId:_.groupId}}var v=Cat(n,a),d={};if(!v)for(var u=0;u<a.length;u++){var p=a[u],g=p.data.getItemGraphicEl(p.dataIndex);g&&(d[g.id]=!0)}function y(m,w){var _=n[w],B=a[m],C=B.data.hostModel,S=_.data.getItemGraphicEl(_.dataIndex),x=B.data.getItemGraphicEl(B.dataIndex);if(S===x){x&&_at(x,B.dataIndex,C);return}S&&d[S.id]||x&&(Jo(x),S?(Jo(S),dm(S),A=!0,hm(RA(S),RA(x),B.divide,C,m,i)):vm(x,C,m))}new Ya(n,a,h(!0,v),h(!1,v),null,"multiple").update(y).updateManyToOne(function(m,w){var _=a[m],B=_.data,C=B.hostModel,S=B.getItemGraphicEl(_.dataIndex),x=Jt(Y(w,function(b){return n[b].data.getItemGraphicEl(n[b].dataIndex)}),function(b){return b&&b!==S&&!d[b.id]});S&&(Jo(S),x.length?(T(x,function(b){Jo(b),dm(b)}),A=!0,hm(RA(x),RA(S),_.divide,C,m,i)):vm(S,C,_.dataIndex))}).updateOneToMany(function(m,w){var _=n[w],B=_.data.getItemGraphicEl(_.dataIndex);if(!(B&&d[B.id])){var C=Jt(Y(m,function(x){return a[x].data.getItemGraphicEl(a[x].dataIndex)}),function(x){return x&&x!==B}),S=a[m[0]].data.hostModel;C.length&&(T(C,function(x){return Jo(x)}),B?(Jo(B),dm(B),A=!0,hm(RA(B),RA(C),_.divide,S,m[0],i)):T(C,function(x){return vm(x,S,m[0])}))}}).updateManyToMany(function(m,w){new Ya(w,m,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,B){y(m[_],w[B])}).execute()}).execute(),A&&T(t,function(m){var w=m.data,_=w.hostModel,B=_&&e.getViewOfSeriesModel(_),C=qs("update",_,0);B&&_.isAnimationEnabled()&&C&&C.duration>0&&B.group.traverse(function(S){S instanceof Mt&&!S.animators.length&&S.animateFrom({style:{opacity:0}},C)})})}function ZE(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function $E(r){return K(r)?r.sort().join(","):r}function _i(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Sat(r,t){var e=ft(),n=ft(),a=ft();return T(r.oldSeries,function(i,A){var o=r.oldDataGroupIds[A],s=r.oldData[A],l=ZE(i),u=$E(l);n.set(u,{dataGroupId:o,data:s}),K(l)&&T(l,function(f){a.set(f,{key:u,dataGroupId:o,data:s})})}),T(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var A=i.get("dataGroupId"),o=i.getData(),s=ZE(i),l=$E(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:_i(u.data),data:u.data}],newSeries:[{dataGroupId:A,divide:_i(o),data:o}]});else if(K(s)){var f=[];T(s,function(v){var d=n.get(v);d.data&&f.push({dataGroupId:d.dataGroupId,divide:_i(d.data),data:d.data})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{dataGroupId:A,data:o,divide:_i(o)}]})}else{var c=a.get(s);if(c){var h=e.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:_i(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({dataGroupId:A,data:o,divide:_i(o)})}}}}),e}function JE(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 xat(r,t,e,n){var a=[],i=[];T(qt(r.from),function(A){var o=JE(t.oldSeries,A);o>=0&&a.push({dataGroupId:t.oldDataGroupIds[o],data:t.oldData[o],divide:_i(t.oldData[o]),groupIdDim:A.dimension})}),T(qt(r.to),function(A){var o=JE(e.updatedSeries,A);if(o>=0){var s=e.updatedSeries[o].getData();i.push({dataGroupId:t.oldDataGroupIds[o],data:s,divide:_i(s),groupIdDim:A.dimension})}}),a.length>0&&i.length>0&&$H(a,i,n)}function bat(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){T(qt(n.seriesTransition),function(a){T(qt(a.to),function(i){for(var A=n.updatedSeries,o=0;o<A.length;o++)(i.seriesIndex!=null&&i.seriesIndex===A[o].seriesIndex||i.seriesId!=null&&i.seriesId===A[o].id)&&(A[o][$h]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var a=mat(e);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)T(qt(i),function(h){xat(h,a,n,e)});else{var A=Sat(a,n);T(A.keys(),function(h){var v=A.get(h);$H(v.oldSeries,v.newSeries,e)})}T(n.updatedSeries,function(h){h[$h]&&(h[$h]=!1)})}for(var o=t.getSeries(),s=a.oldSeries=[],l=a.oldDataGroupIds=[],u=a.oldData=[],f=0;f<o.length;f++){var c=o[f].getData();c.count()<ZH&&(s.push(o[f]),l.push(o[f].get("dataGroupId")),u.push(c))}})}Lt([M6]);Lt([F6]);Lt([tY,dY,xY,aZ,dZ,e9,F9,c7,M7,k7,Z7,G$,vJ,xJ,NJ,zJ,eq,sq,mq,xq,Uq,yj]);Lt(Rj);Lt(ltt);Lt(YP);Lt(_tt);Lt(LR);Lt(btt);Lt(Utt);Lt(Cet);Lt(Get);Lt(Jf);Lt(Art);Lt(lrt);Lt(mrt);Lt(brt);Lt(Qrt);Lt(Hrt);Lt(Yrt);Lt(cnt);Lt(PH);Lt(RH);Lt(Qnt);Lt(VH);Lt(GH);Lt(Rnt);Lt($nt);Lt(jnt);Lt(bat);Lt(ZX);const JH=30;function Tat(r,t){if(r.toLowerCase()=="windows")return{name:"Windows",icon:"/svg/system-windows.svg"};if(r.toLowerCase()=="darwin")return{name:"macOS",icon:"/svg/system-darwin.svg"};{const e={alpine:{name:"Alpine Linux",icon:"/svg/system-alpine.svg"},arch:{name:"Arch Linux",icon:"/svg/system-archlinux.svg"},centos:{name:"CentOS",icon:"/svg/system-centos.svg"},debian:{name:"Debian",icon:"/svg/system-debian.svg"},deepin:{name:"Deepin",icon:"/svg/system-deepin.svg"},elementary:{name:"elementary OS",icon:"/svg/system-elementary.svg"},fedora:{name:"Fedora",icon:"/svg/system-fedora.svg"},kali:{name:"Kali Linux",icon:"/svg/system-kali.svg"},manjaro:{name:"Manjaro",icon:"/svg/system-manjaro.svg"},opensuse:{name:"openSUSE",icon:"/svg/system-opensuse.svg"},redhat:{name:"Red Hat",icon:"/svg/system-redhat.svg"},suse:{name:"SUSE",icon:"/svg/system-opensuse.svg"},ubuntu:{name:"Ubuntu",icon:"/svg/system-ubuntu.svg"},zorin:{name:"Zorin OS",icon:"/svg/system-zorin.svg"}};t=t.toLowerCase();for(const n in e)if(t.includes(n))return e[n];return{name:r,icon:"/svg/system-linux.svg"}}}function av(r,t=null,e=null){if(r==0)return"0";if(r<1024)return r.toFixed(0)+(e||"");const n=["","K","M","G","T","P","E"];let a=t?n.indexOf(t):Math.floor(Math.log2(r)/10);return(r/Math.pow(1024,a)).toFixed(1)+(e?n[a]+e:"")}function Iat(r){const t=["","K","M","G","T","P","E"];let e=Math.floor(Math.log2(r)/10);return{num:r/Math.pow(1024,e),unit:t[e]}}function Nw(r,t,e="iB"){const n=Iat(t);return`${av(r,n.unit)}/${n.num.toFixed(1)}${n.unit}${e}`}function uh(r,t=!1){const e=new Date(r*1e3),n=e.toLocaleDateString(),a=e.toLocaleTimeString();return t?a:`${n} ${a}`}function iv(r,t=!1){return t?"#9ca3af":r<60?"#22c55e":r<80?"#eab308":r<90?"#f97316":"#ef4444"}function Av(r,t=!1){return t?"#e5e7eb":r<60?"#bbf7d0":r<80?"#fef08a":r<90?"#fed7aa":"#fecaca"}function qE(r){const t=r,e=Math.floor(t/86400),n=Math.floor(t%86400/3600).toString().padStart(2,"0"),a=Math.floor(t%3600/60).toString().padStart(2,"0"),i=Math.floor(t%60).toString().padStart(2,"0");return`${e}:${n}:${a}:${i}`}function Fat(r){const t=Math.floor(r/86400),e=Math.floor(r%86400/3600),n=Math.floor(r%3600/60),a=Math.floor(r%60);return t>0?`${t}d`:e>0?`${e}h`:n>0?`${n}m`:`${a}s`}const Eat={class:"online-status"},Dat=Bo({__name:"OutlineAnime",props:{color:{},spreadColor:{},isOnline:{type:Boolean}},setup(r){const t=r;return(e,n)=>(Er(),Fn("div",Eat,[St("div",{class:"dot",style:Ga({backgroundColor:t.color})},null,4),e.isOnline?(Er(),Fn("div",{key:0,class:"pulse",style:Ga({backgroundColor:t.spreadColor})},null,4)):jQ("",!0)]))}}),Qat=Ws(Dat,[["__scopeId","data-v-311f3e51"]]),Lat={class:"disk"},Mat={class:"hover-text"},Uat={class:"left-text"},Pat={class:"disk-text"},Rat={class:"right-text"},Hat={class:"disk-text"},Oat={class:"progress-bar",style:{display:"flex","align-items":"center"}},kat={style:{color:"var(--text-color-2)"}},Nat={class:"percentage",style:{"text-align":"right"}},Vat=Bo({__name:"Disk",props:{mountpoint:{},device:{},used:{},total:{},fstype:{}},setup(r){const t=r,e=iv(t.used/t.total*100),n=Av(t.used/t.total*100);return(a,i)=>(Er(),Fn("div",Lat,[St("div",Mat,[St("div",Uat,[St("span",Pat,Ce(t.mountpoint),1)]),St("div",Rat,[St("span",Hat,Ce(la(Nw)(t.used,t.total))+" ["+Ce(t.fstype)+"]",1)])]),St("div",Oat,[St("div",{class:"disk-total",style:Ga([{backgroundColor:la(n)},{"margin-right":"0.5rem"}])},[St("div",{class:"disk-used",style:Ga({width:t.used/t.total*100+"%",backgroundColor:la(e)})},null,4)],4),St("div",kat,[St("div",Nat,Ce((t.used/t.total*100).toFixed(1))+"%",1)])])]))}}),Gat=Ws(Vat,[["__scopeId","data-v-5ea12808"]]);/*!
|
||
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
||
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
||
* Released under MIT License
|
||
*//*! *****************************************************************************
|
||
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 Vw=function(r,t){return Vw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Vw(r,t)};function Nn(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Vw(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Gw=function(){return Gw=Object.assign||function(t){for(var e,n=1,a=arguments.length;n<a;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Gw.apply(this,arguments)};function hr(r,t,e,n){function a(i){return i instanceof e?i:new e(function(A){A(i)})}return new(e||(e=Promise))(function(i,A){function o(u){try{l(n.next(u))}catch(f){A(f)}}function s(u){try{l(n.throw(u))}catch(f){A(f)}}function l(u){u.done?i(u.value):a(u.value).then(o,s)}l((n=n.apply(r,[])).next())})}function er(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,A;return A={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function o(l){return function(u){return s([l,u])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,a=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){e.label=l[1];break}if(l[0]===6&&e.label<i[1]){e.label=i[1],i=l;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(l);break}i[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(r,e)}catch(u){l=[6,u],a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function fh(r,t,e){if(arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return r.concat(i||t)}var qa=function(){function r(t,e,n,a){this.left=t,this.top=e,this.width=n,this.height=a}return r.prototype.add=function(t,e,n,a){return new r(this.left+t,this.top+e,this.width+n,this.height+a)},r.fromClientRect=function(t,e){return new r(e.left+t.windowBounds.left,e.top+t.windowBounds.top,e.width,e.height)},r.fromDOMRectList=function(t,e){var n=Array.from(e).find(function(a){return a.width!==0});return n?new r(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height):r.EMPTY},r.EMPTY=new r(0,0,0,0),r}(),_p=function(r,t){return qa.fromClientRect(r,t.getBoundingClientRect())},Kat=function(r){var t=r.body,e=r.documentElement;if(!t||!e)throw new Error("Unable to get document size");var n=Math.max(Math.max(t.scrollWidth,e.scrollWidth),Math.max(t.offsetWidth,e.offsetWidth),Math.max(t.clientWidth,e.clientWidth)),a=Math.max(Math.max(t.scrollHeight,e.scrollHeight),Math.max(t.offsetHeight,e.offsetHeight),Math.max(t.clientHeight,e.clientHeight));return new qa(0,0,n,a)},Cp=function(r){for(var t=[],e=0,n=r.length;e<n;){var a=r.charCodeAt(e++);if(a>=55296&&a<=56319&&e<n){var i=r.charCodeAt(e++);(i&64512)===56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),e--)}else t.push(a)}return t},Se=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var e=r.length;if(!e)return"";for(var n=[],a=-1,i="";++a<e;){var A=r[a];A<=65535?n.push(A):(A-=65536,n.push((A>>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},jE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zat=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ch=0;ch<jE.length;ch++)zat[jE.charCodeAt(ch)]=ch;var tD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",su=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var hh=0;hh<tD.length;hh++)su[tD.charCodeAt(hh)]=hh;var Wat=function(r){var t=r.length*.75,e=r.length,n,a=0,i,A,o,s;r[r.length-1]==="="&&(t--,r[r.length-2]==="="&&t--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<e;n+=4)i=su[r.charCodeAt(n)],A=su[r.charCodeAt(n+1)],o=su[r.charCodeAt(n+2)],s=su[r.charCodeAt(n+3)],u[a++]=i<<2|A>>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},Xat=function(r){for(var t=r.length,e=[],n=0;n<t;n+=2)e.push(r[n+1]<<8|r[n]);return e},Yat=function(r){for(var t=r.length,e=[],n=0;n<t;n+=4)e.push(r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n]);return e},so=5,KC=11,pm=2,Zat=KC-so,qH=65536>>so,$at=1<<so,gm=$at-1,Jat=1024>>so,qat=qH+Jat,jat=qat,tit=32,eit=jat+tit,rit=65536>>KC,nit=1<<Zat,ait=nit-1,eD=function(r,t,e){return r.slice?r.slice(t,e):new Uint16Array(Array.prototype.slice.call(r,t,e))},iit=function(r,t,e){return r.slice?r.slice(t,e):new Uint32Array(Array.prototype.slice.call(r,t,e))},Ait=function(r,t){var e=Wat(r),n=Array.isArray(e)?Yat(e):new Uint32Array(e),a=Array.isArray(e)?Xat(e):new Uint16Array(e),i=24,A=eD(a,i/2,n[4]/2),o=n[5]===2?eD(a,(i+n[4])/2):iit(n,Math.ceil((i+n[4])/4));return new oit(n[0],n[1],n[2],n[3],A,o)},oit=function(){function r(t,e,n,a,i,A){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=a,this.index=i,this.data=A}return r.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>so],e=(e<<pm)+(t&gm),this.data[e];if(t<=65535)return e=this.index[qH+(t-55296>>so)],e=(e<<pm)+(t&gm),this.data[e];if(t<this.highStart)return e=eit-rit+(t>>KC),e=this.index[e],e+=t>>so&ait,e=this.index[e],e=(e<<pm)+(t&gm),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),rD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sit=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var vh=0;vh<rD.length;vh++)sit[rD.charCodeAt(vh)]=vh;var lit="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",nD=50,uit=1,jH=2,tO=3,fit=4,cit=5,aD=7,eO=8,iD=9,Mi=10,Kw=11,AD=12,zw=13,hit=14,lu=15,Ww=16,dh=17,Kl=18,vit=19,oD=20,Xw=21,zl=22,ym=23,qo=24,kr=25,uu=26,fu=27,jo=28,dit=29,VA=30,pit=31,ph=32,gh=33,Yw=34,Zw=35,$w=36,xf=37,Jw=38,ov=39,sv=40,mm=41,rO=42,git=43,yit=[9001,65288],nO="!",Wt="×",yh="÷",qw=Ait(lit),Ia=[VA,$w],jw=[uit,jH,tO,cit],aO=[Mi,eO],sD=[fu,uu],mit=jw.concat(aO),lD=[Jw,ov,sv,Yw,Zw],wit=[lu,zw],Bit=function(r,t){t===void 0&&(t="strict");var e=[],n=[],a=[];return r.forEach(function(i,A){var o=qw.get(i);if(o>nD?(a.push(!0),o-=nD):a.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(A),e.push(Ww);if(o===fit||o===Kw){if(A===0)return n.push(A),e.push(VA);var s=e[A-1];return mit.indexOf(s)===-1?(n.push(n[A-1]),e.push(s)):(n.push(A),e.push(VA))}if(n.push(A),o===pit)return e.push(t==="strict"?Xw:xf);if(o===rO||o===dit)return e.push(VA);if(o===git)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(xf):e.push(VA);e.push(o)}),[n,e,a]},wm=function(r,t,e,n){var a=n[e];if(Array.isArray(r)?r.indexOf(a)!==-1:r===a)for(var i=e;i<=n.length;){i++;var A=n[i];if(A===t)return!0;if(A!==Mi)break}if(a===Mi)for(var i=e;i>0;){i--;var o=n[i];if(Array.isArray(r)?r.indexOf(o)!==-1:r===o)for(var s=e;s<=n.length;){s++;var A=n[s];if(A===t)return!0;if(A!==Mi)break}if(o!==Mi)break}return!1},uD=function(r,t){for(var e=r;e>=0;){var n=t[e];if(n===Mi)e--;else return n}return 0},_it=function(r,t,e,n,a){if(e[n]===0)return Wt;var i=n-1;if(Array.isArray(a)&&a[i]===!0)return Wt;var A=i-1,o=i+1,s=t[i],l=A>=0?t[A]:0,u=t[o];if(s===jH&&u===tO)return Wt;if(jw.indexOf(s)!==-1)return nO;if(jw.indexOf(u)!==-1||aO.indexOf(u)!==-1)return Wt;if(uD(i,t)===eO)return yh;if(qw.get(r[i])===Kw||(s===ph||s===gh)&&qw.get(r[o])===Kw||s===aD||u===aD||s===iD||[Mi,zw,lu].indexOf(s)===-1&&u===iD||[dh,Kl,vit,qo,jo].indexOf(u)!==-1||uD(i,t)===zl||wm(ym,zl,i,t)||wm([dh,Kl],Xw,i,t)||wm(AD,AD,i,t))return Wt;if(s===Mi)return yh;if(s===ym||u===ym)return Wt;if(u===Ww||s===Ww)return yh;if([zw,lu,Xw].indexOf(u)!==-1||s===hit||l===$w&&wit.indexOf(s)!==-1||s===jo&&u===$w||u===oD||Ia.indexOf(u)!==-1&&s===kr||Ia.indexOf(s)!==-1&&u===kr||s===fu&&[xf,ph,gh].indexOf(u)!==-1||[xf,ph,gh].indexOf(s)!==-1&&u===uu||Ia.indexOf(s)!==-1&&sD.indexOf(u)!==-1||sD.indexOf(s)!==-1&&Ia.indexOf(u)!==-1||[fu,uu].indexOf(s)!==-1&&(u===kr||[zl,lu].indexOf(u)!==-1&&t[o+1]===kr)||[zl,lu].indexOf(s)!==-1&&u===kr||s===kr&&[kr,jo,qo].indexOf(u)!==-1)return Wt;if([kr,jo,qo,dh,Kl].indexOf(u)!==-1)for(var f=i;f>=0;){var c=t[f];if(c===kr)return Wt;if([jo,qo].indexOf(c)!==-1)f--;else break}if([fu,uu].indexOf(u)!==-1)for(var f=[dh,Kl].indexOf(s)!==-1?A:i;f>=0;){var c=t[f];if(c===kr)return Wt;if([jo,qo].indexOf(c)!==-1)f--;else break}if(Jw===s&&[Jw,ov,Yw,Zw].indexOf(u)!==-1||[ov,Yw].indexOf(s)!==-1&&[ov,sv].indexOf(u)!==-1||[sv,Zw].indexOf(s)!==-1&&u===sv||lD.indexOf(s)!==-1&&[oD,uu].indexOf(u)!==-1||lD.indexOf(u)!==-1&&s===fu||Ia.indexOf(s)!==-1&&Ia.indexOf(u)!==-1||s===qo&&Ia.indexOf(u)!==-1||Ia.concat(kr).indexOf(s)!==-1&&u===zl&&yit.indexOf(r[o])===-1||Ia.concat(kr).indexOf(u)!==-1&&s===Kl)return Wt;if(s===mm&&u===mm){for(var h=e[i],v=1;h>0&&(h--,t[h]===mm);)v++;if(v%2!==0)return Wt}return s===ph&&u===gh?Wt:yh},Cit=function(r,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=Bit(r,t.lineBreak),n=e[0],a=e[1],i=e[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(a=a.map(function(o){return[kr,VA,rO].indexOf(o)!==-1?xf:o}));var A=t.wordBreak==="keep-all"?i.map(function(o,s){return o&&r[s]>=19968&&r[s]<=40959}):void 0;return[n,a,A]},Sit=function(){function r(t,e,n,a){this.codePoints=t,this.required=e===nO,this.start=n,this.end=a}return r.prototype.slice=function(){return Se.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),xit=function(r,t){var e=Cp(r),n=Cit(e,t),a=n[0],i=n[1],A=n[2],o=e.length,s=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var u=Wt;l<o&&(u=_it(e,i,a,++l,A))===Wt;);if(u!==Wt||l===o){var f=new Sit(e,u,s,l);return s=l,{value:f,done:!1}}return{done:!0,value:null}}}},bit=1,Tit=2,qf=4,fD=8,cd=10,cD=47,Hu=92,Iit=9,Fit=32,mh=34,Wl=61,Eit=35,Dit=36,Qit=37,wh=39,Bh=40,Xl=41,Lit=95,Ir=45,Mit=33,Uit=60,Pit=62,Rit=64,Hit=91,Oit=93,kit=61,Nit=123,_h=63,Vit=125,hD=124,Git=126,Kit=128,vD=65533,Bm=42,JA=43,zit=44,Wit=58,Xit=59,bf=46,Yit=0,Zit=8,$it=11,Jit=14,qit=31,jit=127,Zn=-1,iO=48,AO=97,oO=101,tAt=102,eAt=117,rAt=122,sO=65,lO=69,uO=70,nAt=85,aAt=90,nr=function(r){return r>=iO&&r<=57},iAt=function(r){return r>=55296&&r<=57343},ts=function(r){return nr(r)||r>=sO&&r<=uO||r>=AO&&r<=tAt},AAt=function(r){return r>=AO&&r<=rAt},oAt=function(r){return r>=sO&&r<=aAt},sAt=function(r){return AAt(r)||oAt(r)},lAt=function(r){return r>=Kit},Ch=function(r){return r===cd||r===Iit||r===Fit},hd=function(r){return sAt(r)||lAt(r)||r===Lit},dD=function(r){return hd(r)||nr(r)||r===Ir},uAt=function(r){return r>=Yit&&r<=Zit||r===$it||r>=Jit&&r<=qit||r===jit},Ci=function(r,t){return r!==Hu?!1:t!==cd},Sh=function(r,t,e){return r===Ir?hd(t)||Ci(t,e):hd(r)?!0:!!(r===Hu&&Ci(r,t))},_m=function(r,t,e){return r===JA||r===Ir?nr(t)?!0:t===bf&&nr(e):nr(r===bf?t:r)},fAt=function(r){var t=0,e=1;(r[t]===JA||r[t]===Ir)&&(r[t]===Ir&&(e=-1),t++);for(var n=[];nr(r[t]);)n.push(r[t++]);var a=n.length?parseInt(Se.apply(void 0,n),10):0;r[t]===bf&&t++;for(var i=[];nr(r[t]);)i.push(r[t++]);var A=i.length,o=A?parseInt(Se.apply(void 0,i),10):0;(r[t]===lO||r[t]===oO)&&t++;var s=1;(r[t]===JA||r[t]===Ir)&&(r[t]===Ir&&(s=-1),t++);for(var l=[];nr(r[t]);)l.push(r[t++]);var u=l.length?parseInt(Se.apply(void 0,l),10):0;return e*(a+o*Math.pow(10,-A))*Math.pow(10,s*u)},cAt={type:2},hAt={type:3},vAt={type:4},dAt={type:13},pAt={type:8},gAt={type:21},yAt={type:9},mAt={type:10},wAt={type:11},BAt={type:12},_At={type:14},xh={type:23},CAt={type:1},SAt={type:25},xAt={type:24},bAt={type:26},TAt={type:27},IAt={type:28},FAt={type:29},EAt={type:31},tB={type:32},fO=function(){function r(){this._value=[]}return r.prototype.write=function(t){this._value=this._value.concat(Cp(t))},r.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==tB;)t.push(e),e=this.consumeToken();return t},r.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case mh:return this.consumeStringToken(mh);case Eit:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(dD(e)||Ci(n,a)){var i=Sh(e,n,a)?Tit:bit,A=this.consumeName();return{type:5,value:A,flags:i}}break;case Dit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),dAt;break;case wh:return this.consumeStringToken(wh);case Bh:return cAt;case Xl:return hAt;case Bm:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),_At;break;case JA:if(_m(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case zit:return vAt;case Ir:var o=t,s=this.peekCodePoint(0),l=this.peekCodePoint(1);if(_m(o,s,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Sh(o,s,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(s===Ir&&l===Pit)return this.consumeCodePoint(),this.consumeCodePoint(),xAt;break;case bf:if(_m(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case cD:if(this.peekCodePoint(0)===Bm)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===Bm&&(u=this.consumeCodePoint(),u===cD))return this.consumeToken();if(u===Zn)return this.consumeToken()}break;case Wit:return bAt;case Xit:return TAt;case Uit:if(this.peekCodePoint(0)===Mit&&this.peekCodePoint(1)===Ir&&this.peekCodePoint(2)===Ir)return this.consumeCodePoint(),this.consumeCodePoint(),SAt;break;case Rit:var f=this.peekCodePoint(0),c=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Sh(f,c,h)){var A=this.consumeName();return{type:7,value:A}}break;case Hit:return IAt;case Hu:if(Ci(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case Oit:return FAt;case kit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),pAt;break;case Nit:return wAt;case Vit:return BAt;case eAt:case nAt:var v=this.peekCodePoint(0),d=this.peekCodePoint(1);return v===JA&&(ts(d)||d===_h)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case hD:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),yAt;if(this.peekCodePoint(0)===hD)return this.consumeCodePoint(),gAt;break;case Git:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),mAt;break;case Zn:return tB}return Ch(t)?(this.consumeWhiteSpace(),EAt):nr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):hd(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Se(t)}},r.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},r.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},r.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},r.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ts(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;e===_h&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(Se.apply(void 0,t.map(function(s){return s===_h?iO:s})),16),i=parseInt(Se.apply(void 0,t.map(function(s){return s===_h?uO:s})),16);return{type:30,start:a,end:i}}var A=parseInt(Se.apply(void 0,t),16);if(this.peekCodePoint(0)===Ir&&ts(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var o=[];ts(e)&&o.length<6;)o.push(e),e=this.consumeCodePoint();var i=parseInt(Se.apply(void 0,o),16);return{type:30,start:A,end:i}}else return{type:30,start:A,end:A}},r.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Bh?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Bh?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},r.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===wh||e===mh){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn||this.peekCodePoint(0)===Xl)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),xh)}for(;;){var a=this.consumeCodePoint();if(a===Zn||a===Xl)return{type:22,value:Se.apply(void 0,t)};if(Ch(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn||this.peekCodePoint(0)===Xl?(this.consumeCodePoint(),{type:22,value:Se.apply(void 0,t)}):(this.consumeBadUrlRemnants(),xh);if(a===mh||a===wh||a===Bh||uAt(a))return this.consumeBadUrlRemnants(),xh;if(a===Hu)if(Ci(a,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),xh;else t.push(a)}},r.prototype.consumeWhiteSpace=function(){for(;Ch(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Xl||t===Zn)return;Ci(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(t){for(var e=5e4,n="";t>0;){var a=Math.min(e,t);n+=Se.apply(void 0,this._value.splice(0,a)),t-=a}return this._value.shift(),n},r.prototype.consumeStringToken=function(t){var e="",n=0;do{var a=this._value[n];if(a===Zn||a===void 0||a===t)return e+=this.consumeStringSlice(n),{type:0,value:e};if(a===cd)return this._value.splice(0,n),CAt;if(a===Hu){var i=this._value[n+1];i!==Zn&&i!==void 0&&(i===cd?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ci(a,i)&&(e+=this.consumeStringSlice(n),e+=Se(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var t=[],e=qf,n=this.peekCodePoint(0);for((n===JA||n===Ir)&&t.push(this.consumeCodePoint());nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===bf&&nr(a))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=fD;nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===lO||n===oO)&&((a===JA||a===Ir)&&nr(i)||nr(a)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=fD;nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[fAt(t),e]},r.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),A=this.peekCodePoint(2);if(Sh(a,i,A)){var o=this.consumeName();return{type:15,number:e,flags:n,unit:o}}return a===Qit?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ts(t)){for(var e=Se(t);ts(this.peekCodePoint(0))&&e.length<6;)e+=Se(this.consumeCodePoint());Ch(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||iAt(n)||n>1114111?vD:n}return t===Zn?vD:t},r.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(dD(e))t+=Se(e);else if(Ci(e,this.peekCodePoint(0)))t+=Se(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),t}},r}(),cO=function(){function r(t){this._tokens=t}return r.create=function(t){var e=new fO;return e.write(t),new r(e.read())},r.parseValue=function(t){return r.create(t).parseComponentValue()},r.parseValues=function(t){return r.create(t).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===32)return t;t.push(e),t.push()}},r.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},r.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||QAt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?tB:t},r.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},r}(),jf=function(r){return r.type===15},ul=function(r){return r.type===17},le=function(r){return r.type===20},DAt=function(r){return r.type===0},eB=function(r,t){return le(r)&&r.value===t},hO=function(r){return r.type!==31},zs=function(r){return r.type!==31&&r.type!==4},Ba=function(r){var t=[],e=[];return r.forEach(function(n){if(n.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(e),e=[];return}n.type!==31&&e.push(n)}),e.length&&t.push(e),t},QAt=function(r,t){return t===11&&r.type===12||t===28&&r.type===29?!0:t===2&&r.type===3},qi=function(r){return r.type===17||r.type===15},Ee=function(r){return r.type===16||qi(r)},vO=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},Xe={type:17,number:0,flags:qf},zC={type:16,number:50,flags:qf},Ui={type:16,number:100,flags:qf},cu=function(r,t,e){var n=r[0],a=r[1];return[ve(n,t),ve(typeof a<"u"?a:n,e)]},ve=function(r,t){if(r.type===16)return r.number/100*t;if(jf(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},dO="deg",pO="grad",gO="rad",yO="turn",Sp={name:"angle",parse:function(r,t){if(t.type===15)switch(t.unit){case dO:return Math.PI*t.number/180;case pO:return Math.PI/200*t.number;case gO:return t.number;case yO:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},mO=function(r){return r.type===15&&(r.unit===dO||r.unit===pO||r.unit===gO||r.unit===yO)},wO=function(r){var t=r.filter(le).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xe,Xe];case"to top":case"bottom":return cn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xe,Ui];case"to right":case"left":return cn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ui,Ui];case"to bottom":case"top":return cn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ui,Xe];case"to left":case"right":return cn(270)}return 0},cn=function(r){return Math.PI*r/180},Ni={name:"color",parse:function(r,t){if(t.type===18){var e=LAt[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(r,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3);return Pi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3),A=t.value.substring(3,4);return Pi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(A+A,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6);return Pi(parseInt(n,16),parseInt(a,16),parseInt(i,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6),A=t.value.substring(6,8);return Pi(parseInt(n,16),parseInt(a,16),parseInt(i,16),parseInt(A,16)/255)}}if(t.type===20){var o=Va[t.value.toUpperCase()];if(typeof o<"u")return o}return Va.TRANSPARENT}},Vi=function(r){return(255&r)===0},Ne=function(r){var t=255&r,e=255&r>>8,n=255&r>>16,a=255&r>>24;return t<255?"rgba("+a+","+n+","+e+","+t/255+")":"rgb("+a+","+n+","+e+")"},Pi=function(r,t,e,n){return(r<<24|t<<16|e<<8|Math.round(n*255)<<0)>>>0},pD=function(r,t){if(r.type===17)return r.number;if(r.type===16){var e=t===3?1:255;return t===3?r.number/100*e:Math.round(r.number/100*e)}return 0},gD=function(r,t){var e=t.filter(zs);if(e.length===3){var n=e.map(pD),a=n[0],i=n[1],A=n[2];return Pi(a,i,A,1)}if(e.length===4){var o=e.map(pD),a=o[0],i=o[1],A=o[2],s=o[3];return Pi(a,i,A,s)}return 0};function Cm(r,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-r)*e*6+r:e<1/2?t:e<2/3?(t-r)*6*(2/3-e)+r:r}var yD=function(r,t){var e=t.filter(zs),n=e[0],a=e[1],i=e[2],A=e[3],o=(n.type===17?cn(n.number):Sp.parse(r,n))/(Math.PI*2),s=Ee(a)?a.number/100:0,l=Ee(i)?i.number/100:0,u=typeof A<"u"&&Ee(A)?ve(A,1):1;if(s===0)return Pi(l*255,l*255,l*255,1);var f=l<=.5?l*(s+1):l+s-l*s,c=l*2-f,h=Cm(c,f,o+1/3),v=Cm(c,f,o),d=Cm(c,f,o-1/3);return Pi(h*255,v*255,d*255,u)},LAt={hsl:yD,hsla:yD,rgb:gD,rgba:gD},Ou=function(r,t){return Ni.parse(r,cO.create(t).parseComponentValue())},Va={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},MAt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},UAt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xp=function(r,t){var e=Ni.parse(r,t[0]),n=t[1];return n&&Ee(n)?{color:e,stop:n}:{color:e,stop:null}},mD=function(r,t){var e=r[0],n=r[r.length-1];e.stop===null&&(e.stop=Xe),n.stop===null&&(n.stop=Ui);for(var a=[],i=0,A=0;A<r.length;A++){var o=r[A].stop;if(o!==null){var s=ve(o,t);s>i?a.push(s):a.push(i),i=s}else a.push(null)}for(var l=null,A=0;A<a.length;A++){var u=a[A];if(u===null)l===null&&(l=A);else if(l!==null){for(var f=A-l,c=a[l-1],h=(u-c)/(f+1),v=1;v<=f;v++)a[l+v-1]=h*v;l=null}}return r.map(function(d,p){var g=d.color;return{color:g,stop:Math.max(Math.min(1,a[p]/t),0)}})},PAt=function(r,t,e){var n=t/2,a=e/2,i=ve(r[0],t)-n,A=a-ve(r[1],e);return(Math.atan2(A,i)+Math.PI*2)%(Math.PI*2)},RAt=function(r,t,e){var n=typeof r=="number"?r:PAt(r,t,e),a=Math.abs(t*Math.sin(n))+Math.abs(e*Math.cos(n)),i=t/2,A=e/2,o=a/2,s=Math.sin(n-Math.PI/2)*o,l=Math.cos(n-Math.PI/2)*o;return[a,i-l,i+l,A-s,A+s]},xn=function(r,t){return Math.sqrt(r*r+t*t)},wD=function(r,t,e,n,a){var i=[[0,0],[0,t],[r,0],[r,t]];return i.reduce(function(A,o){var s=o[0],l=o[1],u=xn(e-s,n-l);return(a?u<A.optimumDistance:u>A.optimumDistance)?{optimumCorner:o,optimumDistance:u}:A},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},HAt=function(r,t,e,n,a){var i=0,A=0;switch(r.size){case 0:r.shape===0?i=A=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-n)),A=Math.min(Math.abs(e),Math.abs(e-a)));break;case 2:if(r.shape===0)i=A=Math.min(xn(t,e),xn(t,e-a),xn(t-n,e),xn(t-n,e-a));else if(r.shape===1){var o=Math.min(Math.abs(e),Math.abs(e-a))/Math.min(Math.abs(t),Math.abs(t-n)),s=wD(n,a,t,e,!0),l=s[0],u=s[1];i=xn(l-t,(u-e)/o),A=o*i}break;case 1:r.shape===0?i=A=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-n)),A=Math.max(Math.abs(e),Math.abs(e-a)));break;case 3:if(r.shape===0)i=A=Math.max(xn(t,e),xn(t,e-a),xn(t-n,e),xn(t-n,e-a));else if(r.shape===1){var o=Math.max(Math.abs(e),Math.abs(e-a))/Math.max(Math.abs(t),Math.abs(t-n)),f=wD(n,a,t,e,!1),l=f[0],u=f[1];i=xn(l-t,(u-e)/o),A=o*i}break}return Array.isArray(r.size)&&(i=ve(r.size[0],n),A=r.size.length===2?ve(r.size[1],a):i),[i,A]},OAt=function(r,t){var e=cn(180),n=[];return Ba(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&A.value==="to"){e=wO(a);return}else if(mO(A)){e=Sp.parse(r,A);return}}var o=xp(r,a);n.push(o)}),{angle:e,stops:n,type:1}},bh=function(r,t){var e=cn(180),n=[];return Ba(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&["top","left","right","bottom"].indexOf(A.value)!==-1){e=wO(a);return}else if(mO(A)){e=(Sp.parse(r,A)+cn(270))%cn(360);return}}var o=xp(r,a);n.push(o)}),{angle:e,stops:n,type:1}},kAt=function(r,t){var e=cn(180),n=[],a=1,i=0,A=3,o=[];return Ba(t).forEach(function(s,l){var u=s[0];if(l===0){if(le(u)&&u.value==="linear"){a=1;return}else if(le(u)&&u.value==="radial"){a=2;return}}if(u.type===18){if(u.name==="from"){var f=Ni.parse(r,u.values[0]);n.push({stop:Xe,color:f})}else if(u.name==="to"){var f=Ni.parse(r,u.values[0]);n.push({stop:Ui,color:f})}else if(u.name==="color-stop"){var c=u.values.filter(zs);if(c.length===2){var f=Ni.parse(r,c[1]),h=c[0];ul(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:f})}}}}),a===1?{angle:(e+cn(180))%cn(360),stops:n,type:a}:{size:A,shape:i,stops:n,position:o,type:a}},BO="closest-side",_O="farthest-side",CO="closest-corner",SO="farthest-corner",xO="circle",bO="ellipse",TO="cover",IO="contain",NAt=function(r,t){var e=0,n=3,a=[],i=[];return Ba(t).forEach(function(A,o){var s=!0;if(o===0){var l=!1;s=A.reduce(function(f,c){if(l)if(le(c))switch(c.value){case"center":return i.push(zC),f;case"top":case"left":return i.push(Xe),f;case"right":case"bottom":return i.push(Ui),f}else(Ee(c)||qi(c))&&i.push(c);else if(le(c))switch(c.value){case xO:return e=0,!1;case bO:return e=1,!1;case"at":return l=!0,!1;case BO:return n=0,!1;case TO:case _O:return n=1,!1;case IO:case CO:return n=2,!1;case SO:return n=3,!1}else if(qi(c)||Ee(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return f},s)}if(s){var u=xp(r,A);a.push(u)}}),{size:n,shape:e,stops:a,position:i,type:2}},Th=function(r,t){var e=0,n=3,a=[],i=[];return Ba(t).forEach(function(A,o){var s=!0;if(o===0?s=A.reduce(function(u,f){if(le(f))switch(f.value){case"center":return i.push(zC),!1;case"top":case"left":return i.push(Xe),!1;case"right":case"bottom":return i.push(Ui),!1}else if(Ee(f)||qi(f))return i.push(f),!1;return u},s):o===1&&(s=A.reduce(function(u,f){if(le(f))switch(f.value){case xO:return e=0,!1;case bO:return e=1,!1;case IO:case BO:return n=0,!1;case _O:return n=1,!1;case CO:return n=2,!1;case TO:case SO:return n=3,!1}else if(qi(f)||Ee(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return u},s)),s){var l=xp(r,A);a.push(l)}}),{size:n,shape:e,stops:a,position:i,type:2}},VAt=function(r){return r.type===1},GAt=function(r){return r.type===2},WC={name:"image",parse:function(r,t){if(t.type===22){var e={url:t.value,type:0};return r.cache.addImage(t.value),e}if(t.type===18){var n=FO[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(r,t.values)}throw new Error("Unsupported image type "+t.type)}};function KAt(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!FO[r.name])}var FO={"linear-gradient":OAt,"-moz-linear-gradient":bh,"-ms-linear-gradient":bh,"-o-linear-gradient":bh,"-webkit-linear-gradient":bh,"radial-gradient":NAt,"-moz-radial-gradient":Th,"-ms-radial-gradient":Th,"-o-radial-gradient":Th,"-webkit-radial-gradient":Th,"-webkit-gradient":kAt},zAt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t.filter(function(n){return zs(n)&&KAt(n)}).map(function(n){return WC.parse(r,n)})}},WAt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},XAt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(Ee)}).map(vO)}},YAt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(le).map(function(n){return n.value}).join(" ")}).map(ZAt)}},ZAt=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Es;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Es||(Es={}));var $At={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(JAt)})}},JAt=function(r){return le(r)||Ee(r)},bp=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},qAt=bp("top"),jAt=bp("right"),tot=bp("bottom"),eot=bp("left"),Tp=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return vO(e.filter(Ee))}}},rot=Tp("top-left"),not=Tp("top-right"),aot=Tp("bottom-right"),iot=Tp("bottom-left"),Ip=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Aot=Ip("top"),oot=Ip("right"),sot=Ip("bottom"),lot=Ip("left"),Fp=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return jf(e)?e.number:0}}},uot=Fp("top"),fot=Fp("right"),cot=Fp("bottom"),hot=Fp("left"),vot={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dot={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},pot={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,t){return t.filter(le).reduce(function(e,n){return e|got(n.value)},0)}},got=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},yot={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},mot={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},vd;(function(r){r.NORMAL="normal",r.STRICT="strict"})(vd||(vd={}));var wot={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"strict":return vd.STRICT;case"normal":default:return vd.NORMAL}}},Bot={name:"line-height",initialValue:"normal",prefix:!1,type:4},BD=function(r,t){return le(r)&&r.value==="normal"?1.2*t:r.type===17?t*r.number:Ee(r)?ve(r,t):t},_ot={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,t){return t.type===20&&t.value==="none"?null:WC.parse(r,t)}},Cot={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},rB={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ep=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},Sot=Ep("top"),xot=Ep("right"),bot=Ep("bottom"),Tot=Ep("left"),Iot={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Fot={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Dp=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Eot=Dp("top"),Dot=Dp("right"),Qot=Dp("bottom"),Lot=Dp("left"),Mot={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Uot={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Pot={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.length===1&&eB(t[0],"none")?[]:Ba(t).map(function(e){for(var n={color:Va.TRANSPARENT,offsetX:Xe,offsetY:Xe,blur:Xe},a=0,i=0;i<e.length;i++){var A=e[i];qi(A)?(a===0?n.offsetX=A:a===1?n.offsetY=A:n.blur=A,a++):n.color=Ni.parse(r,A)}return n})}},Rot={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Hot={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(r,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var e=Not[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},Oot=function(r){var t=r.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},kot=function(r){var t=r.filter(function(s){return s.type===17}).map(function(s){return s.number}),e=t[0],n=t[1];t[2],t[3];var a=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var A=t[12],o=t[13];return t[14],t[15],t.length===16?[e,n,a,i,A,o]:null},Not={matrix:Oot,matrix3d:kot},_D={type:16,number:50,flags:qf},Vot=[_D,_D],Got={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,t){var e=t.filter(Ee);return e.length!==2?Vot:[e[0],e[1]]}},Kot={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},ku;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(ku||(ku={}));var zot={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-all":return ku.BREAK_ALL;case"keep-all":return ku.KEEP_ALL;case"normal":default:return ku.NORMAL}}},Wot={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,t){if(t.type===20)return{auto:!0,order:0};if(ul(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},EO={name:"time",parse:function(r,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},Xot={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,t){return ul(t)?t.number:1}},Yot={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Zot={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},$ot={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,t){var e=[],n=[];return t.forEach(function(a){switch(a.type){case 20:case 0:e.push(a.value);break;case 17:e.push(a.number.toString());break;case 4:n.push(e.join(" ")),e.length=0;break}}),e.length&&n.push(e.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},Jot={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},qot={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,t){if(ul(t))return t.number;if(le(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},jot={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.filter(le).map(function(e){return e.value})}},tst={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ue=function(r,t){return(r&t)!==0},est={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t}},rst={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;for(var n=[],a=t.filter(hO),i=0;i<a.length;i++){var A=a[i],o=a[i+1];if(A.type===20){var s=o&&ul(o)?o.number:1;n.push({counter:A.value,increment:s})}}return n}},nst={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(r,t){if(t.length===0)return[];for(var e=[],n=t.filter(hO),a=0;a<n.length;a++){var i=n[a],A=n[a+1];if(le(i)&&i.value!=="none"){var o=A&&ul(A)?A.number:0;e.push({counter:i.value,reset:o})}}return e}},ast={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(r,t){return t.filter(jf).map(function(e){return EO.parse(r,e)})}},ist={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(r,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;var n=[],a=t.filter(DAt);if(a.length%2!==0)return null;for(var i=0;i<a.length;i+=2){var A=a[i].value,o=a[i+1].value;n.push({open:A,close:o})}return n}},CD=function(r,t,e){if(!r)return"";var n=r[Math.min(t,r.length-1)];return n?e?n.open:n.close:""},Ast={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.length===1&&eB(t[0],"none")?[]:Ba(t).map(function(e){for(var n={color:255,offsetX:Xe,offsetY:Xe,blur:Xe,spread:Xe,inset:!1},a=0,i=0;i<e.length;i++){var A=e[i];eB(A,"inset")?n.inset=!0:qi(A)?(a===0?n.offsetX=A:a===1?n.offsetY=A:a===2?n.blur=A:n.spread=A,a++):n.color=Ni.parse(r,A)}return n})}},ost={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(r,t){var e=[0,1,2],n=[];return t.filter(le).forEach(function(a){switch(a.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),e.forEach(function(a){n.indexOf(a)===-1&&n.push(a)}),n}},sst={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},lst={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(r,t){return jf(t)?t.number:0}},ust=function(){function r(t,e){var n,a;this.animationDuration=pt(t,ast,e.animationDuration),this.backgroundClip=pt(t,MAt,e.backgroundClip),this.backgroundColor=pt(t,UAt,e.backgroundColor),this.backgroundImage=pt(t,zAt,e.backgroundImage),this.backgroundOrigin=pt(t,WAt,e.backgroundOrigin),this.backgroundPosition=pt(t,XAt,e.backgroundPosition),this.backgroundRepeat=pt(t,YAt,e.backgroundRepeat),this.backgroundSize=pt(t,$At,e.backgroundSize),this.borderTopColor=pt(t,qAt,e.borderTopColor),this.borderRightColor=pt(t,jAt,e.borderRightColor),this.borderBottomColor=pt(t,tot,e.borderBottomColor),this.borderLeftColor=pt(t,eot,e.borderLeftColor),this.borderTopLeftRadius=pt(t,rot,e.borderTopLeftRadius),this.borderTopRightRadius=pt(t,not,e.borderTopRightRadius),this.borderBottomRightRadius=pt(t,aot,e.borderBottomRightRadius),this.borderBottomLeftRadius=pt(t,iot,e.borderBottomLeftRadius),this.borderTopStyle=pt(t,Aot,e.borderTopStyle),this.borderRightStyle=pt(t,oot,e.borderRightStyle),this.borderBottomStyle=pt(t,sot,e.borderBottomStyle),this.borderLeftStyle=pt(t,lot,e.borderLeftStyle),this.borderTopWidth=pt(t,uot,e.borderTopWidth),this.borderRightWidth=pt(t,fot,e.borderRightWidth),this.borderBottomWidth=pt(t,cot,e.borderBottomWidth),this.borderLeftWidth=pt(t,hot,e.borderLeftWidth),this.boxShadow=pt(t,Ast,e.boxShadow),this.color=pt(t,vot,e.color),this.direction=pt(t,dot,e.direction),this.display=pt(t,pot,e.display),this.float=pt(t,yot,e.cssFloat),this.fontFamily=pt(t,$ot,e.fontFamily),this.fontSize=pt(t,Jot,e.fontSize),this.fontStyle=pt(t,tst,e.fontStyle),this.fontVariant=pt(t,jot,e.fontVariant),this.fontWeight=pt(t,qot,e.fontWeight),this.letterSpacing=pt(t,mot,e.letterSpacing),this.lineBreak=pt(t,wot,e.lineBreak),this.lineHeight=pt(t,Bot,e.lineHeight),this.listStyleImage=pt(t,_ot,e.listStyleImage),this.listStylePosition=pt(t,Cot,e.listStylePosition),this.listStyleType=pt(t,rB,e.listStyleType),this.marginTop=pt(t,Sot,e.marginTop),this.marginRight=pt(t,xot,e.marginRight),this.marginBottom=pt(t,bot,e.marginBottom),this.marginLeft=pt(t,Tot,e.marginLeft),this.opacity=pt(t,Xot,e.opacity);var i=pt(t,Iot,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=pt(t,Fot,e.overflowWrap),this.paddingTop=pt(t,Eot,e.paddingTop),this.paddingRight=pt(t,Dot,e.paddingRight),this.paddingBottom=pt(t,Qot,e.paddingBottom),this.paddingLeft=pt(t,Lot,e.paddingLeft),this.paintOrder=pt(t,ost,e.paintOrder),this.position=pt(t,Uot,e.position),this.textAlign=pt(t,Mot,e.textAlign),this.textDecorationColor=pt(t,Yot,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=pt(t,Zot,(a=e.textDecorationLine)!==null&&a!==void 0?a:e.textDecoration),this.textShadow=pt(t,Pot,e.textShadow),this.textTransform=pt(t,Rot,e.textTransform),this.transform=pt(t,Hot,e.transform),this.transformOrigin=pt(t,Got,e.transformOrigin),this.visibility=pt(t,Kot,e.visibility),this.webkitTextStrokeColor=pt(t,sst,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=pt(t,lst,e.webkitTextStrokeWidth),this.wordBreak=pt(t,zot,e.wordBreak),this.zIndex=pt(t,Wot,e.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return Vi(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return Ue(this.display,4)||Ue(this.display,33554432)||Ue(this.display,268435456)||Ue(this.display,536870912)||Ue(this.display,67108864)||Ue(this.display,134217728)},r}(),fst=function(){function r(t,e){this.content=pt(t,est,e.content),this.quotes=pt(t,ist,e.quotes)}return r}(),SD=function(){function r(t,e){this.counterIncrement=pt(t,rst,e.counterIncrement),this.counterReset=pt(t,nst,e.counterReset)}return r}(),pt=function(r,t,e){var n=new fO,a=e!==null&&typeof e<"u"?e.toString():t.initialValue;n.write(a);var i=new cO(n.read());switch(t.type){case 2:var A=i.parseComponentValue();return t.parse(r,le(A)?A.value:t.initialValue);case 0:return t.parse(r,i.parseComponentValue());case 1:return t.parse(r,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Sp.parse(r,i.parseComponentValue());case"color":return Ni.parse(r,i.parseComponentValue());case"image":return WC.parse(r,i.parseComponentValue());case"length":var o=i.parseComponentValue();return qi(o)?o:Xe;case"length-percentage":var s=i.parseComponentValue();return Ee(s)?s:Xe;case"time":return EO.parse(r,i.parseComponentValue())}break}},cst="data-html2canvas-debug",hst=function(r){var t=r.getAttribute(cst);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},nB=function(r,t){var e=hst(r);return e===1||t===e},_a=function(){function r(t,e){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,nB(e,3))debugger;this.styles=new ust(t,window.getComputedStyle(e,null)),AB(e)&&(this.styles.animationDuration.some(function(n){return n>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=_p(this.context,e),nB(e,4)&&(this.flags|=16)}return r}(),vst="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",xD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ih=0;Ih<xD.length;Ih++)hu[xD.charCodeAt(Ih)]=Ih;var dst=function(r){var t=r.length*.75,e=r.length,n,a=0,i,A,o,s;r[r.length-1]==="="&&(t--,r[r.length-2]==="="&&t--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<e;n+=4)i=hu[r.charCodeAt(n)],A=hu[r.charCodeAt(n+1)],o=hu[r.charCodeAt(n+2)],s=hu[r.charCodeAt(n+3)],u[a++]=i<<2|A>>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},pst=function(r){for(var t=r.length,e=[],n=0;n<t;n+=2)e.push(r[n+1]<<8|r[n]);return e},gst=function(r){for(var t=r.length,e=[],n=0;n<t;n+=4)e.push(r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n]);return e},lo=5,XC=11,Sm=2,yst=XC-lo,DO=65536>>lo,mst=1<<lo,xm=mst-1,wst=1024>>lo,Bst=DO+wst,_st=Bst,Cst=32,Sst=_st+Cst,xst=65536>>XC,bst=1<<yst,Tst=bst-1,bD=function(r,t,e){return r.slice?r.slice(t,e):new Uint16Array(Array.prototype.slice.call(r,t,e))},Ist=function(r,t,e){return r.slice?r.slice(t,e):new Uint32Array(Array.prototype.slice.call(r,t,e))},Fst=function(r,t){var e=dst(r),n=Array.isArray(e)?gst(e):new Uint32Array(e),a=Array.isArray(e)?pst(e):new Uint16Array(e),i=24,A=bD(a,i/2,n[4]/2),o=n[5]===2?bD(a,(i+n[4])/2):Ist(n,Math.ceil((i+n[4])/4));return new Est(n[0],n[1],n[2],n[3],A,o)},Est=function(){function r(t,e,n,a,i,A){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=a,this.index=i,this.data=A}return r.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>lo],e=(e<<Sm)+(t&xm),this.data[e];if(t<=65535)return e=this.index[DO+(t-55296>>lo)],e=(e<<Sm)+(t&xm),this.data[e];if(t<this.highStart)return e=Sst-xst+(t>>XC),e=this.index[e],e+=t>>lo&Tst,e=this.index[e],e=(e<<Sm)+(t&xm),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),TD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Dst=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Fh=0;Fh<TD.length;Fh++)Dst[TD.charCodeAt(Fh)]=Fh;var Qst=1,bm=2,Tm=3,ID=4,FD=5,Lst=7,ED=8,Im=9,Fm=10,DD=11,QD=12,LD=13,MD=14,Em=15,Mst=function(r){for(var t=[],e=0,n=r.length;e<n;){var a=r.charCodeAt(e++);if(a>=55296&&a<=56319&&e<n){var i=r.charCodeAt(e++);(i&64512)===56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),e--)}else t.push(a)}return t},Ust=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var e=r.length;if(!e)return"";for(var n=[],a=-1,i="";++a<e;){var A=r[a];A<=65535?n.push(A):(A-=65536,n.push((A>>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},Pst=Fst(vst),rn="×",Dm="÷",Rst=function(r){return Pst.get(r)},Hst=function(r,t,e){var n=e-2,a=t[n],i=t[e-1],A=t[e];if(i===bm&&A===Tm)return rn;if(i===bm||i===Tm||i===ID||A===bm||A===Tm||A===ID)return Dm;if(i===ED&&[ED,Im,DD,QD].indexOf(A)!==-1||(i===DD||i===Im)&&(A===Im||A===Fm)||(i===QD||i===Fm)&&A===Fm||A===LD||A===FD||A===Lst||i===Qst)return rn;if(i===LD&&A===MD){for(;a===FD;)a=t[--n];if(a===MD)return rn}if(i===Em&&A===Em){for(var o=0;a===Em;)o++,a=t[--n];if(o%2===0)return rn}return Dm},Ost=function(r){var t=Mst(r),e=t.length,n=0,a=0,i=t.map(Rst);return{next:function(){if(n>=e)return{done:!0,value:null};for(var A=rn;n<e&&(A=Hst(t,i,++n))===rn;);if(A!==rn||n===e){var o=Ust.apply(null,t.slice(a,n));return a=n,{value:o,done:!1}}return{done:!0,value:null}}}},kst=function(r){for(var t=Ost(r),e=[],n;!(n=t.next()).done;)n.value&&e.push(n.value.slice());return e},Nst=function(r){var t=123;if(r.createRange){var e=r.createRange();if(e.getBoundingClientRect){var n=r.createElement("boundtest");n.style.height=t+"px",n.style.display="block",r.body.appendChild(n),e.selectNode(n);var a=e.getBoundingClientRect(),i=Math.round(a.height);if(r.body.removeChild(n),i===t)return!0}}return!1},Vst=function(r){var t=r.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",r.body.appendChild(t);var e=r.createRange();t.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var n=t.firstChild,a=Cp(n.data).map(function(s){return Se(s)}),i=0,A={},o=a.every(function(s,l){e.setStart(n,i),e.setEnd(n,i+s.length);var u=e.getBoundingClientRect();i+=s.length;var f=u.x>A.x||u.y>A.y;return A=u,l===0?!0:f});return r.body.removeChild(t),o},Gst=function(){return typeof new Image().crossOrigin<"u"},Kst=function(){return typeof new XMLHttpRequest().responseType=="string"},zst=function(r){var t=new Image,e=r.createElement("canvas"),n=e.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),e.toDataURL()}catch{return!1}return!0},UD=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},Wst=function(r){var t=r.createElement("canvas"),e=100;t.width=e,t.height=e;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,e,e);var a=new Image,i=t.toDataURL();a.src=i;var A=aB(e,e,0,0,a);return n.fillStyle="red",n.fillRect(0,0,e,e),PD(A).then(function(o){n.drawImage(o,0,0);var s=n.getImageData(0,0,e,e).data;n.fillStyle="red",n.fillRect(0,0,e,e);var l=r.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=e+"px",UD(s)?PD(aB(e,e,0,0,l)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),UD(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},aB=function(r,t,e,n,a){var i="http://www.w3.org/2000/svg",A=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return A.setAttributeNS(null,"width",r.toString()),A.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),A.appendChild(o),o.appendChild(a),A},PD=function(r){return new Promise(function(t,e){var n=new Image;n.onload=function(){return t(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},We={get SUPPORT_RANGE_BOUNDS(){var r=Nst(document);return Object.defineProperty(We,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=We.SUPPORT_RANGE_BOUNDS&&Vst(document);return Object.defineProperty(We,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=zst(document);return Object.defineProperty(We,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?Wst(document):Promise.resolve(!1);return Object.defineProperty(We,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=Gst();return Object.defineProperty(We,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=Kst();return Object.defineProperty(We,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(We,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(We,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},Nu=function(){function r(t,e){this.text=t,this.bounds=e}return r}(),Xst=function(r,t,e,n){var a=$st(t,e),i=[],A=0;return a.forEach(function(o){if(e.textDecorationLine.length||o.trim().length>0)if(We.SUPPORT_RANGE_BOUNDS){var s=RD(n,A,o.length).getClientRects();if(s.length>1){var l=YC(o),u=0;l.forEach(function(c){i.push(new Nu(c,qa.fromDOMRectList(r,RD(n,u+A,c.length).getClientRects()))),u+=c.length})}else i.push(new Nu(o,qa.fromDOMRectList(r,s)))}else{var f=n.splitText(o.length);i.push(new Nu(o,Yst(r,n))),n=f}else We.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));A+=o.length}),i},Yst=function(r,t){var e=t.ownerDocument;if(e){var n=e.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var a=t.parentNode;if(a){a.replaceChild(n,t);var i=_p(r,n);return n.firstChild&&a.replaceChild(n.firstChild,n),i}}return qa.EMPTY},RD=function(r,t,e){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(r,t),a.setEnd(r,t+e),a},YC=function(r){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(r)).map(function(e){return e.segment})}return kst(r)},Zst=function(r,t){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(r)).map(function(n){return n.segment})}return qst(r,t)},$st=function(r,t){return t.letterSpacing!==0?YC(r):Zst(r,t)},Jst=[32,160,4961,65792,65793,4153,4241],qst=function(r,t){for(var e=xit(r,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],a,i=function(){if(a.value){var A=a.value.slice(),o=Cp(A),s="";o.forEach(function(l){Jst.indexOf(l)===-1?s+=Se(l):(s.length&&n.push(s),n.push(Se(l)),s="")}),s.length&&n.push(s)}};!(a=e.next()).done;)i();return n},jst=function(){function r(t,e,n){this.text=tlt(e.data,n.textTransform),this.textBounds=Xst(t,this.text,n,e)}return r}(),tlt=function(r,t){switch(t){case 1:return r.toLowerCase();case 3:return r.replace(elt,rlt);case 2:return r.toUpperCase();default:return r}},elt=/(^|\s|:|-|\(|\))([a-z])/g,rlt=function(r,t,e){return r.length>0?t+e.toUpperCase():r},QO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return t}(_a),LO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return t}(_a),MO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this,i=new XMLSerializer,A=_p(e,n);return n.setAttribute("width",A.width+"px"),n.setAttribute("height",A.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return t}(_a),UO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.value=n.value,a}return t}(_a),iB=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return t}(_a),nlt=[{type:15,flags:0,unit:"px",number:3}],alt=[{type:16,flags:0,number:50}],ilt=function(r){return r.width>r.height?new qa(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new qa(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r},Alt=function(r){var t=r.type===olt?new Array(r.value.length+1).join("•"):r.value;return t.length===0?r.placeholder||"":t},dd="checkbox",pd="radio",olt="password",HD=707406591,ZC=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;switch(a.type=n.type.toLowerCase(),a.checked=n.checked,a.value=Alt(n),(a.type===dd||a.type===pd)&&(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=ilt(a.bounds)),a.type){case dd:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=nlt;break;case pd:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=alt;break}return a}return t}(_a),PO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this,i=n.options[n.selectedIndex||0];return a.value=i&&i.text||"",a}return t}(_a),RO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.value=n.value,a}return t}(_a),HO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;a.src=n.src,a.width=parseInt(n.width,10)||0,a.height=parseInt(n.height,10)||0,a.backgroundColor=a.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){a.tree=kO(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?Ou(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Va.TRANSPARENT,A=n.contentWindow.document.body?Ou(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):Va.TRANSPARENT;a.backgroundColor=Vi(i)?Vi(A)?a.styles.backgroundColor:A:i}}catch{}return a}return t}(_a),slt=["OL","UL","MENU"],lv=function(r,t,e,n){for(var a=t.firstChild,i=void 0;a;a=i)if(i=a.nextSibling,NO(a)&&a.data.trim().length>0)e.textNodes.push(new jst(r,a,e.styles));else if(ys(a))if(zO(a)&&a.assignedNodes)a.assignedNodes().forEach(function(o){return lv(r,o,e,n)});else{var A=OO(r,a);A.styles.isVisible()&&(llt(a,A,n)?A.flags|=4:ult(A.styles)&&(A.flags|=2),slt.indexOf(a.tagName)!==-1&&(A.flags|=8),e.elements.push(A),a.slot,a.shadowRoot?lv(r,a.shadowRoot,A,n):!gd(a)&&!VO(a)&&!yd(a)&&lv(r,a,A,n))}},OO=function(r,t){return oB(t)?new QO(r,t):GO(t)?new LO(r,t):VO(t)?new MO(r,t):flt(t)?new UO(r,t):clt(t)?new iB(r,t):hlt(t)?new ZC(r,t):yd(t)?new PO(r,t):gd(t)?new RO(r,t):KO(t)?new HO(r,t):new _a(r,t)},kO=function(r,t){var e=OO(r,t);return e.flags|=4,lv(r,t,e,e),e},llt=function(r,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||$C(r)&&e.styles.isTransparent()},ult=function(r){return r.isPositioned()||r.isFloating()},NO=function(r){return r.nodeType===Node.TEXT_NODE},ys=function(r){return r.nodeType===Node.ELEMENT_NODE},AB=function(r){return ys(r)&&typeof r.style<"u"&&!uv(r)},uv=function(r){return typeof r.className=="object"},flt=function(r){return r.tagName==="LI"},clt=function(r){return r.tagName==="OL"},hlt=function(r){return r.tagName==="INPUT"},vlt=function(r){return r.tagName==="HTML"},VO=function(r){return r.tagName==="svg"},$C=function(r){return r.tagName==="BODY"},GO=function(r){return r.tagName==="CANVAS"},OD=function(r){return r.tagName==="VIDEO"},oB=function(r){return r.tagName==="IMG"},KO=function(r){return r.tagName==="IFRAME"},kD=function(r){return r.tagName==="STYLE"},dlt=function(r){return r.tagName==="SCRIPT"},gd=function(r){return r.tagName==="TEXTAREA"},yd=function(r){return r.tagName==="SELECT"},zO=function(r){return r.tagName==="SLOT"},ND=function(r){return r.tagName.indexOf("-")>0},plt=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},r.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},r.prototype.pop=function(t){var e=this;t.forEach(function(n){return e.counters[n].pop()})},r.prototype.parse=function(t){var e=this,n=t.counterIncrement,a=t.counterReset,i=!0;n!==null&&n.forEach(function(o){var s=e.counters[o.counter];s&&o.increment!==0&&(i=!1,s.length||s.push(1),s[Math.max(0,s.length-1)]+=o.increment)});var A=[];return i&&a.forEach(function(o){var s=e.counters[o.counter];A.push(o.counter),s||(s=e.counters[o.counter]=[]),s.push(o.reset)}),A},r}(),VD={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},GD={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},glt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ylt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},es=function(r,t,e,n,a,i){return r<t||r>e?Tf(r,a,i.length>0):n.integers.reduce(function(A,o,s){for(;r>=o;)r-=o,A+=n.values[s];return A},"")+i},WO=function(r,t,e,n){var a="";do e||r--,a=n(r)+a,r/=t;while(r*t>=t);return a},_e=function(r,t,e,n,a){var i=e-t+1;return(r<0?"-":"")+(WO(Math.abs(r),i,n,function(A){return Se(Math.floor(A%i)+t)})+a)},EA=function(r,t,e){e===void 0&&(e=". ");var n=t.length;return WO(Math.abs(r),n,!1,function(a){return t[Math.floor(a%n)]})+e},fs=1,pi=2,gi=4,vu=8,Fa=function(r,t,e,n,a,i){if(r<-9999||r>9999)return Tf(r,4,a.length>0);var A=Math.abs(r),o=a;if(A===0)return t[0]+o;for(var s=0;A>0&&s<=4;s++){var l=A%10;l===0&&Ue(i,fs)&&o!==""?o=t[l]+o:l>1||l===1&&s===0||l===1&&s===1&&Ue(i,pi)||l===1&&s===1&&Ue(i,gi)&&r>100||l===1&&s>1&&Ue(i,vu)?o=t[l]+(s>0?e[s-1]:"")+o:l===1&&s>0&&(o=e[s-1]+o),A=Math.floor(A/10)}return(r<0?n:"")+o},KD="十百千萬",zD="拾佰仟萬",WD="マイナス",Qm="마이너스",Tf=function(r,t,e){var n=e?". ":"",a=e?"、":"",i=e?", ":"",A=e?" ":"";switch(t){case 0:return"•"+A;case 1:return"◦"+A;case 2:return"◾"+A;case 5:var o=_e(r,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return EA(r,"〇一二三四五六七八九",a);case 6:return es(r,1,3999,VD,3,n).toLowerCase();case 7:return es(r,1,3999,VD,3,n);case 8:return _e(r,945,969,!1,n);case 9:return _e(r,97,122,!1,n);case 10:return _e(r,65,90,!1,n);case 11:return _e(r,1632,1641,!0,n);case 12:case 49:return es(r,1,9999,GD,3,n);case 35:return es(r,1,9999,GD,3,n).toLowerCase();case 13:return _e(r,2534,2543,!0,n);case 14:case 30:return _e(r,6112,6121,!0,n);case 15:return EA(r,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return EA(r,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return Fa(r,"零一二三四五六七八九",KD,"負",a,pi|gi|vu);case 47:return Fa(r,"零壹貳參肆伍陸柒捌玖",zD,"負",a,fs|pi|gi|vu);case 42:return Fa(r,"零一二三四五六七八九",KD,"负",a,pi|gi|vu);case 41:return Fa(r,"零壹贰叁肆伍陆柒捌玖",zD,"负",a,fs|pi|gi|vu);case 26:return Fa(r,"〇一二三四五六七八九","十百千万",WD,a,0);case 25:return Fa(r,"零壱弐参四伍六七八九","拾百千万",WD,a,fs|pi|gi);case 31:return Fa(r,"영일이삼사오육칠팔구","십백천만",Qm,i,fs|pi|gi);case 33:return Fa(r,"零一二三四五六七八九","十百千萬",Qm,i,0);case 32:return Fa(r,"零壹貳參四五六七八九","拾百千",Qm,i,fs|pi|gi);case 18:return _e(r,2406,2415,!0,n);case 20:return es(r,1,19999,ylt,3,n);case 21:return _e(r,2790,2799,!0,n);case 22:return _e(r,2662,2671,!0,n);case 22:return es(r,1,10999,glt,3,n);case 23:return EA(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return EA(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return _e(r,3302,3311,!0,n);case 28:return EA(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return EA(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return _e(r,3792,3801,!0,n);case 37:return _e(r,6160,6169,!0,n);case 38:return _e(r,4160,4169,!0,n);case 39:return _e(r,2918,2927,!0,n);case 40:return _e(r,1776,1785,!0,n);case 43:return _e(r,3046,3055,!0,n);case 44:return _e(r,3174,3183,!0,n);case 45:return _e(r,3664,3673,!0,n);case 46:return _e(r,3872,3881,!0,n);case 3:default:return _e(r,48,57,!0,n)}},XO="data-html2canvas-ignore",XD=function(){function r(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new plt,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(t,e){var n=this,a=mlt(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,A=t.defaultView.pageYOffset,o=a.contentWindow,s=o.document,l=_lt(a).then(function(){return hr(n,void 0,void 0,function(){var u,f;return er(this,function(c){switch(c.label){case 0:return this.scrolledElements.forEach(blt),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),u=this.options.onclone,f=this.clonedReferenceElement,typeof f>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:c.sent(),c.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Blt(s)]:[3,4];case 3:c.sent(),c.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(s,f)}).then(function(){return a})]:[2,a]}})})});return s.open(),s.write(Slt(document.doctype)+"<html></html>"),xlt(this.referenceElement.ownerDocument,i,A),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),l},r.prototype.createElementClone=function(t){if(nB(t,2))debugger;if(GO(t))return this.createCanvasClone(t);if(OD(t))return this.createVideoClone(t);if(kD(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return oB(e)&&(oB(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),ND(e)?this.createCustomElementClone(e):e},r.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return Lm(t.style,e),e},r.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(i,A){return A&&typeof A.cssText=="string"?i+A.cssText:i},""),a=t.cloneNode(!1);return a.textContent=n,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},r.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var a=t.cloneNode(!1);try{a.width=t.width,a.height=t.height;var i=t.getContext("2d"),A=a.getContext("2d");if(A)if(!this.options.allowTaint&&i)A.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=(e=t.getContext("webgl2"))!==null&&e!==void 0?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();(s==null?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}A.drawImage(t,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return a},r.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var a=t.ownerDocument.createElement("canvas");return a.width=t.offsetWidth,a.height=t.offsetHeight,a},r.prototype.appendChildNode=function(t,e,n){(!ys(e)||!dlt(e)&&!e.hasAttribute(XO)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!ys(e)||!kD(e))&&t.appendChild(this.cloneNode(e,n))},r.prototype.cloneChildNodes=function(t,e,n){for(var a=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(ys(i)&&zO(i)&&typeof i.assignedNodes=="function"){var A=i.assignedNodes();A.length&&A.forEach(function(o){return a.appendChildNode(e,o,n)})}else this.appendChildNode(e,i,n)},r.prototype.cloneNode=function(t,e){if(NO(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&ys(t)&&(AB(t)||uv(t))){var a=this.createElementClone(t);a.style.transitionProperty="none";var i=n.getComputedStyle(t),A=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&AB(a)&&(this.clonedReferenceElement=a),$C(a)&&Flt(a);var s=this.counters.parse(new SD(this.context,i)),l=this.resolvePseudoContent(t,a,A,Vu.BEFORE);ND(t)&&(e=!0),OD(t)||this.cloneChildNodes(t,a,e),l&&a.insertBefore(l,a.firstChild);var u=this.resolvePseudoContent(t,a,o,Vu.AFTER);return u&&a.appendChild(u),this.counters.pop(s),(i&&(this.options.copyStyles||uv(t))&&!KO(t)||e)&&Lm(i,a),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([a,t.scrollLeft,t.scrollTop]),(gd(t)||yd(t))&&(gd(a)||yd(a))&&(a.value=t.value),a}return t.cloneNode(!1)},r.prototype.resolvePseudoContent=function(t,e,n,a){var i=this;if(n){var A=n.content,o=e.ownerDocument;if(!(!o||!A||A==="none"||A==="-moz-alt-content"||n.display==="none")){this.counters.parse(new SD(this.context,n));var s=new fst(this.context,n),l=o.createElement("html2canvaspseudoelement");Lm(n,l),s.content.forEach(function(f){if(f.type===0)l.appendChild(o.createTextNode(f.value));else if(f.type===22){var c=o.createElement("img");c.src=f.value,c.style.opacity="1",l.appendChild(c)}else if(f.type===18){if(f.name==="attr"){var h=f.values.filter(le);h.length&&l.appendChild(o.createTextNode(t.getAttribute(h[0].value)||""))}else if(f.name==="counter"){var v=f.values.filter(zs),d=v[0],p=v[1];if(d&&le(d)){var g=i.counters.getCounterValue(d.value),y=p&&le(p)?rB.parse(i.context,p.value):3;l.appendChild(o.createTextNode(Tf(g,y,!1)))}}else if(f.name==="counters"){var m=f.values.filter(zs),d=m[0],w=m[1],p=m[2];if(d&&le(d)){var _=i.counters.getCounterValues(d.value),B=p&&le(p)?rB.parse(i.context,p.value):3,C=w&&w.type===0?w.value:"",S=_.map(function(I){return Tf(I,B,!1)}).join(C);l.appendChild(o.createTextNode(S))}}}else if(f.type===20)switch(f.value){case"open-quote":l.appendChild(o.createTextNode(CD(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(CD(s.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(f.value))}}),l.className=sB+" "+lB;var u=a===Vu.BEFORE?" "+sB:" "+lB;return uv(e)?e.className.baseValue+=u:e.className+=u,l}}},r.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},r}(),Vu;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Vu||(Vu={}));var mlt=function(r,t){var e=r.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(XO,"true"),r.body.appendChild(e),e},wlt=function(r){return new Promise(function(t){if(r.complete){t();return}if(!r.src){t();return}r.onload=t,r.onerror=t})},Blt=function(r){return Promise.all([].slice.call(r.images,0).map(wlt))},_lt=function(r){return new Promise(function(t,e){var n=r.contentWindow;if(!n)return e("No window assigned for iframe");var a=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),t(r))},50)}})},Clt=["all","d","content"],Lm=function(r,t){for(var e=r.length-1;e>=0;e--){var n=r.item(e);Clt.indexOf(n)===-1&&t.style.setProperty(n,r.getPropertyValue(n))}return t},Slt=function(r){var t="";return r&&(t+="<!DOCTYPE ",r.name&&(t+=r.name),r.internalSubset&&(t+=r.internalSubset),r.publicId&&(t+='"'+r.publicId+'"'),r.systemId&&(t+='"'+r.systemId+'"'),t+=">"),t},xlt=function(r,t,e){r&&r.defaultView&&(t!==r.defaultView.pageXOffset||e!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(t,e)},blt=function(r){var t=r[0],e=r[1],n=r[2];t.scrollLeft=e,t.scrollTop=n},Tlt=":before",Ilt=":after",sB="___html2canvas___pseudoelement_before",lB="___html2canvas___pseudoelement_after",YD=`{
|
||
content: "" !important;
|
||
display: none !important;
|
||
}`,Flt=function(r){Elt(r,"."+sB+Tlt+YD+`
|
||
.`+lB+Ilt+YD)},Elt=function(r,t){var e=r.ownerDocument;if(e){var n=e.createElement("style");n.textContent=t,r.appendChild(n)}},YO=function(){function r(){}return r.getOrigin=function(t){var e=r._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},r.isSameOrigin=function(t){return r.getOrigin(t)===r._origin},r.setContext=function(t){r._link=t.document.createElement("a"),r._origin=r.getOrigin(t.location.href)},r._origin="about:blank",r}(),Dlt=function(){function r(t,e){this.context=t,this._options=e,this._cache={}}return r.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)||(Um(t)||Ult(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),e},r.prototype.match=function(t){return this._cache[t]},r.prototype.loadImage=function(t){return hr(this,void 0,void 0,function(){var e,n,a,i,A=this;return er(this,function(o){switch(o.label){case 0:return e=YO.isSameOrigin(t),n=!Mm(t)&&this._options.useCORS===!0&&We.SUPPORT_CORS_IMAGES&&!e,a=!Mm(t)&&!e&&!Um(t)&&typeof this._options.proxy=="string"&&We.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Mm(t)&&!Um(t)&&!a&&!n?[2]:(i=t,a?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(s,l){var u=new Image;u.onload=function(){return s(u)},u.onerror=l,(Plt(i)||n)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return s(u)},500),A._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},r.prototype.has=function(t){return typeof this._cache[t]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(i,A){var o=We.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o==="text")i(s.response);else{var f=new FileReader;f.addEventListener("load",function(){return i(f.result)},!1),f.addEventListener("error",function(c){return A(c)},!1),f.readAsDataURL(s.response)}else A("Failed to proxy resource "+a+" with status code "+s.status)},s.onerror=A;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var u=e._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return A("Timed out ("+u+"ms) proxying "+a)}}s.send()})},r}(),Qlt=/^data:image\/svg\+xml/i,Llt=/^data:image\/.*;base64,/i,Mlt=/^data:image\/.*/i,Ult=function(r){return We.SUPPORT_SVG_DRAWING||!Rlt(r)},Mm=function(r){return Mlt.test(r)},Plt=function(r){return Llt.test(r)},Um=function(r){return r.substr(0,4)==="blob"},Rlt=function(r){return r.substr(-3).toLowerCase()==="svg"||Qlt.test(r)},ht=function(){function r(t,e){this.type=0,this.x=t,this.y=e}return r.prototype.add=function(t,e){return new r(this.x+t,this.y+e)},r}(),rs=function(r,t,e){return new ht(r.x+(t.x-r.x)*e,r.y+(t.y-r.y)*e)},Eh=function(){function r(t,e,n,a){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=a}return r.prototype.subdivide=function(t,e){var n=rs(this.start,this.startControl,t),a=rs(this.startControl,this.endControl,t),i=rs(this.endControl,this.end,t),A=rs(n,a,t),o=rs(a,i,t),s=rs(A,o,t);return e?new r(this.start,n,A,s):new r(s,o,i,this.end)},r.prototype.add=function(t,e){return new r(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),sn=function(r){return r.type===1},Hlt=function(){function r(t){var e=t.styles,n=t.bounds,a=cu(e.borderTopLeftRadius,n.width,n.height),i=a[0],A=a[1],o=cu(e.borderTopRightRadius,n.width,n.height),s=o[0],l=o[1],u=cu(e.borderBottomRightRadius,n.width,n.height),f=u[0],c=u[1],h=cu(e.borderBottomLeftRadius,n.width,n.height),v=h[0],d=h[1],p=[];p.push((i+s)/n.width),p.push((v+f)/n.width),p.push((A+d)/n.height),p.push((l+c)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,A/=g,s/=g,l/=g,f/=g,c/=g,v/=g,d/=g);var y=n.width-s,m=n.height-c,w=n.width-f,_=n.height-d,B=e.borderTopWidth,C=e.borderRightWidth,S=e.borderBottomWidth,x=e.borderLeftWidth,b=ve(e.paddingTop,t.bounds.width),I=ve(e.paddingRight,t.bounds.width),F=ve(e.paddingBottom,t.bounds.width),E=ve(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||A>0?pe(n.left+x/3,n.top+B/3,i-x/3,A-B/3,ee.TOP_LEFT):new ht(n.left+x/3,n.top+B/3),this.topRightBorderDoubleOuterBox=i>0||A>0?pe(n.left+y,n.top+B/3,s-C/3,l-B/3,ee.TOP_RIGHT):new ht(n.left+n.width-C/3,n.top+B/3),this.bottomRightBorderDoubleOuterBox=f>0||c>0?pe(n.left+w,n.top+m,f-C/3,c-S/3,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C/3,n.top+n.height-S/3),this.bottomLeftBorderDoubleOuterBox=v>0||d>0?pe(n.left+x/3,n.top+_,v-x/3,d-S/3,ee.BOTTOM_LEFT):new ht(n.left+x/3,n.top+n.height-S/3),this.topLeftBorderDoubleInnerBox=i>0||A>0?pe(n.left+x*2/3,n.top+B*2/3,i-x*2/3,A-B*2/3,ee.TOP_LEFT):new ht(n.left+x*2/3,n.top+B*2/3),this.topRightBorderDoubleInnerBox=i>0||A>0?pe(n.left+y,n.top+B*2/3,s-C*2/3,l-B*2/3,ee.TOP_RIGHT):new ht(n.left+n.width-C*2/3,n.top+B*2/3),this.bottomRightBorderDoubleInnerBox=f>0||c>0?pe(n.left+w,n.top+m,f-C*2/3,c-S*2/3,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C*2/3,n.top+n.height-S*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||d>0?pe(n.left+x*2/3,n.top+_,v-x*2/3,d-S*2/3,ee.BOTTOM_LEFT):new ht(n.left+x*2/3,n.top+n.height-S*2/3),this.topLeftBorderStroke=i>0||A>0?pe(n.left+x/2,n.top+B/2,i-x/2,A-B/2,ee.TOP_LEFT):new ht(n.left+x/2,n.top+B/2),this.topRightBorderStroke=i>0||A>0?pe(n.left+y,n.top+B/2,s-C/2,l-B/2,ee.TOP_RIGHT):new ht(n.left+n.width-C/2,n.top+B/2),this.bottomRightBorderStroke=f>0||c>0?pe(n.left+w,n.top+m,f-C/2,c-S/2,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C/2,n.top+n.height-S/2),this.bottomLeftBorderStroke=v>0||d>0?pe(n.left+x/2,n.top+_,v-x/2,d-S/2,ee.BOTTOM_LEFT):new ht(n.left+x/2,n.top+n.height-S/2),this.topLeftBorderBox=i>0||A>0?pe(n.left,n.top,i,A,ee.TOP_LEFT):new ht(n.left,n.top),this.topRightBorderBox=s>0||l>0?pe(n.left+y,n.top,s,l,ee.TOP_RIGHT):new ht(n.left+n.width,n.top),this.bottomRightBorderBox=f>0||c>0?pe(n.left+w,n.top+m,f,c,ee.BOTTOM_RIGHT):new ht(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=v>0||d>0?pe(n.left,n.top+_,v,d,ee.BOTTOM_LEFT):new ht(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||A>0?pe(n.left+x,n.top+B,Math.max(0,i-x),Math.max(0,A-B),ee.TOP_LEFT):new ht(n.left+x,n.top+B),this.topRightPaddingBox=s>0||l>0?pe(n.left+Math.min(y,n.width-C),n.top+B,y>n.width+C?0:Math.max(0,s-C),Math.max(0,l-B),ee.TOP_RIGHT):new ht(n.left+n.width-C,n.top+B),this.bottomRightPaddingBox=f>0||c>0?pe(n.left+Math.min(w,n.width-x),n.top+Math.min(m,n.height-S),Math.max(0,f-C),Math.max(0,c-S),ee.BOTTOM_RIGHT):new ht(n.left+n.width-C,n.top+n.height-S),this.bottomLeftPaddingBox=v>0||d>0?pe(n.left+x,n.top+Math.min(_,n.height-S),Math.max(0,v-x),Math.max(0,d-S),ee.BOTTOM_LEFT):new ht(n.left+x,n.top+n.height-S),this.topLeftContentBox=i>0||A>0?pe(n.left+x+E,n.top+B+b,Math.max(0,i-(x+E)),Math.max(0,A-(B+b)),ee.TOP_LEFT):new ht(n.left+x+E,n.top+B+b),this.topRightContentBox=s>0||l>0?pe(n.left+Math.min(y,n.width+x+E),n.top+B+b,y>n.width+x+E?0:s-x+E,l-(B+b),ee.TOP_RIGHT):new ht(n.left+n.width-(C+I),n.top+B+b),this.bottomRightContentBox=f>0||c>0?pe(n.left+Math.min(w,n.width-(x+E)),n.top+Math.min(m,n.height+B+b),Math.max(0,f-(C+I)),c-(S+F),ee.BOTTOM_RIGHT):new ht(n.left+n.width-(C+I),n.top+n.height-(S+F)),this.bottomLeftContentBox=v>0||d>0?pe(n.left+x+E,n.top+_,Math.max(0,v-(x+E)),d-(S+F),ee.BOTTOM_LEFT):new ht(n.left+x+E,n.top+n.height-(S+F))}return r}(),ee;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ee||(ee={}));var pe=function(r,t,e,n,a){var i=4*((Math.sqrt(2)-1)/3),A=e*i,o=n*i,s=r+e,l=t+n;switch(a){case ee.TOP_LEFT:return new Eh(new ht(r,l),new ht(r,l-o),new ht(s-A,t),new ht(s,t));case ee.TOP_RIGHT:return new Eh(new ht(r,t),new ht(r+A,t),new ht(s,l-o),new ht(s,l));case ee.BOTTOM_RIGHT:return new Eh(new ht(s,t),new ht(s,t+o),new ht(r+A,l),new ht(r,l));case ee.BOTTOM_LEFT:default:return new Eh(new ht(s,l),new ht(s-A,l),new ht(r,t+o),new ht(r,t))}},md=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},Olt=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},wd=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},klt=function(){function r(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return r}(),Dh=function(){function r(t,e){this.path=t,this.target=e,this.type=1}return r}(),Nlt=function(){function r(t){this.opacity=t,this.type=2,this.target=6}return r}(),Vlt=function(r){return r.type===0},ZO=function(r){return r.type===1},Glt=function(r){return r.type===2},ZD=function(r,t){return r.length===t.length?r.some(function(e,n){return e===t[n]}):!1},Klt=function(r,t,e,n,a){return r.map(function(i,A){switch(A){case 0:return i.add(t,e);case 1:return i.add(t+n,e);case 2:return i.add(t+n,e+a);case 3:return i.add(t,e+a)}return i})},$O=function(){function r(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),JO=function(){function r(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Hlt(this.container),this.container.styles.opacity<1&&this.effects.push(new Nlt(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new klt(n,a,i))}if(this.container.styles.overflowX!==0){var A=md(this.curves),o=wd(this.curves);ZD(A,o)?this.effects.push(new Dh(A,6)):(this.effects.push(new Dh(A,2)),this.effects.push(new Dh(o,4)))}}return r.prototype.getEffects=function(t){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var i=n.effects.filter(function(s){return!ZO(s)});if(e||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var A=md(n.curves),o=wd(n.curves);ZD(A,o)||a.unshift(new Dh(o,6))}}else a.unshift.apply(a,i);n=n.parent}return a.filter(function(s){return Ue(s.target,t)})},r}(),uB=function(r,t,e,n){r.container.elements.forEach(function(a){var i=Ue(a.flags,4),A=Ue(a.flags,2),o=new JO(a,r);Ue(a.styles.display,2048)&&n.push(o);var s=Ue(a.flags,8)?[]:n;if(i||A){var l=i||a.styles.isPositioned()?e:t,u=new $O(o);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var f=a.styles.zIndex.order;if(f<0){var c=0;l.negativeZIndex.some(function(v,d){return f>v.element.container.styles.zIndex.order?(c=d,!1):c>0}),l.negativeZIndex.splice(c,0,u)}else if(f>0){var h=0;l.positiveZIndex.some(function(v,d){return f>=v.element.container.styles.zIndex.order?(h=d+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);uB(o,u,i?u:e,s)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),uB(o,t,e,s);Ue(a.flags,8)&&qO(a,s)})},qO=function(r,t){for(var e=r instanceof iB?r.start:1,n=r instanceof iB?r.reversed:!1,a=0;a<t.length;a++){var i=t[a];i.container instanceof UO&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=Tf(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},zlt=function(r){var t=new JO(r,null),e=new $O(t),n=[];return uB(t,e,e,n),qO(t.container,n),e},$D=function(r,t){switch(t){case 0:return hn(r.topLeftBorderBox,r.topLeftPaddingBox,r.topRightBorderBox,r.topRightPaddingBox);case 1:return hn(r.topRightBorderBox,r.topRightPaddingBox,r.bottomRightBorderBox,r.bottomRightPaddingBox);case 2:return hn(r.bottomRightBorderBox,r.bottomRightPaddingBox,r.bottomLeftBorderBox,r.bottomLeftPaddingBox);case 3:default:return hn(r.bottomLeftBorderBox,r.bottomLeftPaddingBox,r.topLeftBorderBox,r.topLeftPaddingBox)}},Wlt=function(r,t){switch(t){case 0:return hn(r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox,r.topRightBorderBox,r.topRightBorderDoubleOuterBox);case 1:return hn(r.topRightBorderBox,r.topRightBorderDoubleOuterBox,r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox);case 2:return hn(r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox,r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox);case 3:default:return hn(r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox,r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox)}},Xlt=function(r,t){switch(t){case 0:return hn(r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox,r.topRightBorderDoubleInnerBox,r.topRightPaddingBox);case 1:return hn(r.topRightBorderDoubleInnerBox,r.topRightPaddingBox,r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox);case 2:return hn(r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox,r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox);case 3:default:return hn(r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox,r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox)}},Ylt=function(r,t){switch(t){case 0:return Qh(r.topLeftBorderStroke,r.topRightBorderStroke);case 1:return Qh(r.topRightBorderStroke,r.bottomRightBorderStroke);case 2:return Qh(r.bottomRightBorderStroke,r.bottomLeftBorderStroke);case 3:default:return Qh(r.bottomLeftBorderStroke,r.topLeftBorderStroke)}},Qh=function(r,t){var e=[];return sn(r)?e.push(r.subdivide(.5,!1)):e.push(r),sn(t)?e.push(t.subdivide(.5,!0)):e.push(t),e},hn=function(r,t,e,n){var a=[];return sn(r)?a.push(r.subdivide(.5,!1)):a.push(r),sn(e)?a.push(e.subdivide(.5,!0)):a.push(e),sn(n)?a.push(n.subdivide(.5,!0).reverse()):a.push(n),sn(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},jO=function(r){var t=r.bounds,e=r.styles;return t.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},Bd=function(r){var t=r.styles,e=r.bounds,n=ve(t.paddingLeft,e.width),a=ve(t.paddingRight,e.width),i=ve(t.paddingTop,e.width),A=ve(t.paddingBottom,e.width);return e.add(n+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+a),-(t.borderTopWidth+t.borderBottomWidth+i+A))},Zlt=function(r,t){return r===0?t.bounds:r===2?Bd(t):jO(t)},$lt=function(r,t){return r===0?t.bounds:r===2?Bd(t):jO(t)},Pm=function(r,t,e){var n=Zlt(cs(r.styles.backgroundOrigin,t),r),a=$lt(cs(r.styles.backgroundClip,t),r),i=Jlt(cs(r.styles.backgroundSize,t),e,n),A=i[0],o=i[1],s=cu(cs(r.styles.backgroundPosition,t),n.width-A,n.height-o),l=qlt(cs(r.styles.backgroundRepeat,t),s,i,n,a),u=Math.round(n.left+s[0]),f=Math.round(n.top+s[1]);return[l,u,f,A,o]},ns=function(r){return le(r)&&r.value===Es.AUTO},Lh=function(r){return typeof r=="number"},Jlt=function(r,t,e){var n=t[0],a=t[1],i=t[2],A=r[0],o=r[1];if(!A)return[0,0];if(Ee(A)&&o&&Ee(o))return[ve(A,e.width),ve(o,e.height)];var s=Lh(i);if(le(A)&&(A.value===Es.CONTAIN||A.value===Es.COVER)){if(Lh(i)){var l=e.width/e.height;return l<i!=(A.value===Es.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var u=Lh(n),f=Lh(a),c=u||f;if(ns(A)&&(!o||ns(o))){if(u&&f)return[n,a];if(!s&&!c)return[e.width,e.height];if(c&&s){var h=u?n:a*i,v=f?a:n/i;return[h,v]}var d=u?n:e.width,p=f?a:e.height;return[d,p]}if(s){var g=0,y=0;return Ee(A)?g=ve(A,e.width):Ee(o)&&(y=ve(o,e.height)),ns(A)?g=y*i:(!o||ns(o))&&(y=g/i),[g,y]}var m=null,w=null;if(Ee(A)?m=ve(A,e.width):o&&Ee(o)&&(w=ve(o,e.height)),m!==null&&(!o||ns(o))&&(w=u&&f?m/n*a:e.height),w!==null&&ns(A)&&(m=u&&f?w/a*n:e.width),m!==null&&w!==null)return[m,w];throw new Error("Unable to calculate background-size for element")},cs=function(r,t){var e=r[t];return typeof e>"u"?r[0]:e},qlt=function(r,t,e,n,a){var i=t[0],A=t[1],o=e[0],s=e[1];switch(r){case 2:return[new ht(Math.round(n.left),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(s+n.top+A)),new ht(Math.round(n.left),Math.round(s+n.top+A))];case 3:return[new ht(Math.round(n.left+i),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.height+n.top)),new ht(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new ht(Math.round(n.left+i),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A+s)),new ht(Math.round(n.left+i),Math.round(n.top+A+s))];default:return[new ht(Math.round(a.left),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.height+a.top)),new ht(Math.round(a.left),Math.round(a.height+a.top))]}},jlt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",JD="Hidden Text",tut=function(){function r(t){this._data={},this._document=t}return r.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),A=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",A.appendChild(n),a.src=jlt,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(JD)),n.appendChild(i),n.appendChild(a);var o=a.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(JD)),n.style.lineHeight="normal",a.style.verticalAlign="super";var s=a.offsetTop-n.offsetTop+2;return A.removeChild(n),{baseline:o,middle:s}},r.prototype.getMetrics=function(t,e){var n=t+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},r}(),tk=function(){function r(t,e){this.context=t,this.options=e}return r}(),eut=1e4,rut=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new tut(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return t.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(a){return n.applyEffect(a)})},t.prototype.applyEffect=function(e){this.ctx.save(),Glt(e)&&(this.ctx.globalAlpha=e.opacity),Vlt(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),ZO(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return hr(this,void 0,void 0,function(){var n;return er(this,function(a){switch(a.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(e){return hr(this,void 0,void 0,function(){return er(this,function(n){switch(n.label){case 0:if(Ue(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(e,n,a){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+a);else{var A=YC(e.text);A.reduce(function(o,s){return i.ctx.fillText(s,o,e.bounds.top+a),o+i.ctx.measureText(s).width},e.bounds.left)}},t.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),a=out(e.fontFamily).join(", "),i=jf(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,a].join(" "),a,i]},t.prototype.renderTextNode=function(e,n){return hr(this,void 0,void 0,function(){var a,i,A,o,s,l,u,f,c=this;return er(this,function(h){return a=this.createFontStyle(n),i=a[0],A=a[1],o=a[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(A,o),l=s.baseline,u=s.middle,f=n.paintOrder,e.textBounds.forEach(function(v){f.forEach(function(d){switch(d){case 0:c.ctx.fillStyle=Ne(n.color),c.renderTextWithLetterSpacing(v,n.letterSpacing,l);var p=n.textShadow;p.length&&v.text.trim().length&&(p.slice(0).reverse().forEach(function(g){c.ctx.shadowColor=Ne(g.color),c.ctx.shadowOffsetX=g.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=g.offsetY.number*c.options.scale,c.ctx.shadowBlur=g.blur.number,c.renderTextWithLetterSpacing(v,n.letterSpacing,l)}),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),n.textDecorationLine.length&&(c.ctx.fillStyle=Ne(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+l),v.bounds.width,1);break;case 2:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:c.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+u),v.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&v.text.trim().length&&(c.ctx.strokeStyle=Ne(n.webkitTextStrokeColor),c.ctx.lineWidth=n.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+l)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(e,n,a){if(a&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=Bd(e),A=wd(n);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return hr(this,void 0,void 0,function(){var n,a,i,A,o,s,y,y,l,u,f,c,w,h,v,_,d,p,g,y,m,w,_;return er(this,function(B){switch(B.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,a=e.curves,i=n.styles,A=0,o=n.textNodes,B.label=1;case 1:return A<o.length?(s=o[A],[4,this.renderTextNode(s,i)]):[3,4];case 2:B.sent(),B.label=3;case 3:return A++,[3,1];case 4:if(!(n instanceof QO))return[3,8];B.label=5;case 5:return B.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return y=B.sent(),this.renderReplacedElement(n,a,y),[3,8];case 7:return B.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof LO&&this.renderReplacedElement(n,a,n.canvas),!(n instanceof MO))return[3,12];B.label=9;case 9:return B.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return y=B.sent(),this.renderReplacedElement(n,a,y),[3,12];case 11:return B.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof HO&&n.tree?(l=new t(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,l.render(n.tree)]):[3,14];case 13:u=B.sent(),n.width&&n.height&&this.ctx.drawImage(u,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),B.label=14;case 14:if(n instanceof ZC&&(f=Math.min(n.bounds.width,n.bounds.height),n.type===dd?n.checked&&(this.ctx.save(),this.path([new ht(n.bounds.left+f*.39363,n.bounds.top+f*.79),new ht(n.bounds.left+f*.16,n.bounds.top+f*.5549),new ht(n.bounds.left+f*.27347,n.bounds.top+f*.44071),new ht(n.bounds.left+f*.39694,n.bounds.top+f*.5649),new ht(n.bounds.left+f*.72983,n.bounds.top+f*.23),new ht(n.bounds.left+f*.84,n.bounds.top+f*.34085),new ht(n.bounds.left+f*.39363,n.bounds.top+f*.79)]),this.ctx.fillStyle=Ne(HD),this.ctx.fill(),this.ctx.restore()):n.type===pd&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+f/2,n.bounds.top+f/2,f/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ne(HD),this.ctx.fill(),this.ctx.restore())),nut(n)&&n.value.length){switch(c=this.createFontStyle(i),w=c[0],h=c[1],v=this.fontMetrics.getMetrics(w,h).baseline,this.ctx.font=w,this.ctx.fillStyle=Ne(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=iut(n.styles.textAlign),_=Bd(n),d=0,n.styles.textAlign){case 1:d+=_.width/2;break;case 2:d+=_.width;break}p=_.add(d,0,0,-_.height/2+1),this.ctx.save(),this.path([new ht(_.left,_.top),new ht(_.left+_.width,_.top),new ht(_.left+_.width,_.top+_.height),new ht(_.left,_.top+_.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Nu(n.value,p),i.letterSpacing,v),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ue(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(g=n.styles.listStyleImage,g.type!==0)return[3,18];y=void 0,m=g.url,B.label=15;case 15:return B.trys.push([15,17,,18]),[4,this.context.cache.match(m)];case 16:return y=B.sent(),this.ctx.drawImage(y,n.bounds.left-(y.width+10),n.bounds.top),[3,18];case 17:return B.sent(),this.context.logger.error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:e.listValue&&n.styles.listStyleType!==-1&&(w=this.createFontStyle(i)[0],this.ctx.font=w,this.ctx.fillStyle=Ne(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",_=new qa(n.bounds.left,n.bounds.top+ve(n.styles.paddingTop,n.bounds.width),n.bounds.width,BD(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Nu(e.listValue,_),i.letterSpacing,BD(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),B.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(e){return hr(this,void 0,void 0,function(){var n,a,g,i,A,g,o,s,g,l,u,g,f,c,g,h,v,g,d,p,g;return er(this,function(y){switch(y.label){case 0:if(Ue(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:y.sent(),n=0,a=e.negativeZIndex,y.label=2;case 2:return n<a.length?(g=a[n],[4,this.renderStack(g)]):[3,5];case 3:y.sent(),y.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:y.sent(),i=0,A=e.nonInlineLevel,y.label=7;case 7:return i<A.length?(g=A[i],[4,this.renderNode(g)]):[3,10];case 8:y.sent(),y.label=9;case 9:return i++,[3,7];case 10:o=0,s=e.nonPositionedFloats,y.label=11;case 11:return o<s.length?(g=s[o],[4,this.renderStack(g)]):[3,14];case 12:y.sent(),y.label=13;case 13:return o++,[3,11];case 14:l=0,u=e.nonPositionedInlineLevel,y.label=15;case 15:return l<u.length?(g=u[l],[4,this.renderStack(g)]):[3,18];case 16:y.sent(),y.label=17;case 17:return l++,[3,15];case 18:f=0,c=e.inlineLevel,y.label=19;case 19:return f<c.length?(g=c[f],[4,this.renderNode(g)]):[3,22];case 20:y.sent(),y.label=21;case 21:return f++,[3,19];case 22:h=0,v=e.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return h<v.length?(g=v[h],[4,this.renderStack(g)]):[3,26];case 24:y.sent(),y.label=25;case 25:return h++,[3,23];case 26:d=0,p=e.positiveZIndex,y.label=27;case 27:return d<p.length?(g=p[d],[4,this.renderStack(g)]):[3,30];case 28:y.sent(),y.label=29;case 29:return d++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},t.prototype.formatPath=function(e){var n=this;e.forEach(function(a,i){var A=sn(a)?a.start:a;i===0?n.ctx.moveTo(A.x,A.y):n.ctx.lineTo(A.x,A.y),sn(a)&&n.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},t.prototype.renderRepeat=function(e,n,a,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(a,i),this.ctx.fill(),this.ctx.translate(-a,-i)},t.prototype.resizeImage=function(e,n,a){var i;if(e.width===n&&e.height===a)return e;var A=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,o=A.createElement("canvas");o.width=Math.max(1,n),o.height=Math.max(1,a);var s=o.getContext("2d");return s.drawImage(e,0,0,e.width,e.height,0,0,n,a),o},t.prototype.renderBackgroundImage=function(e){return hr(this,void 0,void 0,function(){var n,a,i,A,o,s;return er(this,function(l){switch(l.label){case 0:n=e.styles.backgroundImage.length-1,a=function(u){var f,c,h,b,M,R,E,D,S,v,b,M,R,E,D,d,p,g,y,m,w,_,B,C,S,x,b,I,F,E,D,Q,M,R,P,O,G,X,J,At,lt,wt;return er(this,function(Bt){switch(Bt.label){case 0:if(u.type!==0)return[3,5];f=void 0,c=u.url,Bt.label=1;case 1:return Bt.trys.push([1,3,,4]),[4,i.context.cache.match(c)];case 2:return f=Bt.sent(),[3,4];case 3:return Bt.sent(),i.context.logger.error("Error loading background-image "+c),[3,4];case 4:return f&&(h=Pm(e,n,[f.width,f.height,f.width/f.height]),b=h[0],M=h[1],R=h[2],E=h[3],D=h[4],S=i.ctx.createPattern(i.resizeImage(f,E,D),"repeat"),i.renderRepeat(b,S,M,R)),[3,6];case 5:VAt(u)?(v=Pm(e,n,[null,null,null]),b=v[0],M=v[1],R=v[2],E=v[3],D=v[4],d=RAt(u.angle,E,D),p=d[0],g=d[1],y=d[2],m=d[3],w=d[4],_=document.createElement("canvas"),_.width=E,_.height=D,B=_.getContext("2d"),C=B.createLinearGradient(g,m,y,w),mD(u.stops,p).forEach(function(N){return C.addColorStop(N.stop,Ne(N.color))}),B.fillStyle=C,B.fillRect(0,0,E,D),E>0&&D>0&&(S=i.ctx.createPattern(_,"repeat"),i.renderRepeat(b,S,M,R))):GAt(u)&&(x=Pm(e,n,[null,null,null]),b=x[0],I=x[1],F=x[2],E=x[3],D=x[4],Q=u.position.length===0?[zC]:u.position,M=ve(Q[0],E),R=ve(Q[Q.length-1],D),P=HAt(u,M,R,E,D),O=P[0],G=P[1],O>0&&G>0&&(X=i.ctx.createRadialGradient(I+M,F+R,0,I+M,F+R,O),mD(u.stops,O*2).forEach(function(N){return X.addColorStop(N.stop,Ne(N.color))}),i.path(b),i.ctx.fillStyle=X,O!==G?(J=e.bounds.left+.5*e.bounds.width,At=e.bounds.top+.5*e.bounds.height,lt=G/O,wt=1/lt,i.ctx.save(),i.ctx.translate(J,At),i.ctx.transform(1,0,0,lt,0,0),i.ctx.translate(-J,-At),i.ctx.fillRect(I,wt*(F-At)+At,E,D*wt),i.ctx.restore()):i.ctx.fill())),Bt.label=6;case 6:return n--,[2]}})},i=this,A=0,o=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return A<o.length?(s=o[A],[5,a(s)]):[3,4];case 2:l.sent(),l.label=3;case 3:return A++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(e,n,a){return hr(this,void 0,void 0,function(){return er(this,function(i){return this.path($D(a,n)),this.ctx.fillStyle=Ne(e),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(e,n,a,i){return hr(this,void 0,void 0,function(){var A,o;return er(this,function(s){switch(s.label){case 0:return n<3?[4,this.renderSolidBorder(e,a,i)]:[3,2];case 1:return s.sent(),[2];case 2:return A=Wlt(i,a),this.path(A),this.ctx.fillStyle=Ne(e),this.ctx.fill(),o=Xlt(i,a),this.path(o),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(e){return hr(this,void 0,void 0,function(){var n,a,i,A,o,s,l,u,f=this;return er(this,function(c){switch(c.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,a=!Vi(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],A=aut(cs(n.backgroundClip,0),e.curves),a||n.boxShadow.length?(this.ctx.save(),this.path(A),this.ctx.clip(),Vi(n.backgroundColor)||(this.ctx.fillStyle=Ne(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:c.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(h){f.ctx.save();var v=md(e.curves),d=h.inset?0:eut,p=Klt(v,-d+(h.inset?1:-1)*h.spread.number,(h.inset?1:-1)*h.spread.number,h.spread.number*(h.inset?-2:2),h.spread.number*(h.inset?-2:2));h.inset?(f.path(v),f.ctx.clip(),f.mask(p)):(f.mask(v),f.ctx.clip(),f.path(p)),f.ctx.shadowOffsetX=h.offsetX.number+d,f.ctx.shadowOffsetY=h.offsetY.number,f.ctx.shadowColor=Ne(h.color),f.ctx.shadowBlur=h.blur.number,f.ctx.fillStyle=h.inset?Ne(h.color):"rgba(0,0,0,1)",f.ctx.fill(),f.ctx.restore()}),c.label=2;case 2:o=0,s=0,l=i,c.label=3;case 3:return s<l.length?(u=l[s],u.style!==0&&!Vi(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return c.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,3)];case 6:return c.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,e.curves)];case 8:return c.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,e.curves)];case 10:c.sent(),c.label=11;case 11:o++,c.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,n,a,i,A){return hr(this,void 0,void 0,function(){var o,s,l,u,f,c,h,v,d,p,g,y,m,w,_,B,_,B;return er(this,function(C){return this.ctx.save(),o=Ylt(i,a),s=$D(i,a),A===2&&(this.path(s),this.ctx.clip()),sn(s[0])?(l=s[0].start.x,u=s[0].start.y):(l=s[0].x,u=s[0].y),sn(s[1])?(f=s[1].end.x,c=s[1].end.y):(f=s[1].x,c=s[1].y),a===0||a===2?h=Math.abs(l-f):h=Math.abs(u-c),this.ctx.beginPath(),A===3?this.formatPath(o):this.formatPath(s.slice(0,2)),v=n<3?n*3:n*2,d=n<3?n*2:n,A===3&&(v=n,d=n),p=!0,h<=v*2?p=!1:h<=v*2+d?(g=h/(2*v+d),v*=g,d*=g):(y=Math.floor((h+d)/(v+d)),m=(h-y*v)/(y-1),w=(h-(y+1)*v)/y,d=w<=0||Math.abs(d-m)<Math.abs(d-w)?m:w),p&&(A===3?this.ctx.setLineDash([0,v+d]):this.ctx.setLineDash([v,d])),A===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=Ne(e),this.ctx.stroke(),this.ctx.setLineDash([]),A===2&&(sn(s[0])&&(_=s[3],B=s[0],this.ctx.beginPath(),this.formatPath([new ht(_.end.x,_.end.y),new ht(B.start.x,B.start.y)]),this.ctx.stroke()),sn(s[1])&&(_=s[1],B=s[2],this.ctx.beginPath(),this.formatPath([new ht(_.end.x,_.end.y),new ht(B.start.x,B.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(e){return hr(this,void 0,void 0,function(){var n;return er(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ne(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=zlt(e),[4,this.renderStack(n)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(tk),nut=function(r){return r instanceof RO||r instanceof PO?!0:r instanceof ZC&&r.type!==pd&&r.type!==dd},aut=function(r,t){switch(r){case 0:return md(t);case 2:return Olt(t);case 1:default:return wd(t)}},iut=function(r){switch(r){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Aut=["-apple-system","system-ui"],out=function(r){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?r.filter(function(t){return Aut.indexOf(t)===-1}):r},sut=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=n,a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),a}return t.prototype.render=function(e){return hr(this,void 0,void 0,function(){var n,a;return er(this,function(i){switch(i.label){case 0:return n=aB(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,lut(n)];case 1:return a=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ne(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(tk),lut=function(r){return new Promise(function(t,e){var n=new Image;n.onload=function(){t(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},uut=function(){function r(t){var e=t.id,n=t.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return r.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,fh([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},r.prototype.getTime=function(){return Date.now()-this.start},r.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,fh([this.id,this.getTime()+"ms"],t))},r.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,fh([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},r.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,fh([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},r.instances={},r}(),fut=function(){function r(t,e){var n;this.windowBounds=e,this.instanceName="#"+r.instanceCount++,this.logger=new uut({id:this.instanceName,enabled:t.logging}),this.cache=(n=t.cache)!==null&&n!==void 0?n:new Dlt(this,t)}return r.instanceCount=1,r}(),cut=function(r,t){return t===void 0&&(t={}),hut(r,t)};typeof window<"u"&&YO.setContext(window);var hut=function(r,t){return hr(void 0,void 0,void 0,function(){var e,n,a,i,A,o,s,l,u,f,c,h,v,d,p,g,y,m,w,_,C,B,C,S,x,b,I,F,E,D,Q,M,R,P,O,G,X,J,At,lt;return er(this,function(wt){switch(wt.label){case 0:if(!r||typeof r!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=r.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return a={allowTaint:(S=t.allowTaint)!==null&&S!==void 0?S:!1,imageTimeout:(x=t.imageTimeout)!==null&&x!==void 0?x:15e3,proxy:t.proxy,useCORS:(b=t.useCORS)!==null&&b!==void 0?b:!1},i=Gw({logging:(I=t.logging)!==null&&I!==void 0?I:!0,cache:t.cache},a),A={windowWidth:(F=t.windowWidth)!==null&&F!==void 0?F:n.innerWidth,windowHeight:(E=t.windowHeight)!==null&&E!==void 0?E:n.innerHeight,scrollX:(D=t.scrollX)!==null&&D!==void 0?D:n.pageXOffset,scrollY:(Q=t.scrollY)!==null&&Q!==void 0?Q:n.pageYOffset},o=new qa(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),s=new fut(i,o),l=(M=t.foreignObjectRendering)!==null&&M!==void 0?M:!1,u={allowTaint:(R=t.allowTaint)!==null&&R!==void 0?R:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:l,copyStyles:l},s.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),f=new XD(s,r,u),c=f.clonedReferenceElement,c?[4,f.toIFrame(e,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=wt.sent(),v=$C(c)||vlt(c)?Kat(c.ownerDocument):_p(s,c),d=v.width,p=v.height,g=v.left,y=v.top,m=vut(s,c,t.backgroundColor),w={canvas:t.canvas,backgroundColor:m,scale:(O=(P=t.scale)!==null&&P!==void 0?P:n.devicePixelRatio)!==null&&O!==void 0?O:1,x:((G=t.x)!==null&&G!==void 0?G:0)+g,y:((X=t.y)!==null&&X!==void 0?X:0)+y,width:(J=t.width)!==null&&J!==void 0?J:Math.ceil(d),height:(At=t.height)!==null&&At!==void 0?At:Math.ceil(p)},l?(s.logger.debug("Document cloned, using foreign object rendering"),C=new sut(s,w),[4,C.render(c)]):[3,3];case 2:return _=wt.sent(),[3,5];case 3:return s.logger.debug("Document cloned, element located at "+g+","+y+" with size "+d+"x"+p+" using computed rendering"),s.logger.debug("Starting DOM parsing"),B=kO(s,c),m===B.styles.backgroundColor&&(B.styles.backgroundColor=Va.TRANSPARENT),s.logger.debug("Starting renderer for element at "+w.x+","+w.y+" with size "+w.width+"x"+w.height),C=new rut(s,w),[4,C.render(B)];case 4:_=wt.sent(),wt.label=5;case 5:return(!((lt=t.removeContainer)!==null&<!==void 0)||lt)&&(XD.destroy(h)||s.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),s.logger.debug("Finished rendering"),[2,_]}})})},vut=function(r,t,e){var n=t.ownerDocument,a=n.documentElement?Ou(r,getComputedStyle(n.documentElement).backgroundColor):Va.TRANSPARENT,i=n.body?Ou(r,getComputedStyle(n.body).backgroundColor):Va.TRANSPARENT,A=typeof e=="string"?Ou(r,e):e===null?Va.TRANSPARENT:4294967295;return t===n.documentElement?Vi(a)?Vi(i)?A:i:a:A};const dut=["id"],put={class:"host-name"},gut={class:"meta-1",style:{display:"flex","justify-content":"space-between"}},yut={class:"meta1-left",style:{display:"flex","justify-content":"flex-start","align-items":"center"}},mut={key:0,class:"offline-time time-tag"},wut={class:"meta-2"},But={class:"section"},_ut=["src"],Cut={class:"meta2-text"},Sut={class:"section"},xut={class:"meta2-text"},but={class:"labels section",style:{display:"flex"}},Tut={class:"charts-container",style:{display:"flex","justify-content":"space-between"}},Iut={class:"cpu-info hw-info"},Fut={class:"hw-detail"},Eut={class:"memory-info hw-info"},Dut={class:"hw-detail"},Qut={class:"swap-info hw-info"},Lut={class:"hw-detail"},Mut={class:"net"},Uut={class:"disks"},Yl="Josefin Sans",Put=Bo({__name:"Host",props:{status:{}},setup(r){const t=r,e=be(()=>t.status),n=jn(qE(e.value.meta.uptime)),a=jn(null),i=jn(null),A=jn(null),o=jn(null);let s=[];const l=jn(!0),u=be(()=>l.value?"#22c55e":"#ff4d4f"),f=be(()=>l.value?"#80ffb0":"#fd8182"),c=jn("0"),h=be(()=>Tat(e.value.meta.os.name,e.value.meta.os.version)),v=be(()=>Nw(e.value.hardware.mem.used,e.value.hardware.mem.total)),d=be(()=>e.value.hardware.swap.total>0?Nw(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A"),p=be(()=>({borderColor:`linear-gradient(90deg, ${u.value}, ${f.value})`})),g=be(()=>u.value);function y(){const w=Lc(a.value),_=Lc(i.value),B=Lc(A.value),C=Lc(o.value),S={color:"rgba(0, 0, 0, 0.8)",fontSize:18},x=["65%","80%"],b=["#a2d8f4","#0194e3"],I="center",F={label:{show:!0,fontSize:15,fontFamily:Yl,position:["50%","20%"]}};setInterval(()=>{if(l.value){const D=Date.now()/1e3-e.value.meta.observed_at;n.value=qE(e.value.meta.uptime+D)}},1e3);function E(){const D=Date.now()/1e3-e.value.meta.observed_at;c.value=Fat(D),(s.length===0||s[s.length-1][0]!==e.value.meta.observed_at)&&s.push([e.value.meta.observed_at,e.value.hardware.net.up,e.value.hardware.net.down]),s.length>20&&s.shift(),l.value=D<=JH,w.setOption({color:[iv(e.value.hardware.cpu.percent),Av(e.value.hardware.cpu.percent)],title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:S},textStyle:{fontFamily:Yl},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:be(()=>[{value:e.value.hardware.cpu.percent,name:"Used"},{value:100-e.value.hardware.cpu.percent,name:"Free"}]).value}]}),_.setOption({color:[iv(e.value.hardware.mem.used/e.value.hardware.mem.total*100),Av(e.value.hardware.mem.used/e.value.hardware.mem.total*100)],title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:S},textStyle:{fontFamily:Yl},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.mem.used,name:"Used"},{value:e.value.hardware.mem.total-e.value.hardware.mem.used,name:"Free"}]}]}),B.setOption({color:[iv(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0),Av(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0)],title:{text:e.value.hardware.swap.total>0?`${(e.value.hardware.swap.used/e.value.hardware.swap.total*100).toFixed(1)}%`:"N/A",left:"center",top:"center",textStyle:S},textStyle:{fontFamily:Yl},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.swap.total>0?e.value.hardware.swap.used:0,name:"Used"},{value:e.value.hardware.swap.total>0?e.value.hardware.swap.total-e.value.hardware.swap.used:100,name:"Free"}]}]}),C.setOption({color:b,title:{textStyle:S},textStyle:{fontFamily:Yl},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#0f7bc5",borderRadius:50,formatter:function(Q){return Q.axisDimension==="y"?av(Q.value*8,null,"bps"):uh(Q.value,!0)}}},formatter:function(Q){let M=uh(Q[0].name,!0)+"<br/>";return Q.forEach(function(R){M+=R.marker+(R.seriesName=="Tx"?"↑":"↓")+": "+av(R.value*8,null,"bps")+"<br/>"}),M}},toolbox:{feature:{}},grid:{top:"25%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:s.map(Q=>Q[0]),axisLabel:{formatter:function(Q){return uh(Q,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(Q){return av(Q*8,null,"b")}}}],series:[{name:"Tx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(Q=>Q[1]),showSymbol:!1,lineStyle:{type:"dashed"}},{name:"Rx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(Q=>Q[2]),showSymbol:!1}]})}E(),yu(()=>e.value,()=>{E()})}function m(){const w=document.querySelector(".host#"+e.value.meta.id);w&&cut(w,{scale:2}).then(_=>{const B=_.toDataURL("image/png"),C=document.createElement("a");C.href=B,C.download=`screenshot-${e.value.meta.id}-${uh(Date.now(),!1)}.png`,C.click()})}return IB(()=>{y()}),(w,_)=>(Er(),Fn("div",{class:"host",style:Ga([p.value,{"--hover-border-color":g.value}]),id:e.value.meta.id},[St("div",put,Ce(e.value.meta.name),1),St("div",gut,[St("div",yut,[yr(Qat,{class:"outline-anime",color:u.value,spreadColor:f.value,"is-online":l.value},null,8,["color","spreadColor","is-online"]),_[0]||(_[0]=dv(" ")),St("div",{class:"uptime time-tag",style:Ga([{"margin-right":"5px"},{backgroundColor:f.value,borderColor:u.value}])},Ce(n.value),5),l.value?jQ("",!0):(Er(),Fn("div",mut," Offline for "+Ce(c.value),1))]),St("div",{class:"meta1-right",style:{display:"flex","justify-content":"flex-end","align-items":"center"}},[St("img",{onClick:m,src:EV,alt:"download",style:{width:"20px",height:"20px"}})])]),St("div",wut,[St("div",But,[St("img",{class:"icon",src:h.value.icon,alt:"system"},null,8,_ut),St("span",Cut,Ce(h.value.name)+" "+Ce(e.value.meta.os.release)+" · "+Ce(e.value.meta.os.machine),1)]),St("div",Sut,[_[1]||(_[1]=St("img",{class:"icon",src:DV,alt:"location"},null,-1)),St("span",xut,Ce(e.value.meta.location)+" · "+Ce(e.value.meta.timezone),1)]),St("div",but,[_[2]||(_[2]=St("img",{class:"icon",src:QV,alt:"labels"},null,-1)),St("span",null,[(Er(!0),Fn(Fr,null,Vm(e.value.meta.labels,B=>(Er(),Fn("span",{class:"label meta2-text",key:B},Ce(B),1))),128))])])]),_[8]||(_[8]=St("hr",null,null,-1)),_[9]||(_[9]=St("div",{class:"section-name"}," Hardware ",-1)),St("div",Tut,[St("div",Iut,[St("div",{class:"chart",ref_key:"cpuChartRef",ref:a},null,512),_[3]||(_[3]=St("div",{class:"hw-title"},"CPU",-1)),St("div",Fut,Ce(e.value.hardware.cpu.cores)+"C "+Ce(e.value.hardware.cpu.logics)+"T",1)]),St("div",Eut,[St("div",{class:"chart",ref_key:"memoryChartRef",ref:i},null,512),_[4]||(_[4]=St("div",{class:"hw-title"},"Mem",-1)),St("div",Dut,Ce(v.value),1)]),St("div",Qut,[St("div",{class:"chart",ref_key:"swapChartRef",ref:A},null,512),_[5]||(_[5]=St("div",{class:"hw-title"},"Swap",-1)),St("div",Lut,Ce(d.value),1)])]),_[10]||(_[10]=St("hr",null,null,-1)),St("div",Mut,[_[6]||(_[6]=St("div",{class:"section-name"}," Network ",-1)),St("div",{class:"net-chart",ref_key:"netChartRef",ref:o},null,512)]),_[11]||(_[11]=St("hr",null,null,-1)),St("div",Uut,[_[7]||(_[7]=St("div",{class:"section-name"}," Storage ",-1)),(Er(!0),Fn(Fr,null,Vm(e.value.hardware.disks,B=>(Er(),QB(Gat,{key:B.mountpoint,mountpoint:B.mountpoint,device:B.device,used:B.used,total:B.total,fstype:B.fstype},null,8,["mountpoint","device","used","total","fstype"]))),128))])],12,dut))}}),Rut=Ws(Put,[["__scopeId","data-v-53661ee8"]]),Hut={class:"overview",style:{}},Out={class:"grid-container"},kut=Bo({__name:"Home",setup(r){const t=jn({}),e=jn(0),n=be(()=>{const i=Date.now()/1e3;let A=0;for(const o of Object.values(t.value))i-o.meta.observed_at<JH&&A++;return e.value=Object.values(t.value).length-A,A}),a=setInterval(async()=>{t.value=await Y1()},1e3);return IB(async()=>{t.value=await Y1()}),FB(()=>{clearInterval(a)}),(i,A)=>(Er(),Fn(Fr,null,[St("div",Hut,[St("h2",null,"Overview: "+Ce(n.value)+" Online "+Ce(e.value)+" Offline",1)]),St("div",Out,[(Er(!0),Fn(Fr,null,Vm(t.value,(o,s)=>(Er(),QB(Rut,{class:"grid-item",key:s,status:o},null,8,["status"]))),128))])],64))}}),Nut=Ws(kut,[["__scopeId","data-v-fc5340da"]]),Vut={};function Gut(r,t){return" Test "}const Kut=Ws(Vut,[["render",Gut]]),zut=[{path:"/",name:"主页",component:Nut},{path:"/test",name:"测试",component:Kut}],Wut=TV({history:nV("/"),routes:zut}),ek=_4(b4);ek.use(Wut);ek.mount("#app");
|