(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();/** * @vue/shared v3.5.4 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function qv(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Bt={},wa=[],Gr=()=>{},TT=()=>!1,Mu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Kv=e=>e.startsWith("onUpdate:"),ae=Object.assign,jv=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},CT=Object.prototype.hasOwnProperty,Dt=(e,t)=>CT.call(e,t),at=Array.isArray,Sa=e=>Eu(e)==="[object Map]",P_=e=>Eu(e)==="[object Set]",vt=e=>typeof e=="function",Zt=e=>typeof e=="string",$n=e=>typeof e=="symbol",Wt=e=>e!==null&&typeof e=="object",L_=e=>(Wt(e)||vt(e))&&vt(e.then)&&vt(e.catch),R_=Object.prototype.toString,Eu=e=>R_.call(e),AT=e=>Eu(e).slice(8,-1),I_=e=>Eu(e)==="[object Object]",Zv=e=>Zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Do=qv(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},DT=/-(\w)/g,un=Pu(e=>e.replace(DT,(t,r)=>r?r.toUpperCase():"")),MT=/\B([A-Z])/g,Ji=Pu(e=>e.replace(MT,"-$1").toLowerCase()),Jv=Pu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Df=Pu(e=>e?`on${Jv(e)}`:""),Wn=(e,t)=>!Object.is(e,t),Mf=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},ET=e=>{const t=parseFloat(e);return isNaN(t)?e:t},PT=e=>{const t=Zt(e)?Number(e):NaN;return isNaN(t)?e:t};let qp;const k_=()=>qp||(qp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Lu(e){if(at(e)){const t={};for(let r=0;r{if(r){const n=r.split(RT);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Uo(e){let t="";if(Zt(e))t=e;else if(at(e))for(let r=0;r!!(e&&e.__v_isRef===!0),U=e=>Zt(e)?e:e==null?"":at(e)||Wt(e)&&(e.toString===R_||!vt(e.toString))?N_(e)?U(e.value):JSON.stringify(e,F_,2):String(e),F_=(e,t)=>N_(t)?F_(e,t.value):Sa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[Ef(n,a)+" =>"]=i,r),{})}:P_(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Ef(r))}:$n(t)?Ef(t):Wt(t)&&!at(t)&&!I_(t)?String(t):t,Ef=(e,t="")=>{var r;return $n(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** * @vue/reactivity v3.5.4 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let $e;class NT{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$e,!t&&$e&&(this.index=($e.scopes||($e.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;let e;for(;Mo;){let t=Mo;for(Mo=void 0;t;){const r=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function V_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function G_(e){let t,r=e.depsTail;for(let n=r;n;n=n.prevDep)n.version===-1?(n===r&&(r=n.prevDep),ed(n),zT(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0;e.deps=t,e.depsTail=r}function mh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&U_(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function U_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wo))return;e.globalVersion=Wo;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!mh(e)){e.flags&=-3;return}const r=It,n=Sr;It=e,Sr=!0;try{V_(e);const i=e.fn(e._value);(t.version===0||Wn(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{It=r,Sr=n,G_(e),e.flags&=-3}}function ed(e){const{dep:t,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),t.subs===e&&(t.subs=r),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)ed(i)}}function zT(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Sr=!0;const W_=[];function Xn(){W_.push(Sr),Sr=!1}function qn(){const e=W_.pop();Sr=e===void 0?!0:e}function Kp(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=It;It=void 0;try{t()}finally{It=r}}}let Wo=0;class rd{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!It||!Sr||It===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==It)r=this.activeLink={dep:this,sub:It,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},It.deps?(r.prevDep=It.depsTail,It.depsTail.nextDep=r,It.depsTail=r):It.deps=It.depsTail=r,It.flags&4&&Y_(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=It.depsTail,r.nextDep=void 0,It.depsTail.nextDep=r,It.depsTail=r,It.deps===r&&(It.deps=n)}return r}trigger(t){this.version++,Wo++,this.notify(t)}notify(t){Qv();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()}finally{td()}}}function Y_(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Y_(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}const yh=new WeakMap,Ri=Symbol(""),_h=Symbol(""),Yo=Symbol("");function ye(e,t,r){if(Sr&&It){let n=yh.get(e);n||yh.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new rd),i.track()}}function an(e,t,r,n,i,a){const o=yh.get(e);if(!o){Wo++;return}const s=l=>{l&&l.trigger()};if(Qv(),t==="clear")o.forEach(s);else{const l=at(e),u=l&&Zv(r);if(l&&r==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===Yo||!$n(h)&&h>=f)&&s(c)})}else switch(r!==void 0&&s(o.get(r)),u&&s(o.get(Yo)),t){case"add":l?u&&s(o.get("length")):(s(o.get(Ri)),Sa(e)&&s(o.get(_h)));break;case"delete":l||(s(o.get(Ri)),Sa(e)&&s(o.get(_h)));break;case"set":Sa(e)&&s(o.get(Ri));break}}td()}function ta(e){const t=Ct(e);return t===e?t:(ye(t,"iterate",Yo),hr(e)?t:t.map(pe))}function Ru(e){return ye(e=Ct(e),"iterate",Yo),e}const HT={__proto__:null,[Symbol.iterator](){return Lf(this,Symbol.iterator,pe)},concat(...e){return ta(this).concat(...e.map(t=>at(t)?ta(t):t))},entries(){return Lf(this,"entries",e=>(e[1]=pe(e[1]),e))},every(e,t){return Kr(this,"every",e,t,void 0,arguments)},filter(e,t){return Kr(this,"filter",e,t,r=>r.map(pe),arguments)},find(e,t){return Kr(this,"find",e,t,pe,arguments)},findIndex(e,t){return Kr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Kr(this,"findLast",e,t,pe,arguments)},findLastIndex(e,t){return Kr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Kr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Rf(this,"includes",e)},indexOf(...e){return Rf(this,"indexOf",e)},join(e){return ta(this).join(e)},lastIndexOf(...e){return Rf(this,"lastIndexOf",e)},map(e,t){return Kr(this,"map",e,t,void 0,arguments)},pop(){return qa(this,"pop")},push(...e){return qa(this,"push",e)},reduce(e,...t){return jp(this,"reduce",e,t)},reduceRight(e,...t){return jp(this,"reduceRight",e,t)},shift(){return qa(this,"shift")},some(e,t){return Kr(this,"some",e,t,void 0,arguments)},splice(...e){return qa(this,"splice",e)},toReversed(){return ta(this).toReversed()},toSorted(e){return ta(this).toSorted(e)},toSpliced(...e){return ta(this).toSpliced(...e)},unshift(...e){return qa(this,"unshift",e)},values(){return Lf(this,"values",pe)}};function Lf(e,t,r){const n=Ru(e),i=n[t]();return n!==e&&!hr(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const VT=Array.prototype;function Kr(e,t,r,n,i,a){const o=Ru(e),s=o!==e&&!hr(e),l=o[t];if(l!==VT[t]){const c=l.apply(e,a);return s?pe(c):c}let u=r;o!==e&&(s?u=function(c,h){return r.call(this,pe(c),h,e)}:r.length>2&&(u=function(c,h){return r.call(this,c,h,e)}));const f=l.call(o,u,n);return s&&i?i(f):f}function jp(e,t,r,n){const i=Ru(e);let a=r;return i!==e&&(hr(e)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,e)}):a=function(o,s,l){return r.call(this,o,pe(s),l,e)}),i[t](a,...n)}function Rf(e,t,r){const n=Ct(e);ye(n,"iterate",Yo);const i=n[t](...r);return(i===-1||i===!1)&&sd(r[0])?(r[0]=Ct(r[0]),n[t](...r)):i}function qa(e,t,r=[]){Xn(),Qv();const n=Ct(e)[t].apply(e,r);return td(),qn(),n}const GT=qv("__proto__,__v_isRef,__isVue"),$_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($n));function UT(e){$n(e)||(e=String(e));const t=Ct(this);return ye(t,"has",e),t.hasOwnProperty(e)}class X_{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?rC:Z_:a?j_:K_).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=at(t);if(!i){let l;if(o&&(l=HT[r]))return l;if(r==="hasOwnProperty")return UT}const s=Reflect.get(t,r,ge(t)?t:n);return($n(r)?$_.has(r):GT(r))||(i||ye(t,"get",r),a)?s:ge(s)?o&&Zv(r)?s:s.value:Wt(s)?i?J_(s):ad(s):s}}class q_ extends X_{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=Hi(a);if(!hr(n)&&!Hi(n)&&(a=Ct(a),n=Ct(n)),!at(t)&&ge(a)&&!ge(n))return l?!1:(a.value=n,!0)}const o=at(t)&&Zv(r)?Number(r)e,Iu=e=>Reflect.getPrototypeOf(e);function Bs(e,t,r=!1,n=!1){e=e.__v_raw;const i=Ct(e),a=Ct(t);r||(Wn(t,a)&&ye(i,"get",t),ye(i,"get",a));const{has:o}=Iu(i),s=n?nd:r?ld:pe;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function Ns(e,t=!1){const r=this.__v_raw,n=Ct(r),i=Ct(e);return t||(Wn(e,i)&&ye(n,"has",e),ye(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function Fs(e,t=!1){return e=e.__v_raw,!t&&ye(Ct(e),"iterate",Ri),Reflect.get(e,"size",e)}function Zp(e,t=!1){!t&&!hr(e)&&!Hi(e)&&(e=Ct(e));const r=Ct(this);return Iu(r).has.call(r,e)||(r.add(e),an(r,"add",e,e)),this}function Jp(e,t,r=!1){!r&&!hr(t)&&!Hi(t)&&(t=Ct(t));const n=Ct(this),{has:i,get:a}=Iu(n);let o=i.call(n,e);o||(e=Ct(e),o=i.call(n,e));const s=a.call(n,e);return n.set(e,t),o?Wn(t,s)&&an(n,"set",e,t):an(n,"add",e,t),this}function Qp(e){const t=Ct(this),{has:r,get:n}=Iu(t);let i=r.call(t,e);i||(e=Ct(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&an(t,"delete",e,void 0),a}function tg(){const e=Ct(this),t=e.size!==0,r=e.clear();return t&&an(e,"clear",void 0,void 0),r}function zs(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Ct(o),l=t?nd:e?ld:pe;return!e&&ye(s,"iterate",Ri),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function Hs(e,t,r){return function(...n){const i=this.__v_raw,a=Ct(i),o=Sa(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?nd:t?ld:pe;return!t&&ye(a,"iterate",l?_h:Ri),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function _n(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function qT(){const e={get(a){return Bs(this,a)},get size(){return Fs(this)},has:Ns,add:Zp,set:Jp,delete:Qp,clear:tg,forEach:zs(!1,!1)},t={get(a){return Bs(this,a,!1,!0)},get size(){return Fs(this)},has:Ns,add(a){return Zp.call(this,a,!0)},set(a,o){return Jp.call(this,a,o,!0)},delete:Qp,clear:tg,forEach:zs(!1,!0)},r={get(a){return Bs(this,a,!0)},get size(){return Fs(this,!0)},has(a){return Ns.call(this,a,!0)},add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear"),forEach:zs(!0,!1)},n={get(a){return Bs(this,a,!0,!0)},get size(){return Fs(this,!0)},has(a){return Ns.call(this,a,!0)},add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear"),forEach:zs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=Hs(a,!1,!1),r[a]=Hs(a,!0,!1),t[a]=Hs(a,!1,!0),n[a]=Hs(a,!0,!0)}),[e,r,t,n]}const[KT,jT,ZT,JT]=qT();function id(e,t){const r=t?e?JT:ZT:e?jT:KT;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Dt(r,i)&&i in n?r:n,i,a)}const QT={get:id(!1,!1)},tC={get:id(!1,!0)},eC={get:id(!0,!1)};const K_=new WeakMap,j_=new WeakMap,Z_=new WeakMap,rC=new WeakMap;function nC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function iC(e){return e.__v_skip||!Object.isExtensible(e)?0:nC(AT(e))}function ad(e){return Hi(e)?e:od(e,!1,YT,QT,K_)}function aC(e){return od(e,!1,XT,tC,j_)}function J_(e){return od(e,!0,$T,eC,Z_)}function od(e,t,r,n,i){if(!Wt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=iC(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function Ta(e){return Hi(e)?Ta(e.__v_raw):!!(e&&e.__v_isReactive)}function Hi(e){return!!(e&&e.__v_isReadonly)}function hr(e){return!!(e&&e.__v_isShallow)}function sd(e){return e?!!e.__v_raw:!1}function Ct(e){const t=e&&e.__v_raw;return t?Ct(t):e}function oC(e){return!Dt(e,"__v_skip")&&Object.isExtensible(e)&&O_(e,"__v_skip",!0),e}const pe=e=>Wt(e)?ad(e):e,ld=e=>Wt(e)?J_(e):e;function ge(e){return e?e.__v_isRef===!0:!1}function ve(e){return sC(e,!1)}function sC(e,t){return ge(e)?e:new lC(e,t)}class lC{constructor(t,r){this.dep=new rd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Ct(t),this._value=r?t:pe(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||hr(t)||Hi(t);t=n?t:Ct(t),Wn(t,r)&&(this._rawValue=t,this._value=n?t:pe(t),this.dep.trigger())}}function Nr(e){return ge(e)?e.value:e}const uC={get:(e,t,r)=>t==="__v_raw"?e:Nr(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return ge(i)&&!ge(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function Q_(e){return Ta(e)?e:new Proxy(e,uC)}class fC{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new rd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wo-1,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){this.flags|=16,It!==this&&this.dep.notify()}get value(){const t=this.dep.track();return U_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cC(e,t,r=!1){let n,i;return vt(e)?n=e:(n=e.get,i=e.set),new fC(n,i,r)}const Vs={},$l=new WeakMap;let Si;function hC(e,t=!1,r=Si){if(r){let n=$l.get(r);n||$l.set(r,n=[]),n.push(e)}}function vC(e,t,r=Bt){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=b=>i?b:hr(b)||i===!1||i===0?rn(b,1):rn(b);let f,c,h,v,d=!1,g=!1;if(ge(e)?(c=()=>e.value,d=hr(e)):Ta(e)?(c=()=>u(e),d=!0):at(e)?(g=!0,d=e.some(b=>Ta(b)||hr(b)),c=()=>e.map(b=>{if(ge(b))return b.value;if(Ta(b))return u(b);if(vt(b))return l?l(b,2):b()})):vt(e)?t?c=l?()=>l(e,2):e:c=()=>{if(h){Xn();try{h()}finally{qn()}}const b=Si;Si=f;try{return l?l(e,3,[v]):e(v)}finally{Si=b}}:c=Gr,t&&i){const b=c,w=i===!0?1/0:i;c=()=>rn(b(),w)}const p=FT(),m=()=>{f.stop(),p&&jv(p.effects,f)};if(a)if(t){const b=t;t=(...w)=>{b(...w),m()}}else{const b=c;c=()=>{b(),m()}}let y=g?new Array(e.length).fill(Vs):Vs;const x=b=>{if(!(!(f.flags&1)||!f.dirty&&!b))if(t){const w=f.run();if(i||d||(g?w.some((_,T)=>Wn(_,y[T])):Wn(w,y))){h&&h();const _=Si;Si=f;try{const T=[w,y===Vs?void 0:g&&y[0]===Vs?[]:y,v];l?l(t,3,T):t(...T),y=w}finally{Si=_}}}else f.run()};return s&&s(x),f=new z_(c),f.scheduler=o?()=>o(x,!1):x,v=b=>hC(b,!1,f),h=f.onStop=()=>{const b=$l.get(f);if(b){if(l)l(b,4);else for(const w of b)w();$l.delete(f)}},t?n?x(!0):y=f.run():o?o(x.bind(null,!0),!0):f.run(),m.pause=f.pause.bind(f),m.resume=f.resume.bind(f),m.stop=m,m}function rn(e,t=1/0,r){if(t<=0||!Wt(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,ge(e))rn(e.value,t,r);else if(at(e))for(let n=0;n{rn(n,t,r)});else if(I_(e)){for(const n in e)rn(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&rn(e[n],t,r)}return e}/** * @vue/runtime-core v3.5.4 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function gs(e,t,r,n){try{return n?e(...n):e()}catch(i){Ou(i,t,r)}}function Cr(e,t,r,n){if(vt(e)){const i=gs(e,t,r,n);return i&&L_(i)&&i.catch(a=>{Ou(a,t,r)}),i}if(at(e)){const i=[];for(let a=0;a>>1,i=Ce[n],a=Xo(i);a=Xo(r)?Ce.push(e):Ce.splice(pC(t),0,e),e.flags|=1,r1()}}function r1(){!$o&&!xh&&(xh=!0,ud=t1.then(i1))}function gC(e){at(e)?Ca.push(...e):In&&e.id===-1?In.splice(ga+1,0,e):e.flags&1||(Ca.push(e),e.flags|=1),r1()}function eg(e,t,r=$o?Br+1:0){for(;rXo(r)-Xo(n));if(Ca.length=0,In){In.push(...t);return}for(In=t,ga=0;gae.id==null?e.flags&2?-1:1/0:e.id;function i1(e){xh=!1,$o=!0;try{for(Br=0;Br{n._d&&cg(-1);const a=Xl(t);let o;try{o=e(...i)}finally{Xl(a),n._d&&cg(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function mC(e,t){if(ne===null)return e;const r=Vu(ne),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,On=Symbol("_leaveCb"),Gs=Symbol("_enterCb");function _C(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Nu(()=>{e.isMounted=!0}),d1(()=>{e.isUnmounting=!0}),e}const tr=[Function,Array],s1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tr,onEnter:tr,onAfterEnter:tr,onEnterCancelled:tr,onBeforeLeave:tr,onLeave:tr,onAfterLeave:tr,onLeaveCancelled:tr,onBeforeAppear:tr,onAppear:tr,onAfterAppear:tr,onAppearCancelled:tr},l1=e=>{const t=e.subTree;return t.component?l1(t.component):t},xC={name:"BaseTransition",props:s1,setup(e,{slots:t}){const r=xA(),n=_C();return()=>{const i=t.default&&c1(t.default(),!0);if(!i||!i.length)return;const a=u1(i),o=Ct(e),{mode:s}=o;if(n.isLeaving)return If(a);const l=rg(a);if(!l)return If(a);let u=bh(l,o,n,r,h=>u=h);l.type!==De&&qo(l,u);const f=r.subTree,c=f&&rg(f);if(c&&c.type!==De&&!Ci(l,c)&&l1(r).type!==De){const h=bh(c,o,n,r);if(qo(c,h),s==="out-in"&&l.type!==De)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete h.afterLeave},If(a);s==="in-out"&&l.type!==De&&(h.delayLeave=(v,d,g)=>{const p=f1(n,c);p[String(c.key)]=c,v[On]=()=>{d(),v[On]=void 0,delete u.delayedLeave},u.delayedLeave=g})}return a}}};function u1(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==De){t=r;break}}return t}const bC=xC;function f1(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function bh(e,t,r,n,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:f,onEnterCancelled:c,onBeforeLeave:h,onLeave:v,onAfterLeave:d,onLeaveCancelled:g,onBeforeAppear:p,onAppear:m,onAfterAppear:y,onAppearCancelled:x}=t,b=String(e.key),w=f1(r,e),_=(D,E)=>{D&&Cr(D,n,9,E)},T=(D,E)=>{const P=E[1];_(D,E),at(D)?D.every(L=>L.length<=1)&&P():D.length<=1&&P()},C={mode:o,persisted:s,beforeEnter(D){let E=l;if(!r.isMounted)if(a)E=p||l;else return;D[On]&&D[On](!0);const P=w[b];P&&Ci(e,P)&&P.el[On]&&P.el[On](),_(E,[D])},enter(D){let E=u,P=f,L=c;if(!r.isMounted)if(a)E=m||u,P=y||f,L=x||c;else return;let I=!1;const k=D[Gs]=F=>{I||(I=!0,F?_(L,[D]):_(P,[D]),C.delayedLeave&&C.delayedLeave(),D[Gs]=void 0)};E?T(E,[D,k]):k()},leave(D,E){const P=String(e.key);if(D[Gs]&&D[Gs](!0),r.isUnmounting)return E();_(h,[D]);let L=!1;const I=D[On]=k=>{L||(L=!0,E(),k?_(g,[D]):_(d,[D]),D[On]=void 0,w[P]===e&&delete w[P])};w[P]=e,v?T(v,[D,I]):I()},clone(D){const E=bh(D,t,r,n,i);return i&&i(E),E}};return C}function If(e){if(ku(e))return e=Yn(e),e.children=null,e}function rg(e){if(!ku(e))return o1(e.type)&&e.children?u1(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&vt(r.default))return r.default()}}function qo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,qo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function c1(e,t=!1,r){let n=[],i=0;for(let a=0;a1)for(let a=0;awh(d,t&&(at(t)?t[g]:t),r,n,i));return}if(Aa(n)&&!i)return;const a=n.shapeFlag&4?Vu(n.component):n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===Bt?s.refs={}:s.refs,c=s.setupState,h=Ct(c),v=c===Bt?()=>!1:d=>Dt(h,d);if(u!=null&&u!==l&&(Zt(u)?(f[u]=null,v(u)&&(c[u]=null)):ge(u)&&(u.value=null)),vt(l))gs(l,s,12,[o,f]);else{const d=Zt(l),g=ge(l);if(d||g){const p=()=>{if(e.f){const m=d?v(l)?c[l]:f[l]:l.value;i?at(m)&&jv(m,a):at(m)?m.includes(a)||m.push(a):d?(f[l]=[a],v(l)&&(c[l]=f[l])):(l.value=[a],e.k&&(f[e.k]=l.value))}else d?(f[l]=o,v(l)&&(c[l]=o)):g&&(l.value=o,e.k&&(f[e.k]=o))};o?(p.id=-1,We(p,r)):p()}}}const Aa=e=>!!e.type.__asyncLoader,ku=e=>e.type.__isKeepAlive;function wC(e,t){v1(e,"a",t)}function SC(e,t){v1(e,"da",t)}function v1(e,t,r=le){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Bu(t,n,r),r){let i=r.parent;for(;i&&i.parent;)ku(i.parent.vnode)&&TC(n,t,r,i),i=i.parent}}function TC(e,t,r,n){const i=Bu(t,e,n,!0);cd(()=>{jv(n[t],i)},r)}function Bu(e,t,r=le,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Xn();const s=ms(r),l=Cr(t,r,e,o);return s(),qn(),l});return n?i.unshift(a):i.push(a),a}}const pn=e=>(t,r=le)=>{(!Hu||e==="sp")&&Bu(e,(...n)=>t(...n),r)},CC=pn("bm"),Nu=pn("m"),AC=pn("bu"),DC=pn("u"),d1=pn("bum"),cd=pn("um"),MC=pn("sp"),EC=pn("rtg"),PC=pn("rtc");function LC(e,t=le){Bu("ec",e,t)}const RC="directives",IC=Symbol.for("v-ndc");function OC(e){return kC(RC,e)}function kC(e,t,r=!0,n=!1){const i=ne||le;if(i){const a=i.type,o=ng(i[e]||a[e],t)||ng(i.appContext[e],t);return!o&&n?a:o}}function ng(e,t){return e&&(e[t]||e[un(t)]||e[Jv(un(t))])}function Of(e,t,r,n){let i;const a=r,o=at(e);if(o||Zt(e)){const s=o&&Ta(e);let l=!1;s&&(l=!hr(e),e=Ru(e)),i=new Array(e.length);for(let u=0,f=e.length;ut(s,l,void 0,a));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;ljl(t)?!(t.type===De||t.type===re&&!p1(t.children)):!0)?e:null}const Sh=e=>e?k1(e)?Vu(e):Sh(e.parent):null,Eo=ae(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Sh(e.parent),$root:e=>Sh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>hd(e),$forceUpdate:e=>e.f||(e.f=()=>{fd(e.update)}),$nextTick:e=>e.n||(e.n=e1.bind(e.proxy)),$watch:e=>iA.bind(e)}),kf=(e,t)=>e!==Bt&&!e.__isScriptSetup&&Dt(e,t),NC={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(kf(n,t))return o[t]=1,n[t];if(i!==Bt&&Dt(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&Dt(u,t))return o[t]=3,a[t];if(r!==Bt&&Dt(r,t))return o[t]=4,r[t];Th&&(o[t]=0)}}const f=Eo[t];let c,h;if(f)return t==="$attrs"&&ye(e.attrs,"get",""),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==Bt&&Dt(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,Dt(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return kf(i,t)?(i[t]=r,!0):n!==Bt&&Dt(n,t)?(n[t]=r,!0):Dt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==Bt&&Dt(e,o)||kf(t,o)||(s=a[0])&&Dt(s,o)||Dt(n,o)||Dt(Eo,o)||Dt(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Dt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function ig(e){return at(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Th=!0;function FC(e){const t=hd(e),r=e.proxy,n=e.ctx;Th=!1,t.beforeCreate&&ag(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:d,activated:g,deactivated:p,beforeDestroy:m,beforeUnmount:y,destroyed:x,unmounted:b,render:w,renderTracked:_,renderTriggered:T,errorCaptured:C,serverPrefetch:D,expose:E,inheritAttrs:P,components:L,directives:I,filters:k}=t;if(u&&zC(u,n,null),o)for(const J in o){const W=o[J];vt(W)&&(n[J]=W.bind(r))}if(i){const J=i.call(r,r);Wt(J)&&(e.data=ad(J))}if(Th=!0,a)for(const J in a){const W=a[J],Z=vt(W)?W.bind(r,r):vt(W.get)?W.get.bind(r,r):Gr,ct=!vt(W)&&vt(W.set)?W.set.bind(r):Gr,xt=AA({get:Z,set:ct});Object.defineProperty(n,J,{enumerable:!0,configurable:!0,get:()=>xt.value,set:yt=>xt.value=yt})}if(s)for(const J in s)g1(s[J],n,r,J);if(l){const J=vt(l)?l.call(r):l;Reflect.ownKeys(J).forEach(W=>{YC(W,J[W])})}f&&ag(f,e,"c");function N(J,W){at(W)?W.forEach(Z=>J(Z.bind(r))):W&&J(W.bind(r))}if(N(CC,c),N(Nu,h),N(AC,v),N(DC,d),N(wC,g),N(SC,p),N(LC,C),N(PC,_),N(EC,T),N(d1,y),N(cd,b),N(MC,D),at(E))if(E.length){const J=e.exposed||(e.exposed={});E.forEach(W=>{Object.defineProperty(J,W,{get:()=>r[W],set:Z=>r[W]=Z})})}else e.exposed||(e.exposed={});w&&e.render===Gr&&(e.render=w),P!=null&&(e.inheritAttrs=P),L&&(e.components=L),I&&(e.directives=I),D&&h1(e)}function zC(e,t,r=Gr){at(e)&&(e=Ch(e));for(const n in e){const i=e[n];let a;Wt(i)?"default"in i?a=Dl(i.from||n,i.default,!0):a=Dl(i.from||n):a=Dl(i),ge(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function ag(e,t,r){Cr(at(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function g1(e,t,r,n){let i=n.includes(".")?P1(r,n):()=>r[n];if(Zt(e)){const a=t[e];vt(a)&&Nf(i,a)}else if(vt(e))Nf(i,e.bind(r));else if(Wt(e))if(at(e))e.forEach(a=>g1(a,t,r,n));else{const a=vt(e.handler)?e.handler.bind(r):t[e.handler];vt(a)&&Nf(i,a,e)}}function hd(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>ql(l,u,o,!0)),ql(l,t,o)),Wt(t)&&a.set(t,l),l}function ql(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&ql(e,a,r,!0),i&&i.forEach(o=>ql(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=HC[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const HC={data:og,props:sg,emits:sg,methods:yo,computed:yo,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:yo,directives:yo,watch:GC,provide:og,inject:VC};function og(e,t){return t?e?function(){return ae(vt(e)?e.call(this,this):e,vt(t)?t.call(this,this):t)}:t:e}function VC(e,t){return yo(Ch(e),Ch(t))}function Ch(e){if(at(e)){const t={};for(let r=0;r1)return r&&vt(t)?t.call(n&&n.proxy):t}}const y1={},_1=()=>Object.create(y1),x1=e=>Object.getPrototypeOf(e)===y1;function $C(e,t,r,n=!1){const i={},a=_1();e.propsDefaults=Object.create(null),b1(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:aC(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function XC(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Ct(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let c=0;c{l=!0;const[h,v]=w1(c,t,!0);ae(o,h),v&&s.push(...v)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return Wt(e)&&n.set(e,wa),wa;if(at(a))for(let f=0;fe[0]==="_"||e==="$stable",vd=e=>at(e)?e.map(Fr):[Fr(e)],KC=(e,t,r)=>{if(t._n)return t;const n=Ti((...i)=>vd(t(...i)),r);return n._c=!1,n},T1=(e,t,r)=>{const n=e._ctx;for(const i in e){if(S1(i))continue;const a=e[i];if(vt(a))t[i]=KC(i,a,n);else if(a!=null){const o=vd(a);t[i]=()=>o}}},C1=(e,t)=>{const r=vd(t);e.slots.default=()=>r},A1=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},jC=(e,t,r)=>{const n=e.slots=_1();if(e.vnode.shapeFlag&32){const i=t._;i?(A1(n,t,r),r&&O_(n,"_",i,!0)):T1(t,n)}else t&&C1(e,t)},ZC=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=Bt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:A1(i,t,r):(a=!t.$stable,T1(t,i)),o=t}else t&&(C1(e,t),o={default:1});if(a)for(const s in i)!S1(s)&&o[s]==null&&delete i[s]},We=cA;function JC(e){return QC(e)}function QC(e,t){const r=k_();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=Gr,insertStaticContent:d}=e,g=(M,R,B,H=null,z=null,V=null,K=void 0,X=null,$=!!R.dynamicChildren)=>{if(M===R)return;M&&!Ci(M,R)&&(H=Le(M),yt(M,z,V,!0),M=null),R.patchFlag===-2&&($=!1,R.dynamicChildren=null);const{type:G,ref:it,shapeFlag:j}=R;switch(G){case zu:p(M,R,B,H);break;case De:m(M,R,B,H);break;case zf:M==null&&y(R,B,H,K);break;case re:L(M,R,B,H,z,V,K,X,$);break;default:j&1?w(M,R,B,H,z,V,K,X,$):j&6?I(M,R,B,H,z,V,K,X,$):(j&64||j&128)&&G.process(M,R,B,H,z,V,K,X,$,Yt)}it!=null&&z&&wh(it,M&&M.ref,V,R||M,!R)},p=(M,R,B,H)=>{if(M==null)n(R.el=s(R.children),B,H);else{const z=R.el=M.el;R.children!==M.children&&u(z,R.children)}},m=(M,R,B,H)=>{M==null?n(R.el=l(R.children||""),B,H):R.el=M.el},y=(M,R,B,H)=>{[M.el,M.anchor]=d(M.children,R,B,H,M.el,M.anchor)},x=({el:M,anchor:R},B,H)=>{let z;for(;M&&M!==R;)z=h(M),n(M,B,H),M=z;n(R,B,H)},b=({el:M,anchor:R})=>{let B;for(;M&&M!==R;)B=h(M),i(M),M=B;i(R)},w=(M,R,B,H,z,V,K,X,$)=>{R.type==="svg"?K="svg":R.type==="math"&&(K="mathml"),M==null?_(R,B,H,z,V,K,X,$):D(M,R,z,V,K,X,$)},_=(M,R,B,H,z,V,K,X)=>{let $,G;const{props:it,shapeFlag:j,transition:rt,dirs:st}=M;if($=M.el=o(M.type,V,it&&it.is,it),j&8?f($,M.children):j&16&&C(M.children,$,null,H,z,Bf(M,V),K,X),st&&Jn(M,null,H,"created"),T($,M,M.scopeId,K,H),it){for(const zt in it)zt!=="value"&&!Do(zt)&&a($,zt,null,it[zt],V,H);"value"in it&&a($,"value",null,it.value,V),(G=it.onVnodeBeforeMount)&&Lr(G,H,M)}st&&Jn(M,null,H,"beforeMount");const bt=tA(z,rt);bt&&rt.beforeEnter($),n($,R,B),((G=it&&it.onVnodeMounted)||bt||st)&&We(()=>{G&&Lr(G,H,M),bt&&rt.enter($),st&&Jn(M,null,H,"mounted")},z)},T=(M,R,B,H,z)=>{if(B&&v(M,B),H)for(let V=0;V{for(let G=$;G{const X=R.el=M.el;let{patchFlag:$,dynamicChildren:G,dirs:it}=R;$|=M.patchFlag&16;const j=M.props||Bt,rt=R.props||Bt;let st;if(B&&Qn(B,!1),(st=rt.onVnodeBeforeUpdate)&&Lr(st,B,R,M),it&&Jn(R,M,B,"beforeUpdate"),B&&Qn(B,!0),(j.innerHTML&&rt.innerHTML==null||j.textContent&&rt.textContent==null)&&f(X,""),G?E(M.dynamicChildren,G,X,B,H,Bf(R,z),V):K||W(M,R,X,null,B,H,Bf(R,z),V,!1),$>0){if($&16)P(X,j,rt,B,z);else if($&2&&j.class!==rt.class&&a(X,"class",null,rt.class,z),$&4&&a(X,"style",j.style,rt.style,z),$&8){const bt=R.dynamicProps;for(let zt=0;zt{st&&Lr(st,B,R,M),it&&Jn(R,M,B,"updated")},H)},E=(M,R,B,H,z,V,K)=>{for(let X=0;X{if(R!==B){if(R!==Bt)for(const V in R)!Do(V)&&!(V in B)&&a(M,V,R[V],null,z,H);for(const V in B){if(Do(V))continue;const K=B[V],X=R[V];K!==X&&V!=="value"&&a(M,V,X,K,z,H)}"value"in B&&a(M,"value",R.value,B.value,z)}},L=(M,R,B,H,z,V,K,X,$)=>{const G=R.el=M?M.el:s(""),it=R.anchor=M?M.anchor:s("");let{patchFlag:j,dynamicChildren:rt,slotScopeIds:st}=R;st&&(X=X?X.concat(st):st),M==null?(n(G,B,H),n(it,B,H),C(R.children||[],B,it,z,V,K,X,$)):j>0&&j&64&&rt&&M.dynamicChildren?(E(M.dynamicChildren,rt,B,z,V,K,X),(R.key!=null||z&&R===z.subTree)&&D1(M,R,!0)):W(M,R,B,it,z,V,K,X,$)},I=(M,R,B,H,z,V,K,X,$)=>{R.slotScopeIds=X,M==null?R.shapeFlag&512?z.ctx.activate(R,B,H,K,$):k(R,B,H,z,V,K,$):F(M,R,$)},k=(M,R,B,H,z,V,K)=>{const X=M.component=_A(M,H,z);if(ku(M)&&(X.ctx.renderer=Yt),bA(X,!1,K),X.asyncDep){if(z&&z.registerDep(X,N,K),!M.el){const $=X.subTree=Xt(De);m(null,$,R,B)}}else N(X,M,R,B,z,V,K)},F=(M,R,B)=>{const H=R.component=M.component;if(uA(M,R,B))if(H.asyncDep&&!H.asyncResolved){J(H,R,B);return}else H.next=R,H.update();else R.el=M.el,H.vnode=R},N=(M,R,B,H,z,V,K)=>{const X=()=>{if(M.isMounted){let{next:j,bu:rt,u:st,parent:bt,vnode:zt}=M;{const Ge=M1(M);if(Ge){j&&(j.el=zt.el,J(M,j,K)),Ge.asyncDep.then(()=>{M.isUnmounted||X()});return}}let Pt=j,Ve;Qn(M,!1),j?(j.el=zt.el,J(M,j,K)):j=zt,rt&&Mf(rt),(Ve=j.props&&j.props.onVnodeBeforeUpdate)&&Lr(Ve,bt,j,zt),Qn(M,!0);const fe=Ff(M),gr=M.subTree;M.subTree=fe,g(gr,fe,c(gr.el),Le(gr),M,z,V),j.el=fe.el,Pt===null&&fA(M,fe.el),st&&We(st,z),(Ve=j.props&&j.props.onVnodeUpdated)&&We(()=>Lr(Ve,bt,j,zt),z)}else{let j;const{el:rt,props:st}=R,{bm:bt,m:zt,parent:Pt,root:Ve,type:fe}=M,gr=Aa(R);if(Qn(M,!1),bt&&Mf(bt),!gr&&(j=st&&st.onVnodeBeforeMount)&&Lr(j,Pt,R),Qn(M,!0),rt&>){const Ge=()=>{M.subTree=Ff(M),gt(rt,M.subTree,M,z,null)};gr&&fe.__asyncHydrate?fe.__asyncHydrate(rt,M,Ge):Ge()}else{Ve.ce&&Ve.ce._injectChildStyle(fe);const Ge=M.subTree=Ff(M);g(null,Ge,B,H,M,z,V),R.el=Ge.el}if(zt&&We(zt,z),!gr&&(j=st&&st.onVnodeMounted)){const Ge=R;We(()=>Lr(j,Pt,Ge),z)}(R.shapeFlag&256||Pt&&Aa(Pt.vnode)&&Pt.vnode.shapeFlag&256)&&M.a&&We(M.a,z),M.isMounted=!0,R=B=H=null}};M.scope.on();const $=M.effect=new z_(X);M.scope.off();const G=M.update=$.run.bind($),it=M.job=$.runIfDirty.bind($);it.i=M,it.id=M.uid,$.scheduler=()=>fd(it),Qn(M,!0),G()},J=(M,R,B)=>{R.component=M;const H=M.vnode.props;M.vnode=R,M.next=null,XC(M,R.props,H,B),ZC(M,R.children,B),Xn(),eg(M),qn()},W=(M,R,B,H,z,V,K,X,$=!1)=>{const G=M&&M.children,it=M?M.shapeFlag:0,j=R.children,{patchFlag:rt,shapeFlag:st}=R;if(rt>0){if(rt&128){ct(G,j,B,H,z,V,K,X,$);return}else if(rt&256){Z(G,j,B,H,z,V,K,X,$);return}}st&8?(it&16&&Et(G,z,V),j!==G&&f(B,j)):it&16?st&16?ct(G,j,B,H,z,V,K,X,$):Et(G,z,V,!0):(it&8&&f(B,""),st&16&&C(j,B,H,z,V,K,X,$))},Z=(M,R,B,H,z,V,K,X,$)=>{M=M||wa,R=R||wa;const G=M.length,it=R.length,j=Math.min(G,it);let rt;for(rt=0;rtit?Et(M,z,V,!0,!1,j):C(R,B,H,z,V,K,X,$,j)},ct=(M,R,B,H,z,V,K,X,$)=>{let G=0;const it=R.length;let j=M.length-1,rt=it-1;for(;G<=j&&G<=rt;){const st=M[G],bt=R[G]=$?kn(R[G]):Fr(R[G]);if(Ci(st,bt))g(st,bt,B,null,z,V,K,X,$);else break;G++}for(;G<=j&&G<=rt;){const st=M[j],bt=R[rt]=$?kn(R[rt]):Fr(R[rt]);if(Ci(st,bt))g(st,bt,B,null,z,V,K,X,$);else break;j--,rt--}if(G>j){if(G<=rt){const st=rt+1,bt=strt)for(;G<=j;)yt(M[G],z,V,!0),G++;else{const st=G,bt=G,zt=new Map;for(G=bt;G<=rt;G++){const Ue=R[G]=$?kn(R[G]):Fr(R[G]);Ue.key!=null&&zt.set(Ue.key,G)}let Pt,Ve=0;const fe=rt-bt+1;let gr=!1,Ge=0;const Xa=new Array(fe);for(G=0;G=fe){yt(Ue,z,V,!0);continue}let Pr;if(Ue.key!=null)Pr=zt.get(Ue.key);else for(Pt=bt;Pt<=rt;Pt++)if(Xa[Pt-bt]===0&&Ci(Ue,R[Pt])){Pr=Pt;break}Pr===void 0?yt(Ue,z,V,!0):(Xa[Pr-bt]=G+1,Pr>=Ge?Ge=Pr:gr=!0,g(Ue,R[Pr],B,null,z,V,K,X,$),Ve++)}const $p=gr?eA(Xa):wa;for(Pt=$p.length-1,G=fe-1;G>=0;G--){const Ue=bt+G,Pr=R[Ue],Xp=Ue+1{const{el:V,type:K,transition:X,children:$,shapeFlag:G}=M;if(G&6){xt(M.component.subTree,R,B,H);return}if(G&128){M.suspense.move(R,B,H);return}if(G&64){K.move(M,R,B,Yt);return}if(K===re){n(V,R,B);for(let j=0;j<$.length;j++)xt($[j],R,B,H);n(M.anchor,R,B);return}if(K===zf){x(M,R,B);return}if(H!==2&&G&1&&X)if(H===0)X.beforeEnter(V),n(V,R,B),We(()=>X.enter(V),z);else{const{leave:j,delayLeave:rt,afterLeave:st}=X,bt=()=>n(V,R,B),zt=()=>{j(V,()=>{bt(),st&&st()})};rt?rt(V,bt,zt):zt()}else n(V,R,B)},yt=(M,R,B,H=!1,z=!1)=>{const{type:V,props:K,ref:X,children:$,dynamicChildren:G,shapeFlag:it,patchFlag:j,dirs:rt,cacheIndex:st}=M;if(j===-2&&(z=!1),X!=null&&wh(X,null,B,M,!0),st!=null&&(R.renderCache[st]=void 0),it&256){R.ctx.deactivate(M);return}const bt=it&1&&rt,zt=!Aa(M);let Pt;if(zt&&(Pt=K&&K.onVnodeBeforeUnmount)&&Lr(Pt,R,M),it&6)xe(M.component,B,H);else{if(it&128){M.suspense.unmount(B,H);return}bt&&Jn(M,null,R,"beforeUnmount"),it&64?M.type.remove(M,R,B,Yt,H):G&&!G.hasOnce&&(V!==re||j>0&&j&64)?Et(G,R,B,!1,!0):(V===re&&j&384||!z&&it&16)&&Et($,R,B),H&&Rt(M)}(zt&&(Pt=K&&K.onVnodeUnmounted)||bt)&&We(()=>{Pt&&Lr(Pt,R,M),bt&&Jn(M,null,R,"unmounted")},B)},Rt=M=>{const{type:R,el:B,anchor:H,transition:z}=M;if(R===re){Ft(B,H);return}if(R===zf){b(M);return}const V=()=>{i(B),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(M.shapeFlag&1&&z&&!z.persisted){const{leave:K,delayLeave:X}=z,$=()=>K(B,V);X?X(M.el,V,$):$()}else V()},Ft=(M,R)=>{let B;for(;M!==R;)B=h(M),i(M),M=B;i(R)},xe=(M,R,B)=>{const{bum:H,scope:z,job:V,subTree:K,um:X,m:$,a:G}=M;ug($),ug(G),H&&Mf(H),z.stop(),V&&(V.flags|=8,yt(K,M,R,B)),X&&We(X,R),We(()=>{M.isUnmounted=!0},R),R&&R.pendingBranch&&!R.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===R.pendingId&&(R.deps--,R.deps===0&&R.resolve())},Et=(M,R,B,H=!1,z=!1,V=0)=>{for(let K=V;K{if(M.shapeFlag&6)return Le(M.component.subTree);if(M.shapeFlag&128)return M.suspense.next();const R=h(M.anchor||M.el),B=R&&R[yC];return B?h(B):R};let Er=!1;const ue=(M,R,B)=>{M==null?R._vnode&&yt(R._vnode,null,null,!0):g(R._vnode||null,M,R,null,null,null,B),R._vnode=M,Er||(Er=!0,eg(),n1(),Er=!1)},Yt={p:g,um:yt,m:xt,r:Rt,mt:k,mc:C,pc:W,pbc:E,n:Le,o:e};let ot,gt;return{render:ue,hydrate:ot,createApp:WC(ue,ot)}}function Bf({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Qn({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tA(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function D1(e,t,r=!1){const n=e.children,i=t.children;if(at(n)&&at(i))for(let a=0;a>1,e[r[s]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}function M1(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:M1(t)}function ug(e){if(e)for(let t=0;tDl(rA);function Nf(e,t,r){return E1(e,t,r)}function E1(e,t,r=Bt){const{immediate:n,deep:i,flush:a,once:o}=r,s=ae({},r);let l;if(Hu)if(a==="sync"){const h=nA();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||n)s.once=!0;else return{stop:Gr,resume:Gr,pause:Gr};const u=le;s.call=(h,v,d)=>Cr(h,u,v,d);let f=!1;a==="post"?s.scheduler=h=>{We(h,u&&u.suspense)}:a!=="sync"&&(f=!0,s.scheduler=(h,v)=>{v?h():fd(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=vC(e,t,s);return l&&l.push(c),c}function iA(e,t,r){const n=this.proxy,i=Zt(e)?e.includes(".")?P1(n,e):()=>n[e]:e.bind(n,n);let a;vt(t)?a=t:(a=t.handler,r=t);const o=ms(this),s=E1(i,a.bind(n),r);return o(),s}function P1(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${un(t)}Modifiers`]||e[`${Ji(t)}Modifiers`];function oA(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Bt;let i=r;const a=t.startsWith("update:"),o=a&&aA(n,t.slice(7));o&&(o.trim&&(i=r.map(f=>Zt(f)?f.trim():f)),o.number&&(i=r.map(ET)));let s,l=n[s=Df(t)]||n[s=Df(un(t))];!l&&a&&(l=n[s=Df(Ji(t))]),l&&Cr(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Cr(u,e,6,i)}}function L1(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!vt(e)){const l=u=>{const f=L1(u,t,!0);f&&(s=!0,ae(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Wt(e)&&n.set(e,null),null):(at(a)?a.forEach(l=>o[l]=null):ae(o,a),Wt(e)&&n.set(e,o),o)}function Fu(e,t){return!e||!Mu(t)?!1:(t=t.slice(2).replace(/Once$/,""),Dt(e,t[0].toLowerCase()+t.slice(1))||Dt(e,Ji(t))||Dt(e,t))}function Ff(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:v,ctx:d,inheritAttrs:g}=e,p=Xl(e);let m,y;try{if(r.shapeFlag&4){const b=i||n,w=b;m=Fr(u.call(w,b,f,c,v,h,d)),y=s}else{const b=t;m=Fr(b.length>1?b(c,{attrs:s,slots:o,emit:l}):b(c,null)),y=t.props?s:sA(s)}}catch(b){Po.length=0,Ou(b,e,1),m=Xt(De)}let x=m;if(y&&g!==!1){const b=Object.keys(y),{shapeFlag:w}=x;b.length&&w&7&&(a&&b.some(Kv)&&(y=lA(y,a)),x=Yn(x,y,!1,!0))}return r.dirs&&(x=Yn(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(r.dirs):r.dirs),r.transition&&qo(x,r.transition),m=x,Xl(p),m}const sA=e=>{let t;for(const r in e)(r==="class"||r==="style"||Mu(r))&&((t||(t={}))[r]=e[r]);return t},lA=(e,t)=>{const r={};for(const n in e)(!Kv(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function uA(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?fg(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;ce.__isSuspense;function cA(e,t){t&&t.pendingBranch?at(e)?t.effects.push(...e):t.effects.push(e):gC(e)}const re=Symbol.for("v-fgt"),zu=Symbol.for("v-txt"),De=Symbol.for("v-cmt"),zf=Symbol.for("v-stc"),Po=[];let qe=null;function Ot(e=!1){Po.push(qe=e?null:[])}function hA(){Po.pop(),qe=Po[Po.length-1]||null}let Ko=1;function cg(e){Ko+=e,e<0&&qe&&(qe.hasOnce=!0)}function I1(e){return e.dynamicChildren=Ko>0?qe||wa:null,hA(),Ko>0&&qe&&qe.push(e),e}function $t(e,t,r,n,i,a){return I1(S(e,t,r,n,i,a,!0))}function Kl(e,t,r,n,i){return I1(Xt(e,t,r,n,i,!0))}function jl(e){return e?e.__v_isVNode===!0:!1}function Ci(e,t){return e.type===t.type&&e.key===t.key}const O1=({key:e})=>e??null,Ml=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Zt(e)||ge(e)||vt(e)?{i:ne,r:e,k:t,f:!!r}:e:null);function S(e,t=null,r=null,n=0,i=null,a=e===re?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&O1(t),ref:t&&Ml(t),scopeId:a1,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ne};return s?(dd(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Zt(r)?8:16),Ko>0&&!o&&qe&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&qe.push(l),l}const Xt=vA;function vA(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===IC)&&(e=De),jl(e)){const s=Yn(e,t,!0);return r&&dd(s,r),Ko>0&&!a&&qe&&(s.shapeFlag&6?qe[qe.indexOf(e)]=s:qe.push(s)),s.patchFlag=-2,s}if(CA(e)&&(e=e.__vccOpts),t){t=dA(t);let{class:s,style:l}=t;s&&!Zt(s)&&(t.class=Uo(s)),Wt(l)&&(sd(l)&&!at(l)&&(l=ae({},l)),t.style=Lu(l))}const o=Zt(e)?1:R1(e)?128:o1(e)?64:Wt(e)?4:vt(e)?2:0;return S(e,t,r,n,i,o,a,!0)}function dA(e){return e?sd(e)||x1(e)?ae({},e):e:null}function Yn(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?gA(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&O1(u),ref:t&&t.ref?r&&a?at(a)?a.concat(Ml(t)):[a,Ml(t)]:Ml(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==re?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yn(e.ssContent),ssFallback:e.ssFallback&&Yn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&qo(f,l.clone(f)),f}function pA(e=" ",t=0){return Xt(zu,null,e,t)}function _o(e="",t=!1){return t?(Ot(),Kl(De,null,e)):Xt(De,null,e)}function Fr(e){return e==null||typeof e=="boolean"?Xt(De):at(e)?Xt(re,null,e.slice()):typeof e=="object"?kn(e):Xt(zu,null,String(e))}function kn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yn(e)}function dd(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(at(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),dd(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!x1(t)?t._ctx=ne:i===3&&ne&&(ne.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else vt(t)?(t={default:t,_ctx:ne},r=32):(t=String(t),n&64?(r=16,t=[pA(t)]):r=8);e.children=t,e.shapeFlag|=r}function gA(...e){const t={};for(let r=0;rle||ne;let Zl,Dh;{const e=k_(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Zl=t("__VUE_INSTANCE_SETTERS__",r=>le=r),Dh=t("__VUE_SSR_SETTERS__",r=>Hu=r)}const ms=e=>{const t=le;return Zl(e),e.scope.on(),()=>{e.scope.off(),Zl(t)}},hg=()=>{le&&le.scope.off(),Zl(null)};function k1(e){return e.vnode.shapeFlag&4}let Hu=!1;function bA(e,t=!1,r=!1){t&&Dh(t);const{props:n,children:i}=e.vnode,a=k1(e);$C(e,n,a,t),jC(e,i,r);const o=a?wA(e,t):void 0;return t&&Dh(!1),o}function wA(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,NC);const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?TA(e):null,a=ms(e);Xn();const o=gs(n,e,0,[e.props,i]);if(qn(),a(),L_(o)){if(Aa(e)||h1(e),o.then(hg,hg),t)return o.then(s=>{vg(e,s,t)}).catch(s=>{Ou(s,e,0)});e.asyncDep=o}else vg(e,o,t)}else B1(e,t)}function vg(e,t,r){vt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Wt(t)&&(e.setupState=Q_(t)),B1(e,r)}let dg;function B1(e,t,r){const n=e.type;if(!e.render){if(!t&&dg&&!n.render){const i=n.template||hd(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=ae(ae({isCustomElement:a,delimiters:s},o),l);n.render=dg(i,u)}}e.render=n.render||Gr}{const i=ms(e);Xn();try{FC(e)}finally{qn(),i()}}}const SA={get(e,t){return ye(e,"get",""),e[t]}};function TA(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,SA),slots:e.slots,emit:e.emit,expose:t}}function Vu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Q_(oC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Eo)return Eo[r](e)},has(t,r){return r in t||r in Eo}})):e.proxy}function CA(e){return vt(e)&&"__vccOpts"in e}const AA=(e,t)=>cC(e,t,Hu);function N1(e,t,r){const n=arguments.length;return n===2?Wt(t)&&!at(t)?jl(t)?Xt(e,null,[t]):Xt(e,t):Xt(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&jl(r)&&(r=[r]),Xt(e,t,r))}const DA="3.5.4";/** * @vue/runtime-dom v3.5.4 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Mh;const pg=typeof window<"u"&&window.trustedTypes;if(pg)try{Mh=pg.createPolicy("vue",{createHTML:e=>e})}catch{}const F1=Mh?e=>Mh.createHTML(e):e=>e,MA="http://www.w3.org/2000/svg",EA="http://www.w3.org/1998/Math/MathML",Qr=typeof document<"u"?document:null,gg=Qr&&Qr.createElement("template"),PA={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?Qr.createElementNS(MA,e):t==="mathml"?Qr.createElementNS(EA,e):r?Qr.createElement(e,{is:r}):Qr.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Qr.createTextNode(e),createComment:e=>Qr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{gg.innerHTML=F1(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const s=gg.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},xn="transition",Ka="animation",jo=Symbol("_vtc"),z1={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},LA=ae({},s1,z1),RA=e=>(e.displayName="Transition",e.props=LA,e),Hf=RA((e,{slots:t})=>N1(bC,IA(e),t)),ti=(e,t=[])=>{at(e)?e.forEach(r=>r(...t)):e&&e(...t)},mg=e=>e?at(e)?e.some(t=>t.length>1):e.length>1:!1;function IA(e){const t={};for(const L in e)L in z1||(t[L]=e[L]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:v=`${r}-leave-to`}=e,d=OA(i),g=d&&d[0],p=d&&d[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:x,onLeave:b,onLeaveCancelled:w,onBeforeAppear:_=m,onAppear:T=y,onAppearCancelled:C=x}=t,D=(L,I,k)=>{ei(L,I?f:s),ei(L,I?u:o),k&&k()},E=(L,I)=>{L._isLeaving=!1,ei(L,c),ei(L,v),ei(L,h),I&&I()},P=L=>(I,k)=>{const F=L?T:y,N=()=>D(I,L,k);ti(F,[I,N]),yg(()=>{ei(I,L?l:a),bn(I,L?f:s),mg(F)||_g(I,n,g,N)})};return ae(t,{onBeforeEnter(L){ti(m,[L]),bn(L,a),bn(L,o)},onBeforeAppear(L){ti(_,[L]),bn(L,l),bn(L,u)},onEnter:P(!1),onAppear:P(!0),onLeave(L,I){L._isLeaving=!0;const k=()=>E(L,I);bn(L,c),bn(L,h),NA(),yg(()=>{L._isLeaving&&(ei(L,c),bn(L,v),mg(b)||_g(L,n,p,k))}),ti(b,[L,k])},onEnterCancelled(L){D(L,!1),ti(x,[L])},onAppearCancelled(L){D(L,!0),ti(C,[L])},onLeaveCancelled(L){E(L),ti(w,[L])}})}function OA(e){if(e==null)return null;if(Wt(e))return[Vf(e.enter),Vf(e.leave)];{const t=Vf(e);return[t,t]}}function Vf(e){return PT(e)}function bn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[jo]||(e[jo]=new Set)).add(t)}function ei(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[jo];r&&(r.delete(t),r.size||(e[jo]=void 0))}function yg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kA=0;function _g(e,t,r,n){const i=e._endId=++kA,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=BA(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,h),a()},h=v=>{v.target===e&&++f>=l&&c()};setTimeout(()=>{f(r[d]||"").split(", "),i=n(`${xn}Delay`),a=n(`${xn}Duration`),o=xg(i,a),s=n(`${Ka}Delay`),l=n(`${Ka}Duration`),u=xg(s,l);let f=null,c=0,h=0;t===xn?o>0&&(f=xn,c=o,h=a.length):t===Ka?u>0&&(f=Ka,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?xn:Ka:null,h=f?f===xn?a.length:l.length:0);const v=f===xn&&/\b(transform|all)(,|$)/.test(n(`${xn}Property`).toString());return{type:f,timeout:c,propCount:h,hasTransform:v}}function xg(e,t){for(;e.lengthbg(r)+bg(e[n])))}function bg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function NA(){return document.body.offsetHeight}function FA(e,t,r){const n=e[jo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const wg=Symbol("_vod"),zA=Symbol("_vsh"),HA=Symbol(""),VA=/(^|;)\s*display\s*:/;function GA(e,t,r){const n=e.style,i=Zt(r);let a=!1;if(r&&!i){if(t)if(Zt(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&El(n,s,"")}else for(const o in t)r[o]==null&&El(n,o,"");for(const o in r)o==="display"&&(a=!0),El(n,o,r[o])}else if(i){if(t!==r){const o=n[HA];o&&(r+=";"+o),n.cssText=r,a=VA.test(r)}}else t&&e.removeAttribute("style");wg in e&&(e[wg]=a?n.display:"",e[zA]&&(n.display="none"))}const Sg=/\s*!important$/;function El(e,t,r){if(at(r))r.forEach(n=>El(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=UA(e,t);Sg.test(r)?e.setProperty(Ji(n),r.replace(Sg,""),"important"):e[n]=r}}const Tg=["Webkit","Moz","ms"],Gf={};function UA(e,t){const r=Gf[t];if(r)return r;let n=un(t);if(n!=="filter"&&n in e)return Gf[t]=n;n=Jv(n);for(let i=0;iUf||(KA.then(()=>Uf=0),Uf=Date.now());function ZA(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Cr(JA(n,r.value),t,5,[n])};return r.value=e,r.attached=jA(),r}function JA(e,t){if(at(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Eg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,QA=(e,t,r,n,i,a)=>{const o=i==="svg";t==="class"?FA(e,n,o):t==="style"?GA(e,r,n):Mu(t)?Kv(t)||XA(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):t2(e,t,n,o))?(WA(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ag(e,t,n,o,a,t!=="value")):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ag(e,t,n,o))};function t2(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Eg(t)&&vt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Eg(t)&&Zt(r)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Zt(r)))}const e2=["ctrl","shift","alt","meta"],r2={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>e2.some(r=>e[`${r}Key`]&&!t.includes(r))},Pg=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o{H1().render(...e)},i2=(...e)=>{const t=H1().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=o2(n);if(!i)return;const a=t._component;!vt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,a2(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function a2(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function o2(e){return Zt(e)?document.querySelector(e):e}const s2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA11JREFUWEfFl12IVVUUx3//ssBIhDQlSx8kJLAs6UUoRSUV9cHIslAaoXwRCkEag1F8EAv8QBAFX1IoMdLJwAdLHDGxgl4kv4IQ8cGPQpkCKepBx9X+yz5xuTP3nnNmEtfLuZy7916/tfb6OuI+i+6zfmoDRMRkYC4wFRiTDbgB/AQclfRzHaMqA0TEc8BaYEaJgpPAR5LOVQGpBBARy4CP08EPATeT9YcAK7qalTyVwRYBIxPoLaBL0r4yiFKAiFgBbMgH7Qa2SjJEP4kIK/8AeDf/uV7SJ+0g2gJExDTgywTwANBZxSIryx7bAtwBXpf0YyuIlgAR8SDQAzwDdEtaVRySwVYCz+d3Z4BdjYoiYjvwBvALMEdS30AQ7QBeAT4DrqX7ni3pz2ydQdZAvwwKYLMkK7YXRqS4OA48CXRIOlYXYCfwGrBTkgPQh/pKvspBZhd350NtaScwDFhceCIiuoD3vEeSn/2knQe+Tx6YCCyR5N8G+NTudEZIMuB/EhFWYIU9kpbn9S8DB5IHLiUP+HctgCuA4+BpSX/nA0/n4jNV0vUmgLG5GN2Q9EJe/whwEeiTNL4uwK95w5Tkvt5BAjwOOECRNK4uwNl0/6OBmZIuDPIKJqX9J1Ic9EqaUhdgPzAdWCnJla8IwoPAbaBKELoy7gK+k/RmXYB3UlRvtAXJA0uLzRFRKQ0z8Of2YAJeJ2lPXYDHAFewRxszocETZYWoyIC/gGmS/qgFkBUVqXU5F6O72VAmEeHodxGaMFDKNu4v6wXufodTP3gW2CvpwzLlGXwT8HbqA+eBhZLcHQeUKt3QveBIsuRhYKkkR3VLiQjfue/eSudJci9oKaUATVfxW76Kdu3Yrn+izPUFUVUAt2On4ovAQUnvD2RSROxwLwBOAa+26oCVY6BxYUS4L7g9D/fAIembpv/nAx5Y/snt91KVeKnkgeKgiChqw++5QvrpAjUqVzw/W+Z87TRs3hARBnZ3ewn4WpLHNQN47FqQLP8h1wzPBpWklgeyMg+gDjQXqCIWfPcuOB5cikH13gBkiLeAbXlC9isPo6slfVFJa8Oi2h5oiAePax7bLMckddRV7vVDAfBX0bdZ6SxJ/jqqLYMGyFdx99NssMqH5IHaprbYMCQP/B8Q/wLjj1YwLbjPtQAAAABJRU5ErkJggg==",l2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAApZJREFUWEfFl02ITmEUx39/HxvZWPlYUJiljQWR2UgG2VGUWWjCQkpiUhbEghglH1kIWRDKUvlINkQsZmOhZBQLHysbY4XjPTkz7lx37vPcaXSfuou3+7zP+T3n/M/HFS0vtWyfRgBmtgRYBywH5sTjd/gczwvgvqRXuRfLAjCzjcBBYFHmwUPASUl3U/trAcxsPnARWBoHfQIeAI+A93Frf+XeWACsAXqAubF/ENgt6cN4IOMCmNkK4DIwC/gCnAZuSfpZdyszmwpsBQ4As4GvwA5Jz6v+VwkQxm8D04CHwB5J31LuLL43s5nABWAt8APYUgXxD0C4/V7c/ApwRNKvJsZH9prZFOAY0BeeWF8ORxWAC8dj7jfvqzNuZh/dmKR54wEGxNXwxKAkF/ToGgMQar8UMe9OuT0HwC1FOJ6EJnYVs6MM4Js81fol3Ui5PRcgILYBA8CQpO6Rs0cBosh4inmqLUupPQ5NhqCgB8+Ol5GiPSPFqgjQD+wDrkk6lLp9U4DYfxzYDpyR5N74W4rN7E5HeCuBXkmP/xPAauB6R5DPJG0uAzwFFgIuPi+lydVEA+EB15fr7J2kVWWAt8AMoEvScNL6H3Vna6CQDW+A75IWTwaA94PpwHlJJ1LQkY4OMNzJsq7JCMEGwOuGVzzvfmfrIMysNgSNRRhu3QScC0EfluQNrHKZWa0IG6dhIcd7O/o5Fb/3S7pZRWBmtWno006jQlQ0YmY7O1446tr0uUDS69L7+kIU7mxUisu3NLO9LkpJPjuMWWZWX4oDwDtVdjNKqb4QIp8N0s0oILLbcQ5Ao3YcAD4HtjeQBITPg+2MZIW4tTeUFiDaG8tLOdzOh0lFLrfzaZaTbhPdk/VtONHDc/73G/EbYDBWEQRoAAAAAElFTkSuQmCC",V1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAdNJREFUSEut1r9Lw1AQB/DvvVJt0UGwDiIIbl0EsR1EFGx1cVDRP6AojqKLk1tHN1HcC26ODiIKtoKV4tBV3ARxUBBBEEqF5iTR1iZtfrxrM2TK5ZN7791dCIIruZ3PGAanlofSm9ksGYJXgHSDTLTGnANDgehkJZbakOBasB1FFYxeKR4YbkYVYQ9KFY0aXwDcL8EDwU60fDy/b25RYqcwI8V94XYoM4cBDBLRqxT3hF3RCk4BTIAwR1F6luCusCfKvGpVA9GTFG8LB0LrdSjEW2AttAPcBotQId6AO0IFuAV3BdXEqauoBk6TW9c5BtZBqCqlFspHqSIzD6OCOzCP6Q6RvzL7hsISRegqsVuIcZVvmTkOwkMkHJ0tHUx/UDbL6uy9kANzBqAvFaJFC6/wKBg32jiRia5RhM5/USPPjHET7Qn1pe8Pp96sFmDeuoYHRBtwV3AN1AZ3hGuiLbAIF6BtYS1ciLrCgXBgJMjpdStHz3nsedoJ8f86bV8yXj3A9w/EDbd+fTzq1K/x+MJuy44wHt2agx/qucfOYGfmRHipt8HmjhQE1YJbM7f6nq0NBkW1YRsOTkoybQwwna+sP2su++VnacCcMpJ4UcZSyBn3A4wolT3bTCMbAAAAAElFTkSuQmCC",G1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAUCAYAAADY6P5TAAAAAXNSR0IArs4c6QAAAShJREFUWEfl2DsOgkAQBuBdlUoTPQGJlnISLsAZOAn3sPUSUlDa6kmsNDAGBMJjH8MyLDFQs8l8/AOzC2fI6/IA9/1Jo72zDgOPv5DLyG87X+/uCrIo49vwGXjaOjimghJ3A4AT4yw5OBt/DmSO4ywr6uCcJcB2vg6pBbZw1dOYAdnE1WUgkEqgEDcDUoTDIqXAEhcDwFHaxhaS/OHSGIBJ61C1qxCIwllIEoPTJdkDDsJNiByCUyFbQCPcBEgTnAxZA0fhCJFjcCJkASTBESApcF3kMoBkKRKMDYoUm2NjOR+ZqneN3keC5LqbCZMkRQN/eYN+UJITJGeS5OCtGgppAVfVoWpX3bEJe1xqb7ot4lRIHS5fqwX2RsgMOBESg0MDG8i/+2XxBeihqo6WfP/pAAAAAElFTkSuQmCC",u2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAd1JREFUSEu9ljuvTVEUhb/RqPwAEQpChISgUii4ohESFW7UQtAg0VBoNBIUHkEvblQSoRGiUKgQEgVCQfADNKrhTpnrZtln73P2vskxu7Me81t7zLnGOmLKoT75ba8AtgDLc/134LWkb5P2jwXYPgYcB1a3JDLwBbgp6VYXqBVgey3wCFgGPAPmgOeSfkYi2zG+EzgIzAA/gL2SPjZBIwDbu4D7QMhwWNLbcTLY3gTcTfkOSHpar/8HkCd/CbyStHuSvvW87SfAVmBb/SVNwAfgt6SNQ5KnbJErvnaJpHVl/wIgC3oJ2F7LYntGUtRhJJpzKdcL4GwpfA0I+mdJ+0umSAA8Bi5LOteQ5CJwBthTH8D2g+g6SVEb/gJsrwTeA0ckRccshO1IdBK4XiBtY9WhZucLfme+UTZI+loA+4B7wJrSih2Qqzl+qgY21kYLfwJmJT0sgKMpw9Ku4tq+AJzI+RuS4ndr2P4V8km6PRQQUkWEXIMAfSW6koDTQyXqU+Rrks5nU4wUvqXI68MM/0+b5qnCOad30RKyaKvI/e86rSIXhE1Pz+wSMj27rjqhz4OzAzg0+MFpXPvyZK4qvlXb1KKfzOb9TzPc3Hj034SZddlFGe/1r2JSknHzfwADVR4oQ1sMJAAAAABJRU5ErkJggg==",f2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA+CAYAAAAiVZsnAAAAAXNSR0IArs4c6QAABR9JREFUWEeFlzuMVUUYx38z5z7OfbDLIhFEUaJAQBQMBIEEjSRIY0OhhRY0WmhhY6GFjY2FFlrY0FBooYWNFjZKogkEIYhZQQJBiLgJ8giysFz23t17z4z5ZuacvbuwZyaZ3Htyzvzmm//MfA/Fos0qbHip5FflT/NGuFeuWTv3H6pIv+1+YSl9KLr/XnmgHzQ3WJ6r9HorSdJHMDzs3mtukPWukqbXAshbo5SYWcwsgxOgzoDN9M12rH02fHgGzG/cq5xmOT0gk2m9BR4gXQMVoM1sthul9mLUrrC+X8nsYZrJUaADDAAjkBwgg2X2Gh2aVNmCNS9i7XPBgnEyfQTLOG2mgdlghRkGiGACqKN5nMTsAJ4JEv9Jpk9gmKDNTACIsAVAZhdAnQ41eowxyi6MeT6IfJJOcoyUSVkgOIgAstwCb/4UKX0aMLuEVm0XylkBVp+gzzFm6VCly4gT0i0jB4h4YkFKjyUMaFPJdqDU9gA4yYATVOiQchccQCwY3A+YYhkJLUy2nVqyFWsUxp7CJiepcI86t8oBHVagaaCzrSi1NVjwOwbpXdpcLwfc41EPMLKFfhszxlF63AFaXCkHTLMGRYo1cgq3OEDCHxh9BkuPJpdjGqxDy1kwm9D4o2w4g9FnMcwwwl/lgC4byahTZQOGTeEynaXPeRJmaHAuJuJmFDUqrMeap1FaLs05BlzAMkub0zERt6GoYliLNhv8XdDnsVzE0qfFqZgGO6lQwZqnsKx3d9RyAaUvuVvY5Hg54C4vUCFBswbLWndrLZfI9GUsA5ZwJCbiHjKqJKzGmifR2pLxN5YJEgY0+Dkm4j5nQWYeI9FPhIP0D3DFWdDmx5iIr7ijk5hVoFd7x6MnyLjqzmSLH2IncT+ZA6wEVgWH8i+ZviZ20eS7GOA17x/NCtACkaN4DbRcIkOTb2MavOEA2ixHa+/WjbmB0TcdoM3XsV04gEGjeAjN8nAXbqL4D4OlxZcxEd9ybl4zhmKZ9wfcwjCJxtDgUEyDt90SLKMoMxYAk1h9xwGaHIwB3nUWKEawZjTchTsoptwSmnwRA7znI5ZpAyNhG6dQWiKSAD6LafBB0KCJchBx6x2Mi0gi4iexXfjQW0ATa1repekOlq4DNPg4BvgoaCB+sRE06Dp/6AHyviQuTLsZJFpLjKwHDSSUySAJPWJhCaDHp2HramA8wDCL0hLKZGHvxyz43HkhCXXW1rwFVgASyiwpskulFsg+S6tgQ46kfBwMS5BzUgKY4SDGaZCAlagtksjgzFlWR05qCaDLobAEn7WIU1dkGOdZoMGbsSV85Sct8iZZucuHwhIOxADfBA3kx8vp/ZpvKa/HAOJx8hbyyPAoTymvxgDfF+YOkYYs2B8DiNddvKWI1y7dRvH7i7c6+2IAiTwLpfPP/hzsiS3haEjB56wYTvRTdscsOI5dgJirHMSCnTGAxP8yDbbFAJKBlAE2xwDn5pc6C1h1NsYAF++bfliDGuseBJhLtutILrB4m+GJByXbPt2/Q0rKT0WdMDyzR56ly8uMFiexyNbliFSZpM4YK5jhHWAvitXBlAkUh6lykEmuM1bUC0XBIfdMUn7xgTWmnUeukobr3HPupE+zqFbEwYqXKmqm4aLL14weOOwPZEBePw4VXWKjr9zk47z4Ek0SbgfAUudQpNTLuzwbXzfOAfLrksPyctB9EXru2ryHKgDzIXkJrPgl3ImXCkAOW1D6Du/6/Br6/vMQaub8xf8x38Imq19V1gAAAABJRU5ErkJggg==",c2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAVCAYAAAAq05ytAAAAAXNSR0IArs4c6QAAA3FJREFUSEvNlttrHGUYh5/3/Xb2lNQ2lWjrYhGtFmuteAKhiBVUEAW9CYj+Ab3wylspNIHirVde+Acowt5YaBFUsCIFwRNqjbQekEpstdhYTfYws9/3NvNl0nZXs91EKPlgdnbZmW+e+f3ek7DmZcI0wiGgicTbpwY2aRa/pzBmlr5PYyC2lkctbzxsmQkzEUT4AqWGUEaoojiE7cDvCFpABoybMc4CHqNDIMVoYzxIYAbj0BKwDAddBeyyKsIsjnoEcvyDo4xjAqWFQ1HGIpDQLsBquToYixiBQB3PfITzbMLTxtMisBsfIVdRcwCsAHoMZT/KWUpUSShRohuREpQSWTzneuWHkqEkhewZkJDrlh+egCchI9DDk1EhpUePDhnb6XGcwMeEQcArYLllTZSpCJREoCx+VvBUcVQps00T7pf8fYWGQUNgAiHXqRbRcu2MtsG8wBzGnCmzIeMrUs7h6eAiVpeETgGY0SQwtWR1YfEy2BUox3nKVKnSo07CGMod6ngW4SkxtgDfGHyHcEaE37xwHiJMpwCrAjVnTJpxC8YOgXuAvSb8hfF+8Bwl8BMZi5RoRbxJUpr4FbgVMAVyqAq1GBWbKHGnK/Eywj6EYx4+BE5eK1eu8f8eB09gPINxwvd4gx4/xOht02KSbkwZkSBgwkc4dlFmnDqBzVrmeVEOGrwdHO9gtPoeaOxU4VEJ3GewQ4QbgUpxTdeMPwXOmPJ1MD5B+LHvfqGunhcEXrTA4ZDyLspFFmhxipTH8RJtnCVhG7kFm12dJ014TYRXvHC6b8NAwxkHzXG7BD435VRwMY7mobASqggT6mlIYJcpD4nnZy8cRpm7ej9n3GXG62K86lt8AFzkHB12kwnTprxEwk2M0WWr3sAR4M2gnBi0RUNMj0+D8h4sZdJoSzXwNIFHQp5aA0sD+4AD4W+eo8IF/mCRt3IwM+UXylQYZ5ytrsy33rEfI70eYHm5dp7jPuVeFrhAlwVuI12TYlxtpfGZCaeDMIcMWGlMqNGQ3Crh4dWszF98mGKjx9iKhP83+It9hsfYerJytNha/aqRsnK5wG7EOraOyq+cxPh1pMov3CqBPeur/P1taXivdDwgcPe/eiVFr1xuT/29Er4Pni/X3isvR8NGnC76e87KlLpR5rH/SKSNNcEOnbWvy8x/CeSXSDSNMROpAAAAAElFTkSuQmCC";function U1(e,t){return function(){return e.apply(t,arguments)}}const{toString:h2}=Object.prototype,{getPrototypeOf:pd}=Object,Gu=(e=>t=>{const r=h2.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Dr=e=>(e=e.toLowerCase(),t=>Gu(t)===e),Uu=e=>t=>typeof t===e,{isArray:Ha}=Array,Zo=Uu("undefined");function v2(e){return e!==null&&!Zo(e)&&e.constructor!==null&&!Zo(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const W1=Dr("ArrayBuffer");function d2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&W1(e.buffer),t}const p2=Uu("string"),Ke=Uu("function"),Y1=Uu("number"),Wu=e=>e!==null&&typeof e=="object",g2=e=>e===!0||e===!1,Pl=e=>{if(Gu(e)!=="object")return!1;const t=pd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},m2=Dr("Date"),y2=Dr("File"),_2=Dr("Blob"),x2=Dr("FileList"),b2=e=>Wu(e)&&Ke(e.pipe),w2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=Gu(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},S2=Dr("URLSearchParams"),[T2,C2,A2,D2]=["ReadableStream","Request","Response","Headers"].map(Dr),M2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ys(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ha(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Di=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,X1=e=>!Zo(e)&&e!==Di;function Eh(){const{caseless:e}=X1(this)&&this||{},t={},r=(n,i)=>{const a=e&&$1(t,i)||i;Pl(t[a])&&Pl(n)?t[a]=Eh(t[a],n):Pl(n)?t[a]=Eh({},n):Ha(n)?t[a]=n.slice():t[a]=n};for(let n=0,i=arguments.length;n(ys(t,(i,a)=>{r&&Ke(i)?e[a]=U1(i,r):e[a]=i},{allOwnKeys:n}),e),P2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),L2=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},R2=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&pd(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},I2=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},O2=e=>{if(!e)return null;if(Ha(e))return e;let t=e.length;if(!Y1(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},k2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pd(Uint8Array)),B2=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},N2=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},F2=Dr("HTMLFormElement"),z2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),Ig=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),H2=Dr("RegExp"),q1=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ys(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},V2=e=>{q1(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},G2=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Ha(e)?n(e):n(String(e).split(t)),r},U2=()=>{},W2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Wf="abcdefghijklmnopqrstuvwxyz",Og="0123456789",K1={DIGIT:Og,ALPHA:Wf,ALPHA_DIGIT:Wf+Wf.toUpperCase()+Og},Y2=(e=16,t=K1.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function $2(e){return!!(e&&Ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const X2=e=>{const t=new Array(10),r=(n,i)=>{if(Wu(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const a=Ha(n)?[]:{};return ys(n,(o,s)=>{const l=r(o,i+1);!Zo(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},q2=Dr("AsyncFunction"),K2=e=>e&&(Wu(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),j1=((e,t)=>e?setImmediate:t?((r,n)=>(Di.addEventListener("message",({source:i,data:a})=>{i===Di&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Di.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke(Di.postMessage)),j2=typeof queueMicrotask<"u"?queueMicrotask.bind(Di):typeof process<"u"&&process.nextTick||j1,O={isArray:Ha,isArrayBuffer:W1,isBuffer:v2,isFormData:w2,isArrayBufferView:d2,isString:p2,isNumber:Y1,isBoolean:g2,isObject:Wu,isPlainObject:Pl,isReadableStream:T2,isRequest:C2,isResponse:A2,isHeaders:D2,isUndefined:Zo,isDate:m2,isFile:y2,isBlob:_2,isRegExp:H2,isFunction:Ke,isStream:b2,isURLSearchParams:S2,isTypedArray:k2,isFileList:x2,forEach:ys,merge:Eh,extend:E2,trim:M2,stripBOM:P2,inherits:L2,toFlatObject:R2,kindOf:Gu,kindOfTest:Dr,endsWith:I2,toArray:O2,forEachEntry:B2,matchAll:N2,isHTMLForm:F2,hasOwnProperty:Ig,hasOwnProp:Ig,reduceDescriptors:q1,freezeMethods:V2,toObjectSet:G2,toCamelCase:z2,noop:U2,toFiniteNumber:W2,findKey:$1,global:Di,isContextDefined:X1,ALPHABET:K1,generateString:Y2,isSpecCompliantForm:$2,toJSONObject:X2,isAsyncFn:q2,isThenable:K2,setImmediate:j1,asap:j2};function ht(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}O.inherits(ht,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.status}}});const Z1=ht.prototype,J1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{J1[e]={value:e}});Object.defineProperties(ht,J1);Object.defineProperty(Z1,"isAxiosError",{value:!0});ht.from=(e,t,r,n,i,a)=>{const o=Object.create(Z1);return O.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),ht.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Z2=null;function Ph(e){return O.isPlainObject(e)||O.isArray(e)}function Q1(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function kg(e,t,r){return e?e.concat(t).map(function(i,a){return i=Q1(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function J2(e){return O.isArray(e)&&!e.some(Ph)}const Q2=O.toFlatObject(O,{},null,function(t){return/^is[A-Z]/.test(t)});function Yu(e,t,r){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=O.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!O.isUndefined(p[g])});const n=r.metaTokens,i=r.visitor||f,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(i))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(O.isDate(d))return d.toISOString();if(!l&&O.isBlob(d))throw new ht("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(d)||O.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,g,p){let m=d;if(d&&!p&&typeof d=="object"){if(O.endsWith(g,"{}"))g=n?g:g.slice(0,-2),d=JSON.stringify(d);else if(O.isArray(d)&&J2(d)||(O.isFileList(d)||O.endsWith(g,"[]"))&&(m=O.toArray(d)))return g=Q1(g),m.forEach(function(x,b){!(O.isUndefined(x)||x===null)&&t.append(o===!0?kg([g],b,a):o===null?g:g+"[]",u(x))}),!1}return Ph(d)?!0:(t.append(kg(p,g,a),u(d)),!1)}const c=[],h=Object.assign(Q2,{defaultVisitor:f,convertValue:u,isVisitable:Ph});function v(d,g){if(!O.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+g.join("."));c.push(d),O.forEach(d,function(m,y){(!(O.isUndefined(m)||m===null)&&i.call(t,m,O.isString(y)?y.trim():y,g,h))===!0&&v(m,g?g.concat(y):[y])}),c.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Bg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function gd(e,t){this._pairs=[],e&&Yu(e,this,t)}const tx=gd.prototype;tx.append=function(t,r){this._pairs.push([t,r])};tx.toString=function(t){const r=t?function(n){return t.call(this,n,Bg)}:Bg;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function tD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ex(e,t,r){if(!t)return e;const n=r&&r.encode||tD,i=r&&r.serialize;let a;if(i?a=i(t,r):a=O.isURLSearchParams(t)?t.toString():new gd(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Ng{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(n){n!==null&&t(n)})}}const rx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eD=typeof URLSearchParams<"u"?URLSearchParams:gd,rD=typeof FormData<"u"?FormData:null,nD=typeof Blob<"u"?Blob:null,iD={isBrowser:!0,classes:{URLSearchParams:eD,FormData:rD,Blob:nD},protocols:["http","https","file","blob","url","data"]},md=typeof window<"u"&&typeof document<"u",Lh=typeof navigator=="object"&&navigator||void 0,aD=md&&(!Lh||["ReactNative","NativeScript","NS"].indexOf(Lh.product)<0),oD=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sD=md&&window.location.href||"http://localhost",lD=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:md,hasStandardBrowserEnv:aD,hasStandardBrowserWebWorkerEnv:oD,navigator:Lh,origin:sD},Symbol.toStringTag,{value:"Module"})),Fe={...lD,...iD};function uD(e,t){return Yu(e,new Fe.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return Fe.isNode&&O.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function fD(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cD(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n=r.length;return o=!o&&O.isArray(i)?i.length:o,l?(O.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!O.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&O.isArray(i[o])&&(i[o]=cD(i[o])),!s)}if(O.isFormData(e)&&O.isFunction(e.entries)){const r={};return O.forEachEntry(e,(n,i)=>{t(fD(n),i,r,0)}),r}return null}function hD(e,t,r){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const _s={transitional:rx,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=O.isObject(t);if(a&&O.isHTMLForm(t)&&(t=new FormData(t)),O.isFormData(t))return i?JSON.stringify(nx(t)):t;if(O.isArrayBuffer(t)||O.isBuffer(t)||O.isStream(t)||O.isFile(t)||O.isBlob(t)||O.isReadableStream(t))return t;if(O.isArrayBufferView(t))return t.buffer;if(O.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return uD(t,this.formSerializer).toString();if((s=O.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Yu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),hD(t)):t}],transformResponse:[function(t){const r=this.transitional||_s.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(O.isResponse(t)||O.isReadableStream(t))return t;if(t&&O.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?ht.from(s,ht.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fe.classes.FormData,Blob:Fe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{_s.headers[e]={}});const vD=O.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dD=e=>{const t={};let r,n,i;return e&&e.split(` `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&vD[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Fg=Symbol("internals");function ja(e){return e&&String(e).trim().toLowerCase()}function Ll(e){return e===!1||e==null?e:O.isArray(e)?e.map(Ll):String(e)}function pD(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const gD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yf(e,t,r,n,i){if(O.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!O.isString(t)){if(O.isString(n))return t.indexOf(n)!==-1;if(O.isRegExp(n))return n.test(t)}}function mD(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function yD(e,t){const r=O.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}class ze{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const f=ja(l);if(!f)throw new Error("header name must be a non-empty string");const c=O.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=Ll(s))}const o=(s,l)=>O.forEach(s,(u,f)=>a(u,f,l));if(O.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(O.isString(t)&&(t=t.trim())&&!gD(t))o(dD(t),r);else if(O.isHeaders(t))for(const[s,l]of t.entries())a(l,s,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=ja(t),t){const n=O.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return pD(i);if(O.isFunction(r))return r.call(this,i,n);if(O.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ja(t),t){const n=O.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Yf(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=ja(o),o){const s=O.findKey(n,o);s&&(!r||Yf(n,n[s],s,r))&&(delete n[s],i=!0)}}return O.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||Yf(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return O.forEach(this,(i,a)=>{const o=O.findKey(n,a);if(o){r[o]=Ll(i),delete r[a];return}const s=t?mD(a):String(a).trim();s!==a&&delete r[a],r[s]=Ll(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return O.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&O.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[Fg]=this[Fg]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=ja(o);n[s]||(yD(i,o),n[s]=!0)}return O.isArray(t)?t.forEach(a):a(t),this}}ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(ze.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});O.freezeMethods(ze);function $f(e,t){const r=this||_s,n=t||r,i=ze.from(n.headers);let a=n.data;return O.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function ix(e){return!!(e&&e.__CANCEL__)}function Va(e,t,r){ht.call(this,e??"canceled",ht.ERR_CANCELED,t,r),this.name="CanceledError"}O.inherits(Va,ht,{__CANCEL__:!0});function ax(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ht("Request failed with status code "+r.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function _D(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xD(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[a];o||(o=u),r[i]=l,n[i]=u;let c=a,h=0;for(;c!==i;)h+=r[c++],c=c%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o{r=f,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const f=Date.now(),c=f-r;c>=n?o(u,f):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-c)))},()=>i&&o(i)]}const Jl=(e,t,r=3)=>{let n=0;const i=xD(50,250);return bD(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),f=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},r)},zg=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Hg=e=>(...t)=>O.asap(()=>e(...t)),wD=Fe.hasStandardBrowserEnv?function(){const t=Fe.navigator&&/(msie|trident)/i.test(Fe.navigator.userAgent),r=document.createElement("a");let n;function i(a){let o=a;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){const s=O.isString(o)?i(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),SD=Fe.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const o=[e+"="+encodeURIComponent(t)];O.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),O.isString(n)&&o.push("path="+n),O.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function TD(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function CD(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ox(e,t){return e&&!TD(t)?CD(e,t):t}const Vg=e=>e instanceof ze?{...e}:e;function Vi(e,t){t=t||{};const r={};function n(u,f,c){return O.isPlainObject(u)&&O.isPlainObject(f)?O.merge.call({caseless:c},u,f):O.isPlainObject(f)?O.merge({},f):O.isArray(f)?f.slice():f}function i(u,f,c){if(O.isUndefined(f)){if(!O.isUndefined(u))return n(void 0,u,c)}else return n(u,f,c)}function a(u,f){if(!O.isUndefined(f))return n(void 0,f)}function o(u,f){if(O.isUndefined(f)){if(!O.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,c){if(c in t)return n(u,f);if(c in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f)=>i(Vg(u),Vg(f),!0)};return O.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=l[f]||i,h=c(e[f],t[f],f);O.isUndefined(h)&&c!==s||(r[f]=h)}),r}const sx=e=>{const t=Vi({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=ze.from(o),t.url=ex(ox(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(O.isFormData(r)){if(Fe.hasStandardBrowserEnv||Fe.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...f]=l?l.split(";").map(c=>c.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...f].join("; "))}}if(Fe.hasStandardBrowserEnv&&(n&&O.isFunction(n)&&(n=n(t)),n||n!==!1&&wD(t.url))){const u=i&&a&&SD.read(a);u&&o.set(i,u)}return t},AD=typeof XMLHttpRequest<"u",DD=AD&&function(e){return new Promise(function(r,n){const i=sx(e);let a=i.data;const o=ze.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,f,c,h,v,d;function g(){v&&v(),d&&d(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let p=new XMLHttpRequest;p.open(i.method.toUpperCase(),i.url,!0),p.timeout=i.timeout;function m(){if(!p)return;const x=ze.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:x,config:e,request:p};ax(function(T){r(T),g()},function(T){n(T),g()},w),p=null}"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(m)},p.onabort=function(){p&&(n(new ht("Request aborted",ht.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new ht("Network Error",ht.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||rx;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),n(new ht(b,w.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,p)),p=null},a===void 0&&o.setContentType(null),"setRequestHeader"in p&&O.forEach(o.toJSON(),function(b,w){p.setRequestHeader(w,b)}),O.isUndefined(i.withCredentials)||(p.withCredentials=!!i.withCredentials),s&&s!=="json"&&(p.responseType=i.responseType),u&&([h,d]=Jl(u,!0),p.addEventListener("progress",h)),l&&p.upload&&([c,v]=Jl(l),p.upload.addEventListener("progress",c),p.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(f=x=>{p&&(n(!x||x.type?new Va(null,e,p):x),p.abort(),p=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=_D(i.url);if(y&&Fe.protocols.indexOf(y)===-1){n(new ht("Unsupported protocol "+y+":",ht.ERR_BAD_REQUEST,e));return}p.send(a||null)})},MD=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;n.abort(f instanceof ht?f:new Va(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new ht(`timeout ${t} of ms exceeded`,ht.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>O.asap(s),l}},ED=function*(e,t){let r=e.byteLength;if(!t||r{const i=PD(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await i.next();if(u){s(),l.close();return}let c=f.byteLength;if(r){let h=a+=c;r(h)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},$u=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lx=$u&&typeof ReadableStream=="function",RD=$u&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ux=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ID=lx&&ux(()=>{let e=!1;const t=new Request(Fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ug=64*1024,Rh=lx&&ux(()=>O.isReadableStream(new Response("").body)),Ql={stream:Rh&&(e=>e.body)};$u&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ql[t]&&(Ql[t]=O.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new ht(`Response type '${t}' is not supported`,ht.ERR_NOT_SUPPORT,n)})})})(new Response);const OD=async e=>{if(e==null)return 0;if(O.isBlob(e))return e.size;if(O.isSpecCompliantForm(e))return(await new Request(Fe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(O.isArrayBufferView(e)||O.isArrayBuffer(e))return e.byteLength;if(O.isURLSearchParams(e)&&(e=e+""),O.isString(e))return(await RD(e)).byteLength},kD=async(e,t)=>{const r=O.toFiniteNumber(e.getContentLength());return r??OD(t)},BD=$u&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:f,withCredentials:c="same-origin",fetchOptions:h}=sx(e);u=u?(u+"").toLowerCase():"text";let v=MD([i,a&&a.toAbortSignal()],o),d;const g=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let p;try{if(l&&ID&&r!=="get"&&r!=="head"&&(p=await kD(f,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),_;if(O.isFormData(n)&&(_=w.headers.get("content-type"))&&f.setContentType(_),w.body){const[T,C]=zg(p,Jl(Hg(l)));n=Gg(w.body,Ug,T,C)}}O.isString(c)||(c=c?"include":"omit");const m="credentials"in Request.prototype;d=new Request(t,{...h,signal:v,method:r.toUpperCase(),headers:f.normalize().toJSON(),body:n,duplex:"half",credentials:m?c:void 0});let y=await fetch(d);const x=Rh&&(u==="stream"||u==="response");if(Rh&&(s||x&&g)){const w={};["status","statusText","headers"].forEach(D=>{w[D]=y[D]});const _=O.toFiniteNumber(y.headers.get("content-length")),[T,C]=s&&zg(_,Jl(Hg(s),!0))||[];y=new Response(Gg(y.body,Ug,T,()=>{C&&C(),g&&g()}),w)}u=u||"text";let b=await Ql[O.findKey(Ql,u)||"text"](y,e);return!x&&g&&g(),await new Promise((w,_)=>{ax(w,_,{data:b,headers:ze.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(m){throw g&&g(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ht("Network Error",ht.ERR_NETWORK,e,d),{cause:m.cause||m}):ht.from(m,m&&m.code,e,d)}}),Ih={http:Z2,xhr:DD,fetch:BD};O.forEach(Ih,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wg=e=>`- ${e}`,ND=e=>O.isFunction(e)||e===null||e===!1,fx={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : `+a.map(Wg).join(` `):" "+Wg(a[0]):"as no adapter specified";throw new ht("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Ih};function Xf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Va(null,e)}function Yg(e){return Xf(e),e.headers=ze.from(e.headers),e.data=$f.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fx.getAdapter(e.adapter||_s.adapter)(e).then(function(n){return Xf(e),n.data=$f.call(e,e.transformResponse,n),n.headers=ze.from(n.headers),n},function(n){return ix(n)||(Xf(e),n&&n.response&&(n.response.data=$f.call(e,e.transformResponse,n.response),n.response.headers=ze.from(n.response.headers))),Promise.reject(n)})}const cx="1.7.7",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const $g={};yd.transitional=function(t,r,n){function i(a,o){return"[Axios v"+cx+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new ht(i(o," has been removed"+(r?" in "+r:"")),ht.ERR_DEPRECATED);return r&&!$g[o]&&($g[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};function FD(e,t,r){if(typeof e!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new ht("option "+a+" must be "+l,ht.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ht("Unknown option "+a,ht.ERR_BAD_OPTION)}}const Oh={assertOptions:FD,validators:yd},wn=Oh.validators;class Ii{constructor(t){this.defaults=t,this.interceptors={request:new Ng,response:new Ng}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Vi(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&Oh.assertOptions(n,{silentJSONParsing:wn.transitional(wn.boolean),forcedJSONParsing:wn.transitional(wn.boolean),clarifyTimeoutError:wn.transitional(wn.boolean)},!1),i!=null&&(O.isFunction(i)?r.paramsSerializer={serialize:i}:Oh.assertOptions(i,{encode:wn.function,serialize:wn.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&O.merge(a.common,a[r.method]);a&&O.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),r.headers=ze.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,c=0,h;if(!l){const d=[Yg.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,u),h=d.length,f=Promise.resolve(r);c{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Va(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new _d(function(i){t=i}),cancel:t}}}function zD(e){return function(r){return e.apply(null,r)}}function HD(e){return O.isObject(e)&&e.isAxiosError===!0}const kh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kh).forEach(([e,t])=>{kh[t]=e});function hx(e){const t=new Ii(e),r=U1(Ii.prototype.request,t);return O.extend(r,Ii.prototype,t,{allOwnKeys:!0}),O.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return hx(Vi(e,i))},r}const Qt=hx(_s);Qt.Axios=Ii;Qt.CanceledError=Va;Qt.CancelToken=_d;Qt.isCancel=ix;Qt.VERSION=cx;Qt.toFormData=Yu;Qt.AxiosError=ht;Qt.Cancel=Qt.CanceledError;Qt.all=function(t){return Promise.all(t)};Qt.spread=zD;Qt.isAxiosError=HD;Qt.mergeConfig=Vi;Qt.AxiosHeaders=ze;Qt.formToJSON=e=>nx(O.isHTMLForm(e)?new FormData(e):e);Qt.getAdapter=fx.getAdapter;Qt.HttpStatusCode=kh;Qt.default=Qt;function Bh(e,t){switch(e){case 400:t=t??"请求参数错误";break;case 401:t=t??"登录已过期";break;case 403:t=t??"没有权限";break;case 404:t=t??"资源或接口不存在";break;case 500:t=t??"服务器异常";break;default:t=t??`【${e}】: 未知异常!`;break}return t}function VD(e){return e}function GD(e){return Promise.reject(e)}function UD(e){const{data:t,status:r,statusText:n}=e;if((t==null?void 0:t.code)!==1){const i=(t==null?void 0:t.code)??r,a=Bh(i,(t==null?void 0:t.message)??n);return Promise.reject({code:i,message:a,error:t||e})}return Promise.resolve(t)}function WD(e){var a;if(!e||!e.response){const o=e==null?void 0:e.code,s=Bh(o,e.message);return Promise.reject({code:o,message:s,error:e})}const{data:t,status:r}=e.response,n=(t==null?void 0:t.code)??r,i=Bh(n,(t==null?void 0:t.message)??e.message);return Promise.reject({code:n,message:i,error:((a=e.response)==null?void 0:a.data)||e.response})}const YD="https://grain.gynhc.com";function $D(e={}){const t={timeout:12e3},r=Qt.create({...t,...e});return r.interceptors.request.use(VD,GD),r.interceptors.response.use(UD,WD),r}const qf=$D({baseURL:YD}),vx=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},XD={},qD={class:"loader absolute wh-full flex items-center j-c bg-[rgba(0,0,0,.5)] z-99 top-0 left-0 bottom-0 right-0"};function KD(e,t){return Ot(),$t("div",qD,t[0]||(t[0]=[S("span",{class:"ant-spin-dot"},[S("i"),S("i"),S("i"),S("i")],-1)]))}const jD=vx(XD,[["render",KD],["__scopeId","data-v-01350c5e"]]);function ZD(e){e.directive("loading",JD())}function JD(){let e=N1(jD);return{mounted(t,{value:r}){t.className.indexOf("relative")<0&&(t.className=t.className+=" relative");const n=Array.from(t.children).find(i=>i.className.indexOf("loader")>=0);if(r)Rg(e,t),t.append(e.el);else try{e.el&&n&&t.removeChild(n)}catch(i){console.log("remove err mounted",i)}},updated(t,{value:r}){const n=Array.from(t.children).find(i=>i.className.indexOf("loader")>=0);if(r)Rg(e,t),t.append(e.el);else try{e.el&&n&&t.removeChild(n)}catch{}}}}const Kf={getGranaryList:()=>qf.get("/api/index/granaryList"),getDetail:e=>qf.get("/api/index/granaryDetail",e),getContent:e=>qf.get("/api/index/contentDetail",e)};/*! ***************************************************************************** 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 Nh=function(e,t){return Nh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Nh(e,t)};function q(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var QD=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),t5=function(){function e(){this.browser=new QD,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 e}(),lt=new t5;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(lt.wxa=!0,lt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?lt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(lt.node=!0,lt.svgSupported=!0):e5(navigator.userAgent,lt);function e5(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var xd=12,r5="sans-serif",Gi=xd+"px "+r5,n5=20,i5=100,a5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function o5(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function k5(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?qg(s,o):qg(o,s))}function Ex(e){return e.nodeName.toUpperCase()==="CANVAS"}var B5=/([&<>"'])/g,N5={"&":"&","<":"<",">":">",'"':""","'":"'"};function Oe(e){return e==null?"":(e+"").replace(B5,function(t,r){return N5[r]})}var F5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zf=[],z5=lt.browser.firefox&&+lt.browser.version.split(".")[0]<39;function Gh(e,t,r,n){return r=r||{},n?jg(e,t,r):z5&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):jg(e,t,r),r}function jg(e,t,r){if(lt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Ex(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Vh(Zf,e,n,i)){r.zrX=Zf[0],r.zrY=Zf[1];return}}r.zrX=r.zrY=0}function Ed(e){return e||window.event}function ir(e,t,r){if(t=Ed(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Gh(e,o,t,r)}else{Gh(e,t,t,r);var a=H5(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&F5.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function H5(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function V5(e,t,r,n){e.addEventListener(t,r,n)}function G5(e,t,r,n){e.removeEventListener(t,r,n)}var Px=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},U5=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=Zg(n)/Zg(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=W5(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function on(){return[1,0,0,1,0,0]}function ws(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Pd(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Vn(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Qo(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Ss(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(r),c=Math.cos(r);return e[0]=i*c+s*f,e[1]=-i*f+s*c,e[2]=a*c+l*f,e[3]=-a*f+c*l,e[4]=c*(o-n[0])+f*(u-n[1])+n[0],e[5]=c*(u-n[1])-f*(o-n[0])+n[1],e}function Lx(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Ts(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function Y5(e){var t=on();return Pd(t,e),t}const $5=Object.freeze(Object.defineProperty({__proto__:null,clone:Y5,copy:Pd,create:on,identity:ws,invert:Ts,mul:Vn,rotate:Ss,scale:Lx,translate:Qo},Symbol.toStringTag,{value:"Module"}));var kt=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Ws=Math.min,Ys=Math.max,ri=new kt,ni=new kt,ii=new kt,ai=new kt,Za=new kt,Ja=new kt,_t=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Ws(t.x,this.x),n=Ws(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ys(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ys(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=on();return Qo(a,a,[-r.x,-r.y]),Lx(a,a,[n,i]),Qo(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,h=!(ad&&(d=x,gd&&(d=b,m=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ri.x=ii.x=r.x,ri.y=ai.y=r.y,ni.x=ai.x=r.x+r.width,ni.y=ii.y=r.y+r.height,ri.transform(n),ai.transform(n),ni.transform(n),ii.transform(n),t.x=Ws(ri.x,ni.x,ii.x,ai.x),t.y=Ws(ri.y,ni.y,ii.y,ai.y);var l=Ys(ri.x,ni.x,ii.x,ai.x),u=Ys(ri.y,ni.y,ii.y,ai.y);t.width=l-t.x,t.height=u-t.y},e}(),Rx="silent";function X5(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:q5}}function q5(){Px(this.event)}var K5=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Mr),Qa=function(){function e(t,r){this.x=t,this.y=r}return e}(),j5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qf=new _t(0,0,0,0),Ix=function(e){q(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Qa(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new K5,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new L5(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(A(j5,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Ox(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Qa(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Qa(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=X5(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Qa(r,n);if(Jg(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new _t(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Qf.copy(h.getBoundingRect()),h.transform&&Qf.applyTransform(h.transform),Qf.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Z5(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?Rx:!0}return!1}function Jg(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Z5(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==Rx)){t.target=o;break}}}function Ox(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var kx=32,to=7;function J5(e){for(var t=0;e>=kx;)t|=e&1,e>>=1;return e+t}function Qg(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Q5(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function tc(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function ec(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function tM(e,t){var r=to,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=to||T>=to);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(m=0;m=0;m--)e[_+m]=e[w+m];e[b]=o[x];return}for(var T=r;;){var C=0,D=0,E=!1;do if(t(o[x],e[y])<0){if(e[b--]=e[y--],C++,D=0,--d===0){E=!0;break}}else if(e[b--]=o[x--],D++,C=0,--p===1){E=!0;break}while((C|D)=0;m--)e[_+m]=e[w+m];if(d===0){E=!0;break}}if(e[b--]=o[x--],--p===1){E=!0;break}if(D=p-tc(e[y],o,0,p,p-1,t),D!==0){for(b-=D,x-=D,p-=D,_=b+1,w=x+1,m=0;m=to||D>=to);if(E)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),p===1){for(b-=d,y-=d,_=b+1,w=y+1,m=d-1;m>=0;m--)e[_+m]=e[w+m];e[b]=o[x]}else{if(p===0)throw new Error;for(w=b-(p-1),m=0;ms&&(l=s),tm(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Xe=1,xo=2,ma=4,em=!1;function rc(){em||(em=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rm(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var eM=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rm}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(rc(),f.z=0),isNaN(f.z2)&&(rc(),f.z2=0),isNaN(f.zlevel)&&(rc(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),nu;nu=lt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Ro={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ro.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Ro.bounceIn(e*2)*.5:Ro.bounceOut(e*2-1)*.5+.5}},$s=Math.pow,Gn=Math.sqrt,iu=1e-8,Bx=1e-4,nm=Gn(3),Xs=1/3,zr=Qi(),sr=Qi(),Ea=Qi();function Fn(e){return e>-iu&&eiu||e<-iu}function se(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function im(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function au(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Fn(f)&&Fn(c))if(Fn(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=c*c-4*f*h;if(Fn(g)){var p=c/f,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(g>0){var y=Gn(g),x=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);x<0?x=-$s(-x,Xs):x=$s(x,Xs),b<0?b=-$s(-b,Xs):b=$s(b,Xs);var d=(-s-(x+b))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*c)/(2*Gn(f*f*f)),_=Math.acos(w)/3,T=Gn(f),C=Math.cos(_),d=(-s-2*T*C)/(3*o),m=(-s+T*(C+nm*Math.sin(_)))/(3*o),D=(-s+T*(C-nm*Math.sin(_)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),D>=0&&D<=1&&(a[v++]=D)}}return v}function Fx(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Fn(o)){if(Nx(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Fn(f))i[0]=-a/(2*o);else if(f>0){var c=Gn(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function ou(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function rM(e,t,r,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,g,p,m;zr[0]=l,zr[1]=u;for(var y=0;y<1;y+=.05)sr[0]=se(e,r,i,o,y),sr[1]=se(t,n,a,s,y),p=Oi(zr,sr),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Fn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Gn(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function zx(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function su(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function aM(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;zr[0]=o,zr[1]=s;for(var h=0;h<1;h+=.05){sr[0]=ke(e,r,i,h),sr[1]=ke(t,n,a,h);var v=Oi(zr,sr);v=0&&v=1?1:au(0,n,a,1,l,s)&&se(0,i,o,1,s[0])}}}var lM=function(){function e(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||me,this.ondestroy=t.ondestroy||me,this.onrestart=t.onrestart||me,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ft(t)?t:Ro[t]||Hx(t)},e}(),Vx=function(){function e(t){this.value=t}return e}(),uM=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Vx(t);return this.insertEntry(r),r},e.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++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Cs=function(){function e(t){this._list=new uM,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Vx(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),om={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 Tr(e){return e=Math.round(e),e<0?0:e>255?255:e}function fM(e){return e=Math.round(e),e<0?0:e>360?360:e}function ts(e){return e<0?0:e>1?1:e}function nc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Tr(parseFloat(t)/100*255):Tr(parseInt(t,10))}function ki(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ts(parseFloat(t)/100):ts(parseFloat(t))}function ic(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function zn(e,t,r){return e+(t-e)*r}function nr(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Uh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Gx=new Cs(20),qs=null;function ra(e,t){qs&&Uh(qs,t),qs=Gx.put(e,qs||t.slice())}function je(e,t){if(e){t=t||[];var r=Gx.get(e);if(r)return Uh(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in om)return Uh(t,om[n]),ra(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){nr(t,0,0,0,1);return}return nr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ra(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){nr(t,0,0,0,1);return}return nr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ra(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?nr(t,+u[0],+u[1],+u[2],1):nr(t,0,0,0,1);f=ki(u.pop());case"rgb":if(u.length>=3)return nr(t,nc(u[0]),nc(u[1]),nc(u[2]),u.length===3?f:ki(u[3])),ra(e,t),t;nr(t,0,0,0,1);return;case"hsla":if(u.length!==4){nr(t,0,0,0,1);return}return u[3]=ki(u[3]),Wh(u,t),ra(e,t),t;case"hsl":if(u.length!==3){nr(t,0,0,0,1);return}return Wh(u,t),ra(e,t),t;default:return}}nr(t,0,0,0,1)}}function Wh(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=ki(e[1]),i=ki(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],nr(t,Tr(ic(o,a,r+1/3)*255),Tr(ic(o,a,r)*255),Tr(ic(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function cM(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,c=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-c:r===a?l=1/3+f-h:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function Yh(e,t){var r=je(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Kn(r,r.length===4?"rgba":"rgb")}}function hM(e){var t=je(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Ux(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Tr(zn(o[0],s[0],l)),r[1]=Tr(zn(o[1],s[1],l)),r[2]=Tr(zn(o[2],s[2],l)),r[3]=ts(zn(o[3],s[3],l)),r}}var vM=Ux;function Ld(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=je(t[i]),s=je(t[a]),l=n-i,u=Kn([Tr(zn(o[0],s[0],l)),Tr(zn(o[1],s[1],l)),Tr(zn(o[2],s[2],l)),ts(zn(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var dM=Ld;function pM(e,t,r,n){var i=je(e);if(e)return i=cM(i),t!=null&&(i[0]=fM(t)),r!=null&&(i[1]=ki(r)),n!=null&&(i[2]=ki(n)),Kn(Wh(i),"rgba")}function gM(e,t){var r=je(e);if(r&&t!=null)return r[3]=ts(t),Kn(r,"rgba")}function Kn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function es(e,t){var r=je(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function mM(){return Kn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var sm=new Cs(100);function $h(e){if(tt(e)){var t=sm.get(e);return t||(t=Yh(e,-.1),sm.put(e,t)),t}else if(xs(e)){var r=Y({},e);return r.colorStops=et(e.colorStops,function(n){return{offset:n.offset,color:Yh(n.color,-.1)}}),r}return e}const yM=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Ux,fastMapToColor:vM,lerp:Ld,lift:Yh,liftColor:$h,lum:es,mapToColor:dM,modifyAlpha:gM,modifyHSL:pM,parse:je,random:mM,stringify:Kn,toHex:hM},Symbol.toStringTag,{value:"Module"}));function _M(e){return e.type==="linear"}function xM(e){return e.type==="radial"}(function(){return lt.hasGlobalWindow&&ft(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Xh=Array.prototype.slice;function tn(e,t,r){return(t-e)*r+e}function ac(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=um,l=r;if(Ee(r)){var u=TM(r);s=u,(u===1&&!Ut(r[0])||u===2&&!Ut(r[0][0]))&&(o=!0)}else if(Ut(r)&&!Jo(r))s=js;else if(tt(r))if(!isNaN(+r))s=js;else{var f=je(r);f&&(l=f,s=bo)}else if(xs(r)){var c=Y({},l);c.colorStops=et(r.colorStops,function(v){return{offset:v.offset,color:je(v.color)}}),_M(r)?s=qh:xM(r)&&(s=Kh),l=c}a===0?this.valType=s:(s!==this.valType||s===um)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=ft(n)?n:Ro[n]||Hx(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Zs(i),u=fm(i),f=0;f=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;fr);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,m=p===0?1:h((r-v.percent)/p,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?eo:t[l];if((Zs(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:d.rawValue;else if(Zs(a))a===Bl?ac(y,v[i],d[i],m):bM(y,v[i],d[i],m);else if(fm(a)){var x=v[i],b=d[i],w=a===qh;t[l]={type:w?"linear":"radial",x:tn(x.x,b.x,m),y:tn(x.y,b.y,m),colorStops:et(x.colorStops,function(T,C){var D=b.colorStops[C];return{offset:tn(T.offset,D.offset,m),color:kl(ac([],T.color,D.color,m))}}),global:b.global},w?(t[l].x2=tn(x.x2,b.x2,m),t[l].y2=tn(x.y2,b.y2,m)):t[l].r=tn(x.r,b.r,m)}else if(u)ac(y,v[i],d[i],m),n||(t[l]=kl(y));else{var _=tn(v[i],d[i],m);n?this._additiveValue=_:t[l]=_}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===js?t[n]=t[n]+i:r===bo?(je(t[n],eo),Ks(eo,eo,i,1),t[n]=kl(eo)):r===Bl?Ks(t[n],t[n],i,1):r===Wx&&lm(t[n],t[n],i,1)},e}(),Rd=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){qu("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Gt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Ol(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Ol(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function _a(){return new Date().getTime()}var AM=function(e){q(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=_a()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(nu(n),!r._paused&&r.update())}nu(n)},t.prototype.start=function(){this._running||(this._time=_a(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=_a(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=_a()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Rd(r,n.loop);return this.addAnimator(i),i},t}(Mr),DM=300,oc=lt.domSupported,sc=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=et(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),cm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},hm=!1;function jh(e){var t=e.pointerType;return t==="pen"||t==="touch"}function MM(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function lc(e){e&&(e.zrByTouch=!0)}function EM(e,t){return ir(e.dom,new PM(e,t),!0)}function Yx(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var PM=function(){function e(t,r){this.stopPropagation=me,this.stopImmediatePropagation=me,this.preventDefault=me,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),xr={mousedown:function(e){e=ir(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ir(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ir(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ir(this.dom,e);var t=e.toElement||e.relatedTarget;Yx(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){hm=!0,e=ir(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){hm||(e=ir(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ir(this.dom,e),lc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),xr.mousemove.call(this,e),xr.mousedown.call(this,e)},touchmove:function(e){e=ir(this.dom,e),lc(e),this.handler.processGesture(e,"change"),xr.mousemove.call(this,e)},touchend:function(e){e=ir(this.dom,e),lc(e),this.handler.processGesture(e,"end"),xr.mouseup.call(this,e),+new Date-+this.__lastTouchMomentpm||e<-pm}var si=[],na=[],fc=on(),cc=Math.abs,kM=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return oi(this.rotation)||oi(this.x)||oi(this.y)||oi(this.scaleX-1)||oi(this.scaleY-1)||oi(this.skewX)||oi(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(dm(n),this.invTransform=null);return}n=n||on(),r?this.getLocalTransform(n):dm(n),t&&(r?Vn(n,t,n):Pd(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(si);var n=si[0]<0?-1:1,i=si[1]<0?-1:1,a=((si[0]-n)*r+n)/si[0]||0,o=((si[1]-i)*r+i)/si[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||on(),Ts(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||on(),Vn(na,t.invTransform,r),r=na);var n=this.originX,i=this.originY;(n||i)&&(fc[4]=n,fc[5]=i,Vn(na,r,fc),na[4]-=n,na[5]-=i,r=na),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Me(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Me(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&cc(t[0]-1)>1e-10&&cc(t[3]-1)>1e-10?Math.sqrt(cc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){BM(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;r[4]=-d*a-h*g*o,r[5]=-g*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,u&&Ss(r,r,u),r[4]+=n+f,r[5]+=i+c,r},e.initDefaultProps=function(){var t=e.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}(),e}(),rs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function BM(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Xx(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=Wi(n[0],r.width),u+=Wi(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var hc="__zr_normal__",vc=rs.concat(["ignore"]),NM=Wr(rs,function(e,t){return e[t]=!0,e},{ignore:!1}),ia={},FM=new _t(0,0,0,0),ju=function(){function e(t){this.id=Sd(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=FM;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ia,n,f):Xx(ia,n,f),a.x=ia.x,a.y=ia.y,o=ia.align,s=ia.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=Wi(c[0],f.width),v=Wi(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;g&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==p.fill||y!==p.stroke||x!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=y,p.autoStroke=x,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=Xe,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?tv:Qh},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&je(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Kn(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},Y(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(nt(t))for(var n=t,i=Gt(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(hc,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===hc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Mt(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){qu("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,r,n,f),h&&h.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xe),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,r,h),p&&p.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xe)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=Mt(i,t),o=Mt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(d,g){r.during(g)});for(var h=0;h0||i.force&&!o.length){var C=void 0,D=void 0,E=void 0;if(s){D={},h&&(C={});for(var b=0;b=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=Mt(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Mt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function Ae(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return tt(e)?JM(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function qt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Zx),e=(+e).toFixed(t),r?e:+e}function Jx(e){return e.sort(function(t,r){return t-r}),e}function Hr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Qx(e)}function Qx(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function tb(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function QM(e,t,r){if(!e[t])return 0;var n=tE(e,r);return n[t]||0}function tE(e,t){var r=Wr(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=et(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=et(i,function(v){return Math.floor(v)}),s=Wr(o,function(v,d){return v+d},0),l=et(i,function(v,d){return v-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return et(o,function(v){return v/n})}function eE(e,t){var r=Math.max(Hr(e),Hr(t)),n=e+t;return r>Zx?n:qt(n,r)}var rE=9007199254740991;function Bd(e){var t=Math.PI*2;return(e%t+t)%t}function ns(e){return e>-ym&&e=10&&t++,t}function Nd(e,t){var r=Zu(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function iE(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function aE(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&Mt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var EE=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],PE=ka(EE),LE=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return PE(this,t,r)},e}(),iv=new Cs(50);function RE(e){if(typeof e=="string"){var t=iv.get(e);return t&&t.image}else return e}function fb(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=iv.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Qu(t)&&a.pending.push(o)):(t=fn.loadImage(e,Sm,Sm),t.__zrImageSrc=e,iv.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Sm(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Ze(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function vb(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Ze(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?IE(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Ze(e,n)}return e===""&&(e=t.placeholder),e}function IE(e,t,r,n){for(var i=0,a=0,o=e.length;av&&u){var d=Math.floor(v/s);c=c.slice(0,d)}if(e&&a&&f!=null)for(var g=hb(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&yc(r,e.substring(s,u),t,o),yc(r,l[2],t,o,l[1]),s=mc.lastIndex}si){w>0?(y.tokens=y.tokens.slice(0,w),p(y,b,x),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break t}var L=T.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")_.percentWidth=L,f.push(_),_.contentWidth=Ze(_.text,E);else{if(I){var k=T.backgroundColor,F=k&&k.image;F&&(F=RE(F),Qu(F)&&(_.width=Math.max(_.width,F.width*P/F.height)))}var N=d&&n!=null?n-b:null;N!=null&&N<_.width?!I||N0&&d+n.accumWidth>n.width&&(f=t.split(` `),u=!0),n.accumWidth=d}else{var g=db(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,c=g.linesWidths,f=g.lines}}else f=t.split(` `);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var zE=Wr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function HE(e){return FE(e)?!!zE[e]:!0}function db(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;cr:i+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var av="__zr_style_"+Math.round(Math.random()*10),Bi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},tf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Bi[av]=!0;var Cm=["z","z2","invisible"],VE=["invisible"],GE=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Gt(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Js[0]=wc(i)*r+e,Js[1]=bc(i)*n+t,Qs[0]=wc(a)*r+e,Qs[1]=bc(a)*n+t,u(s,Js,Qs),f(l,Js,Qs),i=i%ui,i<0&&(i=i+ui),a=a%ui,a<0&&(a=a+ui),i>a&&!o?a+=ui:ii&&(tl[0]=wc(v)*r+e,tl[1]=bc(v)*n+t,u(s,tl,s),f(l,tl,l))}var At={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fi=[],ci=[],Rr=[],Sn=[],Ir=[],Or=[],Sc=Math.min,Tc=Math.max,hi=Math.cos,vi=Math.sin,jr=Math.abs,ov=Math.PI,Ln=ov*2,Cc=typeof Float32Array<"u",ro=[];function Ac(e){var t=Math.round(e/ov*1e8)/1e8;return t%2*ov}function XE(e,t){var r=Ac(e[0]);r<0&&(r+=Ln);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Ln?i=r+Ln:t&&r-i>=Ln?i=r-Ln:!t&&r>i?i=r+(Ln-Ac(r-i)):t&&r0&&(this._ux=jr(n/lu/t)||0,this._uy=jr(n/lu/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(At.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=jr(t-this._xi),i=jr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(At.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(At.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(At.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),ro[0]=i,ro[1]=a,XE(ro,o),i=ro[0],a=ro[1];var s=a-i;return this.addData(At.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=hi(a)*n+t,this._yi=vi(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(At.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(At.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Cc&&(this.data=new Float32Array(r));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Rr[0]=Rr[1]=Ir[0]=Ir[1]=Number.MAX_VALUE,Sn[0]=Sn[1]=Or[0]=Or[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||jr(x)>i||h===r-1)&&(g=Math.sqrt(y*y+x*x),a=p,o=m);break}case At.C:{var b=t[h++],w=t[h++],p=t[h++],m=t[h++],_=t[h++],T=t[h++];g=nM(a,o,b,w,p,m,_,T,10),a=_,o=T;break}case At.Q:{var b=t[h++],w=t[h++],p=t[h++],m=t[h++];g=oM(a,o,b,w,p,m,10),a=p,o=m;break}case At.A:var C=t[h++],D=t[h++],E=t[h++],P=t[h++],L=t[h++],I=t[h++],k=I+L;h+=1,d&&(s=hi(L)*E+C,l=vi(L)*P+D),g=Tc(E,P)*Sc(Ln,Math.abs(I)),a=hi(k)*E+C,o=vi(k)*P+D;break;case At.R:{s=a=t[h++],l=o=t[h++];var F=t[h++],N=t[h++];g=F*2+N*2;break}case At.Z:{var y=s-a,x=l-o;g=Math.sqrt(y*y+x*x),a=s,o=l;break}}g>=0&&(u[c++]=g,f+=g)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,v=r<1,d,g,p=0,m=0,y,x=0,b,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var _=0;_0&&(t.lineTo(b,w),x=0),T){case At.M:s=u=n[_++],l=f=n[_++],t.moveTo(u,f);break;case At.L:{c=n[_++],h=n[_++];var D=jr(c-u),E=jr(h-f);if(D>i||E>a){if(v){var P=d[m++];if(p+P>y){var L=(y-p)/P;t.lineTo(u*(1-L)+c*L,f*(1-L)+h*L);break t}p+=P}t.lineTo(c,h),u=c,f=h,x=0}else{var I=D*D+E*E;I>x&&(b=c,w=h,x=I)}break}case At.C:{var k=n[_++],F=n[_++],N=n[_++],J=n[_++],W=n[_++],Z=n[_++];if(v){var P=d[m++];if(p+P>y){var L=(y-p)/P;ou(u,k,N,W,L,fi),ou(f,F,J,Z,L,ci),t.bezierCurveTo(fi[1],ci[1],fi[2],ci[2],fi[3],ci[3]);break t}p+=P}t.bezierCurveTo(k,F,N,J,W,Z),u=W,f=Z;break}case At.Q:{var k=n[_++],F=n[_++],N=n[_++],J=n[_++];if(v){var P=d[m++];if(p+P>y){var L=(y-p)/P;su(u,k,N,L,fi),su(f,F,J,L,ci),t.quadraticCurveTo(fi[1],ci[1],fi[2],ci[2]);break t}p+=P}t.quadraticCurveTo(k,F,N,J),u=N,f=J;break}case At.A:var ct=n[_++],xt=n[_++],yt=n[_++],Rt=n[_++],Ft=n[_++],xe=n[_++],Et=n[_++],Le=!n[_++],Er=yt>Rt?yt:Rt,ue=jr(yt-Rt)>.001,Yt=Ft+xe,ot=!1;if(v){var P=d[m++];p+P>y&&(Yt=Ft+xe*(y-p)/P,ot=!0),p+=P}if(ue&&t.ellipse?t.ellipse(ct,xt,yt,Rt,Et,Ft,Yt,Le):t.arc(ct,xt,Er,Ft,Yt,Le),ot)break t;C&&(s=hi(Ft)*yt+ct,l=vi(Ft)*Rt+xt),u=hi(Yt)*yt+ct,f=vi(Yt)*Rt+xt;break;case At.R:s=u=n[_],l=f=n[_+1],c=n[_++],h=n[_++];var gt=n[_++],M=n[_++];if(v){var P=d[m++];if(p+P>y){var R=y-p;t.moveTo(c,h),t.lineTo(c+Sc(R,gt),h),R-=gt,R>0&&t.lineTo(c+gt,h+Sc(R,M)),R-=M,R>0&&t.lineTo(c+Tc(gt-R,0),h+M),R-=gt,R>0&&t.lineTo(c,h+Tc(M-R,0));break t}p+=P}t.rect(c,h,gt,M);break;case At.Z:if(v){var P=d[m++];if(p+P>y){var L=(y-p)/P;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}p+=P}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=At,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function aa(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+c&&f>n+c&&f>a+c&&f>s+c||fe+c&&u>r+c&&u>i+c&&u>o+c||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||f+ui&&(i+=no);var h=Math.atan2(l,s);return h<0&&(h+=no),h>=n&&h<=i||h+no>=n&&h+no<=i}function en(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Tn=$i.CMD,di=Math.PI*2,ZE=1e-4;function JE(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&QE(),v=se(t,n,a,s,or[0]),h>1&&(d=se(t,n,a,s,or[1]))),h===2?pt&&s>n&&s>a||s=0&&u<=1){for(var f=0,c=ke(t,n,a,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Se[0]=-l,Se[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=di-1e-4){n=0,i=di;var f=a?1:-1;return o>=Se[0]+e&&o<=Se[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=di,i+=di);for(var h=0,v=0;v<2;v++){var d=Se[v];if(d+e>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=di+g),(g>=n&&g<=i||g+di>=n&&g+di<=i)&&(g>Math.PI/2&&g1&&(r||(s+=en(l,u,f,c,n,i))),p&&(l=a[d],u=a[d+1],f=l,c=u),g){case Tn.M:f=a[d++],c=a[d++],l=f,u=c;break;case Tn.L:if(r){if(aa(l,u,a[d],a[d+1],t,n,i))return!0}else s+=en(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tn.C:if(r){if(qE(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=tP(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tn.Q:if(r){if(KE(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=eP(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tn.A:var m=a[d++],y=a[d++],x=a[d++],b=a[d++],w=a[d++],_=a[d++];d+=1;var T=!!(1-a[d++]);h=Math.cos(w)*x+m,v=Math.sin(w)*b+y,p?(f=h,c=v):s+=en(l,u,h,v,n,i);var C=(n-m)*b/x+m;if(r){if(jE(m,y,b,w,w+_,T,t,C,i))return!0}else s+=rP(m,y,b,w,w+_,T,C,i);l=Math.cos(w+_)*x+m,u=Math.sin(w+_)*b+y;break;case Tn.R:f=l=a[d++],c=u=a[d++];var D=a[d++],E=a[d++];if(h=f+D,v=c+E,r){if(aa(f,c,h,c,t,n,i)||aa(h,c,h,v,t,n,i)||aa(h,v,f,v,t,n,i)||aa(f,v,f,c,t,n,i))return!0}else s+=en(h,c,h,v,n,i),s+=en(f,v,f,c,n,i);break;case Tn.Z:if(r){if(aa(l,u,f,c,t,n,i))return!0}else s+=en(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!JE(u,c)&&(s+=en(l,u,f,c,n,i)||0),s!==0}function nP(e,t,r){return pb(e,0,!1,t,r)}function iP(e,t,r,n){return pb(e,t,!0,r,n)}var gb=St({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Bi),aP={style:St({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},tf.style)},Dc=rs.concat(["invisible","culling","z","z2","zlevel","parent"]),Nt=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Qh:n>.2?OM:tv}else if(r)return tv}return Qh},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(tt(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=es(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ma)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),iP(s,l/u,r,n)))return!0}if(this.hasFill())return nP(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ma,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ma)},t.prototype.createStyle=function(r){return bs(gb,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var f={},c=Gt(u),h=0;h0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return bs(oP,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Od(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Ms);uu.prototype.type="tspan";var sP=St({x:0,y:0},Bi),lP={style:St({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},tf.style)};function uP(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var gn=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return bs(sP,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=uP(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return lP},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new _t(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ms);gn.prototype.type="image";function fP(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var xa=Math.round;function mb(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(xa(n*2)===xa(i*2)&&(e.x1=e.x2=Ei(n,s,!0)),xa(a*2)===xa(o*2)&&(e.y1=e.y2=Ei(a,s,!0))),e}}function yb(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Ei(n,s,!0),e.y=Ei(i,s,!0),e.width=Math.max(Ei(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ei(i+o,s,!1)-e.y,o===0?0:1)),e}}function Ei(e,t,r){if(!t)return e;var n=xa(e*2);return(n+xa(t))%2===0?n/2:(n+(r?1:-1))/2}var cP=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),hP={},jt=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new cP},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=yb(hP,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?fP(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Nt);jt.prototype.type="rect";var Pm={fill:"#000"},Lm=2,vP={style:St({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},tf.style)},oe=function(e){q(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Pm,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,L=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,k=0;k=0&&(k=_[I],k.align==="right");)this._placeToken(k,r,C,m,L,"right",x),D-=k.width,L-=k.width,I--;for(P+=(a-(P-p)-(y-L)-D)/2;E<=I;)k=_[E],this._placeToken(k,r,C,m,P+k.width/2,"center",x),P+=k.width,E++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&Mc(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=Nm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(uu),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,x=0,b=Bm("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=km("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!m.autoStroke||y)?(x=Lm,m.stroke):null),_=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,_&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Gi,p.opacity=Lo(u.opacity,n.opacity,1),Im(p,u),w&&(p.lineWidth=Lo(u.lineWidth,n.lineWidth,x),p.lineDash=mt(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),b&&(p.fill=b);var T=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new _t(wo(p.x,T,p.textAlign),ya(p.y,C,p.textBaseline),T,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,v=r.borderRadius,d=this,g,p;if(h||r.lineHeight||u&&f){g=this._getOrCreateChild(jt),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(h){var y=g.style;y.fill=l||null,y.fillOpacity=mt(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(gn),p.onload=function(){d.dirtyStyle()};var x=p.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&f){var y=g.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=mt(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(g||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Lo(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return mP(r)&&(n=[r.fontStyle,r.fontWeight,gP(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&wr(n)||r.textFont||r.font},t}(Ms),dP={left:!0,right:1,center:1},pP={top:1,bottom:1,middle:1},Rm=["fontStyle","fontWeight","fontSize","fontFamily"];function gP(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?xd+"px":e+"px"}function Im(e,t){for(var r=0;r=0,a=!1;if(e instanceof Nt){var o=_b(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(oa(s)||oa(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!oa(u.fill)&&oa(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=$h(s)):!oa(u.stroke)&&oa(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=$h(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??xP)}return n}function AP(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??bP)}return r}function DP(e,t,r){var n=Mt(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:TP(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ec(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return CP(this,e,t,r);if(e==="blur")return DP(this,e,r);if(e==="select")return AP(this,e,r)}return r}function MP(e){e.stateProxy=Ec;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ec),r&&(r.stateProxy=Ec)}function Wm(e,t){!Ab(e,t)&&!e.__highByOuter&&mn(e,xb)}function Ym(e,t){!Ab(e,t)&&!e.__highByOuter&&mn(e,bb)}function fu(e,t){e.__highByOuter|=1<<(t||0),mn(e,xb)}function cu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&mn(e,bb)}function EP(e){mn(e,Ud)}function Sb(e){mn(e,wb)}function Tb(e){mn(e,wP)}function Cb(e){mn(e,SP)}function Ab(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Db(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Vd(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){wb(u)}),s&&r.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function sv(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function hu(e,t,r){Mb(e,!0),mn(e,MP),BP(e,t,r)}function kP(e){Mb(e,!1)}function uv(e,t,r,n){n?kP(e):hu(e,t,r)}function BP(e,t,r){var n=Tt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Xm=["emphasis","blur","select"],NP={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function qm(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Pc(d),s*=Pc(d));var g=(i===a?-1:1)*Pc((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,p=g*o*v/s,m=g*-s*h/o,y=(e+r)/2+nl(c)*p-rl(c)*m,x=(t+n)/2+rl(c)*p+nl(c)*m,b=Jm([1,0],[(h-p)/o,(v-m)/s]),w=[(h-p)/o,(v-m)/s],_=[(-1*h-p)/o,(-1*v-m)/s],T=Jm(w,_);if(hv(w,_)<=-1&&(T=io),hv(w,_)>=1&&(T=0),T<0){var C=Math.round(T/io*1e6)/1e6;T=io*2+C%2*io}f.addData(u,y,x,o,s,b,T,c,a)}var UP=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,WP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function YP(e){var t=new $i;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=$i.CMD,l=e.match(UP);if(!l)return t;for(var u=0;uk*k+F*F&&(C=E,D=P),{cx:C,cy:D,x0:-f,y0:-c,x1:C*(i/w-1),y1:D*(i/w-1)}}function QP(e){var t;if(Q(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function tL(e,t){var r,n=So(t.r,0),i=So(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,v=ty(u-l),d=v>Lc&&v%Lc;if(d>_r&&(v=d),!(n>_r))e.moveTo(f,c);else if(v>Lc-_r)e.moveTo(f+n*la(l),c+n*pi(l)),e.arc(f,c,n,l,u,!h),i>_r&&(e.moveTo(f+i*la(u),c+i*pi(u)),e.arc(f,c,i,u,l,h));else{var g=void 0,p=void 0,m=void 0,y=void 0,x=void 0,b=void 0,w=void 0,_=void 0,T=void 0,C=void 0,D=void 0,E=void 0,P=void 0,L=void 0,I=void 0,k=void 0,F=n*la(l),N=n*pi(l),J=i*la(u),W=i*pi(u),Z=v>_r;if(Z){var ct=t.cornerRadius;ct&&(r=QP(ct),g=r[0],p=r[1],m=r[2],y=r[3]);var xt=ty(n-i)/2;if(x=kr(xt,m),b=kr(xt,y),w=kr(xt,g),_=kr(xt,p),D=T=So(x,b),E=C=So(w,_),(T>_r||C>_r)&&(P=n*la(u),L=n*pi(u),I=i*la(l),k=i*pi(l),v_r){var ue=kr(m,D),Yt=kr(y,D),ot=il(I,k,F,N,n,ue,h),gt=il(P,L,J,W,n,Yt,h);e.moveTo(f+ot.cx+ot.x0,c+ot.cy+ot.y0),D0&&e.arc(f+ot.cx,c+ot.cy,ue,ce(ot.y0,ot.x0),ce(ot.y1,ot.x1),!h),e.arc(f,c,n,ce(ot.cy+ot.y1,ot.cx+ot.x1),ce(gt.cy+gt.y1,gt.cx+gt.x1),!h),Yt>0&&e.arc(f+gt.cx,c+gt.cy,Yt,ce(gt.y1,gt.x1),ce(gt.y0,gt.x0),!h))}else e.moveTo(f+F,c+N),e.arc(f,c,n,l,u,!h);if(!(i>_r)||!Z)e.lineTo(f+J,c+W);else if(E>_r){var ue=kr(g,E),Yt=kr(p,E),ot=il(J,W,P,L,i,-Yt,h),gt=il(F,N,I,k,i,-ue,h);e.lineTo(f+ot.cx+ot.x0,c+ot.cy+ot.y0),E0&&e.arc(f+ot.cx,c+ot.cy,Yt,ce(ot.y0,ot.x0),ce(ot.y1,ot.x1),!h),e.arc(f,c,i,ce(ot.cy+ot.y1,ot.cx+ot.x1),ce(gt.cy+gt.y1,gt.cx+gt.x1),h),ue>0&&e.arc(f+gt.cx,c+gt.cy,ue,ce(gt.y1,gt.x1),ce(gt.y0,gt.x0),!h))}else e.lineTo(f+J,c+W),e.arc(f,c,i,u,l,h)}e.closePath()}}}var eL=function(){function e(){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 e}(),Ps=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eL},t.prototype.buildPath=function(r,n){tL(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Nt);Ps.prototype.type="sector";var rL=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),of=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new rL},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(Nt);of.prototype.type="ring";function nL(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=e.length;h=2){if(n){var a=nL(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;smi[1]){if(s=!1,a)return s;var f=Math.abs(mi[0]-gi[1]),c=Math.abs(gi[0]-mi[1]);Math.min(f,c)>i.len()&&(f0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function hn(e,t,r,n,i,a){$d("update",e,t,r,n,i,a)}function Ua(e,t,r,n,i,a){$d("enter",e,t,r,n,i,a)}function No(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function ny(e){return!e.isGroup}function wL(e){return e.shape!=null}function jd(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){ny(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return wL(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(ny(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),hn(o,l,r,Tt(o).dataIndex)}}})}function Zd(e,t){return et(e,function(r){var n=r[0];n=pu(n,t.x),n=gu(n,t.x+t.width);var i=r[1];return i=pu(i,t.y),i=gu(i,t.y+t.height),[n,i]})}function Wb(e,t){var r=pu(e.x,t.x),n=gu(e.x+e.width,t.x+t.width),i=pu(e.y,t.y),a=gu(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function ff(e,t,r){var n=Y({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),St(i,r),new gn(n)):lf(e.replace("path://",""),n,r,"center")}function SL(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=Rc(v,d,f,c)/h;return!(p<0||p>1)}function Rc(e,t,r,n){return e*n-r*t}function TL(e){return e<=1e-6&&e>=-1e-6}function Jd(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=tt(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&A(Gt(l),function(f){Ui(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Tt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:St({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function iy(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Qd(e,t){if(e)if(Q(e))for(var r=0;r=0&&s.push(l)}),s}}function zL(e,t){return pt(pt({},e,!0),t,!0)}const HL={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:". "}}}},VL={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 mu="ZH",rp="EN",Pa=rp,Vl={},np={},Kb=lt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Pa).toUpperCase();return e.indexOf(mu)>-1?mu:Pa}():Pa;function ip(e,t){e=e.toUpperCase(),np[e]=new Vt(t),Vl[e]=t}function GL(e){if(tt(e)){var t=Vl[e.toUpperCase()]||{};return e===mu||e===rp?ut(t):pt(ut(t),ut(Vl[Pa]),!1)}else return pt(ut(e),ut(Vl[Pa]),!1)}function UL(e){return np[e]}function WL(){return np[Pa]}ip(rp,HL);ip(mu,VL);var ap=1e3,op=ap*60,Fo=op*60,fr=Fo*24,cy=fr*365,To={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}"},sl="{yyyy}-{MM}-{dd}",hy={year:"{yyyy}",month:"{yyyy}-{MM}",day:sl,hour:sl+" "+To.hour,minute:sl+" "+To.minute,second:sl+" "+To.second,millisecond:To.none},kc=["year","month","day","hour","minute","second","millisecond"],jb=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Te(e,t){return e+="","0000".substr(0,t-e.length)+e}function La(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function YL(e){return e===La(e)}function $L(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Os(e,t,r,n){var i=vr(e),a=i[sp(r)](),o=i[Ra(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[vf(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[ss(r)](),c=(f-1)%12+1,h=i[df(r)](),v=i[pf(r)](),d=i[gf(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof Vt?n:UL(n||Kb)||WL(),y=m.getModel("time"),x=y.get("month"),b=y.get("monthAbbr"),w=y.get("dayOfWeek"),_=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Te(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Te(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Te(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Te(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Te(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Te(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Te(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Te(d,3)).replace(/{S}/g,d+"")}function XL(e,t,r,n,i){var a=null;if(tt(r))a=r;else if(ft(r))a=r(e.value,t,{level:e.level});else{var o=Y({},To);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Q(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return Os(new Date(e.value),a,i,n)}function Zb(e,t){var r=vr(e),n=r[Ra(t)]()+1,i=r[vf(t)](),a=r[ss(t)](),o=r[df(t)](),s=r[pf(t)](),l=r[gf(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function vy(e,t,r){var n=Ut(e)?vr(e):e;switch(t=t||Zb(e,r),t){case"year":return n[sp(r)]();case"half-year":return n[Ra(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ra(r)]()+1)/4);case"month":return n[Ra(r)]();case"day":return n[vf(r)]();case"half-day":return n[ss(r)]()/24;case"hour":return n[ss(r)]();case"minute":return n[df(r)]();case"second":return n[pf(r)]();case"millisecond":return n[gf(r)]()}}function sp(e){return e?"getUTCFullYear":"getFullYear"}function Ra(e){return e?"getUTCMonth":"getMonth"}function vf(e){return e?"getUTCDate":"getDate"}function ss(e){return e?"getUTCHours":"getHours"}function df(e){return e?"getUTCMinutes":"getMinutes"}function pf(e){return e?"getUTCSeconds":"getSeconds"}function gf(e){return e?"getUTCMilliseconds":"getMilliseconds"}function qL(e){return e?"setUTCFullYear":"setFullYear"}function Jb(e){return e?"setUTCMonth":"setMonth"}function Qb(e){return e?"setUTCDate":"setDate"}function tw(e){return e?"setUTCHours":"setHours"}function ew(e){return e?"setUTCMinutes":"setMinutes"}function rw(e){return e?"setUTCSeconds":"setSeconds"}function nw(e){return e?"setUTCMilliseconds":"setMilliseconds"}function KL(e,t,r,n,i,a,o,s){var l=new oe({style:{text:e,font:t,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function lp(e){if(!rb(e))return tt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function up(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var ks=Cd;function dv(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&wr(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?vr(e):e;if(isNaN(+l)){if(s)return"-"}else return Os(l,n,r)}if(t==="ordinal")return tu(e)?i(e):Ut(e)&&a(e)?e+"":"-";var u=is(e);return a(u)?lp(u):tu(e)?i(e):typeof e=="boolean"?e+"":"-"}var dy=["a","b","c","d","e","f","g"],Bc=function(e,t){return"{"+e+(t??"")+"}"};function fp(e,t,r){Q(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function jL(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd yyyy`);var n=vr(t),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return e=e.replace("MM",Te(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Te(a%100+"",2)).replace("dd",Te(s,2)).replace("d",s).replace("hh",Te(l,2)).replace("h",l).replace("mm",Te(u,2)).replace("m",u).replace("ss",Te(f,2)).replace("s",f).replace("SSS",Te(c,3)),e}function ZL(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Xi(e,t){return t=t||"transparent",tt(e)?e:nt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function py(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Gl=A,JL=["left","right","top","bottom","width","height"],ll=[["width","left","right"],["height","top","bottom"]];function cp(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(e==="horizontal"){var g=f.width+(h?-h.x+f.x:0);v=a+g,v>n||l.newline?(a=0,v=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(h?-h.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var zo=cp;Ht(cp,"vertical");Ht(cp,"horizontal");function qi(e,t,r){r=ks(r||0);var n=t.width,i=t.height,a=Ae(e.left,n),o=Ae(e.top,i),s=Ae(e.right,n),l=Ae(e.bottom,i),u=Ae(e.width,n),f=Ae(e.height,i),c=r[2]+r[0],h=r[1]+r[3],v=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new _t(a+r[3],o+r[0],u,f);return d.margin=r,d}function ls(e){var t=e.layoutMode||e.constructor.layoutMode;return nt(t)?t:t?{type:t}:null}function Ba(e,t,r){var n=r&&r.ignoreSize;!Q(n)&&(n=[n,n]);var i=o(ll[0],0),a=o(ll[1],1);u(ll[0],e,i),u(ll[1],e,a);function o(f,c){var h={},v=0,d={},g=0,p=2;if(Gl(f,function(x){d[x]=e[x]}),Gl(f,function(x){s(t,x)&&(h[x]=d[x]=t[x]),l(h,x)&&v++,l(d,x)&&g++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return h;for(var m=0;m=0;l--)s=pt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Ds(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Vt);ub(wt,Vt);Ju(wt);NL(wt);FL(wt,eR);function eR(e){var t=[];return A(wt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=et(t,function(r){return Vr(r).main}),e!=="dataset"&&Mt(t,"dataset")<=0&&t.unshift("dataset"),t}var aw="";typeof navigator<"u"&&(aw=navigator.platform||"");var ua="rgba(0, 0, 0, 0.2)";const rR={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ua,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ua,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ua,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ua,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ua,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ua,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:aw.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 ow=dt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),pr="original",He="arrayRows",Xr="objectRows",yn="keyedColumns",Un="typedArray",sw="unknown",sn="column",Wa="row",Ye={Must:1,Might:2,Not:3},lw=te();function nR(e){lw(e).datasetMap=dt()}function iR(e,t,r){var n={},i=uw(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=lw(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),A(e,function(g,p){var m=nt(g)?g:e[p]={name:g};m.type==="ordinal"&&f==null&&(f=p,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});A(e,function(g,p){var m=g.name,y=d(g);if(f==null){var x=h.valueWayDim;v(n[m],x,y),v(o,x,y),h.valueWayDim+=y}else if(f===p)v(n[m],0,y),v(a,0,y);else{var x=h.categoryWayDim;v(n[m],x,y),v(o,x,y),h.categoryWayDim+=y}});function v(g,p,m){for(var y=0;yt)return e[n];return e[r-1]}function cw(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:fR(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function cR(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var ul,ao,yy,_y="\0_ec_inner",hR=1,vp=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Vt(a),this._locale=new Vt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=wy(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,wy(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?yy(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=dt(),u=n&&n.replaceMergeMainTypeMap;nR(this),A(r,function(c,h){c!=null&&(wt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?ut(c):pt(i[h],c,!0))}),u&&u.each(function(c,h){wt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),f,this);function f(c){var h=lR(this,c,ie(r[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=lE(v,h,d);pE(g,c,wt),i[c]=null,a.set(c,null),o.set(c,0);var p=[],m=[],y=0,x;A(g,function(b,w){var _=b.existing,T=b.newOption;if(!T)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var C=c==="series",D=wt.getClass(c,b.keyInfo.subType,!C);if(!D)return;if(c==="tooltip"){if(x)return;x=!0}if(_&&_.constructor===D)_.name=b.keyInfo.name,_.mergeOption(T,this),_.optionUpdated(T,!1);else{var E=Y({componentIndex:w},b.keyInfo);_=new D(T,this,this,E),Y(_,E),b.brandNew&&(_.__requireNewView=!0),_.init(T,this,this),_.optionUpdated(null,!0)}}_?(p.push(_.option),m.push(_),y++):(p.push(void 0),m.push(void 0))},this),i[c]=p,a.set(c,m),o.set(c,y),c==="series"&&ul(this)}this._seriesIndices||ul(this)},t.prototype.getOption=function(){var r=ut(this.option);return A(r,function(n,i){if(wt.hasClass(i)){for(var a=ie(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!as(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[_y],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function bR(e,t){return e.join(",")===t.join(",")}var mr=A,us=nt,Sy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Fc(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Sy.length;r=0;p--){var m=e[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=eE(h,y),g=y;break}}}return n[0]=h,n[1]=g,n})})}var _f=function(){function e(t){this.data=t.data||(t.sourceFormat===yn?{}:[]),this.sourceFormat=t.sourceFormat||sw,this.seriesLayoutBy=t.seriesLayoutBy||sn,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;ng&&(g=x)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Py=(t={},t[He+"_"+sn]={pure:!0,appendData:a},t[He+"_"+Wa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Xr]={pure:!0,appendData:a},t[yn]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[pr]={appendData:a},t[Un]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return Na(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function Oy(e){var t,r;return nt(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Ho(e){return new zR(e)}var zR=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return a;function o(){return t=e?null:li?-this._resultLT:0},e}(),VR=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ul(t,r)},e}();function GR(e,t){var r=new VR,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==sn&&Be(o);var s=[],l={},u=e.dimensionsDefine;if(u)A(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var x="";Ui(l,m)&&Be(x),l[m]=y}});else for(var f=0;f65535?jR:ZR}function fa(){return[1/0,-1/0]}function JR(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Ny(e,t,r,n,i){var a=Tw[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;up[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=et(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=c&&y<=h||isNaN(y))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],x=v[i[1]],b=t[i[1]][0],w=t[i[1]][1],m=0;m=c&&y<=h||isNaN(y))&&(_>=b&&_<=w||isNaN(_))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var m=0;m=c&&y<=h||isNaN(y))&&(l[u++]=T)}else for(var m=0;mt[E][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,v=new(so(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=c,h=b)}P>0&&Pf-d&&(l=f-d,s.length=l);for(var g=0;gc[1]&&(c[1]=m),h[v++]=y}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Ul(r[a],this._dimensions[a])}Vc={arrayRows:t,objectRows:function(r,n,i,a){return Ul(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ul(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),QR=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(fl(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Pe(s)?Un:pr,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=mt(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=mt(c.sourceHeader,h.sourceHeader),g=mt(c.dimensions,h.dimensions),p=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||g;i=p?[pv(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var x=m.get("source",!0);i=[pv(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&Fy(a)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&Fy(c),s.push(f),l.push(u._getVersionSign())}),n?o=qR(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[LR(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return A(e.blocks,function(i){var a=Mw(i);a>=t&&(t=a+ +(n&&(!a||mv(i)&&!i.noHeader)))}),t}return 0}function rI(e,t,r,n){var i=t.noHeader,a=iI(Mw(t)),o=[],s=t.blocks||[];Yr(!s||Q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ui(u,l)){var f=new HR(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,g){var p=t.valueFormatter,m=Dw(d)(p?Y(Y({},e),{valueFormatter:p}):e,d,g>0?a.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(a.richText):yv(o.join(""),i?r:a.html);if(i)return c;var h=dv(t.header,"ordinal",e.useUTC),v=Aw(n,e.renderMode).nameStyle;return e.renderMode==="richText"?Ew(e,h,v)+a.richText+c:yv('
'+Oe(h)+"
"+c,r)}function nI(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=Q(b)?b:[b],et(b,function(w,_){return dv(w,Q(v)?v[_]:v,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":dv(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!a,p=!s&&a,m=Aw(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":Ew(e,h,y))+(o?"":sI(e,d,g,p,x)):yv((s?"":c)+(a?"":aI(h,!s,y))+(o?"":oI(d,g,p,x)),r)}}function zy(e,t,r,n,i,a){if(e){var o=Dw(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function iI(e){return{html:tI[e],richText:eI[e]}}function yv(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function aI(e,t,r){var n=t?"margin-left:2px":"";return''+Oe(e)+""}function oI(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Q(e)?e:[e],''+et(e,function(o){return Oe(o)}).join("  ")+""}function Ew(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function sI(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Q(t)?t.join(" "):t,a)}function lI(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Xi(n)}function Pw(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Gc=function(){function e(){this.richTextStyles={},this._nextStyleNameId=nb()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=iw({color:r,type:t,renderMode:n,markerId:i});return tt(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Q(r)?A(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function uI(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=Q(s),u=lI(t,r),f,c,h,v;if(o>1||l&&!o){var d=fI(s,t,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=Na(i,r,a[0]),c=g.type}else v=f=l?s[0]:s;var p=Fd(t),m=p&&t.name||"",y=i.getName(r),x=n?m:y;return fs("section",{header:m,noHeader:n||!p,sortParam:v,blocks:[fs("nameValue",{markerType:"item",markerColor:u,name:x,noName:!wr(x),value:f,valueType:c,dataIndex:r})].concat(h||[])})}function fI(e,t,r,n,i){var a=t.getData(),o=Wr(e,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(c){f(Na(a,r,c),c)}):A(e,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(fs("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Cn=te();function cl(e,t){return e.getName(t)||e.getId(t)}var cI="__universalTransitionEnabled",Ar=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ho({count:vI,reset:dI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Cn(this).sourceManager=new QR(this);a.prepareSource();var o=this.getInitialData(r,i);Vy(o,this),this.dataTask.context.data=o,Cn(this).dataBeforeProcessed=o,Hy(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ls(this),a=i?mf(r):{},o=this.subType;wt.hasClass(o)&&(o+="Series"),pt(r,n.getTheme().get(this.subType)),pt(r,this.getDefaultOption()),bm(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ba(r,a,i)},t.prototype.mergeOption=function(r,n){r=pt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=ls(this);i&&Ba(this.option,r,i);var a=Cn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Vy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Cn(this).dataBeforeProcessed=o,Hy(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Pe(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=hp.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[cl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[cI])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){nt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(r,n)}},t.registerClass=function(r){return wt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(wt);Qe(Ar,FR);Qe(Ar,hp);ub(Ar,wt);function Hy(e){var t=e.name;Fd(e)||(e.name=hI(e)||t)}function hI(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return A(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function vI(e){return e.model.getRawData().count()}function dI(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),pI}function pI(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Vy(e,t){A(bx(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ht(gI,t))})}function gI(e,t){var r=_v(e);return r&&r.setOutputEnd((t||this).count()),t}function _v(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var _e=function(){function e(){this.group=new Jt,this.uid=hf("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Hd(_e);Ju(_e);function Lw(){var e=te();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Rw=te(),mI=Lw(),Je=function(){function e(){this.group=new Jt,this.uid=hf("viewChart"),this.renderTask=Ho({plan:yI,reset:_I}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Uy(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Uy(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Qd(this.group,t)},e.markUpdateMethod=function(t,r){Rw(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Gy(e,t,r){e&&fv(e)&&(t==="emphasis"?fu:cu)(e,r)}function Uy(e,t,r){var n=Yi(e,t),i=t&&t.highlightKey!=null?FP(t.highlightKey):null;n!=null?A(ie(n),function(a){Gy(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){Gy(a,r,i)})}Hd(Je);Ju(Je);function yI(e){return mI(e.model)}function _I(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Rw(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),xI[l]}var xI={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},yu="\0__throttleOriginMethod",Wy="\0__throttleRate",Yy="\0__throttleType";function mp(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function yp(e,t,r,n){var i=e[t];if(i){var a=i[yu]||i,o=i[Yy],s=i[Wy];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=mp(a,r,n==="debounce"),i[yu]=a,i[Yy]=n,i[Wy]=r}return i}}function _u(e,t){var r=e[t];r&&r[yu]&&(r.clear&&r.clear(),e[t]=r[yu])}var $y=te(),Xy={itemStyle:ka(qb,!0),lineStyle:ka(Xb,!0)},bI={lineStyle:"stroke",itemStyle:"fill"};function Iw(e,t){var r=e.visualStyleMapper||Xy[t];return r||(console.warn("Unknown style type '"+t+"'."),Xy.itemStyle)}function Ow(e,t){var r=e.visualDrawType||bI[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var wI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=Iw(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Ow(e,n),u=o[l],f=ft(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ft(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ft(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=e.getDataParams(d),p=Y({},o);p[l]=f(g),v.setItemVisual(d,"style",p)}}}},lo=new Vt,SI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=Iw(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){lo.option=l[n];var u=i(lo),f=o.ensureUniqueItemVisual(s,"style");Y(f,u),lo.option.decal&&(o.setItemVisual(s,"decal",lo.option.decal),lo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},TI={performRawSeries:!0,overallReset:function(e){var t=dt();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),$y(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=$y(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Ow(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},hl=Math.PI;function CI(e,t){t=t||{},St(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 r=new Jt,n=new jt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new oe({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new jt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Is({shape:{startAngle:-hl/2,endAngle:-hl/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:hl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:hl*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var kw=function(){function e(t,r,n,i){this._stageTaskMap=dt(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=dt();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Yr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;A(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);d.each(function(p){p.perform(g)}),h.perform(g)&&(a=!0)}else c&&c.each(function(p,m){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=dt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Ho({plan:PI,reset:LI,count:II}));v.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ho({reset:AI});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=dt(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";Yr(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,A(n.getSeries(),d));function d(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(h=!0,Ho({reset:DI,onDirty:EI})));m.context={model:g,overallProgress:c},m.agent=o,m.__block=c,a._pipe(g,m)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return ft(t)&&(t={overallReset:t,seriesType:OI(t)}),t.uid=hf("stageHandler"),r&&(t.visualType=r),t},e}();function AI(e){e.overallReset(e.ecModel,e.api,e.payload)}function DI(e){return e.overallProgress&&MI}function MI(){this.agent.dirty(),this.getDownstream().dirty()}function EI(){this.agent&&this.agent.dirty()}function PI(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function LI(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ie(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?et(t,function(r,n){return Bw(n)}):RI}var RI=Bw(0);function Bw(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),xv=["symbol","symbolSize","symbolRotate","symbolOffset"],Zy=xv.concat(["symbolKeepAspect"]),NI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Pi(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function wv(e,t,r){for(var n=t.type==="radial"?eO(e,t,r):tO(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Ut(e)?[e]:Q(e)?e:null}function Vw(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&nO(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=et(r,function(a){return a/i}),n/=i)}return[r,n]}var iO=new $i(!0);function bu(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Jy(e){return typeof e=="string"&&e!=="none"}function wu(e){var t=e.fill;return t!=null&&t!=="none"}function Qy(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function t0(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Sv(e,t,r){var n=fb(t.image,t.__image,r);if(Qu(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Sx),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function aO(e,t,r,n){var i,a=bu(r),o=wu(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||iO,c=t.__dirty;if(!n){var h=r.fill,v=r.stroke,d=o&&!!h.colorStops,g=a&&!!v.colorStops,p=o&&!!h.image,m=a&&!!v.image,y=void 0,x=void 0,b=void 0,w=void 0,_=void 0;(d||g)&&(_=t.getBoundingRect()),d&&(y=c?wv(e,h,_):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(x=c?wv(e,v,_):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),p&&(b=c||!t.__canvasFillPattern?Sv(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(w=c||!t.__canvasStrokePattern?Sv(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?e.fillStyle=y:p&&(b?e.fillStyle=b:o=!1),g?e.strokeStyle=x:m&&(w?e.strokeStyle=w:a=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,D;e.setLineDash&&r.lineDash&&(i=Vw(t),C=i[0],D=i[1]);var E=!0;(u||c&ma)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),E=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),E&&f.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=D),n||(r.strokeFirst?(a&&t0(e,r),o&&Qy(e,r)):(o&&Qy(e,r),a&&t0(e,r))),C&&e.setLineDash([])}function oO(e,t,r){var n=t.__image=fb(r.image,t.__image,t,t.onload);if(!(!n||!Qu(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;e.drawImage(n,u,f,c,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function sO(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Gi,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Vw(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(bu(r)&&e.strokeText(i,r.x,r.y),wu(r)&&e.fillText(i,r.x,r.y)):(wu(r)&&e.fillText(i,r.x,r.y),bu(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var e0=["shadowBlur","shadowOffsetX","shadowOffsetY"],r0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Gw(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Ne(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Bi.opacity:o}(n||t.blend!==r.blend)&&(a||(Ne(e,i),a=!0),e.globalCompositeOperation=t.blend||Bi.blend);for(var s=0;s0&&r.unfinished);r.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(r,n,i){if(!this[he]){if(this._disposed){this.id;return}var a,o,s;if(nt(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[he]=!0,!this._model||n){var l=new mR(this._api),u=this._theme,f=this._model=new vp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Av);var c={seriesTransition:s,optionChanged:!0};if(i)this[Ie]={silent:a,updateParams:c},this[he]=!1,this.getZr().wakeUp();else{try{ha(this),An.update.call(this,null,c)}catch(h){throw this[Ie]=null,this[he]=!1,h}this._ssr||this._zr.flush(),this[Ie]=null,this[he]=!1,uo.call(this,a),fo.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||lt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(lt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Au[i]){var l=s,u=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();A(Fi,function(x,b){if(x.group===i){var w=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(ut(r)),_=x.getDom().getBoundingClientRect();l=a(_.left,l),u=a(_.top,u),f=o(_.right,f),c=o(_.bottom,c),h.push({dom:w,left:_.left,top:_.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,g=c-u,p=fn.createCanvas(),m=ev(p,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:g}),n){var y="";return A(h,function(x){var b=x.left-l,w=x.top-u;y+=''+x.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new jt({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),A(h,function(x){var b=new gn({style:{x:x.left*v-l,y:x.top*v-u,image:x.dom}});m.add(b)}),m.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Xc(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Xc(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=gc(i,r);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=gc(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?zI(s,l,n):HI(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;A(RO,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ao(s,function(d){var g=Tt(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=Y({},g.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),A(Vo,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),A(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),VI(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 r=this.getDom();r&&sb(this.getDom(),wp,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Fi[n.id]},t.prototype.resize=function(r){if(!this[he]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Ie]&&(a==null&&(a=this[Ie].silent),i=!0,this[Ie]=null),this[he]=!0;try{i&&ha(this),An.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[he]=!1,o}this[he]=!1,uo.call(this,a),fo.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(nt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Dv[r]){var i=Dv[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=Y({},r);return n.type=Vo[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(nt(n)||(n={silent:!!n}),!!Tu[r.type]&&this._model){if(this[he]){this._pendingActions.push(r);return}var i=n.silent;Kc.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&<.browser.weChat&&this._throttledZrFlush(),uo.call(this,i),fo.call(this,i)}},t.prototype.updateLabelLayout=function(){br.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ha=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),$c(c,!0),$c(c,!1),h.plan()},$c=function(c,h){for(var v=c._model,d=c._scheduler,g=h?c._componentsViews:c._chartsViews,p=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,x=0;xh.get("hoverLayerThreshold")&&!lt.node&&!lt.worker&&h.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=c._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(g){return l(g,v,d,-1/0),!0})}}function l(c,h,v,d){var g=c.getTextContent(),p=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),x=0;x0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(No(m))return;if(m instanceof Nt&&zP(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=p;var x=m.getTextContent(),b=m.getTextGuideLine();x&&(x.stateTransition=p),b&&(b.stateTransition=p)}m.__dirty&&i(m)}})}p0=function(c){return new(function(h){q(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){fu(d,g),er(c)},v.prototype.leaveEmphasis=function(d,g){cu(d,g),er(c)},v.prototype.enterBlur=function(d){EP(d),er(c)},v.prototype.leaveBlur=function(d){Sb(d),er(c)},v.prototype.enterSelect=function(d){Tb(d),er(c)},v.prototype.leaveSelect=function(d){Cb(d),er(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(hw))(c)},iS=function(c){function h(v,d){for(var g=0;g=0)){m0.push(r);var a=kw.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function Mp(e,t){Dv[e]=t}function VO(e){dx({createCanvas:e})}function cS(e,t,r){var n=qw("registerMap");n&&n(e,t,r)}function GO(e){var t=qw("getMap");return t&&t(e)}var hS=XR;Zn(xp,wI);Zn(bf,SI);Zn(bf,TI);Zn(xp,NI);Zn(bf,FI);Zn(Zw,pO);Cp(dw);Ap(bO,ER);Mp("default",CI);jn({type:Ni,event:Ni,update:Ni},me);jn({type:zl,event:zl,update:zl},me);jn({type:Oo,event:Oo,update:Oo},me);jn({type:Hl,event:Hl,update:Hl},me);jn({type:ko,event:ko,update:ko},me);Tp("light",kI);Tp("dark",zw);var UO={};function co(e){return e==null?0:e.length||1}function y0(e){return e}var vS=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||y0,this._newKeyGetter=i||y0,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var ho=nt,Dn=et,jO=typeof Int32Array>"u"?Array:Int32Array,ZO="e\0\0",_0=-1,JO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],QO=["_approximateExtent"],x0,yl,vo,po,Jc,_l,Qc,_S=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;pS(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===pr;if(l&&!i.pure)for(var u=[],f=t;f0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),Q(a)?a=a.slice():ho(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ho(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){ho(t)?Y(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Y(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;_P(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){A(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Dn(this.dimensions,this._getDimInfo,this),this.hostModel)),Jc(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ft(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Ku(arguments)))})},e.internalField=function(){x0=function(t){var r=t._invertedIndicesMap;A(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new jO(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[r]=l}}}(),e}();function tk(e,t){return xS(e,t).dimensions}function xS(e,t){dp(e)||(e=pw(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=dt(),a=[],o=rk(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&yS(o),l=n===e.dimensionsDefine,u=l?mS(e):gS(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=dt(f),h=new Sw(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function rk(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return A(t,function(a){var o;nt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function nk(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var ik=function(){function e(t){this.coordSysDims=[],this.axisMap=dt(),this.categoryAxisMap=dt(),this.coordSysName=t}return e}();function ak(e){var t=e.get("coordinateSystem"),r=new ik(t),n=ok[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var ok={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",cr).models[0],a=e.getReferringComponents("yAxis",cr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),va(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),va(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",cr).models[0];t.coordSysDims=["single"],r.set("single",i),va(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",cr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),va(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),va(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),va(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function va(e){return e.get("type")==="category"}function bS(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;sk(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,h;if(A(a,function(y,x){tt(y)&&(a[x]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;A(a,function(y){y.coordDim===v&&g++});var p={name:c,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(a.push(p),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function sk(e){return!pS(e.schema)}function Fa(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function wS(e,t){return Fa(e,t)?e.getCalculationInfo("stackResultDimension"):t}function lk(e,t){var r=e.get("coordinateSystem"),n=yf.get(r),i;return t&&t.coordSysDims&&(i=et(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=$O(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function uk(e,t,r){var n,i;return r&&A(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function SS(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===pr;var o=ak(t),s=lk(t,o),l=r.useEncodeDefaulter,u=ft(l)?l:l?Ht(iR,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=xS(i,f),h=uk(c.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=bS(t,{schema:c,store:v}),g=new _S(c,t);g.setCalculationInfo(d);var p=h!=null&&fk(i)?function(m,y,x,b){return b===h?x:this.defaultDimValueGetter(m,y,x,b)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function fk(e){if(e.sourceFormat===pr){var t=ck(e.data||[]);return!Q(As(t))}}function ck(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Ju(qr);var hk=0,Mv=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++hk}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&et(n,vk);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!tt(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=dt(this.categories))},e}();function vk(e){return nt(e)&&e.value!=null?e.value:e+""}function Ev(e){return e.type==="interval"||e.type==="log"}function dk(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=Nd(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=TS(o),l=i.niceTickExtent=[qt(Math.ceil(e[0]/o)*o,s),qt(Math.floor(e[1]/o)*o,s)];return pk(l,e),i}function th(e){var t=Math.pow(10,Zu(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,qt(r*t)}function TS(e){return Hr(e)+2}function b0(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function pk(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),b0(e,0,t),b0(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Sf(e,t){return e>=t[0]&&e<=t[1]}function Tf(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Cf(e,t){return e*(t[1]-t[0])+t[0]}var Ep=function(e){q(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Mv({})),Q(i)&&(i=new Mv({categories:et(i,function(a){return nt(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:tt(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Sf(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Tf(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Cf(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(qr);qr.registerClass(Ep);var bi=qt,Ya=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Sf(r,this._extent)},t.prototype.normalize=function(r){return Tf(r,this._extent)},t.prototype.scale=function(r){return Cf(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=TS(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:bi(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function xk(e){var t=_k(e),r=[];return A(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Ae(n.get("barWidth"),s),g=Ae(n.get("barMaxWidth"),s),p=Ae(n.get("barMinWidth")||(Tk(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,axisKey:DS(a),stackId:AS(n)})}),bk(r)}function bk(e){var t={};A(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return A(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Gt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ae(s,o),f=Ae(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),A(a,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),x&&(b=Math.max(b,x)),m.width=b,c-=b+f*b,h--}else{var b=v;y&&yb&&(b=x),b!==v&&(m.width=b,c-=b+f*b,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,g;A(a,function(m,y){m.width||(m.width=v),g=m,d+=m.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;A(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+f)})}),r}function wk(e,t,r){if(e&&t){var n=e[DS(t)];return n!=null&&r!=null?n[AS(r)]:n}}function Sk(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Tk(e){return e.pipelineContext&&e.pipelineContext.large}var Ck=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var s=xl.length,l=Math.min(Ck(xl,this._approxInterval,0,s),s-1);this._interval=xl[l][1],this._minLevelUnit=xl[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Ut(r)?r:+vr(r)},t.prototype.contain=function(r){return Sf(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Tf(this.parse(r),this._extent)},t.prototype.scale=function(r){return Cf(r,this._extent)},t.type="time",t}(Ya),xl=[["second",ap],["minute",op],["hour",Fo],["quarter-day",Fo*6],["half-day",Fo*12],["day",fr*1.2],["half-week",fr*3.5],["week",fr*7],["month",fr*31],["quarter",fr*95],["half-year",cy/2],["year",cy]];function Ak(e,t,r,n){var i=vr(t),a=vr(r),o=function(d){return vy(i,d,n)===vy(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function Dk(e,t){return e/=fr,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Mk(e){var t=30*fr;return e/=t,e>6?6:e>3?3:e>2?2:1}function Ek(e){return e/=Fo,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function w0(e,t){return e/=t?op:ap,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Pk(e){return Nd(e,!0)}function Lk(e,t,r){var n=new Date(e);switch(La(t)){case"year":case"month":n[Jb(r)](0);case"day":n[Qb(r)](1);case"hour":n[tw(r)](0);case"minute":n[ew(r)](0);case"second":n[rw(r)](0),n[nw(r)](0)}return n.getTime()}function Rk(e,t,r,n){var i=1e4,a=jb,o=0;function s(E,P,L,I,k,F,N){for(var J=new Date(P),W=P,Z=J[I]();W1&&F===0&&L.unshift({value:L[0].value-W})}}for(var F=0;F=n[0]&&y<=n[1]&&c++)}var x=(n[1]-n[0])/t;if(c>x*1.5&&h>x/1.5||(u.push(p),c>x||e===a[v]))break}f=[]}}}for(var b=ee(et(u,function(E){return ee(E,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(E){return E.length>0}),w=[],_=b.length-1,v=0;v0;)a*=10;var s=[qt(kk(n[0]/a)*a),qt(Ok(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Go.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=yr(r)/yr(this.base),Sf(r,this._extent)},t.prototype.normalize=function(r){return r=yr(r)/yr(this.base),Tf(r,this._extent)},t.prototype.scale=function(r){return r=Cf(r,this._extent),bl(this.base,r)},t.type="log",t}(qr),ES=Pp.prototype;ES.getMinorTicks=Go.getMinorTicks;ES.getLabel=Go.getLabel;function wl(e,t){return Ik(e,Hr(t))}qr.registerClass(Pp);var Bk=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[Fk[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Nk[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Nk={min:"_determinedMin",max:"_determinedMax"},Fk={min:"_dataMin",max:"_dataMax"};function zk(e,t,r){var n=e.rawExtentInfo;return n||(n=new Bk(e,t,r),e.rawExtentInfo=n,n)}function Sl(e,t){return t==null?null:Jo(t)?NaN:e.parse(t)}function PS(e,t){var r=e.type,n=zk(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=yk("bar",o),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=xk(s),f=Hk(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function Hk(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=wk(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;A(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,h=f/c-f;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function Du(e,t){var r=t,n=PS(e,r),i=n.extent,a=r.get("splitNumber");e instanceof Pp&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Lp(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ep({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new MS({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(qr.getClass(t)||Ya)}}function Vk(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function $a(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):tt(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):ft(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(Rp(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Rp(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Gk(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Ep?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=$a(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f=0||(T0.push(e),ft(e)&&(e={install:e}),e.install(Zk))}var Jk=1e-8;function C0(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return tB(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?D0(s.exterior,i,a,r):A(s.points,function(l){D0(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new _t(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function P0(e,t){return e=rB(e),et(ee(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new M0(o[0],o.slice(1)));break;case"MultiPolygon":A(i.coordinates,function(l){l[0]&&a.push(new M0(l[0],l.slice(1)))});break;case"LineString":a.push(new E0([i.coordinates]));break;case"MultiLineString":a.push(new E0(i.coordinates))}var s=new eB(n[t||"name"],a,n.cp);return s.properties=n,s})}const nB=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:rE,asc:Jx,getPercentWithPrecision:QM,getPixelPrecision:tb,getPrecision:Hr,getPrecisionSafe:Qx,isNumeric:rb,isRadianAroundZero:ns,linearMap:nv,nice:Nd,numericToNumber:is,parseDate:vr,quantile:iE,quantity:eb,quantityExponent:Zu,reformIntervals:aE,remRadian:Bd,round:qt},Symbol.toStringTag,{value:"Module"})),iB=Object.freeze(Object.defineProperty({__proto__:null,format:Os,parse:vr},Symbol.toStringTag,{value:"Module"})),aB=Object.freeze(Object.defineProperty({__proto__:null,Arc:Is,BezierCurve:sf,BoundingRect:_t,Circle:Es,CompoundPath:Ob,Ellipse:af,Group:Jt,Image:gn,IncrementalDisplayable:Nb,Line:cn,LinearGradient:Yd,Polygon:Ls,Polyline:Rs,RadialGradient:Bb,Rect:jt,Ring:of,Sector:Ps,Text:oe,clipPointsByRect:Zd,clipRectByRect:Wb,createIcon:ff,extendPath:zb,extendShape:Fb,getShapeClass:Hb,getTransform:Kd,initProps:Ua,makeImage:Xd,makePath:lf,mergePath:Gb,registerShape:dr,resizePath:qd,updateProps:hn},Symbol.toStringTag,{value:"Module"})),oB=Object.freeze(Object.defineProperty({__proto__:null,addCommas:lp,capitalFirst:ZL,encodeHTML:Oe,formatTime:jL,formatTpl:fp,getTextRect:KL,getTooltipMarker:iw,normalizeCssArray:ks,toCamelCase:up,truncateText:cb},Symbol.toStringTag,{value:"Module"})),sB=Object.freeze(Object.defineProperty({__proto__:null,bind:Lt,clone:ut,curry:Ht,defaults:St,each:A,extend:Y,filter:ee,indexOf:Mt,inherits:Td,isArray:Q,isFunction:ft,isObject:nt,isString:tt,map:et,merge:pt,reduce:Wr},Symbol.toStringTag,{value:"Module"}));var vs=te();function OS(e,t){var r=et(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function lB(e){var t=e.getLabelModel().get("customValues");if(t){var r=$a(e);return{labels:OS(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?fB(e):hB(e)}function uB(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:OS(e,r)}:e.type==="category"?cB(e,t):{ticks:et(e.scale.getTicks(),function(n){return n.value})}}function fB(e){var t=e.getLabelModel(),r=kS(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function kS(e,t){var r=BS(e,"labels"),n=Ip(t),i=NS(r,n);if(i)return i;var a,o;return ft(n)?a=HS(e,n):(o=n==="auto"?vB(e):n,a=zS(e,o)),FS(r,n,{labels:a,labelCategoryInterval:o})}function cB(e,t){var r=BS(e,"ticks"),n=Ip(t),i=NS(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ft(n))a=HS(e,n,!0);else if(n==="auto"){var s=kS(e,e.getLabelModel());o=s.labelCategoryInterval,a=et(s.labels,function(l){return l.tickValue})}else o=n,a=zS(e,o,!0);return FS(r,n,{ticks:a,tickCategoryInterval:o})}function hB(e){var t=e.scale.getTicks(),r=$a(e);return{labels:et(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function BS(e,t){return vs(e)[t]||(vs(e)[t]=[])}function NS(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,g=0,p=Od(r({value:l}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,h=Math.max(h,d,7),v=Math.max(v,g,7)}var m=h/f,y=v/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),b=vs(e.model),w=e.getExtent(),_=b.lastAutoInterval,T=b.lastTickCount;return _!=null&&T!=null&&Math.abs(_-x)<=1&&Math.abs(T-o)<=1&&_>x&&b.axisExtent0===w[0]&&b.axisExtent1===w[1]?x=_:(b.lastTickCount=o,b.lastAutoInterval=x,b.axisExtent0=w[0],b.axisExtent1=w[1]),x}function pB(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function zS(e,t,r){var n=$a(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=LS(e),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);v&&d-l!==a[1]&&g(a[1]);function g(p){var m={value:p};s.push(r?p:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:p})}return s}function HS(e,t,r){var n=e.scale,i=$a(e),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var L0=[0,1],kp=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return tb(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),R0(n,i.count())),nv(t,L0,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),R0(n,i.count()));var a=nv(t,n,L0,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=uB(this,r),i=n.ticks,a=et(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return gB(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=et(n,function(a){return et(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return lB(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return dB(this)},e}();function R0(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function gB(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;A(t,function(v){v.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(v,d){return v=qt(v),d=qt(d),c?v>d:v-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ar);function VS(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Na(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var Bp=function(e){q(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Ki(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=CB,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){fu(this.childAt(0))},t.prototype.downplay=function(){cu(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):hn(h,v,s,n),yL(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ua(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,v,d,g,p,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=x.get("focus"),v=x.get("blurScope"),d=x.get("disabled"),g=ep(y),p=x.getShallow("scale"),m=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var w=Hw(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),m&&s.attr("cursor",m);var _=r.getItemVisual(n,"style"),T=_.fill;if(s instanceof gn){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},_))}else s.__isEmptyBrush?s.useStyle(Y({},_)):s.useStyle(_),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),E=this._z2;D!=null?E==null&&(this._z2=s.z2,s.z2+=D):E!=null&&(s.z2=E,this._z2=null);var P=o&&o.useNameLabel;tp(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:T,defaultOpacity:_.opacity});function L(F){return P?r.getName(F):VS(r,F)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var k=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*k,I.scaleY=this._sizeY*k,this.setSymbolScale(1),uv(this,h,v,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Tt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&du(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();du(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return QI(r.getItemVisual(n,"symbolSize"))},t}(Jt);function CB(e,t){this.parent.drift(e,t)}function nh(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function O0(e){return e!=null&&!nt(e)&&(e={isIgnore:e}),e||{}}function k0(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:ep(t),cursorStyle:t.get("cursor")}}var AB=function(){function e(t){this.group=new Jt,this._SymbolCtor=t||Bp}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=O0(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=k0(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var h=f(c);if(nh(t,h,c,r)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!nh(t,d,c,r)){n.remove(v);return}var g=t.getItemVisual(c,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):hn(v,m,i)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=k0(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=O0(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function US(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function MB(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function EB(e,t,r,n,i,a,o,s){for(var l=MB(e,t),u=[],f=[],c=[],h=[],v=[],d=[],g=[],p=GS(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||g<0)break;if(zi(m,y)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](m,y),c=m,h=y;else{var x=m-u,b=y-f;if(x*x+b*b<.5){g+=a;continue}if(o>0){for(var w=g+a,_=t[w*2],T=t[w*2+1];_===m&&T===y&&p=n||zi(_,T))v=m,d=y;else{E=_-u,P=T-f;var k=m-u,F=_-m,N=y-f,J=T-y,W=void 0,Z=void 0;if(s==="x"){W=Math.abs(k),Z=Math.abs(F);var ct=E>0?1:-1;v=m-ct*W*o,d=y,L=m+ct*Z*o,I=y}else if(s==="y"){W=Math.abs(N),Z=Math.abs(J);var xt=P>0?1:-1;v=m,d=y-xt*W*o,L=m,I=y+xt*Z*o}else W=Math.sqrt(k*k+N*N),Z=Math.sqrt(F*F+J*J),D=Z/(Z+W),v=m-E*o*(1-D),d=y-P*o*(1-D),L=m+E*o*D,I=y+P*o*D,L=Mn(L,En(_,m)),I=Mn(I,En(T,y)),L=En(L,Mn(_,m)),I=En(I,Mn(T,y)),E=L-m,P=I-y,v=m-E*W/Z,d=y-P*W/Z,v=Mn(v,En(u,m)),d=Mn(d,En(f,y)),v=En(v,Mn(u,m)),d=En(d,Mn(f,y)),E=m-v,P=y-d,L=m+E*Z/W,I=y+P*Z/W}e.bezierCurveTo(c,h,v,d,m,y),c=L,h=I}else e.lineTo(m,y)}u=m,f=y,g+=a}return p}var WS=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),PB=function(e){q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new WS},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&zi(i[o*2-2],i[o*2-1]);o--);for(;a=0){var b=u?(d-l)*x+l:(v-s)*x+s;return u?[r,b]:[b,r]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],g=a[c++],p=a[c++],m=a[c++],y=a[c++];var w=u?au(s,v,g,m,r,f):au(l,d,p,y,r,f);if(w>0)for(var _=0;_=0){var b=u?se(l,d,p,y,T):se(s,v,g,m,T);return u?[r,b]:[b,r]}}s=m,l=y;break}}},t}(Nt),LB=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(WS),RB=function(e){q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new LB},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&zi(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function FB(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=et(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=NB(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,g=h[0].coord-d,p=h[v-1].coord+d,m=p-g;if(m<.001)return"transparent";A(h,function(x){x.offset=(x.coord-g)/m}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new Yd(0,0,0,0,h,!0);return y[i]=g,y[i+"2"]=p,y}}}function zB(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&HB(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function HB(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function VB(e,t){return isNaN(e)||isNaN(t)}function GB(e){for(var t=e.length/2;t>0&&VB(e[t*2-2],e[t*2-1]);t--);return t-1}function H0(e,t){return[e[t*2],e[t*2+1]]}function UB(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function YS(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<$r.length;t++)if(e.get([$r[t],"endLabel","show"]))return!0;return!1}function ih(e,t,r,n){if(kB(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=YS(n)?function(v,d){e._endLabelOnDuring(v,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=IB(t,r,n,function(){var v=e._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return OB(t,r,n)}function WB(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var YB=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Jt,n=new AB;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),f=r.getModel("areaStyle"),c=l.getLayout("points")||[],h=o.type==="polar",v=this._coordSys,d=this._symbolDraw,g=this._polyline,p=this._polygon,m=this._lineGroup,y=!n.ssr&&r.get("animation"),x=!f.isEmpty(),b=f.get("origin"),w=GS(o,l,b),_=x&&BB(o,l,w),T=r.get("showSymbol"),C=r.get("connectNulls"),D=T&&!h&&zB(r,l,o),E=this._data;E&&E.eachItemGraphicEl(function(Et,Le){Et.__temp&&(s.remove(Et),E.setItemGraphicEl(Le,null))}),T||d.remove(),s.add(m);var P=h?!1:r.get("step"),L;o&&o.getArea&&r.get("clip",!0)&&(L=o.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=FB(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&v.type===o.type&&P===this._step))T&&d.updateData(l,{isIgnore:D,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Et){return[c[Et*2],c[Et*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,L),P&&(c=Pn(c,o,P,C),_&&(_=Pn(_,o,P,C))),g=this._newPolyline(c),x?p=this._newPolygon(c,_):p&&(m.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,Xi(I)),m.setClipPath(ih(this,o,!0,r));else{x&&!p?p=this._newPolygon(c,_):p&&!x&&(m.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,Xi(I));var k=m.getClipPath();if(k){var F=ih(this,o,!1,r);Ua(k,{shape:F.shape},r)}else m.setClipPath(ih(this,o,!0,r));T&&d.updateData(l,{isIgnore:D,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Et){return[c[Et*2],c[Et*2+1]]}}),(!B0(this._stackedOnPoints,_)||!B0(this._points,c))&&(y?this._doUpdateAnimation(l,_,o,i,P,b,C):(P&&(c=Pn(c,o,P,C),_&&(_=Pn(_,o,P,C))),g.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:_})))}var N=r.getModel("emphasis"),J=N.get("focus"),W=N.get("blurScope"),Z=N.get("disabled");if(g.useStyle(St(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),qm(g,r,"lineStyle"),g.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var ct=g.getState("emphasis").style;ct.lineWidth=+g.style.lineWidth+1}Tt(g).seriesIndex=r.seriesIndex,uv(g,J,W,Z);var xt=z0(r.get("smooth")),yt=r.get("smoothMonotone");if(g.setShape({smooth:xt,smoothMonotone:yt,connectNulls:C}),p){var Rt=l.getCalculationInfo("stackedOnSeries"),Ft=0;p.useStyle(St(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Rt&&(Ft=z0(Rt.get("smooth"))),p.setShape({smooth:xt,stackedOnSmooth:Ft,smoothMonotone:yt,connectNulls:C}),qm(p,r,"areaStyle"),Tt(p).seriesIndex=r.seriesIndex,uv(p,J,W,Z)}var xe=function(Et){a._changePolyState(Et)};l.eachItemGraphicEl(function(Et){Et&&(Et.onHoverStateChange=xe)}),this._polyline.onHoverStateChange=xe,this._data=l,this._coordSys=o,this._stackedOnPoints=_,this._points=c,this._step=P,this._valueOrigin=b,r.get("triggerLineEvent")&&(this.packEventData(r,g),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){Tt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Yi(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=r.get("zlevel")||0,v=r.get("z")||0;u=new Bp(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Je.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Yi(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Je.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Um(this._polyline,r),n&&Um(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new PB({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new RB({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");ft(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=ft(c)?c(null):c;r.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],m=void 0,y=void 0,x=void 0;if(i)if(o){var b=i,w=n.pointToCoord(p);a?(m=b.startAngle,y=b.endAngle,x=-w[1]/180*Math.PI):(m=b.r0,y=b.r,x=w[0])}else{var _=i;a?(m=_.x,y=_.x+_.width,x=v.x):(m=_.y+_.height,y=_.y,x=v.y)}var T=y===m?0:(x-m)/(y-m);l&&(T=1-T);var C=ft(c)?c(d):f*T+h,D=g.getSymbolPath(),E=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:C}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(YS(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=GB(l);f>=0&&(tp(s,ep(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?TB(o,v):VS(o,c)},enableTextSetter:!0},WB(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,x=n.shape,b=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,w=(m?g:0)*(y?-1:1),_=(m?0:-g)*(y?-1:1),T=m?"x":"y",C=UB(c,b,T),D=C.range,E=D[1]-D[0],P=void 0;if(E>=1){if(E>1&&!v){var L=H0(c,D[0]);u.attr({x:L[0]+w,y:L[1]+_}),o&&(P=h.getRawValue(D[0]))}else{var L=f.getPointOn(b,T);L&&u.attr({x:L[0]+w,y:L[1]+_});var I=h.getRawValue(D[0]),k=h.getRawValue(D[1]);o&&(P=xE(i,d,I,k,C.t))}a.lastFrameIndex=D[0]}else{var F=r===1||a.lastFrameIndex>0?D[0]:0,L=H0(c,F);o&&(P=h.getRawValue(F)),u.attr({x:L[0]+w,y:L[1]+_})}if(o){var N=$b(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,h=EB(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,g=h.next,p=h.stackedOnNext;if(o&&(v=Pn(h.current,i,o,l),d=Pn(h.stackedOnCurrent,i,o,l),g=Pn(h.next,i,o,l),p=Pn(h.stackedOnNext,i,o,l)),F0(v,g)>3e3||f&&F0(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:g}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),hn(u,m,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),hn(f,{shape:{stackedOnPoints:p}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=h.status,b=0;bt&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;rt&&(t=a,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},qB=function(e){return Math.round(e.length/2)};function KB(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;tt(a)?d=XB[a]:ft(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,qB))}}}}}function jB(e){e.registerChartView(YB),e.registerSeriesModel(SB),e.registerLayout($B("line")),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,KB("line"))}var ZB=function(e){q(t,e);function t(){return e!==null&&e.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}(wt),Lv=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cr).models[0]},t.type="cartesian2dAxis",t}(wt);Qe(Lv,Op);var $S={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)"]}}},JB=pt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},$S),Np=pt({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}}},$S),QB=pt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Np),tN=St({logBase:10},Np);const eN={category:JB,value:Np,time:QB,log:tN};var rN={value:1,category:1,time:1,log:1};function Rv(e,t,r,n){A(rN,function(i,a){var o=pt(pt({},eN[a],!0),n,!0),s=function(l){q(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=ls(this),v=h?mf(f):{},d=c.getTheme();pt(f,d.get(a+"Axis")),pt(f,this.getDefaultOption()),f.type=V0(f),h&&Ba(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Mv.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",V0)}function V0(e){return e.type||(e.data?"category":"value")}var nN=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return et(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ee(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),Iv=["x","y"];function G0(e){return e.type==="interval"||e.type==="time"}var iN=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Iv,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!G0(r)||!G0(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Ts([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new _t(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Me(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Me(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new _t(a,o,s,l)},t}(nN),aN=function(e){q(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(kp);function Ov(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Oa(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function U0(e){return e.get("coordinateSystem")==="cartesian2d"}function W0(e){var t={xAxisModel:null,yAxisModel:null};return A(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,cr).models[0];t[n]=a}),t}var ah=Math.log;function oN(e,t,r){var n=Ya.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=PS(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(e.type==="log"){var h=ah(e.base);u=[ah(u[0])/h,ah(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(e);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(e),g=u[0],p=u[1];if(f&&c)d=(p-g)/o;else if(f)for(p=u[0]+d*o;pu[0]&&isFinite(g)&&isFinite(u[0]);)d=th(d),g=u[1]-d*o;else{var m=e.getTicks().length-1;m>o&&(d=th(d));var y=d*o;p=Math.ceil(u[1]/d)*d,g=qt(p-y),g<0&&u[0]>=0?(g=0,p=qt(y)):p>0&&u[1]<=0&&(p=0,g=-qt(y))}var x=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+d*x,p+d*b),n.setInterval.call(e,d),(x||b)&&n.setNiceExtent.call(e,g+d,p-d)}var sN=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Iv,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Gt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,g=v.scale;Ev(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Du(g,d),Ev(g)&&(s=v))}f.length&&(s||(s=f.pop(),Du(s.scale,s.model)),A(f,function(p){oN(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){Y0(n,"y",o,a)}),A(n.y,function(o){Y0(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=qi(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=Gk(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),lN(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}nt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):ns(i-Hn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),X0={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Me(s,s,o),Me(l,l,o));var f=Y({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new cn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});os(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);tt(h)&&(h=[h,h]),(tt(v)||Ut(v))&&(v=[v,v]);var d=Hw(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];A([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var x=Ki(h[y],-g/2,-p/2,g,p,f.stroke,!0),b=m.r+m.offset,w=u?l:s;x.attr({rotation:m.rotate,x:w[0]+b*Math.cos(e.rotation),y:w[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),r.add(x)}})}}},axisTickLabel:function(e,t,r,n){var i=cN(r,n,t,e),a=vN(r,n,t,e);if(fN(t,a,i),hN(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=bB(et(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));wB(o)}},axisName:function(e,t,r,n){var i=Oa(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,K0(a)?e.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Hn/180);var d;K0(a)?h=ln.innerTextLayout(e.rotation,v??e.rotation,o):(h=uN(e.rotation,a,v||0,u),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},m=p.ellipsis,y=Oa(e.nameTruncateMaxWidth,p.maxWidth,d),x=new oe({x:c[0],y:c[1],rotation:h.rotation,silent:ln.isLabelSilent(t),style:vn(s,{text:i,font:g,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Jd({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var b=ln.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,Tt(x).eventData=b}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function uN(e,t,r,n){var i=Bd(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return ns(i-Hn/2)?(o=l?"bottom":"top",a="center"):ns(i-Hn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iHn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function fN(e,t,r){if(!LS(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(rr(a),rr(u)):q0(a,o)&&(n?(rr(o),rr(f)):(rr(a),rr(u))),i===!1?(rr(s),rr(c)):q0(l,s)&&(i?(rr(l),rr(h)):(rr(s),rr(c)))}}function rr(e){e&&(e.ignore=!0)}function q0(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=ws([]);return Ss(i,i,-e.rotation),r.applyTransform(Vn([],i,e.getLocalTransform())),n.applyTransform(Vn([],i,t.getLocalTransform())),r.intersect(n)}}function K0(e){return e==="middle"||e==="center"}function XS(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function _N(e){var t=Fp(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=kv(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),oBN)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!lh(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function lh(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var zN=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&pt(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ee(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);A(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(wt),HN=function(e){q(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(kp);function VN(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=da(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=da(s,[0,o]),i=a=da(s,[i,a]),n=0}t[0]=da(t[0],r),t[1]=da(t[1],r);var l=uh(t,n);t[n]+=e;var u=i||0,f=r.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=da(t[n],f);var c;return c=uh(t,n),i!=null&&(c.sign!==l.sign||c.spana&&(t[1-n]=t[n]+c.sign*a),t}function uh(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function da(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var fh=A,JS=Math.min,QS=Math.max,Q0=Math.floor,GN=Math.ceil,t_=qt,UN=Math.PI,WN=function(){function e(t,r,n){this.type="parallel",this._axesMap=dt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;fh(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),f=this._axesMap.set(o,new HN(o,Lp(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();fh(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Du(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=qi(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,f=Tl(t.get("axisExpandWidth"),l),c=Tl(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=Tl(v[1]-v[0],l),v[1]=v[0]+d;else{d=Tl(f*(c-1),l);var g=t.get("axisExpandCenter")||Q0(u/2);v=[f*g-d/2],v[1]=v[0]+d}var p=(s-d)/(u-c);p<3&&(p=0);var m=[Q0(t_(v[0]/f,1))+1,GN(t_(v[1]/f,1))-1],y=p/f*v[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:p,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),fh(n,function(o,s){var l=(i.axisExpandable?$N:YN)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:UN/2,vertical:0},c=[u[a].x+t.x,u[a].y+t.y],h=f[a],v=on();Ss(v,v,h),Qo(v,v,c),this._axesLayout[o]={position:c,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(p){s.push(t.mapDimension(p)),l.push(a.get(p).model)});for(var u=this.hasAxisBrushed(),f=n;fa*(1-c[0])?(u="jump",l=s-a*(1-c[2])):(l=s-a*c[1])>=0&&(l=s-a*(1-c[1]))<=0&&(l=0),l*=r.axisExpandWidth/f,l?VN(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[QS(0,d-v/2)],i[1]=JS(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},e}();function Tl(e,t){return JS(QS(e,t[0]),t[1])}function YN(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function $N(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,f;return e=0;i--)Jx(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;aZN}function aT(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function oT(e,t,r,n){var i=new Jt;return i.add(new jt({name:"main",style:Gp(r),silent:!0,draggable:!0,cursor:"move",drift:Ht(n_,e,t,i,["n","s","w","e"]),ondragend:Ht(Zi,t,{isEnd:!0})})),A(n,function(a){i.add(new jt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ht(n_,e,t,i,a),ondragend:Ht(Zi,t,{isEnd:!0})}))}),i}function sT(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=za(i,JN),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,f=r[0][1],c=r[1][1],h=f-a+i/2,v=c-a+i/2,d=f-o,g=c-s,p=d+i,m=g+i;Jr(e,t,"main",o,s,d,g),n.transformable&&(Jr(e,t,"w",l,u,a,m),Jr(e,t,"e",h,u,a,m),Jr(e,t,"n",l,u,p,a),Jr(e,t,"s",l,v,p,a),Jr(e,t,"nw",l,u,a,a),Jr(e,t,"ne",h,u,a,a),Jr(e,t,"sw",l,v,a,a),Jr(e,t,"se",h,v,a,a))}function zv(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(Gp(r)),i.attr({silent:!n,cursor:n?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Hv(e,a[0]):aF(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?tF[s]+"-resize":null})})}function Jr(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(sF(Up(e,t,[[n,i],[n+a,i+o]])))}function Gp(e){return St({strokeNoScale:!0},e.brushStyle)}function lT(e,t,r,n){var i=[ps(e,r),ps(t,n)],a=[za(e,r),za(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function iF(e){return Kd(e.group)}function Hv(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Ub(r[t],iF(e));return n[i]}function aF(e,t){var r=[Hv(e,t[0]),Hv(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function n_(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=uT(t,i,a);A(n,function(u){var f=QN[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=e.fromRectRange(lT(s[0][0],s[1][0],s[0][1],s[1][1])),zp(t,r),Zi(t,{isEnd:!1})}function oF(e,t,r,n){var i=t.__brushOption.range,a=uT(e,r,n);A(i,function(o){o[0]+=a[0],o[1]+=a[1]}),zp(e,t),Zi(e,{isEnd:!1})}function uT(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Up(e,t,r){var n=iT(e,t);return n&&n!==ji?n.clipPath(r,e._transform):ut(r)}function sF(e){var t=ps(e[0][0],e[1][0]),r=ps(e[0][1],e[1][1]),n=za(e[0][0],e[1][0]),i=za(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function lF(e,t,r){if(!(!e._brushType||fF(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=Vp(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var Af={lineX:o_(0),lineY:o_(1),rect:{createCover:function(e,t){function r(n){return n}return oT({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=aT(e);return lT(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){sT(e,t,r,n)},updateCommon:zv,contain:Gv},polygon:{createCover:function(e,t){var r=new Jt;return r.add(new Rs({name:"main",style:Gp(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ls({name:"main",draggable:!0,drift:Ht(oF,e,t),ondragend:Ht(Zi,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:Up(e,t,r)})},updateCommon:zv,contain:Gv}};function o_(e){return{createCover:function(t,r){return oT({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=aT(t),n=ps(r[0][e],r[1][e]),i=za(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=iT(t,r);if(o!==ji&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),sT(t,r,l,i)},updateCommon:zv,contain:Gv}}function cF(e){return e=Wp(e),function(t){return Zd(t,e)}}function hF(e,t){return e=Wp(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function vF(e,t,r){var n=Wp(e);return function(i,a){return n.contain(a[0],a[1])&&!RN(i,t,r)}}function Wp(e){return _t.create(e)}var dF=["axisLine","axisTickLabel","axisName"],pF=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new rF(n.getZr())).on("brush",Lt(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!gF(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Jt,this.group.add(this._axisGroup),!!r.get("show")){var s=yF(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),f=u.width,c=r.axis.dim,h=l.getAxisLayout(c),v=Y({strokeContainThreshold:f},h),d=new ln(r,v);A(dF,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,r,s,f,i),jd(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=_t.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:cF(c),isTargetByCursor:vF(c,s,a),getLinearBrushOtherExtent:hF(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(mF(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=et(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(_e);function gF(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function mF(e){var t=e.axis;return et(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function yF(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var _F={type:"axisAreaSelect",event:"axisAreaSelected"};function xF(e){e.registerAction(_F,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var bF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function wF(e){e.registerComponentView(NN),e.registerComponentModel(zN),e.registerCoordinateSystem("parallel",qN),e.registerPreprocessor(IN),e.registerComponentModel(Nv),e.registerComponentView(pF),Rv(e,"parallel",Nv,bF),xF(e)}var Ai=te(),s_=ut,ch=Lt,SF=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Jt,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=Ht(l_,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}f_(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Fp(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Ai(t).pointerEl=new CL[a.type](s_(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ai(t).labelEl=new oe(s_(r.label));t.add(a),u_(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ai(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Ai(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),u_(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=ff(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Px(u.event)},onmousedown:ch(this._onHandleDragMove,this,0,0),drift:ch(this._onHandleDragMove,this),ondragend:ch(this._onHandleDragEnd,this)}),n.add(i)),f_(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,yp(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){l_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,hh(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(hh(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(hh(i)),Ai(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),_u(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function l_(e,t,r,n){cT(Ai(r).lastProp,n)||(Ai(r).lastProp=n,t?hn(r,n,e):(r.stopAnimation(),r.attr(n)))}function cT(e,t){if(nt(e)&&nt(t)){var r=!0;return A(t,function(n,i){r=r&&cT(e[i],n)}),!!r}else return e===t}function u_(e,t){e[t.get(["label","show"])?"show":"hide"]()}function hh(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function f_(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function TF(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function CF(e,t,r,n,i){var a=r.get("value"),o=hT(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=ks(s.get("padding")||0),u=s.getFont(),f=Od(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(c[1]-=v),g==="middle"&&(c[1]-=v/2),AF(c,h,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:vn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function AF(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function hT(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Rp(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),tt(o)?a=o.replace("{value}",a):ft(o)&&(a=o(s))}return a}function vT(e,t,r){var n=on();return Ss(n,n,r.rotation),Qo(n,n,r.position),uf([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function DF(e,t,r,n,i,a){var o=ln.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),CF(t,n,i,a,{position:vT(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function MF(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function EF(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var PF=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=c_(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=TF(a),v=LF[u](s,c,f);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=Ov(l.model,i);DF(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=Ov(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=vT(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=c_(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(SF);function c_(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var LF={line:function(e,t,r){var n=MF([t,r[0]],[t,r[1]],h_(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:EF([t-n/2,r[0]],[n,i],h_(e))}}};function h_(e){return e.dim==="x"?0:1}var RF=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(wt),nn=te(),IF=A;function dT(e,t,r){if(!lt.node){var n=t.getZr();nn(n).records||(nn(n).records={}),OF(n,t);var i=nn(n).records[e]||(nn(n).records[e]={});i.handler=r}}function OF(e,t){if(nn(e).initialized)return;nn(e).initialized=!0,r("click",Ht(v_,"click")),r("mousemove",Ht(v_,"mousemove")),r("globalout",BF);function r(n,i){e.on(n,function(a){var o=NF(t);IF(nn(e).records,function(s){s&&i(s,a,o.dispatchAction)}),kF(o.pendings,t)})}}function kF(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function BF(e,t,r){e.handler("leave",null,r)}function v_(e,t,r,n){t.handler(e,r,n)}function NF(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Uv(e,t){if(!lt.node){var r=t.getZr(),n=(nn(r).records||{})[e];n&&(nn(r).records[e]=null)}}var FF=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";dT("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){Uv("axisPointer",n)},t.prototype.dispose=function(r,n){Uv("axisPointer",n)},t.type="axisPointer",t}(_e);function pT(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Yi(a,e);if(o==null||o<0||Q(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(et(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var d_=te();function zF(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Lt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Yl(i)&&(i=pT({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Yl(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Yl(i),h={},v={},d={list:[],map:{}},g={showPointer:Ht(VF,v),showTooltip:Ht(GF,d)};A(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);A(s.coordSysAxesInfo[y],function(b,w){var _=b.axis,T=$F(u,b);if(!c&&x&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=_.pointToData(i)),C!=null&&p_(b,C,g,!1,h)}})});var p={};return A(f,function(m,y){var x=m.linkGroup;x&&!v[y]&&A(x.axesInfo,function(b,w){var _=v[w];if(b!==m&&_){var T=_.value;x.mapper&&(T=m.axis.scale.parse(x.mapper(T,g_(b),g_(m)))),p[m.key]=T}})}),A(p,function(m,y){p_(f[y],m,g,!0,h)}),UF(v,f,h),WF(d,i,e,o),YF(f,o,r),h}}function p_(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=HF(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function HF(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,e,r);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=e-c,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=c,a.length=0),A(h,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function VF(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function GF(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=ds(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function UF(e,t,r){var n=r.axesInfo=[];A(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function WF(e,t,r,n){if(Yl(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function YF(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=d_(n)[i]||{},o=d_(n)[i]={};A(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&A(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];A(a,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $F(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function g_(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Yl(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function gT(e){qS.registerAxisPointerClass("CartesianAxisPointer",PF),e.registerComponentModel(RF),e.registerComponentView(FF),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=dN(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zF)}function XF(e){dn(MN),dn(gT)}function qF(e,t){var r=ks(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new jt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var KF=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(wt);function mT(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function yT(e){if(lt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function r4(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=lt.transformSupported?","+Yp+n:",left"+n+",top"+n),JF+":"+i}function m_(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!lt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=lt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Yp+":"+o+";":[["top",0],["left",0],[_T,o]]}function n4(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),A(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function i4(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=Pw(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(r4(i,r)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(v){var d="border-"+v,g=up(d),p=e.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(n4(f)),c!=null&&n.push("padding:"+ks(c).join("px ")+"px"),n.join(";")+";"}function y_(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&I5(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var a4=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,lt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(tt(a)?document.querySelector(a):Ia(a)?a:ft(a)&&a(t.getDom()));y_(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();ir(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=ZF(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=QF+i4(t,!this._firstShow,this._longHide)+m_(a[0],a[1],!0)+("border-color:"+Xi(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(tt(a)&&n.get("trigger")==="item"&&!mT(n)&&(s=e4(n,i,a)),tt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Q(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||lt.node||!i.getDom())){var o=b_(a,i);this._ticket="";var s=a.dataByCoordSys,l=h4(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=s4;f.x=a.x,f.y=a.y,f.update(),Tt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=pT(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(b_(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=go([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Tt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ao(i,function(f){if(Tt(f).dataIndex!=null)return l=f,!0;if(Tt(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Lt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=go([n.tooltipOption],a),l=this._renderMode,u=[],f=fs("section",{blocks:[],noHeader:!0}),c=[],h=new Gc;A(r,function(y){A(y.dataByAxis,function(x){var b=i.getComponent(x.axisDim+"Axis",x.axisIndex),w=x.value;if(!(!b||w==null)){var _=hT(w,b.axis,i,x.seriesDataIndices,x.valueLabelOpt),T=fs("section",{header:_,noHeader:!wr(_),sortBlocks:!0,blocks:[]});f.blocks.push(T),A(x.seriesDataIndices,function(C){var D=i.getSeriesByIndex(C.seriesIndex),E=C.dataIndexInside,P=D.getDataParams(E);if(!(P.dataIndex<0)){P.axisDim=x.axisDim,P.axisIndex=x.axisIndex,P.axisType=x.axisType,P.axisId=x.axisId,P.axisValue=Rp(b.axis,{value:w}),P.axisValueLabel=_,P.marker=h.makeTooltipMarker("item",Xi(P.color),l);var L=Oy(D.formatTooltip(E,!0,null)),I=L.frag;if(I){var k=go([D],a).get("valueFormatter");T.blocks.push(k?Y({valueFormatter:k},I):I)}L.text&&c.push(L.text),u.push(P)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),g=zy(f,h,l,d,i.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var p=l==="richText"?` `:"
",m=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Tt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=r.positionDefault,g=go([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(f,c),y=new Gc;m.marker=y.makeTooltipMarker("item",Xi(m.color),v);var x=Oy(u.formatTooltip(f,!1,c)),b=g.get("order"),w=g.get("valueFormatter"),_=x.frag,T=_?zy(w?Y({valueFormatter:w},_):_,y,v,b,a.get("useUTC"),g.get("textStyle")):x.text,C="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,T,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Tt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(tt(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=ut(l),l.content=Oe(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=r.positionDefault,d=go(c,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",m=new Gc;this._showOrMove(d,function(){var y=ut(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,p,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=d.color;if(h)if(tt(h)){var p=r.ecModel.get("useUTC"),m=Q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Os(m.axisValue,v,p)),v=fp(v,i,!0)}else if(ft(h)){var x=Lt(function(b,w){b===this._ticket&&(c.setContent(w,f,r,g,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,x)}else v=h;c.setContent(v,f,r,g,l),c.show(r,g),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Q(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ft(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),Q(n))i=Ae(n[0],u),a=Ae(n[1],f);else if(nt(n)){var g=n;g.width=c[0],g.height=c[1];var p=qi(g,{width:u,height:f});i=p.x,a=p.y,h=null,v=null}else if(tt(n)&&l){var m=c4(n,d,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=u4(i,a,o,u,f,h?null:20,v?null:20);i=m[0],a=m[1]}if(h&&(i-=w_(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=w_(v)?c[1]/2:v==="bottom"?c[1]:0),mT(r)){var m=f4(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(h,v){var d=c[v]||{},g=h.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&g.length===p.length,o&&A(g,function(m,y){var x=p[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&A(h.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],b=a[y];x&&b&&b.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){lt.node||!n.getDom()||(_u(this,"_updatePosition"),this._tooltipContent.dispose(),Uv("itemTooltip",n))},t.type="tooltip",t}(_e);function go(e,t,r){var n=t.ecModel,i;r?(i=new Vt(r,n,n),i=new Vt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Vt&&(o=o.get("tooltip",!0)),tt(o)&&(o={formatter:o}),o&&(i=new Vt(o,i,n)))}return i}function b_(e,t){return e.dispatchAction||Lt(t.dispatchAction,t)}function u4(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function f4(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function c4(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function w_(e){return e==="center"||e==="middle"}function h4(e,t,r){var n=zd(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ds(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Tt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function v4(e){dn(gT),e.registerComponentModel(KF),e.registerComponentView(l4),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},me),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},me)}var d4=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}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}(wt),p4=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=mt(r.get("textBaseline"),r.get("textVerticalAlign")),f=new oe({style:vn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),v=new oe({style:vn(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){py(d,"_"+r.get("target"))}),g&&v.on("click",function(){py(g,"_"+r.get("subtarget"))}),Tt(f).eventData=Tt(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(v);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=qi(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),m=a.getBoundingRect();var w=x.margin,_=r.getItemStyle(["color","opacity"]);_.fill=r.get("backgroundColor");var T=new jt({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});a.add(T)}},t.type="title",t}(_e);function g4(e){e.registerComponentModel(d4),e.registerComponentView(p4)}var m4=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Wv=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Q(n)&&A(n,function(a,o){tt(a)&&(a={type:a}),n[o]=pt(a,m4(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i=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}(wt),pa=Ht,Yv=A,Cl=Jt,bT=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Cl),this.group.add(this._selectorGroup=new Cl),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),v=qi(f,c,h),d=this.layoutInner(r,o,v,a,l,u),g=qi(St({width:d.width,height:d.height},f),c,h);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=qF(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=dt(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Yv(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` `)){var p=new Cl;p.newline=!0,u.add(p);return}var m=i.getSeriesByName(g)[0];if(!f.get(g))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),w=y.getVisual("style"),_=this._createItem(m,g,d,v,n,r,x,w,b,c,a);_.on("click",pa(S_,g,null,a,h)).on("mouseover",pa($v,m.name,null,a,h)).on("mouseout",pa(Xv,m.name,null,a,h)),i.ssr&&_.eachChild(function(T){var C=Tt(T);C.seriesIndex=m.seriesIndex,C.dataIndex=d,C.ssrType="legend"}),f.set(g,!0)}else i.eachRawSeries(function(T){if(!f.get(g)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(g))return;var D=C.indexOfName(g),E=C.getItemVisual(D,"style"),P=C.getItemVisual(D,"legendIcon"),L=je(E.fill);L&&L[3]===0&&(L[3]=.2,E=Y(Y({},E),{fill:Kn(L,"rgba")}));var I=this._createItem(T,g,d,v,n,r,{},E,P,c,a);I.on("click",pa(S_,null,g,a,h)).on("mouseover",pa($v,null,g,a,h)).on("mouseout",pa(Xv,null,g,a,h)),i.ssr&&I.eachChild(function(k){var F=Tt(k);F.seriesIndex=T.seriesIndex,F.dataIndex=d,F.ssrType="legend"}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Yv(r,function(u){var f=u.type,c=new oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);tp(c,{normal:h,emphasis:v},{defaultText:u.title}),hu(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,h){var v=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");f=x||f||"roundRect";var b=y4(f,a,l,u,v,p,h),w=new Cl,_=a.getModel("textStyle");if(ft(r.getLegendIcon)&&(!x||x==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var T=x==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;w.add(_4({itemWidth:d,itemHeight:g,icon:f,iconRotate:T,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,D=s,E=o.get("formatter"),P=n;tt(E)&&E?P=E.replace("{name}",n??""):ft(E)&&(P=E(n));var L=p?_.getTextColor():a.get("inactiveColor");w.add(new oe({style:vn(_,{text:P,x:C,y:g/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var I=new jt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),k=a.getModel("tooltip");return k.get("show")&&Jd({el:I,componentModel:o,itemName:n,itemTooltipOption:k.option}),w.add(I),w.eachChild(function(F){F.silent=!0}),I.silent=!c,this.getContentGroup().add(w),hu(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();zo(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){zo("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:c[g]+=h[p]+d,v[1-g]+=f[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[p]=f[p]+d+h[p],x[m]=Math.max(f[m],h[m]),x[y]=Math.min(0,h[y]+v[1-g]),x}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(_e);function y4(e,t,r,n,i,a,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),Yv(p,function(y,x){p[x]==="inherit"&&(p[x]=m[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Tv(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function _4(e){var t=e.icon||"roundRect",r=Ki(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function S_(e,t,r,n){Xv(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),$v(e,t,r,n)}function wT(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],p=[-v.x,-v.y];n||(p[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],x=mt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+x}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),c.setPosition(m),h.setPosition(y);var w={x:0,y:0};if(w[o]=g?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],g){var _={x:0,y:0};_[o]=Math.max(i[o]-d[o]-x,0),_[s]=w[s],c.setClipPath(new jt({shape:_})),c.__rectSize=_[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&hn(f,{x:T.contentPosition[0],y:T.contentPosition[1]},g?r:null),this._updatePageInfoView(r,T),w},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",tt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=vh[o],l=dh[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var g=b(c);d.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,x=null;p<=h;++p)x=b(f[p]),(!x&&y.e>m.s+a||x&&!w(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=x;for(var p=u-1,m=g,y=g,x=null;p>=-1;--p)x=b(f[p]),(!x||!w(y,x.s))&&m.i=T&&_.s<=T+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(bT);function T4(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function C4(e){dn(ST),e.registerComponentModel(w4),e.registerComponentView(S4),T4(e)}function A4(e){dn(ST),dn(C4)}var D4={label:{enabled:!0},decal:{show:!1}},A_=te(),M4={};function E4(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=ut(D4);pt(n.label,e.getLocaleModel().get("aria"),!1),pt(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),f=u.get("show");if(f){var c=dt();e.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),A_(h).scope=v}}),e.eachRawSeries(function(h){if(e.isSeriesFiltered(h))return;if(ft(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=my(h.ecModel,h.name,M4,e.getSeriesCount()),x=v.getVisual("decal");v.setVisual("decal",b(x,y))}else{var d=h.getRawData(),g={},p=A_(h).scope;v.each(function(w){var _=v.getRawIndex(w);g[_]=w});var m=d.count();d.each(function(w){var _=g[w],T=d.getName(w)||w+"",C=my(h.ecModel,T,p,m),D=v.getItemVisual(_,"decal");v.setItemVisual(_,"decal",b(D,C))})}function b(w,_){var T=w?Y(Y({},_),w):_;return T.dirty=!0,T}})}}function a(){var u=t.getZr().dom;if(u){var f=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=St(c.option,f),!!c.get("enabled")){if(c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=e.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,g=Math.min(h,d),p;if(!(h<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);p=o(y,{title:m})}else p=c.get(["general","withoutTitle"]);var x=[],b=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);p+=o(b,{seriesCount:h}),e.eachSeries(function(C,D){if(D1?c.get(["series","multiple",L]):c.get(["series","single",L]),E=o(E,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>v){var k=c.get(["data","partialData"]);E+=o(k,{displayCnt:v})}else E+=c.get(["data","allData"]);for(var F=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),J=[],W=0;W=s)}}for(var c=this.__startIndex;c15)break}}k.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=p.__endIndex;else for(var E=v.dpr,P=0;P0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?Al:0),this._needsManuallyCompositing),f.__builtin__||qu("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Xe&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?pt(n[t],r,!0):n[t]=r;for(var i=0;i{const c=Nr(e);!c||!Nr(e)||(n=I0.init(c,"default"))},a=c=>{e1(()=>{!n&&(i(),!n)||(n.setOption({...c}),f())})};function o(){return n||i(),n}function s(){n==null||n.resize()}function l(){r&&(e.value.style.transition="width 1s, height 1s"),new ResizeObserver(h=>s()).observe(e.value)}function u(){n||i(),n==null||n.showLoading()}function f(){n||i(),n==null||n.hideLoading()}return Nu(()=>{window.addEventListener("resize",s),t&&l()}),cd(()=>{window.removeEventListener("resize",s)}),{setOption:a,getInstance:o,showLoading:u,hideLoading:f}}const F4=[{left:778,top:187,num:"43"},{left:854,top:230,num:"42"},{left:969,top:302,num:"41"},{left:1142,top:404,num:"40"},{left:1322,top:513,num:"39"},{left:689,top:275,num:"35"},{left:837,top:369,num:"36"},{left:1008,top:474,num:"37"},{left:1188,top:590,num:"38"},{left:579,top:335,num:"34"},{left:716,top:427,num:"33"},{left:882,top:535,num:"32"},{left:1064,top:658,num:"31"},{left:770,top:594,num:"30"},{left:158,top:97,num:"14"},{left:214,top:113,num:"13"},{left:268,top:130,num:"12"},{left:326,top:149,num:"11"},{left:386,top:165,num:"10"},{left:255,top:82,num:"18"},{left:308,top:98,num:"17"},{left:372,top:116,num:"16"},{left:454,top:132,num:"15"}];function z4(e=[]){const t=ve([]);return(()=>{for(let n of e){const i=F4.find(a=>a.num==n.num);i&&t.value.push({...n,...i})}})(),{positionInfoArr:t}}const E_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAACCAYAAABxPuuRAAAAAXNSR0IArs4c6QAAAMtJREFUWEftlkcOhDAQBBtM3P//FYMDqwneNR/g1JasYTwBqU41pFzv4yo4zoKYJFZEya+CeFWPVv+9nRkxSc17pdbP6x7ZV5FyBQ8JkAAJkAAJkAAJkAAJvEVgnkZs84htGbGvE/ZFvgN2uWvQmkXL5X2VXq9LlFmdX2xe+33H0ATapLkTYhXoJs7VhPnMT7EWSXbJ7oX7L9sFudxvseJ/SIAESIAESIAESIAESABTGFSGVXhdkHshNjEO+LgUt9wE+SnLTZxVul3Iv8rnl+ubeSAXAAAAAElFTkSuQmCC",H4={class:"bg-[rgba(1,29,61,.9)] p-36 wh-full"},V4={class:"py-10 flex items-center j-b"},G4={class:"flex items-center"},U4={class:"font-[ysbt] text-20 text-#707070",style:{"background-image":"linear-gradient(to bottom, #FFFFFF, #64CCFF)","background-clip":"text",color:"transparent"}},gh={__name:"CardItem",props:{title:{type:String}},setup(e){return(t,r)=>(Ot(),$t("div",H4,[r[2]||(r[2]=S("img",{class:"w-full h-[1px]",src:E_,alt:""},null,-1)),S("div",V4,[S("div",G4,[r[0]||(r[0]=S("img",{class:"w-15 h-15 mr-10",src:V1,alt:""},null,-1)),S("div",U4,U(e.title),1)]),r[1]||(r[1]=S("img",{class:"w-28 h-10",src:G1,alt:""},null,-1))]),r[3]||(r[3]=S("img",{class:"w-full h-[1px]",src:E_,alt:""},null,-1)),BC(t.$slots,"default")]))}},W4={__name:"LineChart",props:["optionData","xData"],setup(e){const t=ve(null),{setOption:r}=N4(t),n=e;return console.log(n.optionData,"0000"),r({grid:{top:"20%",right:"1%",bottom:"1%",left:"1%",containLabel:!0},tooltip:{trigger:"axis"},legend:{data:n.optionData.map(i=>i.name),icon:"circle",itemWidth:14,itemHeight:14,left:"left",textStyle:{color:"#fff",fontSize:13}},xAxis:{type:"category",data:n.xData,axisLabel:{show:!0,textStyle:{color:"#B6CCE3",fontSize:14}},axisLine:{lineStyle:{color:"#3B4E78",width:1,type:"dashed"}}},yAxis:{type:"value",axisLabel:{show:!0,textStyle:{color:"#B6CCE3",fontSize:14}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#3B4E78"}}},series:n.optionData}),(i,a)=>(Ot(),$t("div",{class:"wh-full",ref_key:"lineChart",ref:t},null,512))}},Y4={class:"wh-full"},$4={class:"flex h-8 relative"},X4={key:0,class:"w-14 h-14 bg-white p-2 rounded-1/2 absolute top-1/2 -translate-y-1/2 left-12/100"},q4={class:"text-10 text-white absolute -top-20"},K4={key:1,class:"w-14 h-14 bg-white p-2 rounded-1/2 absolute top-1/2 -translate-y-1/2 left-44/100"},j4={class:"text-10 text-white absolute -top-20"},Z4={key:2,class:"w-14 h-14 bg-white p-2 rounded-1/2 absolute top-1/2 -translate-y-1/2 left-76/100"},J4={class:"text-10 text-white absolute -top-20"},Q4={class:"flex text-10 text-#697B8F mt-4"},t3={class:"flex-1"},e3={class:"flex-1"},r3={class:"flex-1 text-right"},n3={__name:"Ruler",props:{start:{type:Number,default:0},mid:{type:Number},end:{type:Number},cur:{type:Number}},setup(e){return(t,r)=>(Ot(),$t("div",Y4,[S("div",$4,[r[3]||(r[3]=S("div",{class:"flex-1 bg-#56C648"},null,-1)),r[4]||(r[4]=S("div",{class:"flex-1 bg-#F5BB23"},null,-1)),r[5]||(r[5]=S("div",{class:"flex-1 bg-#D53031"},null,-1)),e.cur>0&&e.cur<=e.mid?(Ot(),$t("div",X4,[S("div",q4,U(e.cur),1),r[0]||(r[0]=S("div",{class:"wh-full rounded-1/2 bg-#19324F"},null,-1))])):e.cur>e.mid&&e.cur<=e.end?(Ot(),$t("div",K4,[S("div",j4,U(e.cur),1),r[1]||(r[1]=S("div",{class:"wh-full rounded-1/2 bg-#19324F"},null,-1))])):e.cur>e.end?(Ot(),$t("div",Z4,[S("div",J4,U(e.cur),1),r[2]||(r[2]=S("div",{class:"wh-full rounded-1/2 bg-#19324F"},null,-1))])):_o("",!0)]),S("div",Q4,[S("div",t3,U(e.start),1),S("div",e3,U(e.mid),1),S("div",r3,U(e.end),1),r[6]||(r[6]=S("div",{class:"flex-1 text-right"},"-",-1))])]))}},i3={class:"w-100% h-100% rounded-20 img relative"},a3=["src"],o3={__name:"Modal",props:["htmlContent"],emits:["close"],setup(e,{emit:t}){const r=t,n=e,i="https://grain.gynhc.com";function a(){r("close")}const o=JSON.parse(n.htmlContent),s=ve(0);function l(){s.value!==0&&(s.value-=1)}function u(){s.value!==o.length-1&&(s.value+=1)}return(f,c)=>(Ot(),$t("div",{class:"fixed wh-full bg-[rgba(0,0,0,.7)] z-998 top-0 right-0 bottom-0 left-0 flex items-center j-c overflow-y-auto",onClick:a},[S("div",i3,[S("i",{onClick:Pg(l,["stop"]),class:Uo(["i-material-symbols:chevron-left text-100 left-0 absolute top-1/2 -translate-y-1/2",Nr(s)===0?"text-gray-500 cursor-not-allowed":"text-white cursor-pointer"])},null,2),S("img",{class:"object-contain w-100% h-100%",src:Nr(i)+Nr(o)[Nr(s)].url,alt:""},null,8,a3),S("i",{onClick:Pg(u,["stop"]),class:Uo(["i-material-symbols:chevron-right text-100 right-0 absolute top-1/2 -translate-y-1/2",Nr(s)===Nr(o).length-1?"text-gray-500 cursor-not-allowed":"text-white cursor-pointer"])},null,2)])]))}},s3={key:0,class:"absolute w-22.5/100 left-20 top-112 z-667"},l3=["src"],u3={class:"text-20 font-bold text-white mt-4"},f3={class:"flex items-center mt-8"},c3={class:"text-14 text-[rgba(255,255,255,.8)]"},h3={class:"flex items-center mt-4 pb-16",style:{"border-bottom":"1px solid #fff"}},v3={class:"text-14 text-[rgba(255,255,255,.8)]"},d3={key:0,class:"pt-20 flex"},p3={class:"flex-1"},g3={class:"flex items-cente mb-6r"},m3={class:"text-[rgba(255,255,255,.8)] text-14"},y3={class:"flex items-center mb-6"},_3={class:"text-[rgba(255,255,255,.8)] text-14"},x3={class:"flex items-center mb-6"},b3={class:"text-[rgba(255,255,255,.8)] text-14"},w3={class:"flex items-center mb-6"},S3={class:"text-[rgba(255,255,255,.8)] text-14"},T3={class:"flex items-center mb-6"},C3={class:"text-[rgba(255,255,255,.8)] text-14"},A3={class:"flex items-center mb-6"},D3={class:"text-[rgba(255,255,255,.8)] text-14"},M3={class:"flex items-center mb-6"},E3={class:"text-[rgba(255,255,255,.8)] text-14"},P3={class:"flex items-center mb-6"},L3={class:"text-[rgba(255,255,255,.8)] text-14"},R3={class:"flex items-center mb-6"},I3={class:"text-[rgba(255,255,255,.8)] text-14"},O3={class:"flex items-center mb-6"},k3={class:"text-[rgba(255,255,255,.8)] text-14"},B3={class:"flex items-center mb-6"},N3={class:"text-[rgba(255,255,255,.8)] text-14"},F3={class:"flex"},z3={class:"text-[rgba(255,255,255,.8)] text-14"},H3={class:"flex-1"},V3={class:"flex items-center mb-6"},G3={class:"text-[rgba(255,255,255,.8)] text-14"},U3={class:"flex items-center mb-6"},W3={class:"text-[rgba(255,255,255,.8)] text-14"},Y3={class:"flex items-center mb-6"},$3={class:"text-[rgba(255,255,255,.8)] text-14"},X3={class:"flex items-center mb-6"},q3={class:"text-[rgba(255,255,255,.8)] text-14"},K3={class:"flex items-center mb-6"},j3={class:"text-[rgba(255,255,255,.8)] text-14"},Z3={class:"flex items-center mb-6"},J3={class:"text-[rgba(255,255,255,.8)] text-14"},Q3={class:"flex items-center mb-6"},tz={class:"text-[rgba(255,255,255,.8)] text-14"},ez={class:"flex items-center mb-6"},rz={class:"text-[rgba(255,255,255,.8)] text-14"},nz={class:"flex items-center mb-6"},iz={class:"text-[rgba(255,255,255,.8)] text-14"},az={class:"flex items-center mb-6"},oz={class:"text-[rgba(255,255,255,.8)] text-14"},sz={class:"flex items-center mb-6"},lz={class:"text-[rgba(255,255,255,.8)] text-14"},uz={class:"flex items-center"},fz={class:"text-[rgba(255,255,255,.8)] text-14"},cz={key:1,class:"pt-20 flex"},hz={class:"flex-1"},vz={class:"flex items-cente mb-6r"},dz={class:"text-[rgba(255,255,255,.8)] text-14"},pz={class:"flex items-center mb-6"},gz={class:"text-[rgba(255,255,255,.8)] text-14"},mz={class:"flex items-center mb-6"},yz={class:"text-[rgba(255,255,255,.8)] text-14"},_z={class:"flex items-center mb-6"},xz={class:"text-[rgba(255,255,255,.8)] text-14"},bz={class:"flex items-center mb-6"},wz={class:"text-[rgba(255,255,255,.8)] text-14"},Sz={class:"flex items-center mb-6"},Tz={class:"text-[rgba(255,255,255,.8)] text-14"},Cz={class:"flex items-center mb-6"},Az={class:"text-[rgba(255,255,255,.8)] text-14"},Dz={class:"flex items-center mb-6"},Mz={class:"text-[rgba(255,255,255,.8)] text-14"},Ez={class:"flex items-center mb-6"},Pz={class:"text-[rgba(255,255,255,.8)] text-14"},Lz={class:"flex items-center mb-6"},Rz={class:"text-[rgba(255,255,255,.8)] text-14"},Iz={class:"flex items-center mb-6"},Oz={class:"text-[rgba(255,255,255,.8)] text-14"},kz={class:"flex items-center"},Bz={class:"text-[rgba(255,255,255,.8)] text-14"},Nz={class:"flex-1"},Fz={class:"flex items-center mb-6"},zz={class:"text-[rgba(255,255,255,.8)] text-14"},Hz={class:"flex items-center mb-6"},Vz={class:"text-[rgba(255,255,255,.8)] text-14"},Gz={class:"flex items-center mb-6"},Uz={class:"text-[rgba(255,255,255,.8)] text-14"},Wz={class:"flex items-center mb-6"},Yz={class:"text-[rgba(255,255,255,.8)] text-14"},$z={class:"flex items-center mb-6"},Xz={class:"text-[rgba(255,255,255,.8)] text-14"},qz={class:"flex items-center mb-6"},Kz={class:"text-[rgba(255,255,255,.8)] text-14"},jz={class:"flex items-center mb-6"},Zz={class:"text-[rgba(255,255,255,.8)] text-14"},Jz={class:"flex items-center mb-6"},Qz={class:"text-[rgba(255,255,255,.8)] text-14"},tH={class:"flex items-center mb-6"},eH={class:"text-[rgba(255,255,255,.8)] text-14"},rH={class:"flex items-center mb-6"},nH={class:"text-[rgba(255,255,255,.8)] text-14"},iH={class:"flex items-center"},aH={class:"text-[rgba(255,255,255,.8)] text-14"},oH={key:2,class:"pt-20 flex"},sH={class:"flex-1"},lH={class:"flex items-cente mb-6r"},uH={class:"text-[rgba(255,255,255,.8)] text-14"},fH={class:"flex items-center mb-6"},cH={class:"text-[rgba(255,255,255,.8)] text-14"},hH={class:"flex items-center mb-6"},vH={class:"text-[rgba(255,255,255,.8)] text-14"},dH={class:"flex items-center mb-6"},pH={class:"text-[rgba(255,255,255,.8)] text-14"},gH={class:"flex items-center mb-6"},mH={class:"text-[rgba(255,255,255,.8)] text-14"},yH={class:"flex items-center mb-6"},_H={class:"text-[rgba(255,255,255,.8)] text-14"},xH={class:"flex items-center mb-6"},bH={class:"text-[rgba(255,255,255,.8)] text-14"},wH={class:"flex items-center mb-6"},SH={class:"text-[rgba(255,255,255,.8)] text-14"},TH={class:"flex items-center mb-6"},CH={class:"text-[rgba(255,255,255,.8)] text-14"},AH={class:"flex items-center mb-6"},DH={class:"text-[rgba(255,255,255,.8)] text-14"},MH={class:"flex items-center mb-6"},EH={class:"text-[rgba(255,255,255,.8)] text-14"},PH={class:"flex items-center"},LH={class:"text-[rgba(255,255,255,.8)] text-14"},RH={class:"flex-1"},IH={class:"flex items-center mb-6"},OH={class:"text-[rgba(255,255,255,.8)] text-14"},kH={class:"flex items-center mb-6"},BH={class:"text-[rgba(255,255,255,.8)] text-14"},NH={class:"flex items-center mb-6"},FH={class:"text-[rgba(255,255,255,.8)] text-14"},zH={class:"flex items-center mb-6"},HH={class:"text-[rgba(255,255,255,.8)] text-14"},VH={class:"flex items-center mb-6"},GH={class:"text-[rgba(255,255,255,.8)] text-14"},UH={class:"flex items-center mb-6"},WH={class:"text-[rgba(255,255,255,.8)] text-14"},YH={class:"flex items-center mb-6"},$H={class:"text-[rgba(255,255,255,.8)] text-14"},XH={class:"flex items-center mb-6"},qH={class:"text-[rgba(255,255,255,.8)] text-14"},KH={class:"flex items-center mb-6"},jH={class:"text-[rgba(255,255,255,.8)] text-14"},ZH={class:"flex items-center mb-6"},JH={class:"text-[rgba(255,255,255,.8)] text-14"},QH={class:"flex items-center"},t8={class:"text-[rgba(255,255,255,.8)] text-14"},e8={class:"pt-13 flex flex-wrap gap-8 overflow-y-auto max-h-100"},r8=["onClick"],n8={key:0,class:"w-full flex justify-center absolute bottom-20 z-666"},i8={class:"w-48/100 bg-[rgba(1,29,61,.9)]"},a8={class:"p-20"},o8={class:"h-300 w-full"},s8={key:0,class:"absolute w-23/100 right-20 top-112 h-8.8/10"},l8={class:"absolute flex w-full items-center j-b -top-34"},u8={class:"text-14 text-gray"},f8={class:"pt-13"},c8={class:"flex text-14 text-white px-16 py-13"},h8={class:"flex-5/11"},v8={class:"flex-2/11 text-center"},d8={class:"flex-4/11 flex items-center justify-center"},p8={class:"flex-5/11"},g8={class:"flex-2/11 text-center"},m8={class:"flex-4/11 text-center"},y8=["onClick"],_8={class:"top text-center pr20 line-height-26"},x8={class:"font-[ysbt] text-18",style:{"background-image":"linear-gradient(to bottom, #FFFFFF, #64CCFF)","background-clip":"text",color:"transparent"}},b8={__name:"App",setup(e){const t="https://grain.gynhc.com",r=(w=1920,_=1080)=>{let T=window.innerWidth/w,C=window.innerHeight/_;return T{a.value&&(a.value.style.transform=`scale(${r()}) translate(-50%,-50%)`)},a=ve(null);Nu(()=>{a.value&&(a.value.style.transform=`scale(${r()}) translate(-50%,-50%)`,a.value.style.width="1920px",a.value.style.height="1080px"),window.addEventListener("resize",i)});const o=ve(!1),s=ve(!1),l=ve([]),u=ve(""),f=ve([]);c();async function c(){s.value=!0;const w=await Kf.getGranaryList();l.value=w.data.list,u.value=l.value.find(C=>C.granary_type===1);const _=l.value,{positionInfoArr:T}=z4(_);f.value=T.value,console.log(T.value,"pos---"),s.value=!1}const h=ve(""),v=ve(""),d=ve([]),g=ve(""),p=ve("");async function m(w,_){s.value=!0,o.value=!1;const T=await Kf.getDetail({params:{id:w,type:_}});h.value=T.data.granary,v.value=T.data.test,d.value=T.data.contentList,p.value=T.data.xAxisData,g.value=T.data.seriesData.map(C=>({...C,type:"line"})),s.value=!1,o.value=!0}const y=ve(!1),x=ve("");async function b(w){s.value=!0;const _=await Kf.getContent({params:{id:w.id}});x.value=_.data.content.content,s.value=!1,y.value=!0}return(w,_)=>{const T=OC("loading");return mC((Ot(),$t("div",{class:"screen-container",onClick:_[2]||(_[2]=C=>n(C))},[S("div",{ref_key:"screenContent",ref:a,class:"content fixed top-1/2 left-1/2 z-9 overflow-hidden relative"},[_[80]||(_[80]=S("div",{class:"header h-17/100 w-full font-[ysbt] text-center text-44 text-white line-height-80"},"中央储备粮遵义直属库有限公司",-1)),Xt(Hf,{duration:1e3,"leave-active-class":"animate__animated animate__fadeOutLeft","enter-active-class":"animate__animated animate__fadeInLeft"},{default:Ti(()=>[o.value?(Ot(),$t("div",s3,[Xt(gh,{title:"仓库介绍"},{default:Ti(()=>[S("div",null,[S("img",{class:"w-360 h-170 mt-12",src:Nr(t)+h.value.image,alt:""},null,8,l3),_[75]||(_[75]=S("div",{class:"text-14 mt-16 text-[rgba(255,255,255,.8)]"},"粮权单位",-1)),S("div",u3,U(h.value.name),1),S("div",f3,[_[3]||(_[3]=S("img",{class:"w-16 h-16 mr-4",src:s2,alt:""},null,-1)),S("span",c3,"储存库点: "+U(h.value.storage),1)]),S("div",h3,[_[4]||(_[4]=S("img",{class:"w-16 h-16 mr-4",src:l2,alt:""},null,-1)),S("span",v3,"填卡日期: "+U(h.value.create_time),1)]),h.value.varieties==="菜籽油"||h.value.varieties==="大豆油"?(Ot(),$t("div",d3,[S("div",p3,[S("div",g3,[_[5]||(_[5]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right mb-6"},"油罐号:",-1)),S("div",m3,U(h.value.num),1)]),S("div",y3,[_[6]||(_[6]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"设计罐容:",-1)),S("div",_3,U(h.value.content.tankCapacity),1)]),S("div",x3,[_[7]||(_[7]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"油罐类型:",-1)),S("div",b3,U(h.value.content.tankType),1)]),S("div",w3,[_[8]||(_[8]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"诸存品种:",-1)),S("div",S3,U(h.value.content.varieties),1)]),S("div",T3,[_[9]||(_[9]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存性质:",-1)),S("div",C3,U(h.value.content.nature),1)]),S("div",A3,[_[10]||(_[10]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"原料产地:",-1)),S("div",D3,U(h.value.content.productArea),1)]),S("div",M3,[_[11]||(_[11]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"加工地:",-1)),S("div",E3,U(h.value.content.addr),1)]),S("div",P3,[_[12]||(_[12]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"加工年度:",-1)),S("div",L3,U(h.value.content.machiningYear),1)]),S("div",R3,[_[13]||(_[13]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"入罐时间:",-1)),S("div",I3,U(h.value.content.enterTime),1)]),S("div",O3,[_[14]||(_[14]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"等级:",-1)),S("div",k3,U(h.value.content.level),1)]),S("div",B3,[_[15]||(_[15]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"色泽:",-1)),S("div",N3,U(h.value.content.color),1)]),S("div",F3,[_[16]||(_[16]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right flex-shrink-0"},"气味、滋味:",-1)),S("div",z3,U(h.value.content.odorAndTaste),1)])]),S("div",H3,[S("div",V3,[_[17]||(_[17]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"水分挥发物:",-1)),S("div",G3,U(h.value.content.waterVolatileCompounds),1)]),S("div",U3,[_[18]||(_[18]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"不溶性杂质:",-1)),S("div",W3,U(h.value.content.insolubleImpurities),1)]),S("div",Y3,[_[19]||(_[19]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"酸价:",-1)),S("div",$3,U(h.value.content.acidValue),1)]),S("div",X3,[_[20]||(_[20]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"过氧化值:",-1)),S("div",q3,U(h.value.content.peroxideValue),1)]),S("div",K3,[_[21]||(_[21]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"加热试验:",-1)),S("div",j3,U(h.value.content.heating),1)]),S("div",Z3,[_[22]||(_[22]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"溶剂残留里:",-1)),S("div",J3,U(h.value.content.residualSolventContent),1)]),S("div",Q3,[_[23]||(_[23]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"罐内直径:",-1)),S("div",tz,U(h.value.content.TankDiameter),1)]),S("div",ez,[_[24]||(_[24]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"装油高度:",-1)),S("div",rz,U(h.value.content.oilLoadingHeight),1)]),S("div",nz,[_[25]||(_[25]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"扣除体积:",-1)),S("div",iz,U(h.value.content.volume),1)]),S("div",az,[_[26]||(_[26]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"油脂体积:",-1)),S("div",oz,U(h.value.content.oilVolume),1)]),S("div",sz,[_[27]||(_[27]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"管理形式:",-1)),S("div",lz,U(h.value.content.managementForm),1)]),S("div",uz,[_[28]||(_[28]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"保管员:",-1)),S("div",fz,U(h.value.content.custodian),1)])])])):h.value.varieties==="稻谷"?(Ot(),$t("div",cz,[S("div",hz,[S("div",vz,[_[29]||(_[29]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right mb-6"},"货位编号:",-1)),S("div",dz,U(h.value.num),1)]),S("div",pz,[_[30]||(_[30]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"仓型:",-1)),S("div",gz,U(h.value.content.warehouseType),1)]),S("div",mz,[_[31]||(_[31]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"核定仓容:",-1)),S("div",yz,U(h.value.content.capacity),1)]),S("div",_z,[_[32]||(_[32]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存品种:",-1)),S("div",xz,U(h.value.content.varieties),1)]),S("div",bz,[_[33]||(_[33]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存性质:",-1)),S("div",wz,U(h.value.content.nature),1)]),S("div",Sz,[_[34]||(_[34]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"产地:",-1)),S("div",Tz,U(h.value.content.addr),1)]),S("div",Cz,[_[35]||(_[35]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"收获年度:",-1)),S("div",Az,U(h.value.content.harvestYear),1)]),S("div",Dz,[_[36]||(_[36]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"入仓时间:",-1)),S("div",Mz,U(h.value.content.enterTime),1)]),S("div",Ez,[_[37]||(_[37]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存数量:",-1)),S("div",Pz,U(h.value.content.storageNum),1)]),S("div",Lz,[_[38]||(_[38]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"等级:",-1)),S("div",Rz,U(h.value.content.level),1)]),S("div",Iz,[_[39]||(_[39]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"出糙率:",-1)),S("div",Oz,U(h.value.content.roughnessRate),1)]),S("div",kz,[_[40]||(_[40]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"杂质:",-1)),S("div",Bz,U(h.value.content.impurity),1)])]),S("div",Nz,[S("div",Fz,[_[41]||(_[41]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"拆合水分:",-1)),S("div",zz,U(h.value.content.water),1)]),S("div",Hz,[_[42]||(_[42]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"散存粮体积:",-1)),S("div",Vz,U(h.value.content.volume),1)]),S("div",Gz,[_[43]||(_[43]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"扣除体积:",-1)),S("div",Uz,U(h.value.content.decVolume),1)]),S("div",Wz,[_[44]||(_[44]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"整精米粒:",-1)),S("div",Yz,U(h.value.content.riceGrains),1)]),S("div",$z,[_[45]||(_[45]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"管理形式:",-1)),S("div",Xz,U(h.value.content.managementForm),1)]),S("div",qz,[_[46]||(_[46]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"长(米):",-1)),S("div",Kz,U(h.value.content.length),1)]),S("div",jz,[_[47]||(_[47]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"宽(米):",-1)),S("div",Zz,U(h.value.content.tankDiameter),1)]),S("div",Jz,[_[48]||(_[48]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"直径(米):",-1)),S("div",Qz,U(h.value.content.diam),1)]),S("div",tH,[_[49]||(_[49]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"高(米):",-1)),S("div",eH,U(h.value.content.height),1)]),S("div",rH,[_[50]||(_[50]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"保管方式:",-1)),S("div",nH,U(h.value.content.storageMethod),1)]),S("div",iH,[_[51]||(_[51]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"保管员:",-1)),S("div",aH,U(h.value.content.custodian),1)])])])):(Ot(),$t("div",oH,[S("div",sH,[S("div",lH,[_[52]||(_[52]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right mb-6"},"仓号:",-1)),S("div",uH,U(h.value.num),1)]),S("div",fH,[_[53]||(_[53]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"仓型:",-1)),S("div",cH,U(h.value.granary_type==1?"圆形":"方形"),1)]),S("div",hH,[_[54]||(_[54]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存品种:",-1)),S("div",vH,U(h.value.varieties),1)]),S("div",dH,[_[55]||(_[55]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"产地:",-1)),S("div",pH,U(h.value.content.addr),1)]),S("div",gH,[_[56]||(_[56]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"入仓时间:",-1)),S("div",mH,U(h.value.content.enterTime),1)]),S("div",yH,[_[57]||(_[57]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"等级:",-1)),S("div",_H,U(h.value.content.level),1)]),S("div",xH,[_[58]||(_[58]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"杂质:",-1)),S("div",bH,U(h.value.content.impurity),1)]),S("div",wH,[_[59]||(_[59]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"散存粮体积:",-1)),S("div",SH,U(h.value.content.volume),1)]),S("div",TH,[_[60]||(_[60]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"不完善粒:",-1)),S("div",CH,U(h.value.content.imperfect),1)]),S("div",AH,[_[61]||(_[61]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"保管方式:",-1)),S("div",DH,U(h.value.content.storageMethod),1)]),S("div",MH,[_[62]||(_[62]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"长:",-1)),S("div",EH,U(h.value.content.length),1)]),S("div",PH,[_[63]||(_[63]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"粮高:",-1)),S("div",LH,U(h.value.content.height),1)])]),S("div",RH,[S("div",IH,[_[64]||(_[64]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"货位编号:",-1)),S("div",OH,U(h.value.content.code),1)]),S("div",kH,[_[65]||(_[65]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"核定仓容:",-1)),S("div",BH,U(h.value.content.capacity),1)]),S("div",NH,[_[66]||(_[66]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存性质:",-1)),S("div",FH,U(h.value.content.nature),1)]),S("div",zH,[_[67]||(_[67]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"收获年度:",-1)),S("div",HH,U(h.value.content.harvestYear),1)]),S("div",VH,[_[68]||(_[68]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储藏数量:",-1)),S("div",GH,U(h.value.content.storageNum),1)]),S("div",UH,[_[69]||(_[69]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"容量:",-1)),S("div",WH,U(h.value.content.weight),1)]),S("div",YH,[_[70]||(_[70]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"折合水分:",-1)),S("div",$H,U(h.value.content.water),1)]),S("div",XH,[_[71]||(_[71]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"扣除体积:",-1)),S("div",qH,U(h.value.content.decVolume),1)]),S("div",KH,[_[72]||(_[72]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"管理形式:",-1)),S("div",jH,U(h.value.content.managementForm),1)]),S("div",ZH,[_[73]||(_[73]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"保管员:",-1)),S("div",JH,U(h.value.content.custodian),1)]),S("div",QH,[_[74]||(_[74]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"宽:",-1)),S("div",t8,U(h.value.content.width),1)])])]))])]),_:1}),Xt(gh,{"mt-16":"",title:"质检报告"},{default:Ti(()=>[S("div",e8,[(Ot(!0),$t(re,null,Of(d.value,C=>(Ot(),$t("div",{onClick:D=>b(C),class:"w-114 h-50 bg-#142840 flex items-center j-c text-14 text-white cursor-pointer",style:{border:"1px solid #485666"}},U(C.title),9,r8))),256))])]),_:1})])):_o("",!0)]),_:1}),Xt(Hf,{duration:1e3,"leave-active-class":"animate__animated animate__fadeOutDown","enter-active-class":"animate__animated animate__fadeInUp"},{default:Ti(()=>[o.value?(Ot(),$t("div",n8,[S("div",i8,[_[76]||(_[76]=S("div",{class:"h-34 flex j-b items-center px-12",style:{background:"linear-gradient( 180deg, #304A85 0%, #0B3081 100%)"}},[S("div",{class:"flex items-center"},[S("img",{class:"w-15 h-15 mr-10",src:V1,alt:""}),S("div",{class:"font-[ysbt] text-20 text-#707070",style:{"background-image":"linear-gradient(to bottom, #FFFFFF, #64CCFF)","background-clip":"text",color:"transparent"}},"参数走势折线图")]),S("img",{class:"w-28 h-10",src:G1,alt:""})],-1)),S("div",a8,[S("div",o8,[Xt(W4,{optionData:g.value,xData:p.value},null,8,["optionData","xData"])])])])])):_o("",!0)]),_:1}),Xt(Hf,{duration:1e3,"leave-active-class":"animate__animated animate__fadeOutRight","enter-active-class":"animate__animated animate__fadeInRight"},{default:Ti(()=>[o.value?(Ot(),$t("div",s8,[S("div",l8,[S("div",{class:"flex items-center cursor-pointer",onClick:_[0]||(_[0]=C=>o.value=!1)},_[77]||(_[77]=[S("img",{class:"w24 h24 mr6",src:u2,alt:""},null,-1),S("span",{class:"text-14 text-gray"},"关闭",-1)])),S("div",u8,U(v.value.test_date),1)]),Xt(gh,{title:`检测项参数(${v.value.test_date})`,class:"overflow-y-auto overflow-hidden h-full"},{default:Ti(()=>[S("div",f8,[_[78]||(_[78]=S("div",{class:"w-full h-40 bg-[rgba(0,0,0,.2)] px-16 flex items-center j-b"},[S("div",{class:"flex-5/11 text-16 text-white"},"检测项目"),S("div",{class:"flex-2/11 text-16 text-white text-center"},"单位"),S("div",{class:"flex-4/11 text-16 text-white text-center"},"结果")],-1)),(Ot(!0),$t(re,null,Of(v.value.testing_params,C=>(Ot(),$t("div",c8,[C.is_number==1?(Ot(),$t(re,{key:0},[S("div",h8,U(C.num)+" "+U(C.name),1),S("div",v8,U(C.unit),1),S("div",d8,[Xt(n3,{class:"w-8/10",mid:C.warning*1,end:C.alert*1,cur:C.val*1},null,8,["mid","end","cur"])])],64)):(Ot(),$t(re,{key:1},[S("div",p8,U(C.num)+" "+U(C.name),1),S("div",g8,U(C.unit),1),S("div",m8,U(C.val),1)],64))]))),256))])]),_:1},8,["title"])])):_o("",!0)]),_:1}),(Ot(!0),$t(re,null,Of(f.value,C=>(Ot(),$t("div",{class:"point-title absolute cursor-pointer",style:Lu({left:C.left+"px",top:C.top+"px"}),onClick:D=>m(C.id,C.varieties.type)},[S("div",_8,[S("span",x8,U(C.num)+U(C.varieties.name),1)]),_[79]||(_[79]=S("div",{class:"flex flex-col items-center pr30"},[S("img",{class:"w-16 h-62",src:f2,alt:""}),S("img",{class:"w38 h20 absolute bottom-0",src:c2,alt:""})],-1))],12,y8))),256))],512),y.value?(Ot(),Kl(o3,{key:0,onClose:_[1]||(_[1]=C=>y.value=!1),"html-content":x.value},null,8,["html-content"])):_o("",!0)])),[[T,s.value]])}}},w8=vx(b8,[["__scopeId","data-v-4f523861"]]);function S8(){const e=i2(w8);ZD(e),e.mount("#app")}S8();