function wv(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i!!r[i.toLowerCase()]:i=>!!r[i]}const zx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hx=wv(zx);function Q0(e){return!!e||e===""}function bv(e){if(at(e)){const t={};for(let r=0;r{if(r){const n=r.split(Vx);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Sv(e){let t="";if(Zt(e))t=e;else if(at(e))for(let r=0;rwi(r,t))}const Iz=e=>Zt(e)?e:e==null?"":at(e)||Yt(e)&&(e.toString===t_||!gt(e.toString))?JSON.stringify(e,J0,2):String(e),J0=(e,t)=>t&&t.__v_isRef?J0(e,t.value):fa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:Ea(t)?{[`Set(${t.size})`]:[...t.values()]}:Yt(t)&&!at(t)&&!e_(t)?String(t):t,Rt={},ua=[],fr=()=>{},Wx=()=>!1,Yx=/^on[^a-z]/,_u=e=>Yx.test(e),Tv=e=>e.startsWith("onUpdate:"),ie=Object.assign,Cv=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},qx=Object.prototype.hasOwnProperty,Tt=(e,t)=>qx.call(e,t),at=Array.isArray,fa=e=>wu(e)==="[object Map]",Ea=e=>wu(e)==="[object Set]",cp=e=>e instanceof Date,gt=e=>typeof e=="function",Zt=e=>typeof e=="string",Mv=e=>typeof e=="symbol",Yt=e=>e!==null&&typeof e=="object",Av=e=>Yt(e)&>(e.then)&>(e.catch),t_=Object.prototype.toString,wu=e=>t_.call(e),Xx=e=>wu(e).slice(8,-1),e_=e=>wu(e)==="[object Object]",Dv=e=>Zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ml=wv(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},jx=/-(\w)/g,Ar=bu(e=>e.replace(jx,(t,r)=>r?r.toUpperCase():"")),Kx=/\B([A-Z])/g,Mi=bu(e=>e.replace(Kx,"-$1").toLowerCase()),Su=bu(e=>e.charAt(0).toUpperCase()+e.slice(1)),hf=bu(e=>e?`on${Su(e)}`:""),$o=(e,t)=>!Object.is(e,t),yl=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},ya=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hp;const Zx=()=>hp||(hp=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Or;class r_{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Or&&(this.parent=Or,this.index=(Or.scopes||(Or.scopes=[])).push(this)-1)}run(t){if(this.active)try{return Or=this,t()}finally{Or=this.parent}}on(){Or=this}off(){Or=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},i_=e=>(e.w&Pn)>0,a_=e=>(e.n&Pn)>0,Jx=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(u==="length"||u>=n)&&s.push(l)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":at(e)?Dv(r)&&s.push(o.get("length")):(s.push(o.get(pi)),fa(e)&&s.push(o.get(Gc)));break;case"delete":at(e)||(s.push(o.get(pi)),fa(e)&&s.push(o.get(Gc)));break;case"set":fa(e)&&s.push(o.get(pi));break}if(s.length===1)s[0]&&Uc(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);Uc(Pv(l))}}function Uc(e,t){for(const r of at(e)?e:[...e])(r!==xr||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const eT=wv("__proto__,__v_isRef,__isVue"),l_=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Mv)),rT=Ev(),nT=Ev(!1,!0),iT=Ev(!0),dp=aT();function aT(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Ct(this);for(let a=0,o=this.length;a{e[t]=function(...r){La();const n=Ct(this)[t].apply(this,r);return Ra(),n}}),e}function Ev(e=!1,t=!1){return function(n,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?bT:v_:t?h_:c_).get(n))return n;const o=at(n);if(!e&&o&&Tt(dp,i))return Reflect.get(dp,i,a);const s=Reflect.get(n,i,a);return(Mv(i)?l_.has(i):eT(i))||(e||ke(n,"get",i),t)?s:Wt(s)?!o||!Dv(i)?s.value:s:Yt(s)?e?d_(s):Ai(s):s}}const oT=u_(),sT=u_(!0);function u_(e=!1){return function(r,n,i,a){let o=r[n];if(Vo(o)&&Wt(o)&&!Wt(i))return!1;if(!e&&!Vo(i)&&(p_(i)||(i=Ct(i),o=Ct(o)),!at(r)&&Wt(o)&&!Wt(i)))return o.value=i,!0;const s=at(r)&&Dv(n)?Number(n)e,xu=e=>Reflect.getPrototypeOf(e);function xs(e,t,r=!1,n=!1){e=e.__v_raw;const i=Ct(e),a=Ct(t);t!==a&&!r&&ke(i,"get",t),!r&&ke(i,"get",a);const{has:o}=xu(i),s=n?Lv:r?kv:Go;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 Ts(e,t=!1){const r=this.__v_raw,n=Ct(r),i=Ct(e);return e!==i&&!t&&ke(n,"has",e),!t&&ke(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function Cs(e,t=!1){return e=e.__v_raw,!t&&ke(Ct(e),"iterate",pi),Reflect.get(e,"size",e)}function pp(e){e=Ct(e);const t=Ct(this);return xu(t).has.call(t,e)||(t.add(e),Ur(t,"add",e,e)),this}function gp(e,t){t=Ct(t);const r=Ct(this),{has:n,get:i}=xu(r);let a=n.call(r,e);a||(e=Ct(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?$o(t,o)&&Ur(r,"set",e,t):Ur(r,"add",e,t),this}function mp(e){const t=Ct(this),{has:r,get:n}=xu(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&&Ur(t,"delete",e,void 0),a}function yp(){const e=Ct(this),t=e.size!==0,r=e.clear();return t&&Ur(e,"clear",void 0,void 0),r}function Ms(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Ct(o),l=t?Lv:e?kv:Go;return!e&&ke(s,"iterate",pi),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function As(e,t,r){return function(...n){const i=this.__v_raw,a=Ct(i),o=fa(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?Lv:t?kv:Go;return!t&&ke(a,"iterate",l?Gc:pi),{next(){const{value:c,done:v}=u.next();return v?{value:c,done:v}:{value:s?[f(c[0]),f(c[1])]:f(c),done:v}},[Symbol.iterator](){return this}}}}function Zr(e){return function(...t){return e==="delete"?!1:this}}function vT(){const e={get(a){return xs(this,a)},get size(){return Cs(this)},has:Ts,add:pp,set:gp,delete:mp,clear:yp,forEach:Ms(!1,!1)},t={get(a){return xs(this,a,!1,!0)},get size(){return Cs(this)},has:Ts,add:pp,set:gp,delete:mp,clear:yp,forEach:Ms(!1,!0)},r={get(a){return xs(this,a,!0)},get size(){return Cs(this,!0)},has(a){return Ts.call(this,a,!0)},add:Zr("add"),set:Zr("set"),delete:Zr("delete"),clear:Zr("clear"),forEach:Ms(!0,!1)},n={get(a){return xs(this,a,!0,!0)},get size(){return Cs(this,!0)},has(a){return Ts.call(this,a,!0)},add:Zr("add"),set:Zr("set"),delete:Zr("delete"),clear:Zr("clear"),forEach:Ms(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=As(a,!1,!1),r[a]=As(a,!0,!1),t[a]=As(a,!1,!0),n[a]=As(a,!0,!0)}),[e,r,t,n]}const[dT,pT,gT,mT]=vT();function Rv(e,t){const r=t?e?mT:gT:e?pT:dT;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Tt(r,i)&&i in n?r:n,i,a)}const yT={get:Rv(!1,!1)},_T={get:Rv(!1,!0)},wT={get:Rv(!0,!1)},c_=new WeakMap,h_=new WeakMap,v_=new WeakMap,bT=new WeakMap;function ST(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xT(e){return e.__v_skip||!Object.isExtensible(e)?0:ST(Xx(e))}function Ai(e){return Vo(e)?e:Ov(e,!1,f_,yT,c_)}function TT(e){return Ov(e,!1,hT,_T,h_)}function d_(e){return Ov(e,!0,cT,wT,v_)}function Ov(e,t,r,n,i){if(!Yt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=xT(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function bn(e){return Vo(e)?bn(e.__v_raw):!!(e&&e.__v_isReactive)}function Vo(e){return!!(e&&e.__v_isReadonly)}function p_(e){return!!(e&&e.__v_isShallow)}function g_(e){return bn(e)||Vo(e)}function Ct(e){const t=e&&e.__v_raw;return t?Ct(t):e}function _a(e){return Bl(e,"__v_skip",!0),e}const Go=e=>Yt(e)?Ai(e):e,kv=e=>Yt(e)?d_(e):e;function m_(e){wn&&xr&&(e=Ct(e),s_(e.dep||(e.dep=Pv())))}function y_(e,t){e=Ct(e),e.dep&&Uc(e.dep)}function Wt(e){return!!(e&&e.__v_isRef===!0)}function wa(e){return __(e,!1)}function CT(e){return __(e,!0)}function __(e,t){return Wt(e)?e:new MT(e,t)}class MT{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Ct(t),this._value=r?t:Go(t)}get value(){return m_(this),this._value}set value(t){t=this.__v_isShallow?t:Ct(t),$o(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Go(t),y_(this))}}function wo(e){return Wt(e)?e.value:e}const AT={get:(e,t,r)=>wo(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Wt(i)&&!Wt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function w_(e){return bn(e)?e:new Proxy(e,AT)}function DT(e){const t=at(e)?new Array(e.length):{};for(const r in e)t[r]=IT(e,r);return t}class PT{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function IT(e,t,r){const n=e[t];return Wt(n)?n:new PT(e,t,r)}class ET{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Iv(t,()=>{this._dirty||(this._dirty=!0,y_(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Ct(this);return m_(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function LT(e,t,r=!1){let n,i;const a=gt(e);return a?(n=e,i=fr):(n=e.get,i=e.set),new ET(n,i,a||!i,r)}Promise.resolve();function Sn(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){hs(a,t,r)}return i}function Qe(e,t,r,n){if(gt(e)){const a=Sn(e,t,r,n);return a&&Av(a)&&a.catch(o=>{hs(o,t,r)}),a}const i=[];for(let a=0;a>>1;Uo(Ie[n])Br&&Ie.splice(t,1)}function T_(e,t,r,n){at(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&r.push(e),x_()}function NT(e){T_(e,co,bo,Ji)}function C_(e){T_(e,cn,So,ta)}function Fv(e,t=null){if(bo.length){for(Yc=t,co=[...new Set(bo)],bo.length=0,Ji=0;JiUo(r)-Uo(n)),ta=0;tae.id==null?1/0:e.id;function A_(e){Wc=!1,Fl=!0,Fv(e),Ie.sort((r,n)=>Uo(r)-Uo(n));const t=fr;try{for(Br=0;Brh.trim()):c&&(i=r.map(ya))}let s,l=n[s=hf(t)]||n[s=hf(Ar(t))];!l&&a&&(l=n[s=hf(Mi(t))]),l&&Qe(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,Qe(u,e,6,i)}}function D_(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(!gt(e)){const l=u=>{const f=D_(u,t,!0);f&&(s=!0,ie(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(n.set(e,null),null):(at(a)?a.forEach(l=>o[l]=null):ie(o,a),n.set(e,o),o)}function zv(e,t){return!e||!_u(t)?!1:(t=t.slice(2).replace(/Once$/,""),Tt(e,t[0].toLowerCase()+t.slice(1))||Tt(e,Mi(t))||Tt(e,t))}let Re=null,Tu=null;function zl(e){const t=Re;return Re=e,Tu=e&&e.type.__scopeId||null,t}function Ez(e){Tu=e}function Lz(){Tu=null}function FT(e,t=Re,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&Ip(-1);const a=zl(t),o=e(...i);return zl(a),n._d&&Ip(1),o};return n._n=!0,n._c=!0,n._d=!0,n}function vf(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,data:v,setupState:h,ctx:d,inheritAttrs:p}=e;let g,m;const y=zl(e);try{if(r.shapeFlag&4){const w=i||n;g=lr(f.call(w,w,c,a,h,v,d)),m=l}else{const w=t;g=lr(w.length>1?w(a,{attrs:l,slots:s,emit:u}):w(a,null)),m=t.props?l:HT(l)}}catch(w){To.length=0,hs(w,e,1),g=fe(Ne)}let _=g;if(m&&p!==!1){const w=Object.keys(m),{shapeFlag:S}=_;w.length&&S&7&&(o&&w.some(Tv)&&(m=$T(m,o)),_=ba(_,m))}return r.dirs&&(_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,zl(y),g}function zT(e){let t;for(let r=0;r{let t;for(const r in e)(r==="class"||r==="style"||_u(r))&&((t||(t={}))[r]=e[r]);return t},$T=(e,t)=>{const r={};for(const n in e)(!Tv(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function VT(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?_p(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;ce.__isSuspense,UT={name:"Suspense",__isSuspense:!0,process(e,t,r,n,i,a,o,s,l,u){e==null?WT(t,r,n,i,a,o,s,l,u):YT(e,t,r,n,i,o,s,l,u)},hydrate:qT,create:$v,normalize:XT},Rz=UT;function Wo(e,t){const r=e.props&&e.props[t];gt(r)&&r()}function WT(e,t,r,n,i,a,o,s,l){const{p:u,o:{createElement:f}}=l,c=f("div"),v=e.suspense=$v(e,i,n,t,c,r,a,o,s,l);u(null,v.pendingBranch=e.ssContent,c,null,n,v,a,o),v.deps>0?(Wo(e,"onPending"),Wo(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,a,o),ca(v,e.ssFallback)):v.resolve()}function YT(e,t,r,n,i,a,o,s,{p:l,um:u,o:{createElement:f}}){const c=t.suspense=e.suspense;c.vnode=t,t.el=e.el;const v=t.ssContent,h=t.ssFallback,{activeBranch:d,pendingBranch:p,isInFallback:g,isHydrating:m}=c;if(p)c.pendingBranch=v,wr(v,p)?(l(p,v,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():g&&(l(d,h,r,n,i,null,a,o,s),ca(c,h))):(c.pendingId++,m?(c.isHydrating=!1,c.activeBranch=p):u(p,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=f("div"),g?(l(null,v,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(l(d,h,r,n,i,null,a,o,s),ca(c,h))):d&&wr(v,d)?(l(d,v,r,n,i,c,a,o,s),c.resolve(!0)):(l(null,v,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(d&&wr(v,d))l(d,v,r,n,i,c,a,o,s),ca(c,v);else if(Wo(t,"onPending"),c.pendingBranch=v,c.pendingId++,l(null,v,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:y,pendingId:_}=c;y>0?setTimeout(()=>{c.pendingId===_&&c.fallback(h)},y):y===0&&c.fallback(h)}}function $v(e,t,r,n,i,a,o,s,l,u,f=!1){const{p:c,m:v,um:h,n:d,o:{parentNode:p,remove:g}}=u,m=ya(e.props&&e.props.timeout),y={vnode:e,parent:t,parentComponent:r,isSVG:o,container:n,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(_=!1){const{vnode:w,activeBranch:S,pendingBranch:b,pendingId:x,effects:T,parentComponent:C,container:D}=y;if(y.isHydrating)y.isHydrating=!1;else if(!_){const L=S&&b.transition&&b.transition.mode==="out-in";L&&(S.transition.afterLeave=()=>{x===y.pendingId&&v(b,D,O,0)});let{anchor:O}=y;S&&(O=d(S),h(S,C,y,!0)),L||v(b,D,O,0)}ca(y,b),y.pendingBranch=null,y.isInFallback=!1;let P=y.parent,A=!1;for(;P;){if(P.pendingBranch){P.effects.push(...T),A=!0;break}P=P.parent}A||C_(T),y.effects=[],Wo(w,"onResolve")},fallback(_){if(!y.pendingBranch)return;const{vnode:w,activeBranch:S,parentComponent:b,container:x,isSVG:T}=y;Wo(w,"onFallback");const C=d(S),D=()=>{!y.isInFallback||(c(null,_,x,C,b,null,T,s,l),ca(y,_))},P=_.transition&&_.transition.mode==="out-in";P&&(S.transition.afterLeave=D),y.isInFallback=!0,h(S,b,null,!0),P||D()},move(_,w,S){y.activeBranch&&v(y.activeBranch,_,w,S),y.container=_},next(){return y.activeBranch&&d(y.activeBranch)},registerDep(_,w){const S=!!y.pendingBranch;S&&y.deps++;const b=_.vnode.el;_.asyncDep.catch(x=>{hs(x,_,0)}).then(x=>{if(_.isUnmounted||y.isUnmounted||y.pendingId!==_.suspenseId)return;_.asyncResolved=!0;const{vnode:T}=_;eh(_,x,!1),b&&(T.el=b);const C=!b&&_.subTree.el;w(_,T,p(b||_.subTree.el),b?null:d(_.subTree),y,o,l),C&&g(C),Hv(_,T.el),S&&--y.deps===0&&y.resolve()})},unmount(_,w){y.isUnmounted=!0,y.activeBranch&&h(y.activeBranch,r,_,w),y.pendingBranch&&h(y.pendingBranch,r,_,w)}};return y}function qT(e,t,r,n,i,a,o,s,l){const u=t.suspense=$v(t,n,r,e.parentNode,document.createElement("div"),null,i,a,o,s,!0),f=l(e,u.pendingBranch=t.ssContent,r,u,a,o);return u.deps===0&&u.resolve(),f}function XT(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=wp(n?r.default:r),e.ssFallback=n?wp(r.fallback):fe(Ne)}function wp(e){let t;if(gt(e)){const r=Yo&&e._c;r&&(e._d=!1,qv()),e=e(),r&&(e._d=!0,t=xn,Y_())}return at(e)&&(e=zT(e)),e=lr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function jT(e,t){t&&t.pendingBranch?at(e)?t.effects.push(...e):t.effects.push(e):C_(e)}function ca(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e,i=r.el=t.el;n&&n.subTree===r&&(n.vnode.el=i,Hv(n,i))}function _l(e,t){if(Jt){let r=Jt.provides;const n=Jt.parent&&Jt.parent.provides;n===r&&(r=Jt.provides=Object.create(n)),r[e]=t}}function Je(e,t,r=!1){const n=Jt||Re;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&>(t)?t.call(n.proxy):t}}function KT(e,t){return Vv(e,null,{flush:"post"})}const bp={};function ha(e,t,r){return Vv(e,t,r)}function Vv(e,t,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=Rt){const s=Jt;let l,u=!1,f=!1;if(Wt(e)?(l=()=>e.value,u=p_(e)):bn(e)?(l=()=>e,n=!0):at(e)?(f=!0,u=e.some(bn),l=()=>e.map(m=>{if(Wt(m))return m.value;if(bn(m))return hi(m);if(gt(m))return Sn(m,s,2)})):gt(e)?t?l=()=>Sn(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return c&&c(),Qe(e,s,3,[v])}:l=fr,t&&n){const m=l;l=()=>hi(m())}let c,v=m=>{c=g.onStop=()=>{Sn(m,s,4)}};if(Xo)return v=fr,t?r&&Qe(t,s,3,[l(),f?[]:void 0,v]):l(),fr;let h=f?[]:bp;const d=()=>{if(!!g.active)if(t){const m=g.run();(n||u||(f?m.some((y,_)=>$o(y,h[_])):$o(m,h)))&&(c&&c(),Qe(t,s,3,[m,h===bp?void 0:h,v]),h=m)}else g.run()};d.allowRecurse=!!t;let p;i==="sync"?p=d:i==="post"?p=()=>be(d,s&&s.suspense):p=()=>{!s||s.isMounted?NT(d):d()};const g=new Iv(l,p);return t?r?d():h=g.run():i==="post"?be(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&Cv(s.scope.effects,g)}}function ZT(e,t,r){const n=this.proxy,i=Zt(e)?e.includes(".")?P_(n,e):()=>n[e]:e.bind(n,n);let a;gt(t)?a=t:(a=t.handler,r=t);const o=Jt;In(this);const s=Vv(i,a.bind(n),r);return o?In(o):Tn(),s}function P_(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i{hi(r,t)});else if(e_(e))for(const r in e)hi(e[r],t);return e}function QT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Au(()=>{e.isMounted=!0}),O_(()=>{e.isUnmounting=!0}),e}const ze=[Function,Array],JT={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ze,onEnter:ze,onAfterEnter:ze,onEnterCancelled:ze,onBeforeLeave:ze,onLeave:ze,onAfterLeave:ze,onLeaveCancelled:ze,onBeforeAppear:ze,onAppear:ze,onAfterAppear:ze,onAppearCancelled:ze},setup(e,{slots:t}){const r=Oa(),n=QT();let i;return()=>{const a=t.default&&L_(t.default(),!0);if(!a||!a.length)return;const o=Ct(e),{mode:s}=o,l=a[0];if(n.isLeaving)return df(l);const u=Sp(l);if(!u)return df(l);const f=qc(u,o,n,r);Xc(u,f);const c=r.subTree,v=c&&Sp(c);let h=!1;const{getTransitionKey:d}=u.type;if(d){const p=d();i===void 0?i=p:p!==i&&(i=p,h=!0)}if(v&&v.type!==Ne&&(!wr(u,v)||h)){const p=qc(v,o,n,r);if(Xc(v,p),s==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update()},df(l);s==="in-out"&&u.type!==Ne&&(p.delayLeave=(g,m,y)=>{const _=E_(n,v);_[String(v.key)]=v,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=y})}return l}}},I_=JT;function E_(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 qc(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:v,onAfterLeave:h,onLeaveCancelled:d,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),w=E_(r,e),S=(x,T)=>{x&&Qe(x,n,9,T)},b={mode:a,persisted:o,beforeEnter(x){let T=s;if(!r.isMounted)if(i)T=p||s;else return;x._leaveCb&&x._leaveCb(!0);const C=w[_];C&&wr(e,C)&&C.el._leaveCb&&C.el._leaveCb(),S(T,[x])},enter(x){let T=l,C=u,D=f;if(!r.isMounted)if(i)T=g||l,C=m||u,D=y||f;else return;let P=!1;const A=x._enterCb=L=>{P||(P=!0,L?S(D,[x]):S(C,[x]),b.delayedLeave&&b.delayedLeave(),x._enterCb=void 0)};T?(T(x,A),T.length<=1&&A()):A()},leave(x,T){const C=String(e.key);if(x._enterCb&&x._enterCb(!0),r.isUnmounting)return T();S(c,[x]);let D=!1;const P=x._leaveCb=A=>{D||(D=!0,T(),A?S(d,[x]):S(h,[x]),x._leaveCb=void 0,w[C]===e&&delete w[C])};w[C]=e,v?(v(x,P),v.length<=1&&P()):P()},clone(x){return qc(x,t,r,n)}};return b}function df(e){if(Cu(e))return e=ba(e),e.children=null,e}function Sp(e){return Cu(e)?e.children?e.children[0]:void 0:e}function Xc(e,t){e.shapeFlag&6&&e.component?Xc(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 L_(e,t=!1){let r=[],n=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Cu=e=>e.type.__isKeepAlive;function tC(e,t){R_(e,"a",t)}function eC(e,t){R_(e,"da",t)}function R_(e,t,r=Jt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Mu(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Cu(i.parent.vnode)&&rC(n,t,r,i),i=i.parent}}function rC(e,t,r,n){const i=Mu(t,e,n,!0);Du(()=>{Cv(n[t],i)},r)}function Mu(e,t,r=Jt,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;La(),In(r);const s=Qe(t,r,e,o);return Tn(),Ra(),s});return n?i.unshift(a):i.push(a),a}}const Xr=e=>(t,r=Jt)=>(!Xo||e==="sp")&&Mu(e,t,r),nC=Xr("bm"),Au=Xr("m"),iC=Xr("bu"),aC=Xr("u"),O_=Xr("bum"),Du=Xr("um"),oC=Xr("sp"),sC=Xr("rtg"),lC=Xr("rtc");function uC(e,t=Jt){Mu("ec",e,t)}let Kc=!0;function fC(e){const t=N_(e),r=e.proxy,n=e.ctx;Kc=!1,t.beforeCreate&&xp(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:v,beforeUpdate:h,updated:d,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:w,render:S,renderTracked:b,renderTriggered:x,errorCaptured:T,serverPrefetch:C,expose:D,inheritAttrs:P,components:A,directives:L,filters:O}=t;if(u&&cC(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const tt in o){const V=o[tt];gt(V)&&(n[tt]=V.bind(r))}if(i){const tt=i.call(r,r);Yt(tt)&&(e.data=Ai(tt))}if(Kc=!0,a)for(const tt in a){const V=a[tt],K=gt(V)?V.bind(r,r):gt(V.get)?V.get.bind(r,r):fr,lt=!gt(V)&>(V.set)?V.set.bind(r):fr,yt=Ee({get:K,set:lt});Object.defineProperty(n,tt,{enumerable:!0,configurable:!0,get:()=>yt.value,set:ut=>yt.value=ut})}if(s)for(const tt in s)k_(s[tt],n,r,tt);if(l){const tt=gt(l)?l.call(r):l;Reflect.ownKeys(tt).forEach(V=>{_l(V,tt[V])})}f&&xp(f,e,"c");function N(tt,V){at(V)?V.forEach(K=>tt(K.bind(r))):V&&tt(V.bind(r))}if(N(nC,c),N(Au,v),N(iC,h),N(aC,d),N(tC,p),N(eC,g),N(uC,T),N(lC,b),N(sC,x),N(O_,y),N(Du,w),N(oC,C),at(D))if(D.length){const tt=e.exposed||(e.exposed={});D.forEach(V=>{Object.defineProperty(tt,V,{get:()=>r[V],set:K=>r[V]=K})})}else e.exposed||(e.exposed={});S&&e.render===fr&&(e.render=S),P!=null&&(e.inheritAttrs=P),A&&(e.components=A),L&&(e.directives=L)}function cC(e,t,r=fr,n=!1){at(e)&&(e=Zc(e));for(const i in e){const a=e[i];let o;Yt(a)?"default"in a?o=Je(a.from||i,a.default,!0):o=Je(a.from||i):o=Je(a),Wt(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function xp(e,t,r){Qe(at(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function k_(e,t,r,n){const i=n.includes(".")?P_(r,n):()=>r[n];if(Zt(e)){const a=t[e];gt(a)&&ha(i,a)}else if(gt(e))ha(i,e.bind(r));else if(Yt(e))if(at(e))e.forEach(a=>k_(a,t,r,n));else{const a=gt(e.handler)?e.handler.bind(r):t[e.handler];gt(a)&&ha(i,a,e)}}function N_(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=>Hl(l,u,o,!0)),Hl(l,t,o)),a.set(t,l),l}function Hl(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Hl(e,a,r,!0),i&&i.forEach(o=>Hl(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:Tp,props:li,emits:li,methods:li,computed:li,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:li,directives:li,watch:dC,provide:Tp,inject:vC};function Tp(e,t){return t?e?function(){return ie(gt(e)?e.call(this,this):e,gt(t)?t.call(this,this):t)}:t:e}function vC(e,t){return li(Zc(e),Zc(t))}function Zc(e){if(at(e)){const t={};for(let r=0;r0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let c=0;c{l=!0;const[v,h]=F_(c,t,!0);ie(o,v),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return n.set(e,ua),ua;if(at(a))for(let f=0;f-1,h[1]=p<0||d-1||Tt(h,"default"))&&s.push(c)}}}const u=[o,s];return n.set(e,u),u}function Cp(e){return e[0]!=="$"}function Mp(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Ap(e,t){return Mp(e)===Mp(t)}function Dp(e,t){return at(t)?t.findIndex(r=>Ap(r,e)):gt(t)&&Ap(t,e)?0:-1}const z_=e=>e[0]==="_"||e==="$stable",Uv=e=>at(e)?e.map(lr):[lr(e)],mC=(e,t,r)=>{const n=FT((...i)=>Uv(t(...i)),r);return n._c=!1,n},H_=(e,t,r)=>{const n=e._ctx;for(const i in e){if(z_(i))continue;const a=e[i];if(gt(a))t[i]=mC(i,a,n);else if(a!=null){const o=Uv(a);t[i]=()=>o}}},$_=(e,t)=>{const r=Uv(t);e.slots.default=()=>r},yC=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Ct(t),Bl(t,"_",r)):H_(t,e.slots={})}else e.slots={},t&&$_(e,t);Bl(e.slots,Pu,1)},_C=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=Rt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(ie(i,t),!r&&s===1&&delete i._):(a=!t.$stable,H_(t,i)),o=t}else t&&($_(e,t),o={default:1});if(a)for(const s in i)!z_(s)&&!(s in o)&&delete i[s]};function Oz(e,t){const r=Re;if(r===null)return e;const n=r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;aJc(v,t&&(at(t)?t[h]:t),r,n,i));return}if(jc(n)&&!i)return;const a=n.shapeFlag&4?jv(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===Rt?s.refs={}:s.refs,c=s.setupState;if(u!=null&&u!==l&&(Zt(u)?(f[u]=null,Tt(c,u)&&(c[u]=null)):Wt(u)&&(u.value=null)),gt(l))Sn(l,s,12,[o,f]);else{const v=Zt(l),h=Wt(l);if(v||h){const d=()=>{if(e.f){const p=v?f[l]:l.value;i?at(p)&&Cv(p,a):at(p)?p.includes(a)||p.push(a):v?f[l]=[a]:(l.value=[a],e.k&&(f[e.k]=l.value))}else v?(f[l]=o,Tt(c,l)&&(c[l]=o)):Wt(l)&&(l.value=o,e.k&&(f[e.k]=o))};o?(d.id=-1,be(d,r)):d()}}}const be=jT;function SC(e){return xC(e)}function xC(e,t){const r=Zx();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:v,setScopeId:h=fr,cloneNode:d,insertStaticContent:p}=e,g=(M,E,R,B=null,F=null,q=null,Z=!1,U=null,W=!!E.dynamicChildren)=>{if(M===E)return;M&&!wr(M,E)&&(B=Q(M),ht(M,F,q,!0),M=null),E.patchFlag===-2&&(W=!1,E.dynamicChildren=null);const{type:H,ref:nt,shapeFlag:rt}=E;switch(H){case Yv:m(M,E,R,B);break;case Ne:y(M,E,R,B);break;case xo:M==null&&_(E,R,B,Z);break;case Pe:L(M,E,R,B,F,q,Z,U,W);break;default:rt&1?b(M,E,R,B,F,q,Z,U,W):rt&6?O(M,E,R,B,F,q,Z,U,W):(rt&64||rt&128)&&H.process(M,E,R,B,F,q,Z,U,W,ft)}nt!=null&&F&&Jc(nt,M&&M.ref,q,E||M,!E)},m=(M,E,R,B)=>{if(M==null)n(E.el=s(E.children),R,B);else{const F=E.el=M.el;E.children!==M.children&&u(F,E.children)}},y=(M,E,R,B)=>{M==null?n(E.el=l(E.children||""),R,B):E.el=M.el},_=(M,E,R,B)=>{[M.el,M.anchor]=p(M.children,E,R,B,M.el,M.anchor)},w=({el:M,anchor:E},R,B)=>{let F;for(;M&&M!==E;)F=v(M),n(M,R,B),M=F;n(E,R,B)},S=({el:M,anchor:E})=>{let R;for(;M&&M!==E;)R=v(M),i(M),M=R;i(E)},b=(M,E,R,B,F,q,Z,U,W)=>{Z=Z||E.type==="svg",M==null?x(E,R,B,F,q,Z,U,W):D(M,E,F,q,Z,U,W)},x=(M,E,R,B,F,q,Z,U)=>{let W,H;const{type:nt,props:rt,shapeFlag:ot,transition:dt,patchFlag:St,dirs:Ht}=M;if(M.el&&d!==void 0&&St===-1)W=M.el=d(M.el);else{if(W=M.el=o(M.type,q,rt&&rt.is,rt),ot&8?f(W,M.children):ot&16&&C(M.children,W,null,B,F,q&&nt!=="foreignObject",Z,U),Ht&&Nn(M,null,B,"created"),rt){for(const Bt in rt)Bt!=="value"&&!ml(Bt)&&a(W,Bt,null,rt[Bt],q,M.children,B,F,$);"value"in rt&&a(W,"value",null,rt.value),(H=rt.onVnodeBeforeMount)&&pr(H,B,M)}T(W,M,M.scopeId,Z,B)}Ht&&Nn(M,null,B,"beforeMount");const Et=(!F||F&&!F.pendingBranch)&&dt&&!dt.persisted;Et&&dt.beforeEnter(W),n(W,E,R),((H=rt&&rt.onVnodeMounted)||Et||Ht)&&be(()=>{H&&pr(H,B,M),Et&&dt.enter(W),Ht&&Nn(M,null,B,"mounted")},F)},T=(M,E,R,B,F)=>{if(R&&h(M,R),B)for(let q=0;q{for(let H=W;H{const U=E.el=M.el;let{patchFlag:W,dynamicChildren:H,dirs:nt}=E;W|=M.patchFlag&16;const rt=M.props||Rt,ot=E.props||Rt;let dt;R&&Bn(R,!1),(dt=ot.onVnodeBeforeUpdate)&&pr(dt,R,E,M),nt&&Nn(E,M,R,"beforeUpdate"),R&&Bn(R,!0);const St=F&&E.type!=="foreignObject";if(H?P(M.dynamicChildren,H,U,R,B,St,q):Z||K(M,E,U,null,R,B,St,q,!1),W>0){if(W&16)A(U,E,rt,ot,R,B,F);else if(W&2&&rt.class!==ot.class&&a(U,"class",null,ot.class,F),W&4&&a(U,"style",rt.style,ot.style,F),W&8){const Ht=E.dynamicProps;for(let Et=0;Et{dt&&pr(dt,R,E,M),nt&&Nn(E,M,R,"updated")},B)},P=(M,E,R,B,F,q,Z)=>{for(let U=0;U{if(R!==B){for(const U in B){if(ml(U))continue;const W=B[U],H=R[U];W!==H&&U!=="value"&&a(M,U,H,W,Z,E.children,F,q,$)}if(R!==Rt)for(const U in R)!ml(U)&&!(U in B)&&a(M,U,R[U],null,Z,E.children,F,q,$);"value"in B&&a(M,"value",R.value,B.value)}},L=(M,E,R,B,F,q,Z,U,W)=>{const H=E.el=M?M.el:s(""),nt=E.anchor=M?M.anchor:s("");let{patchFlag:rt,dynamicChildren:ot,slotScopeIds:dt}=E;dt&&(U=U?U.concat(dt):dt),M==null?(n(H,R,B),n(nt,R,B),C(E.children,R,nt,F,q,Z,U,W)):rt>0&&rt&64&&ot&&M.dynamicChildren?(P(M.dynamicChildren,ot,R,F,q,Z,U),(E.key!=null||F&&E===F.subTree)&&G_(M,E,!0)):K(M,E,R,nt,F,q,Z,U,W)},O=(M,E,R,B,F,q,Z,U,W)=>{E.slotScopeIds=U,M==null?E.shapeFlag&512?F.ctx.activate(E,R,B,Z,W):z(E,R,B,F,q,Z,W):N(M,E,W)},z=(M,E,R,B,F,q,Z)=>{const U=M.component=RC(M,B,F);if(Cu(M)&&(U.ctx.renderer=ft),OC(U),U.asyncDep){if(F&&F.registerDep(U,tt),!M.el){const W=U.subTree=fe(Ne);y(null,W,E,R)}return}tt(U,M,E,R,F,q,Z)},N=(M,E,R)=>{const B=E.component=M.component;if(VT(M,E,R))if(B.asyncDep&&!B.asyncResolved){V(B,E,R);return}else B.next=E,kT(B.update),B.update();else E.component=M.component,E.el=M.el,B.vnode=E},tt=(M,E,R,B,F,q,Z)=>{const U=()=>{if(M.isMounted){let{next:nt,bu:rt,u:ot,parent:dt,vnode:St}=M,Ht=nt,Et;Bn(M,!1),nt?(nt.el=St.el,V(M,nt,Z)):nt=St,rt&&yl(rt),(Et=nt.props&&nt.props.onVnodeBeforeUpdate)&&pr(Et,dt,nt,St),Bn(M,!0);const Bt=vf(M),nr=M.subTree;M.subTree=Bt,g(nr,Bt,c(nr.el),Q(nr),M,F,q),nt.el=Bt.el,Ht===null&&Hv(M,Bt.el),ot&&be(ot,F),(Et=nt.props&&nt.props.onVnodeUpdated)&&be(()=>pr(Et,dt,nt,St),F)}else{let nt;const{el:rt,props:ot}=E,{bm:dt,m:St,parent:Ht}=M,Et=jc(E);if(Bn(M,!1),dt&&yl(dt),!Et&&(nt=ot&&ot.onVnodeBeforeMount)&&pr(nt,Ht,E),Bn(M,!0),rt&&j){const Bt=()=>{M.subTree=vf(M),j(rt,M.subTree,M,F,null)};Et?E.type.__asyncLoader().then(()=>!M.isUnmounted&&Bt()):Bt()}else{const Bt=M.subTree=vf(M);g(null,Bt,R,B,M,F,q),E.el=Bt.el}if(St&&be(St,F),!Et&&(nt=ot&&ot.onVnodeMounted)){const Bt=E;be(()=>pr(nt,Ht,Bt),F)}E.shapeFlag&256&&M.a&&be(M.a,F),M.isMounted=!0,E=R=B=null}},W=M.effect=new Iv(U,()=>S_(M.update),M.scope),H=M.update=W.run.bind(W);H.id=M.uid,Bn(M,!0),H()},V=(M,E,R)=>{E.component=M;const B=M.vnode.props;M.vnode=E,M.next=null,gC(M,E.props,B,R),_C(M,E.children,R),La(),Fv(void 0,M.update),Ra()},K=(M,E,R,B,F,q,Z,U,W=!1)=>{const H=M&&M.children,nt=M?M.shapeFlag:0,rt=E.children,{patchFlag:ot,shapeFlag:dt}=E;if(ot>0){if(ot&128){yt(H,rt,R,B,F,q,Z,U,W);return}else if(ot&256){lt(H,rt,R,B,F,q,Z,U,W);return}}dt&8?(nt&16&&$(H,F,q),rt!==H&&f(R,rt)):nt&16?dt&16?yt(H,rt,R,B,F,q,Z,U,W):$(H,F,q,!0):(nt&8&&f(R,""),dt&16&&C(rt,R,B,F,q,Z,U,W))},lt=(M,E,R,B,F,q,Z,U,W)=>{M=M||ua,E=E||ua;const H=M.length,nt=E.length,rt=Math.min(H,nt);let ot;for(ot=0;otnt?$(M,F,q,!0,!1,rt):C(E,R,B,F,q,Z,U,W,rt)},yt=(M,E,R,B,F,q,Z,U,W)=>{let H=0;const nt=E.length;let rt=M.length-1,ot=nt-1;for(;H<=rt&&H<=ot;){const dt=M[H],St=E[H]=W?dn(E[H]):lr(E[H]);if(wr(dt,St))g(dt,St,R,null,F,q,Z,U,W);else break;H++}for(;H<=rt&&H<=ot;){const dt=M[rt],St=E[ot]=W?dn(E[ot]):lr(E[ot]);if(wr(dt,St))g(dt,St,R,null,F,q,Z,U,W);else break;rt--,ot--}if(H>rt){if(H<=ot){const dt=ot+1,St=dtot)for(;H<=rt;)ht(M[H],F,q,!0),H++;else{const dt=H,St=H,Ht=new Map;for(H=St;H<=ot;H++){const De=E[H]=W?dn(E[H]):lr(E[H]);De.key!=null&&Ht.set(De.key,H)}let Et,Bt=0;const nr=ot-St+1;let Ri=!1,lp=0;const Ha=new Array(nr);for(H=0;H=nr){ht(De,F,q,!0);continue}let dr;if(De.key!=null)dr=Ht.get(De.key);else for(Et=St;Et<=ot;Et++)if(Ha[Et-St]===0&&wr(De,E[Et])){dr=Et;break}dr===void 0?ht(De,F,q,!0):(Ha[dr-St]=H+1,dr>=lp?lp=dr:Ri=!0,g(De,E[dr],R,null,F,q,Z,U,W),Bt++)}const up=Ri?TC(Ha):ua;for(Et=up.length-1,H=nr-1;H>=0;H--){const De=St+H,dr=E[De],fp=De+1{const{el:q,type:Z,transition:U,children:W,shapeFlag:H}=M;if(H&6){ut(M.component.subTree,E,R,B);return}if(H&128){M.suspense.move(E,R,B);return}if(H&64){Z.move(M,E,R,ft);return}if(Z===Pe){n(q,E,R);for(let rt=0;rtU.enter(q),F);else{const{leave:rt,delayLeave:ot,afterLeave:dt}=U,St=()=>n(q,E,R),Ht=()=>{rt(q,()=>{St(),dt&&dt()})};ot?ot(q,St,Ht):Ht()}else n(q,E,R)},ht=(M,E,R,B=!1,F=!1)=>{const{type:q,props:Z,ref:U,children:W,dynamicChildren:H,shapeFlag:nt,patchFlag:rt,dirs:ot}=M;if(U!=null&&Jc(U,null,R,M,!0),nt&256){E.ctx.deactivate(M);return}const dt=nt&1&&ot,St=!jc(M);let Ht;if(St&&(Ht=Z&&Z.onVnodeBeforeUnmount)&&pr(Ht,E,M),nt&6)G(M.component,R,B);else{if(nt&128){M.suspense.unmount(R,B);return}dt&&Nn(M,null,E,"beforeUnmount"),nt&64?M.type.remove(M,E,R,F,ft,B):H&&(q!==Pe||rt>0&&rt&64)?$(H,E,R,!1,!0):(q===Pe&&rt&384||!F&&nt&16)&&$(W,E,R),B&&bt(M)}(St&&(Ht=Z&&Z.onVnodeUnmounted)||dt)&&be(()=>{Ht&&pr(Ht,E,M),dt&&Nn(M,null,E,"unmounted")},R)},bt=M=>{const{type:E,el:R,anchor:B,transition:F}=M;if(E===Pe){k(R,B);return}if(E===xo){S(M);return}const q=()=>{i(R),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(M.shapeFlag&1&&F&&!F.persisted){const{leave:Z,delayLeave:U}=F,W=()=>Z(R,q);U?U(M.el,q,W):W()}else q()},k=(M,E)=>{let R;for(;M!==E;)R=v(M),i(M),M=R;i(E)},G=(M,E,R)=>{const{bum:B,scope:F,update:q,subTree:Z,um:U}=M;B&&yl(B),F.stop(),q&&(q.active=!1,ht(Z,M,E,R)),U&&be(U,E),be(()=>{M.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},$=(M,E,R,B=!1,F=!1,q=0)=>{for(let Z=q;ZM.shapeFlag&6?Q(M.component.subTree):M.shapeFlag&128?M.suspense.next():v(M.anchor||M.el),vt=(M,E,R)=>{M==null?E._vnode&&ht(E._vnode,null,null,!0):g(E._vnode||null,M,E,null,null,null,R),M_(),E._vnode=M},ft={p:g,um:ht,m:ut,r:bt,mt:z,mc:C,pc:K,pbc:P,n:Q,o:e};let X,j;return t&&([X,j]=t(ft)),{render:vt,hydrate:X,createApp:bC(vt,X)}}function Bn({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function G_(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}const CC=e=>e.__isTeleport,Wv="components";function kz(e,t){return W_(Wv,e,!0,t)||e}const U_=Symbol();function Nz(e){return Zt(e)?W_(Wv,e,!1)||e:e||U_}function W_(e,t,r=!0,n=!1){const i=Re||Jt;if(i){const a=i.type;if(e===Wv){const s=FC(a);if(s&&(s===t||s===Ar(t)||s===Su(Ar(t))))return a}const o=Pp(i[e]||a[e],t)||Pp(i.appContext[e],t);return!o&&n?a:o}}function Pp(e,t){return e&&(e[t]||e[Ar(t)]||e[Su(Ar(t))])}const Pe=Symbol(void 0),Yv=Symbol(void 0),Ne=Symbol(void 0),xo=Symbol(void 0),To=[];let xn=null;function qv(e=!1){To.push(xn=e?null:[])}function Y_(){To.pop(),xn=To[To.length-1]||null}let Yo=1;function Ip(e){Yo+=e}function q_(e){return e.dynamicChildren=Yo>0?xn||ua:null,Y_(),Yo>0&&xn&&xn.push(e),e}function Bz(e,t,r,n,i,a){return q_(K_(e,t,r,n,i,a,!0))}function X_(e,t,r,n,i){return q_(fe(e,t,r,n,i,!0))}function qo(e){return e?e.__v_isVNode===!0:!1}function wr(e,t){return e.type===t.type&&e.key===t.key}const Pu="__vInternal",j_=({key:e})=>e!=null?e:null,wl=({ref:e,ref_key:t,ref_for:r})=>e!=null?Zt(e)||Wt(e)||gt(e)?{i:Re,r:e,k:t,f:!!r}:e:null;function K_(e,t=null,r=null,n=0,i=null,a=e===Pe?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&j_(t),ref:t&&wl(t),scopeId:Tu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(Xv(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Zt(r)?8:16),Yo>0&&!o&&xn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&xn.push(l),l}const fe=MC;function MC(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===U_)&&(e=Ne),qo(e)){const s=ba(e,t,!0);return r&&Xv(s,r),s}if(zC(e)&&(e=e.__vccOpts),t){t=AC(t);let{class:s,style:l}=t;s&&!Zt(s)&&(t.class=Sv(s)),Yt(l)&&(g_(l)&&!at(l)&&(l=ie({},l)),t.style=bv(l))}const o=Zt(e)?1:GT(e)?128:CC(e)?64:Yt(e)?4:gt(e)?2:0;return K_(e,t,r,n,i,o,a,!0)}function AC(e){return e?g_(e)||Pu in e?ie({},e):e:null}function ba(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?PC(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&j_(s),ref:t&&t.ref?r&&i?at(i)?i.concat(wl(t)):[i,wl(t)]:wl(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ba(e.ssContent),ssFallback:e.ssFallback&&ba(e.ssFallback),el:e.el,anchor:e.anchor}}function DC(e=" ",t=0){return fe(Yv,null,e,t)}function Fz(e,t){const r=fe(xo,null,e);return r.staticCount=t,r}function zz(e="",t=!1){return t?(qv(),X_(Ne,null,e)):fe(Ne,null,e)}function lr(e){return e==null||typeof e=="boolean"?fe(Ne):at(e)?fe(Pe,null,e.slice()):typeof e=="object"?dn(e):fe(Yv,null,String(e))}function dn(e){return e.el===null||e.memo?e:ba(e)}function Xv(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),Xv(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(Pu in t)?t._ctx=Re:i===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else gt(t)?(t={default:t,_ctx:Re},r=32):(t=String(t),n&64?(r=16,t=[DC(t)]):r=8);e.children=t,e.shapeFlag|=r}function PC(...e){const t={};for(let r=0;rt(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,l=o.length;sqo(t)?!(t.type===Ne||t.type===Pe&&!Z_(t.children)):!0)?e:null}const th=e=>e?Q_(e)?jv(e)||e.proxy:th(e.parent):null,$l=ie(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=>th(e.parent),$root:e=>th(e.root),$emit:e=>e.emit,$options:e=>N_(e),$forceUpdate:e=>()=>S_(e.update),$nextTick:e=>Bv.bind(e.proxy),$watch:e=>ZT.bind(e)}),IC={get({_:e},t){const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(n!==Rt&&Tt(n,t))return o[t]=1,n[t];if(i!==Rt&&Tt(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&Tt(u,t))return o[t]=3,a[t];if(r!==Rt&&Tt(r,t))return o[t]=4,r[t];Kc&&(o[t]=0)}}const f=$l[t];let c,v;if(f)return t==="$attrs"&&ke(e,"get",t),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==Rt&&Tt(r,t))return o[t]=4,r[t];if(v=l.config.globalProperties,Tt(v,t))return v[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return i!==Rt&&Tt(i,t)?(i[t]=r,!0):n!==Rt&&Tt(n,t)?(n[t]=r,!0):Tt(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!==Rt&&Tt(e,o)||t!==Rt&&Tt(t,o)||(s=a[0])&&Tt(s,o)||Tt(n,o)||Tt($l,o)||Tt(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?this.set(e,t,r.get(),null):r.value!=null&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},EC=V_();let LC=0;function RC(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||EC,a={uid:LC++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new r_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:F_(n,i),emitsOptions:D_(n,i),emit:null,emitted:null,propsDefaults:Rt,inheritAttrs:n.inheritAttrs,ctx:Rt,data:Rt,props:Rt,attrs:Rt,slots:Rt,refs:Rt,setupState:Rt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=BT.bind(null,a),e.ce&&e.ce(a),a}let Jt=null;const Oa=()=>Jt||Re,In=e=>{Jt=e,e.scope.on()},Tn=()=>{Jt&&Jt.scope.off(),Jt=null};function Q_(e){return e.vnode.shapeFlag&4}let Xo=!1;function OC(e,t=!1){Xo=t;const{props:r,children:n}=e.vnode,i=Q_(e);pC(e,r,i,t),yC(e,n);const a=i?kC(e,t):void 0;return Xo=!1,a}function kC(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=_a(new Proxy(e.ctx,IC));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?BC(e):null;In(e),La();const a=Sn(n,e,0,[e.props,i]);if(Ra(),Tn(),Av(a)){if(a.then(Tn,Tn),t)return a.then(o=>{eh(e,o,t)}).catch(o=>{hs(o,e,0)});e.asyncDep=a}else eh(e,a,t)}else J_(e,t)}function eh(e,t,r){gt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Yt(t)&&(e.setupState=w_(t)),J_(e,r)}let Ep;function J_(e,t,r){const n=e.type;if(!e.render){if(!t&&Ep&&!n.render){const i=n.template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=ie(ie({isCustomElement:a,delimiters:s},o),l);n.render=Ep(i,u)}}e.render=n.render||fr}In(e),La(),fC(e),Ra(),Tn()}function NC(e){return new Proxy(e.attrs,{get(t,r){return ke(e,"get","$attrs"),t[r]}})}function BC(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=NC(e))},slots:e.slots,emit:e.emit,expose:t}}function jv(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(w_(_a(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in $l)return $l[r](e)}}))}function FC(e){return gt(e)&&e.displayName||e.name}function zC(e){return gt(e)&&"__vccOpts"in e}const Ee=(e,t)=>LT(e,t,Xo);function Gz(e){const t=Oa();let r=e();return Tn(),Av(r)&&(r=r.catch(n=>{throw In(t),n})),[r,()=>In(t)]}function jo(e,t,r){const n=arguments.length;return n===2?Yt(t)&&!at(t)?qo(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&qo(r)&&(r=[r]),fe(e,t,r))}const HC="3.2.31",$C="http://www.w3.org/2000/svg",fi=typeof document!="undefined"?document:null,Lp=fi&&fi.createElement("template"),VC={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?fi.createElementNS($C,e):fi.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>fi.createTextNode(e),createComment:e=>fi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),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{Lp.innerHTML=n?`${e}`:e;const s=Lp.content;if(n){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]}};function GC(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function UC(e,t,r){const n=e.style,i=Zt(r);if(r&&!i){for(const a in r)rh(n,a,r[a]);if(t&&!Zt(t))for(const a in t)r[a]==null&&rh(n,a,"")}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const Rp=/\s*!important$/;function rh(e,t,r){if(at(r))r.forEach(n=>rh(e,t,n));else if(t.startsWith("--"))e.setProperty(t,r);else{const n=WC(e,t);Rp.test(r)?e.setProperty(Mi(n),r.replace(Rp,""),"important"):e[n]=r}}const Op=["Webkit","Moz","ms"],pf={};function WC(e,t){const r=pf[t];if(r)return r;let n=Ar(t);if(n!=="filter"&&n in e)return pf[t]=n;n=Su(n);for(let i=0;idocument.createEvent("Event").timeStamp&&(Vl=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);t1=!!(e&&Number(e[1])<=53)}let nh=0;const XC=Promise.resolve(),jC=()=>{nh=0},KC=()=>nh||(XC.then(jC),nh=Vl());function Fr(e,t,r,n){e.addEventListener(t,r,n)}function ZC(e,t,r,n){e.removeEventListener(t,r,n)}function QC(e,t,r,n,i=null){const a=e._vei||(e._vei={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=JC(t);if(n){const u=a[t]=tM(n,i);Fr(e,s,u,l)}else o&&(ZC(e,s,o,l),a[t]=void 0)}}const Np=/(?:Once|Passive|Capture)$/;function JC(e){let t;if(Np.test(e)){t={};let r;for(;r=e.match(Np);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Mi(e.slice(2)),t]}function tM(e,t){const r=n=>{const i=n.timeStamp||Vl();(t1||i>=r.attached-1)&&Qe(eM(n,r.value),t,5,[n])};return r.value=e,r.attached=KC(),r}function eM(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 Bp=/^on[a-z]/,rM=(e,t,r,n,i=!1,a,o,s,l)=>{t==="class"?GC(e,n,i):t==="style"?UC(e,r,n):_u(t)?Tv(t)||QC(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nM(e,t,n,i))?qC(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),YC(e,t,n,i))};function nM(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&Bp.test(t)&>(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Bp.test(t)&&Zt(r)?!1:t in e}function Uz(e){const t=Oa();if(!t)return;const r=()=>ih(t.subTree,e(t.proxy));KT(r),Au(()=>{const n=new MutationObserver(r);n.observe(t.subTree.el.parentNode,{childList:!0}),Du(()=>n.disconnect())})}function ih(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{ih(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Fp(e.el,t);else if(e.type===Pe)e.children.forEach(r=>ih(r,t));else if(e.type===xo){let{el:r,anchor:n}=e;for(;r&&(Fp(r,t),r!==n);)r=r.nextSibling}}function Fp(e,t){if(e.nodeType===1){const r=e.style;for(const n in t)r.setProperty(`--${n}`,t[n])}}const Qr="transition",$a="animation",e1=(e,{slots:t})=>jo(I_,iM(e),t);e1.displayName="Transition";const r1={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};e1.props=ie({},I_.props,r1);const Fn=(e,t=[])=>{at(e)?e.forEach(r=>r(...t)):e&&e(...t)},zp=e=>e?at(e)?e.some(t=>t.length>1):e.length>1:!1;function iM(e){const t={};for(const A in e)A in r1||(t[A]=e[A]);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:v=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,d=aM(i),p=d&&d[0],g=d&&d[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:w,onLeaveCancelled:S,onBeforeAppear:b=m,onAppear:x=y,onAppearCancelled:T=_}=t,C=(A,L,O)=>{Oi(A,L?f:s),Oi(A,L?u:o),O&&O()},D=(A,L)=>{Oi(A,h),Oi(A,v),L&&L()},P=A=>(L,O)=>{const z=A?x:y,N=()=>C(L,A,O);Fn(z,[L,N]),Hp(()=>{Oi(L,A?l:a),Jr(L,A?f:s),zp(z)||$p(L,n,p,N)})};return ie(t,{onBeforeEnter(A){Fn(m,[A]),Jr(A,a),Jr(A,o)},onBeforeAppear(A){Fn(b,[A]),Jr(A,l),Jr(A,u)},onEnter:P(!1),onAppear:P(!0),onLeave(A,L){const O=()=>D(A,L);Jr(A,c),lM(),Jr(A,v),Hp(()=>{Oi(A,c),Jr(A,h),zp(w)||$p(A,n,g,O)}),Fn(w,[A,O])},onEnterCancelled(A){C(A,!1),Fn(_,[A])},onAppearCancelled(A){C(A,!0),Fn(T,[A])},onLeaveCancelled(A){D(A),Fn(S,[A])}})}function aM(e){if(e==null)return null;if(Yt(e))return[gf(e.enter),gf(e.leave)];{const t=gf(e);return[t,t]}}function gf(e){return ya(e)}function Jr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function Oi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function Hp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let oM=0;function $p(e,t,r,n){const i=e._endId=++oM,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=sM(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,v),a()},v=h=>{h.target===e&&++f>=l&&c()};setTimeout(()=>{f(r[d]||"").split(", "),i=n(Qr+"Delay"),a=n(Qr+"Duration"),o=Vp(i,a),s=n($a+"Delay"),l=n($a+"Duration"),u=Vp(s,l);let f=null,c=0,v=0;t===Qr?o>0&&(f=Qr,c=o,v=a.length):t===$a?u>0&&(f=$a,c=u,v=l.length):(c=Math.max(o,u),f=c>0?o>u?Qr:$a:null,v=f?f===Qr?a.length:l.length:0);const h=f===Qr&&/\b(transform|all)(,|$)/.test(r[Qr+"Property"]);return{type:f,timeout:c,propCount:v,hasTransform:h}}function Vp(e,t){for(;e.lengthGp(r)+Gp(e[n])))}function Gp(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function lM(){return document.body.offsetHeight}const En=e=>{const t=e.props["onUpdate:modelValue"];return at(t)?r=>yl(t,r):t};function uM(e){e.target.composing=!0}function Up(e){const t=e.target;t.composing&&(t.composing=!1,fM(t,"input"))}function fM(e,t){const r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}const Wp={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e._assign=En(i);const a=n||i.props&&i.props.type==="number";Fr(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r?s=s.trim():a&&(s=ya(s)),e._assign(s)}),r&&Fr(e,"change",()=>{e.value=e.value.trim()}),t||(Fr(e,"compositionstart",uM),Fr(e,"compositionend",Up),Fr(e,"change",Up))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:i}},a){if(e._assign=En(a),e.composing||document.activeElement===e&&(r||n&&e.value.trim()===t||(i||e.type==="number")&&ya(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},cM={deep:!0,created(e,t,r){e._assign=En(r),Fr(e,"change",()=>{const n=e._modelValue,i=Sa(e),a=e.checked,o=e._assign;if(at(n)){const s=xv(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(Ea(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(n1(e,a))})},mounted:Yp,beforeUpdate(e,t,r){e._assign=En(r),Yp(e,t,r)}};function Yp(e,{value:t,oldValue:r},n){e._modelValue=t,at(t)?e.checked=xv(t,n.props.value)>-1:Ea(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=wi(t,n1(e,!0)))}const hM={created(e,{value:t},r){e.checked=wi(t,r.props.value),e._assign=En(r),Fr(e,"change",()=>{e._assign(Sa(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e._assign=En(n),t!==r&&(e.checked=wi(t,n.props.value))}},vM={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=Ea(t);Fr(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?ya(Sa(o)):Sa(o));e._assign(e.multiple?i?new Set(a):a:a[0])}),e._assign=En(n)},mounted(e,{value:t}){qp(e,t)},beforeUpdate(e,t,r){e._assign=En(r)},updated(e,{value:t}){qp(e,t)}};function qp(e,t){const r=e.multiple;if(!(r&&!at(t)&&!Ea(t))){for(let n=0,i=e.options.length;n-1:a.selected=t.has(o);else if(wi(Sa(a),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Sa(e){return"_value"in e?e._value:e.value}function n1(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const Wz={created(e,t,r){Ds(e,t,r,null,"created")},mounted(e,t,r){Ds(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){Ds(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){Ds(e,t,r,n,"updated")}};function Ds(e,t,r,n,i){let a;switch(e.tagName){case"SELECT":a=vM;break;case"TEXTAREA":a=Wp;break;default:switch(r.props&&r.props.type){case"checkbox":a=cM;break;case"radio":a=hM;break;default:a=Wp}}const o=a[i];o&&o(e,t,r,n)}const dM=["ctrl","shift","alt","meta"],pM={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)=>dM.some(r=>e[`${r}Key`]&&!t.includes(r))},Yz=(e,t)=>(r,...n)=>{for(let i=0;ir=>{if(!("key"in r))return;const n=Mi(r.key);if(t.some(i=>i===n||gM[i]===n))return e(r)},Xz={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Va(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Va(e,!0),n.enter(e)):n.leave(e,()=>{Va(e,!1)}):Va(e,t))},beforeUnmount(e,{value:t}){Va(e,t)}};function Va(e,t){e.style.display=t?e._vod:"none"}const mM=ie({patchProp:rM},VC);let Xp;function i1(){return Xp||(Xp=SC(mM))}const jz=(...e)=>{i1().render(...e)},Kz=(...e)=>{const t=i1().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=yM(n);if(!i)return;const a=t._component;!gt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function yM(e){return Zt(e)?document.querySelector(e):e}var _M=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Kv={exports:{}},a1=function(t,r){return function(){for(var i=new Array(arguments.length),a=0;a=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r},Kp=Fe,ZM=Kp.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(a){var 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){var s=Kp.isString(o)?i(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),Is=Fe,QM=VM,JM=GM,tA=l1,eA=XM,rA=KM,nA=ZM,yf=f1,Zp=function(t){return new Promise(function(n,i){var a=t.data,o=t.headers,s=t.responseType;Is.isFormData(a)&&delete o["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var u=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(u+":"+f)}var c=eA(t.baseURL,t.url);l.open(t.method.toUpperCase(),tA(c,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function v(){if(!!l){var d="getAllResponseHeaders"in l?rA(l.getAllResponseHeaders()):null,p=!s||s==="text"||s==="json"?l.responseText:l.response,g={data:p,status:l.status,statusText:l.statusText,headers:d,config:t,request:l};QM(n,i,g),l=null}}if("onloadend"in l?l.onloadend=v:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(v)},l.onabort=function(){!l||(i(yf("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){i(yf("Network Error",t,null,l)),l=null},l.ontimeout=function(){var p="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),i(yf(p,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},Is.isStandardBrowserEnv()){var h=(t.withCredentials||nA(c))&&t.xsrfCookieName?JM.read(t.xsrfCookieName):void 0;h&&(o[t.xsrfHeaderName]=h)}"setRequestHeader"in l&&Is.forEach(o,function(p,g){typeof a=="undefined"&&g.toLowerCase()==="content-type"?delete o[g]:l.setRequestHeader(g,p)}),Is.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(p){!l||(l.abort(),i(p),l=null)}),a||(a=null),l.send(a)})},ee=Fe,Qp=zM,iA=u1,aA={"Content-Type":"application/x-www-form-urlencoded"};function Jp(e,t){!ee.isUndefined(e)&&ee.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function oA(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Zp),e}function sA(e,t,r){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Eu={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:oA(),transformRequest:[function(t,r){return Qp(r,"Accept"),Qp(r,"Content-Type"),ee.isFormData(t)||ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)?t:ee.isArrayBufferView(t)?t.buffer:ee.isURLSearchParams(t)?(Jp(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):ee.isObject(t)||r&&r["Content-Type"]==="application/json"?(Jp(r,"application/json"),sA(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||i&&ee.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?iA(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Eu.headers={common:{Accept:"application/json, text/plain, */*"}};ee.forEach(["delete","get","head"],function(t){Eu.headers[t]={}});ee.forEach(["post","put","patch"],function(t){Eu.headers[t]=ee.merge(aA)});var Jv=Eu,lA=Fe,uA=Jv,fA=function(t,r,n){var i=this||uA;return lA.forEach(n,function(o){t=o.call(i,t,r)}),t},c1=function(t){return!!(t&&t.__CANCEL__)},tg=Fe,_f=fA,cA=c1,hA=Jv;function wf(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var vA=function(t){wf(t),t.headers=t.headers||{},t.data=_f.call(t,t.data,t.headers,t.transformRequest),t.headers=tg.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),tg.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||hA.adapter;return r(t).then(function(i){return wf(t),i.data=_f.call(t,i.data,i.headers,t.transformResponse),i},function(i){return cA(i)||(wf(t),i&&i.response&&(i.response.data=_f.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},ae=Fe,h1=function(t,r){r=r||{};var n={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(v,h){return ae.isPlainObject(v)&&ae.isPlainObject(h)?ae.merge(v,h):ae.isPlainObject(h)?ae.merge({},h):ae.isArray(h)?h.slice():h}function u(v){ae.isUndefined(r[v])?ae.isUndefined(t[v])||(n[v]=l(void 0,t[v])):n[v]=l(t[v],r[v])}ae.forEach(i,function(h){ae.isUndefined(r[h])||(n[h]=l(void 0,r[h]))}),ae.forEach(a,u),ae.forEach(o,function(h){ae.isUndefined(r[h])?ae.isUndefined(t[h])||(n[h]=l(void 0,t[h])):n[h]=l(void 0,r[h])}),ae.forEach(s,function(h){h in r?n[h]=l(t[h],r[h]):h in t&&(n[h]=l(void 0,t[h]))});var f=i.concat(a).concat(o).concat(s),c=Object.keys(t).concat(Object.keys(r)).filter(function(h){return f.indexOf(h)===-1});return ae.forEach(c,u),n};const dA="axios",pA="0.21.4",gA="Promise based HTTP client for the browser and node.js",mA="index.js",yA={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},_A={type:"git",url:"https://github.com/axios/axios.git"},wA=["xhr","http","ajax","promise","node"],bA="Matt Zabriskie",SA="MIT",xA={url:"https://github.com/axios/axios/issues"},TA="https://axios-http.com",CA={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},MA={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},AA="dist/axios.min.js",DA="dist/axios.min.js",PA="./index.d.ts",IA={"follow-redirects":"^1.14.0"},EA=[{path:"./dist/axios.min.js",threshold:"5kB"}];var LA={name:dA,version:pA,description:gA,main:mA,scripts:yA,repository:_A,keywords:wA,author:bA,license:SA,bugs:xA,homepage:TA,devDependencies:CA,browser:MA,jsdelivr:AA,unpkg:DA,typings:PA,dependencies:IA,bundlesize:EA},v1=LA,td={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){td[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var eg={},RA=v1.version.split(".");function d1(e,t){for(var r=t?t.split("."):RA,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]0;){var a=n[i],o=t[a];if(o){var s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new TypeError("option "+a+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+a)}}var kA={isOlderVersion:d1,assertOptions:OA,validators:td},p1=Fe,NA=l1,rg=BM,ng=vA,Lu=h1,g1=kA,Ni=g1.validators;function vs(e){this.defaults=e,this.interceptors={request:new rg,response:new rg}}vs.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Lu(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&g1.assertOptions(r,{silentJSONParsing:Ni.transitional(Ni.boolean,"1.0.0"),forcedJSONParsing:Ni.transitional(Ni.boolean,"1.0.0"),clarifyTimeoutError:Ni.transitional(Ni.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(i=i&&v.synchronous,n.unshift(v.fulfilled,v.rejected))});var a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});var o;if(!i){var s=[ng,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),o=Promise.resolve(t);s.length;)o=o.then(s.shift(),s.shift());return o}for(var l=t;n.length;){var u=n.shift(),f=n.shift();try{l=u(l)}catch(c){f(c);break}}try{o=ng(l)}catch(c){return Promise.reject(c)}for(;a.length;)o=o.then(a.shift(),a.shift());return o};vs.prototype.getUri=function(t){return t=Lu(this.defaults,t),NA(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};p1.forEach(["delete","get","head","options"],function(t){vs.prototype[t]=function(r,n){return this.request(Lu(n||{},{method:t,url:r,data:(n||{}).data}))}});p1.forEach(["post","put","patch"],function(t){vs.prototype[t]=function(r,n,i){return this.request(Lu(i||{},{method:t,url:r,data:n}))}});var BA=vs;function ed(e){this.message=e}ed.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};ed.prototype.__CANCEL__=!0;var m1=ed,FA=m1;function Gl(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;e(function(i){r.reason||(r.reason=new FA(i),t(r.reason))})}Gl.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Gl.source=function(){var t,r=new Gl(function(i){t=i});return{token:r,cancel:t}};var zA=Gl,HA=function(t){return function(n){return t.apply(null,n)}},$A=function(t){return typeof t=="object"&&t.isAxiosError===!0},ig=Fe,VA=a1,Sl=BA,GA=h1,UA=Jv;function y1(e){var t=new Sl(e),r=VA(Sl.prototype.request,t);return ig.extend(r,Sl.prototype,t),ig.extend(r,t),r}var cr=y1(UA);cr.Axios=Sl;cr.create=function(t){return y1(GA(cr.defaults,t))};cr.Cancel=m1;cr.CancelToken=zA;cr.isCancel=c1;cr.all=function(t){return Promise.all(t)};cr.spread=HA;cr.isAxiosError=$A;Kv.exports=cr;Kv.exports.default=cr;var Zz=Kv.exports,Ul=function(){return Ul=Object.assign||function(t){for(var r,n=1,i=arguments.length;n":">",'"':""","'":"'"};function v(d,p){for(var g=p.split(WA).filter(function(m){return m});g.length;)d=d[g.shift()];return d}function h(d,p,g){try{f=v(d,p)}catch(y){}if(f==null){if(g)return h(g.ctx,p,g.parent);console.warn("Cannot evaluate expression: ".concat(p)),f=p}var m=f.toString();return n?m:m.replace(/[&<>"']/g,function(y){return c[y]})}return h(r,u,i)});return o}};ds.INTERPOLATION_RE=_1;ds.INTERPOLATION_PREFIX="%{";var ag={getTranslationIndex:function(e,t){switch(t=Number(t),t=typeof t=="number"&&isNaN(t)?1:t,e.length>2&&e!=="pt_BR"&&(e=e.split("_")[0]),e){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return t%10!==1||t%100===11?1:0;case"jv":return t!==0?1:0;case"mk":return t===1||t%10===1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":return t>1?1:0;case"lv":return t%10===1&&t%100!==11?0:t!==0?1:2;case"lt":return t%10===1&&t%100!==11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return t%10===1&&t%100!==11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"mnk":return t===0?0:t===1?1:2;case"ro":return t===1?0:t===0||t%100>0&&t%100<20?1:2;case"pl":return t===1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"sk":return t===1?0:t>=2&&t<=4?1:2;case"csb":return t===1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"sl":return t%100===1?0:t%100===2?1:t%100===3||t%100===4?2:3;case"mt":return t===1?0:t===0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"gd":return t===1||t===11?0:t===2||t===12?1:t>2&&t<20?2:3;case"cy":return t===1?0:t===2?1:t!==8&&t!==11?2:3;case"kw":return t===1?0:t===2?1:t===3?2:3;case"ga":return t===1?0:t===2?1:t>2&&t<7?2:t>6&&t<11?3:4;case"ar":return t===0?0:t===1?1:t===2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5;default:return t!==1?1:0}}},rd=function(e){return{getTranslation:function(t,r,n,i,a,o,s){r===void 0&&(r=1),n===void 0&&(n=null),i===void 0&&(i=null),s===void 0&&(s=!1),a===void 0&&(a=e.current);var l=function(m,y){return y?e.interpolate(m,y,s):m};if(t=t.trim(),!t)return"";var u=a?e.silent||e.muted.indexOf(a)!==-1:!1,f=i&&ag.getTranslationIndex(a,r)>0?i:t,c=e.translations,v=c[a]||c[a.split("_")[0]];if(!v)return u||console.warn("No translations found for ".concat(a)),l(f,o);var h=function(m){var y=ag.getTranslationIndex(a,r);if(m.length===1&&r===1&&(y=0),!m[y])throw new Error(t+" "+y+" "+e.current+" "+r);return l(m[y],o)},d=function(){if(!u){var m="Untranslated ".concat(a," key found: ").concat(t);n&&(m+=" (with context: ".concat(n,")")),console.warn(m)}return l(f,o)},p=function(m,y){if(y===void 0&&(y=null),m instanceof Object){if(Array.isArray(m))return h(m);var _=y!=null?y:"",w=m[_];return p(w)}return y||!m?d():l(m,o)},g=v[t];return p(g,n)},gettext:function(t,r,n){return n===void 0&&(n=!1),this.getTranslation(t,void 0,void 0,void 0,void 0,r,n)},pgettext:function(t,r,n,i){return i===void 0&&(i=!1),this.getTranslation(r,1,t,void 0,void 0,n,i)},ngettext:function(t,r,n,i,a){return a===void 0&&(a=!1),this.getTranslation(t,n,null,r,void 0,i,a)},npgettext:function(t,r,n,i,a,o){return o===void 0&&(o=!1),this.getTranslation(r,i,t,n,void 0,a,o)}}},sh=Symbol("GETTEXT");function qA(e){return e.replace(/\r?\n|\r/,"").replace(/\s\s+/g," ").trim()}function og(e){var t={};return Object.keys(e).forEach(function(r){var n=e[r],i={};Object.keys(n).forEach(function(a){i[qA(a)]=n[a]}),t[r]=i}),t}var XA=function(){var e=Je(sh,null);if(!e)throw new Error("Failed to inject gettext. Make sure vue3-gettext is set up properly.");return e},sg=Gv({name:"translate",props:{tag:{type:String,default:"span"},translateN:{type:Number,default:null},translatePlural:{type:String,default:null},translateContext:{type:String,default:null},translateParams:{type:Object,default:null},translateComment:{type:String,default:null}},setup:function(e,t){var r,n,i,a=e.translateN!==void 0&&e.translatePlural!==void 0;if(!a&&(e.translateN||e.translatePlural))throw new Error("`translate-n` and `translate-plural` attributes must be used together: ".concat((i=(n=(r=t.slots).default)===null||n===void 0?void 0:n.call(r)[0])===null||i===void 0?void 0:i.children,"."));var o=wa(),s=XA(),l=wa(null);Au(function(){!l.value&&o.value&&(l.value=o.value.innerHTML.trim())});var u=Ee(function(){var f,c=rd(s).getTranslation(l.value,e.translateN,e.translateContext,a?e.translatePlural:null,s.current);return ds(s)(c,e.translateParams,void 0,(f=Oa())===null||f===void 0?void 0:f.parent)});return function(){return l.value?jo(e.tag,{ref:o,innerHTML:u.value}):jo(e.tag,{ref:o},t.slots.default?t.slots.default():"")}}}),jA=function(e,t,r,n){var i,a=n.props||{},o=t.dataset.msgid,s=a["translate-context"],l=a["translate-n"],u=a["translate-plural"],f=l!==void 0&&u!==void 0,c=a["render-html"]==="true";if(!f&&(l||u))throw new Error("`translate-n` and `translate-plural` attributes must be used together:"+o+".");!e.silent&&a["translate-params"]&&console.warn("`translate-params` is required as an expression for v-translate directive. Please change to `v-translate='params'`: ".concat(o));var v=rd(e).getTranslation(o,l,s,f?u:null,e.current),h=Object.assign((i=r.instance)!==null&&i!==void 0?i:{},r.value),d=ds(e)(v,h,c,null);t.innerHTML=d};function lg(e){var t=function(r,n,i){r.dataset.currentLanguage=e.current,jA(e,r,n,i)};return{beforeMount:function(r,n,i){r.dataset.msgid||(r.dataset.msgid=r.innerHTML),ha(e,function(){t(r,n,i)}),t(r,n,i)},updated:function(r,n,i){t(r,n,i)}}}var ug={availableLanguages:{en:"English"},defaultLanguage:"en",mutedLanguages:[],silent:!1,translations:{},setGlobalProperties:!0,provideDirective:!0,provideComponent:!0};function Qz(e){e===void 0&&(e={}),Object.keys(e).forEach(function(o){if(Object.keys(ug).indexOf(o)===-1)throw new Error("".concat(o," is an invalid option for the translate plugin."))});var t=Ul(Ul({},ug),e),r=wa(og(t.translations)),n=Ai({available:t.availableLanguages,muted:t.mutedLanguages,silent:t.silent,translations:Ee({get:function(){return r.value},set:function(o){r.value=og(o)}}),current:t.defaultLanguage,install:function(o){if(o[sh]=n,o.provide(sh,n),t.setGlobalProperties){var s=o.config.globalProperties;s.$gettext=n.$gettext,s.$pgettext=n.$pgettext,s.$ngettext=n.$ngettext,s.$npgettext=n.$npgettext,s.$gettextInterpolate=n.interpolate,s.$language=n}t.provideDirective&&o.directive("translate",lg(n)),t.provideComponent&&o.component("translate",sg)}}),i=rd(n),a=ds(n);return n.$gettext=i.gettext.bind(i),n.$pgettext=i.pgettext.bind(i),n.$ngettext=i.ngettext.bind(i),n.$npgettext=i.npgettext.bind(i),n.interpolate=a.bind(a),n.directive=lg(n),n.component=sg,n}var KA=!1;/*! * pinia v2.0.12 * (c) 2022 Eduardo San Martin Morote * @license MIT */let w1;const Ru=e=>w1=e,b1=Symbol();function lh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Co;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Co||(Co={}));function Jz(){const e=n_(!0),t=e.run(()=>wa({}));let r=[],n=[];const i=_a({install(a){Ru(i),i._a=a,a.provide(b1,i),a.config.globalProperties.$pinia=i,n.forEach(o=>r.push(o)),n=[]},use(a){return!this._a&&!KA?n.push(a):r.push(a),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return i}const S1=()=>{};function fg(e,t,r,n=S1){e.push(t);const i=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),n())};return!r&&Oa()&&Du(i),i}function Bi(e,...t){e.slice().forEach(r=>{r(...t)})}function uh(e,t){for(const r in t){const n=t[r],i=e[r];lh(i)&&lh(n)&&!Wt(n)&&!bn(n)?e[r]=uh(i,n):e[r]=n}return e}const ZA=Symbol();function QA(e){return!lh(e)||!e.hasOwnProperty(ZA)}const{assign:kr}=Object;function JA(e){return!!(Wt(e)&&e.effect)}function tD(e,t,r,n){const{state:i,actions:a,getters:o}=t,s=r.state.value[e];let l;function u(){s||(r.state.value[e]=i?i():{});const f=DT(r.state.value[e]);return kr(f,a,Object.keys(o||{}).reduce((c,v)=>(c[v]=_a(Ee(()=>{Ru(r);const h=r._s.get(e);return o[v].call(h,h)})),c),{}))}return l=x1(e,u,t,r),l.$reset=function(){const c=i?i():{};this.$patch(v=>{kr(v,c)})},l}function x1(e,t,r={},n,i){let a;const o=r.state,s=kr({actions:{}},r),l={deep:!0};let u,f,c=_a([]),v=_a([]),h;const d=n.state.value[e];!o&&!d&&(n.state.value[e]={}),wa({});function p(b){let x;u=f=!1,typeof b=="function"?(b(n.state.value[e]),x={type:Co.patchFunction,storeId:e,events:h}):(uh(n.state.value[e],b),x={type:Co.patchObject,payload:b,storeId:e,events:h}),Bv().then(()=>{u=!0}),f=!0,Bi(c,x,n.state.value[e])}const g=S1;function m(){a.stop(),c=[],v=[],n._s.delete(e)}function y(b,x){return function(){Ru(n);const T=Array.from(arguments),C=[],D=[];function P(O){C.push(O)}function A(O){D.push(O)}Bi(v,{args:T,name:b,store:w,after:P,onError:A});let L;try{L=x.apply(this&&this.$id===e?this:w,T)}catch(O){throw Bi(D,O),O}return L instanceof Promise?L.then(O=>(Bi(C,O),O)).catch(O=>(Bi(D,O),Promise.reject(O))):(Bi(C,L),L)}}const _={_p:n,$id:e,$onAction:fg.bind(null,v),$patch:p,$reset:g,$subscribe(b,x={}){const T=fg(c,b,x.detached,()=>C()),C=a.run(()=>ha(()=>n.state.value[e],D=>{(x.flush==="sync"?f:u)&&b({storeId:e,type:Co.direct,events:h},D)},kr({},l,x)));return T},$dispose:m},w=Ai(kr({},_));n._s.set(e,w);const S=n._e.run(()=>(a=n_(),a.run(()=>t())));for(const b in S){const x=S[b];if(Wt(x)&&!JA(x)||bn(x))o||(d&&QA(x)&&(Wt(x)?x.value=d[b]:uh(x,d[b])),n.state.value[e][b]=x);else if(typeof x=="function"){const T=y(b,x);S[b]=T,s.actions[b]=x}}return kr(w,S),kr(Ct(w),S),Object.defineProperty(w,"$state",{get:()=>n.state.value[e],set:b=>{p(x=>{kr(x,b)})}}),n._p.forEach(b=>{kr(w,a.run(()=>b({store:w,app:n._a,pinia:n,options:s})))}),d&&o&&r.hydrate&&r.hydrate(w.$state,d),u=!0,f=!0,w}function tH(e,t,r){let n,i;const a=typeof t=="function";typeof e=="string"?(n=e,i=a?r:t):(i=e,n=e.id);function o(s,l){const u=Oa();return s=s||u&&Je(b1),s&&Ru(s),s=w1,s._s.has(n)||(a?x1(n,t,i,s):tD(n,i,s)),s._s.get(n)}return o.$id=n,o}/*! * vue-router v4.0.14 * (c) 2022 Eduardo San Martin Morote * @license MIT */const T1=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",ka=e=>T1?Symbol(e):"_vr_"+e,eD=ka("rvlm"),cg=ka("rvd"),Ou=ka("r"),nd=ka("rl"),fh=ka("rvl"),ea=typeof window!="undefined";function rD(e){return e.__esModule||T1&&e[Symbol.toStringTag]==="Module"}const Lt=Object.assign;function bf(e,t){const r={};for(const n in t){const i=t[n];r[n]=Array.isArray(i)?i.map(e):e(i)}return r}const Mo=()=>{},nD=/\/$/,iD=e=>e.replace(nD,"");function Sf(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("?"),l=t.indexOf("#",s>-1?s:0);return s>-1&&(n=t.slice(0,s),a=t.slice(s+1,l>-1?l:t.length),i=e(a)),l>-1&&(n=n||t.slice(0,l),o=t.slice(l,t.length)),n=lD(n!=null?n:t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function aD(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function hg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function oD(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&xa(t.matched[n],r.matched[i])&&C1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function xa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function C1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!sD(e[r],t[r]))return!1;return!0}function sD(e,t){return Array.isArray(e)?vg(e,t):Array.isArray(t)?vg(t,e):e===t}function vg(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function lD(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let i=r.length-1,a,o;for(a=0;a({left:window.pageXOffset,top:window.pageYOffset});function vD(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=hD(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function dg(e,t){return(history.state?history.state.position-t:-1)+e}const ch=new Map;function dD(e,t){ch.set(e,t)}function pD(e){const t=ch.get(e);return ch.delete(e),t}let gD=()=>location.protocol+"//"+location.host;function M1(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),hg(l,"")}return hg(r,e)+n+i}function mD(e,t,r,n){let i=[],a=[],o=null;const s=({state:v})=>{const h=M1(e,location),d=r.value,p=t.value;let g=0;if(v){if(r.value=h,t.value=v,o&&o===d){o=null;return}g=p?v.position-p.position:0}else n(h);i.forEach(m=>{m(r.value,d,{delta:g,type:Ko.pop,direction:g?g>0?Ao.forward:Ao.back:Ao.unknown})})};function l(){o=r.value}function u(v){i.push(v);const h=()=>{const d=i.indexOf(v);d>-1&&i.splice(d,1)};return a.push(h),h}function f(){const{history:v}=window;!v.state||v.replaceState(Lt({},v.state,{scroll:ku()}),"")}function c(){for(const v of a)v();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:c}}function pg(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?ku():null}}function yD(e){const{history:t,location:r}=window,n={value:M1(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=e.indexOf("#"),v=c>-1?(r.host&&document.querySelector("base")?e:e.slice(c))+l:gD()+e+l;try{t[f?"replaceState":"pushState"](u,"",v),i.value=u}catch(h){console.error(h),r[f?"replace":"assign"](v)}}function o(l,u){const f=Lt({},t.state,pg(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,f,!0),n.value=l}function s(l,u){const f=Lt({},i.value,t.state,{forward:l,scroll:ku()});a(f.current,f,!0);const c=Lt({},pg(n.value,l,null),{position:f.position+1},u);a(l,c,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function eH(e){e=uD(e);const t=yD(e),r=mD(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=Lt({location:"",base:e,go:n,createHref:cD.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function _D(e){return typeof e=="string"||e&&typeof e=="object"}function A1(e){return typeof e=="string"||typeof e=="symbol"}const tn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},D1=ka("nf");var gg;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(gg||(gg={}));function Ta(e,t){return Lt(new Error,{type:e,[D1]:!0},t)}function en(e,t){return e instanceof Error&&D1 in e&&(t==null||!!(e.type&t))}const mg="[^/]+?",wD={sensitive:!1,strict:!1,start:!0,end:!0},bD=/[.+*?^${}()[\]/\\]/g;function SD(e,t){const r=Lt({},wD,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let c=0;ct.length?t.length===1&&t[0]===40+40?1:-1:0}function TD(e,t){let r=0;const n=e.score,i=t.score;for(;r1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=l}for(;s{o(y)}:Mo}function o(f){if(A1(f)){const c=n.get(f);c&&(n.delete(f),r.splice(r.indexOf(c),1),c.children.forEach(o),c.alias.forEach(o))}else{const c=r.indexOf(f);c>-1&&(r.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){let c=0;for(;c=0&&(f.record.path!==r[c].record.path||!P1(f,r[c]));)c++;r.splice(c,0,f),f.record.name&&!yg(f)&&n.set(f.record.name,f)}function u(f,c){let v,h={},d,p;if("name"in f&&f.name){if(v=n.get(f.name),!v)throw Ta(1,{location:f});p=v.record.name,h=Lt(ID(c.params,v.keys.filter(y=>!y.optional).map(y=>y.name)),f.params),d=v.stringify(h)}else if("path"in f)d=f.path,v=r.find(y=>y.re.test(d)),v&&(h=v.parse(d),p=v.record.name);else{if(v=c.name?n.get(c.name):r.find(y=>y.re.test(c.path)),!v)throw Ta(1,{location:f,currentLocation:c});p=v.record.name,h=Lt({},c.params,f.params),d=v.stringify(h)}const g=[];let m=v;for(;m;)g.unshift(m.record),m=m.parent;return{name:p,path:d,params:h,matched:g,meta:RD(g)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function ID(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function ED(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:LD(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function LD(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function yg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function RD(e){return e.reduce((t,r)=>Lt(t,r.meta),{})}function _g(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function P1(e,t){return t.children.some(r=>r===e||P1(e,r))}const I1=/#/g,OD=/&/g,kD=/\//g,ND=/=/g,BD=/\?/g,E1=/\+/g,FD=/%5B/g,zD=/%5D/g,L1=/%5E/g,HD=/%60/g,R1=/%7B/g,$D=/%7C/g,O1=/%7D/g,VD=/%20/g;function id(e){return encodeURI(""+e).replace($D,"|").replace(FD,"[").replace(zD,"]")}function GD(e){return id(e).replace(R1,"{").replace(O1,"}").replace(L1,"^")}function hh(e){return id(e).replace(E1,"%2B").replace(VD,"+").replace(I1,"%23").replace(OD,"%26").replace(HD,"`").replace(R1,"{").replace(O1,"}").replace(L1,"^")}function UD(e){return hh(e).replace(ND,"%3D")}function WD(e){return id(e).replace(I1,"%23").replace(BD,"%3F")}function YD(e){return e==null?"":WD(e).replace(kD,"%2F")}function Wl(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function qD(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&hh(a)):[n&&hh(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function XD(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Array.isArray(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}function Ga(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function pn(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(Ta(4,{from:r,to:t})):c instanceof Error?s(c):_D(c)?s(Ta(2,{from:t,to:c})):(a&&n.enterCallbacks[i]===a&&typeof c=="function"&&a.push(c),o())},u=e.call(n&&n.instances[i],t,r,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function xf(e,t,r,n){const i=[];for(const a of e)for(const o in a.components){let s=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(jD(s)){const u=(s.__vccOpts||s)[t];u&&i.push(pn(u,r,n,a,o))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=rD(u)?u.default:u;a.components[o]=f;const v=(f.__vccOpts||f)[t];return v&&pn(v,r,n,a,o)()}))}}return i}function jD(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bg(e){const t=Je(Ou),r=Je(nd),n=Ee(()=>t.resolve(wo(e.to))),i=Ee(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const v=c.findIndex(xa.bind(null,f));if(v>-1)return v;const h=Sg(l[u-2]);return u>1&&Sg(f)===h&&c[c.length-1].path!==h?c.findIndex(xa.bind(null,l[u-2])):v}),a=Ee(()=>i.value>-1&&JD(r.params,n.value.params)),o=Ee(()=>i.value>-1&&i.value===r.matched.length-1&&C1(r.params,n.value.params));function s(l={}){return QD(l)?t[wo(e.replace)?"replace":"push"](wo(e.to)).catch(Mo):Promise.resolve()}return{route:n,href:Ee(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const KD=Gv({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:bg,setup(e,{slots:t}){const r=Ai(bg(e)),{options:n}=Je(Ou),i=Ee(()=>({[xg(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[xg(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:jo("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),ZD=KD;function QD(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function JD(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Array.isArray(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function Sg(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const xg=(e,t,r)=>e!=null?e:t!=null?t:r,tP=Gv({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:r}){const n=Je(fh),i=Ee(()=>e.route||n.value),a=Je(cg,0),o=Ee(()=>i.value.matched[a]);_l(cg,a+1),_l(eD,o),_l(fh,i);const s=wa();return ha(()=>[s.value,o.value,e.name],([l,u,f],[c,v,h])=>{u&&(u.instances[f]=l,v&&v!==u&&l&&l===c&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),l&&u&&(!v||!xa(u,v)||!c)&&(u.enterCallbacks[f]||[]).forEach(d=>d(l))},{flush:"post"}),()=>{const l=i.value,u=o.value,f=u&&u.components[e.name],c=e.name;if(!f)return Tg(r.default,{Component:f,route:l});const v=u.props[e.name],h=v?v===!0?l.params:typeof v=="function"?v(l):v:null,p=jo(f,Lt({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return Tg(r.default,{Component:p,route:l})||p}}});function Tg(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const eP=tP;function rH(e){const t=PD(e.routes,e),r=e.parseQuery||qD,n=e.stringifyQuery||wg,i=e.history,a=Ga(),o=Ga(),s=Ga(),l=CT(tn);let u=tn;ea&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=bf.bind(null,k=>""+k),c=bf.bind(null,YD),v=bf.bind(null,Wl);function h(k,G){let $,Q;return A1(k)?($=t.getRecordMatcher(k),Q=G):Q=k,t.addRoute(Q,$)}function d(k){const G=t.getRecordMatcher(k);G&&t.removeRoute(G)}function p(){return t.getRoutes().map(k=>k.record)}function g(k){return!!t.getRecordMatcher(k)}function m(k,G){if(G=Lt({},G||l.value),typeof k=="string"){const j=Sf(r,k,G.path),M=t.resolve({path:j.path},G),E=i.createHref(j.fullPath);return Lt(j,M,{params:v(M.params),hash:Wl(j.hash),redirectedFrom:void 0,href:E})}let $;if("path"in k)$=Lt({},k,{path:Sf(r,k.path,G.path).path});else{const j=Lt({},k.params);for(const M in j)j[M]==null&&delete j[M];$=Lt({},k,{params:c(k.params)}),G.params=c(G.params)}const Q=t.resolve($,G),vt=k.hash||"";Q.params=f(v(Q.params));const ft=aD(n,Lt({},k,{hash:GD(vt),path:Q.path})),X=i.createHref(ft);return Lt({fullPath:ft,hash:vt,query:n===wg?XD(k.query):k.query||{}},Q,{redirectedFrom:void 0,href:X})}function y(k){return typeof k=="string"?Sf(r,k,l.value.path):Lt({},k)}function _(k,G){if(u!==k)return Ta(8,{from:G,to:k})}function w(k){return x(k)}function S(k){return w(Lt(y(k),{replace:!0}))}function b(k){const G=k.matched[k.matched.length-1];if(G&&G.redirect){const{redirect:$}=G;let Q=typeof $=="function"?$(k):$;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=y(Q):{path:Q},Q.params={}),Lt({query:k.query,hash:k.hash,params:k.params},Q)}}function x(k,G){const $=u=m(k),Q=l.value,vt=k.state,ft=k.force,X=k.replace===!0,j=b($);if(j)return x(Lt(y(j),{state:vt,force:ft,replace:X}),G||$);const M=$;M.redirectedFrom=G;let E;return!ft&&oD(n,Q,$)&&(E=Ta(16,{to:M,from:Q}),lt(Q,Q,!0,!1)),(E?Promise.resolve(E):C(M,Q)).catch(R=>en(R)?en(R,2)?R:K(R):tt(R,M,Q)).then(R=>{if(R){if(en(R,2))return x(Lt(y(R.to),{state:vt,force:ft,replace:X}),G||M)}else R=P(M,Q,!0,X,vt);return D(M,Q,R),R})}function T(k,G){const $=_(k,G);return $?Promise.reject($):Promise.resolve()}function C(k,G){let $;const[Q,vt,ft]=rP(k,G);$=xf(Q.reverse(),"beforeRouteLeave",k,G);for(const j of Q)j.leaveGuards.forEach(M=>{$.push(pn(M,k,G))});const X=T.bind(null,k,G);return $.push(X),Fi($).then(()=>{$=[];for(const j of a.list())$.push(pn(j,k,G));return $.push(X),Fi($)}).then(()=>{$=xf(vt,"beforeRouteUpdate",k,G);for(const j of vt)j.updateGuards.forEach(M=>{$.push(pn(M,k,G))});return $.push(X),Fi($)}).then(()=>{$=[];for(const j of k.matched)if(j.beforeEnter&&!G.matched.includes(j))if(Array.isArray(j.beforeEnter))for(const M of j.beforeEnter)$.push(pn(M,k,G));else $.push(pn(j.beforeEnter,k,G));return $.push(X),Fi($)}).then(()=>(k.matched.forEach(j=>j.enterCallbacks={}),$=xf(ft,"beforeRouteEnter",k,G),$.push(X),Fi($))).then(()=>{$=[];for(const j of o.list())$.push(pn(j,k,G));return $.push(X),Fi($)}).catch(j=>en(j,8)?j:Promise.reject(j))}function D(k,G,$){for(const Q of s.list())Q(k,G,$)}function P(k,G,$,Q,vt){const ft=_(k,G);if(ft)return ft;const X=G===tn,j=ea?history.state:{};$&&(Q||X?i.replace(k.fullPath,Lt({scroll:X&&j&&j.scroll},vt)):i.push(k.fullPath,vt)),l.value=k,lt(k,G,$,X),K()}let A;function L(){A=i.listen((k,G,$)=>{const Q=m(k),vt=b(Q);if(vt){x(Lt(vt,{replace:!0}),Q).catch(Mo);return}u=Q;const ft=l.value;ea&&dD(dg(ft.fullPath,$.delta),ku()),C(Q,ft).catch(X=>en(X,12)?X:en(X,2)?(x(X.to,Q).then(j=>{en(j,20)&&!$.delta&&$.type===Ko.pop&&i.go(-1,!1)}).catch(Mo),Promise.reject()):($.delta&&i.go(-$.delta,!1),tt(X,Q,ft))).then(X=>{X=X||P(Q,ft,!1),X&&($.delta?i.go(-$.delta,!1):$.type===Ko.pop&&en(X,20)&&i.go(-1,!1)),D(Q,ft,X)}).catch(Mo)})}let O=Ga(),z=Ga(),N;function tt(k,G,$){K(k);const Q=z.list();return Q.length?Q.forEach(vt=>vt(k,G,$)):console.error(k),Promise.reject(k)}function V(){return N&&l.value!==tn?Promise.resolve():new Promise((k,G)=>{O.add([k,G])})}function K(k){return N||(N=!k,L(),O.list().forEach(([G,$])=>k?$(k):G()),O.reset()),k}function lt(k,G,$,Q){const{scrollBehavior:vt}=e;if(!ea||!vt)return Promise.resolve();const ft=!$&&pD(dg(k.fullPath,0))||(Q||!$)&&history.state&&history.state.scroll||null;return Bv().then(()=>vt(k,G,ft)).then(X=>X&&vD(X)).catch(X=>tt(X,k,G))}const yt=k=>i.go(k);let ut;const ht=new Set;return{currentRoute:l,addRoute:h,removeRoute:d,hasRoute:g,getRoutes:p,resolve:m,options:e,push:w,replace:S,go:yt,back:()=>yt(-1),forward:()=>yt(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:z.add,isReady:V,install(k){const G=this;k.component("RouterLink",ZD),k.component("RouterView",eP),k.config.globalProperties.$router=G,Object.defineProperty(k.config.globalProperties,"$route",{enumerable:!0,get:()=>wo(l)}),ea&&!ut&&l.value===tn&&(ut=!0,w(i.location).catch(vt=>{}));const $={};for(const vt in tn)$[vt]=Ee(()=>l.value[vt]);k.provide(Ou,G),k.provide(nd,Ai($)),k.provide(fh,l);const Q=k.unmount;ht.add(k),k.unmount=function(){ht.delete(k),ht.size<1&&(u=tn,A&&A(),l.value=tn,ut=!1,N=!1),Q()}}}}function Fi(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function rP(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oxa(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>xa(u,l))||i.push(l))}return[r,n,i]}function nH(){return Je(Ou)}function iH(){return Je(nd)}/*! ***************************************************************************** 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 vh=function(e,t){return vh=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])},vh(e,t)};function J(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var nP=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),iP=function(){function e(){this.browser=new nP,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return e}(),ui=new iP;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ui.wxa=!0,ui.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?ui.worker=!0:typeof navigator=="undefined"?(ui.node=!0,ui.svgSupported=!0):aP(navigator.userAgent,ui);function aP(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!="undefined",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!="undefined";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 wt=ui,ad=12,oP="sans-serif",bi=ad+"px "+oP,sP=20,lP=100,uP="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function fP(e){var t={};if(typeof JSON=="undefined")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 OP(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,v=f.left,h=f.top;o.push(v,h),l=l&&a&&v===a[c]&&h===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?Dg(s,o):Dg(o,s))}function $1(e){return e.nodeName.toUpperCase()==="CANVAS"}var kP=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Af=[],NP=wt.browser.firefox&&+wt.browser.version.split(".")[0]<39;function wh(e,t,r,n){return r=r||{},n?Ig(e,t,r):NP&&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):Ig(e,t,r),r}function Ig(e,t,r){if(wt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if($1(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(_h(Af,e,n,i)){r.zrX=Af[0],r.zrY=Af[1];return}}r.zrX=r.zrY=0}function fd(e){return e||window.event}function Ue(e,t,r){if(t=fd(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&&wh(e,o,t,r)}else{wh(e,t,t,r);var a=BP(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&kP.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function BP(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 FP(e,t,r,n){e.addEventListener(t,r,n)}function zP(e,t,r,n){e.removeEventListener(t,r,n)}var V1=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},HP=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=Eg(n)/Eg(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=$P(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},G1="silent";function VP(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:GP}}function GP(){V1(this.event)}var UP=function(e){J(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}(Ir),Ua=function(){function e(t,r){this.x=t,this.y=r}return e}(),WP=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],U1=function(e){J(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o._hovered=new Ua(0,0),o.storage=r,o.painter=n,o.painterRoot=a,i=i||new UP,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new PP(o),o}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(I(WP,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=W1(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 Ua(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 Ua(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=VP(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){for(var a=this.storage.getDisplayList(),o=new Ua(r,n),s=a.length-1;s>=0;s--){var l=void 0;if(a[s]!==i&&!a[s].ignore&&(l=YP(a[s],r,n))&&(!o.topTarget&&(o.topTarget=a[s]),l!==G1)){o.target=a[s];break}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new HP);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ua;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Ir);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){U1.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=W1(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||mh(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function YP(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?G1:!0}return!1}function W1(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var qP=U1,Y1=32,Wa=7;function XP(e){for(var t=0;e>=Y1;)t|=e&1,e>>=1;return e+t}function Lg(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 jP(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 Pf(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 If(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 KP(e,t){var r=Wa,n,i,a=0,o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=Wa||x>=Wa);if(T)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(m=0;m=0;m--)e[b+m]=e[S+m];e[w]=o[_];return}for(var x=r;;){var T=0,C=0,D=!1;do if(t(o[_],e[y])<0){if(e[w--]=e[y--],T++,C=0,--d===0){D=!0;break}}else if(e[w--]=o[_--],C++,T=0,--g===1){D=!0;break}while((T|C)=0;m--)e[b+m]=e[S+m];if(d===0){D=!0;break}}if(e[w--]=o[_--],--g===1){D=!0;break}if(C=g-Pf(e[y],o,0,g,g-1,t),C!==0){for(w-=C,_-=C,g-=C,b=w+1,S=_+1,m=0;m=Wa||C>=Wa);if(D)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),g===1){for(w-=d,y-=d,b=w+1,S=y+1,m=d-1;m>=0;m--)e[b+m]=e[S+m];e[w]=o[_]}else{if(g===0)throw new Error;for(S=w-(g-1),m=0;ms&&(l=s),Rg(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 Le=1,ho=2,ra=4,Og=!1;function Ef(){Og||(Og=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function kg(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ZP=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=kg}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(Ef(),f.z=0),isNaN(f.z2)&&(Ef(),f.z2=0),isNaN(f.zlevel)&&(Ef(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,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}(),QP=ZP,q1;q1=wt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var bh=q1,Tl={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-Tl.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?Tl.bounceIn(e*2)*.5:Tl.bounceOut(e*2-1)*.5+.5}},X1=Tl,Ls=Math.pow,Cn=Math.sqrt,Xl=1e-8,j1=1e-4,Ng=Cn(3),Rs=1/3,br=Na(),qe=Na(),da=Na();function gn(e){return e>-Xl&&eXl||e<-Xl}function Kt(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 Bg(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function jl(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,v=l*l-3*s*u,h=0;if(gn(f)&&gn(c))if(gn(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var p=c*c-4*f*v;if(gn(p)){var g=c/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Cn(p),_=f*s+1.5*o*(-c+y),w=f*s+1.5*o*(-c-y);_<0?_=-Ls(-_,Rs):_=Ls(_,Rs),w<0?w=-Ls(-w,Rs):w=Ls(w,Rs);var d=(-s-(_+w))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var S=(2*f*s-3*o*c)/(2*Cn(f*f*f)),b=Math.acos(S)/3,x=Cn(f),T=Math.cos(b),d=(-s-2*x*T)/(3*o),m=(-s+x*(T+Ng*Math.sin(b)))/(3*o),C=(-s+x*(T-Ng*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m),C>=0&&C<=1&&(a[h++]=C)}}return h}function Z1(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(gn(o)){if(K1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(gn(f))i[0]=-a/(2*o);else if(f>0){var c=Cn(f),u=(-a+c)/(2*o),v=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Kl(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 JP(e,t,r,n,i,a,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,m;br[0]=l,br[1]=u;for(var y=0;y<1;y+=.05)qe[0]=Kt(e,r,i,o,y),qe[1]=Kt(t,n,a,s,y),g=va(br,qe),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(gn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Cn(f),u=(-o+c)/(2*a),v=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Q1(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Zl(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 rI(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;br[0]=o,br[1]=s;for(var v=0;v<1;v+=.05){qe[0]=le(e,r,i,v),qe[1]=le(t,n,a,v);var h=va(br,qe);h=0&&h=1?1:jl(0,n,a,1,l,s)&&Kt(0,i,o,1,s[0])}}}var aI=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||Ce,this.ondestroy=t.ondestroy||Ce,this.onrestart=t.onrestart||Ce,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=mt(t)?t:X1[t]||J1(t)},e}(),oI=aI,tw=function(){function e(t){this.value=t}return e}(),sI=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new tw(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}(),lI=function(){function e(t){this._list=new sI,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 tw(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}(),gs=lI,zg={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Mn(e){return e=Math.round(e),e<0?0:e>255?255:e}function Sh(e){return e<0?0:e>1?1:e}function Lf(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Mn(parseFloat(t)/100*255):Mn(parseInt(t,10))}function Ql(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Sh(parseFloat(t)/100):Sh(parseFloat(t))}function Rf(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 Os(e,t,r){return e+(t-e)*r}function Ge(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function xh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ew=new gs(20),ks=null;function Hi(e,t){ks&&xh(ks,t),ks=ew.put(e,ks||t.slice())}function $r(e,t){if(!!e){t=t||[];var r=ew.get(e);if(r)return xh(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in zg)return xh(t,zg[n]),Hi(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)){Ge(t,0,0,0,1);return}return Ge(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),Hi(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ge(t,0,0,0,1);return}return Ge(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Hi(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?Ge(t,+u[0],+u[1],+u[2],1):Ge(t,0,0,0,1);f=Ql(u.pop());case"rgb":if(u.length!==3){Ge(t,0,0,0,1);return}return Ge(t,Lf(u[0]),Lf(u[1]),Lf(u[2]),f),Hi(e,t),t;case"hsla":if(u.length!==4){Ge(t,0,0,0,1);return}return u[3]=Ql(u[3]),Hg(u,t),Hi(e,t),t;case"hsl":if(u.length!==3){Ge(t,0,0,0,1);return}return Hg(u,t),Hi(e,t),t;default:return}}Ge(t,0,0,0,1)}}function Hg(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Ql(e[1]),i=Ql(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Ge(t,Mn(Rf(o,a,r+1/3)*255),Mn(Rf(o,a,r)*255),Mn(Rf(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function $g(e,t){var r=$r(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 zu(r,r.length===4?"rgba":"rgb")}}function uI(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=$r(t[i]),s=$r(t[a]),l=n-i,u=zu([Mn(Os(o[0],s[0],l)),Mn(Os(o[1],s[1],l)),Mn(Os(o[2],s[2],l)),Sh(Os(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function zu(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 Jl(e,t){var r=$r(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function fI(e){return e.type==="linear"}function cI(e){return e.type==="radial"}(function(){return wt.hasGlobalWindow&&mt(window.btoa)?function(e){return window.btoa(unescape(e))}:typeof Buffer!="undefined"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Th=Array.prototype.slice;function Nr(e,t,r){return(t-e)*r+e}function Of(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=Gg,l=r;if(Me(r)){var u=pI(r);s=u,(u===1&&!zt(r[0])||u===2&&!zt(r[0][0]))&&(o=!0)}else if(zt(r)&&!ql(r))s=Bs;else if(it(r))if(!isNaN(+r))s=Bs;else{var f=$r(r);f&&(l=f,s=vo)}else if(Bu(r)){var c=Y({},l);c.colorStops=ct(r.colorStops,function(h){return{offset:h.offset,color:$r(h.color)}}),fI(r)?s=Ch:cI(r)&&(s=Mh),l=c}a===0?this.valType=s:(s!==this.valType||s===Gg)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=mt(n)?n:X1[n]||J1(n)),i.push(v),v},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fs(i),u=Ug(i),f=0;f=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;fr);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(!!(h&&d)){this._lastFr=f,this._lastFrP=r;var g=d.percent-h.percent,m=g===0?1:v((r-h.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Ya:t[l];if((Fs(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:d.rawValue;else if(Fs(a))a===Al?Of(y,h[i],d[i],m):hI(y,h[i],d[i],m);else if(Ug(a)){var _=h[i],w=d[i],S=a===Ch;t[l]={type:S?"linear":"radial",x:Nr(_.x,w.x,m),y:Nr(_.y,w.y,m),colorStops:ct(_.colorStops,function(x,T){var C=w.colorStops[T];return{offset:Nr(x.offset,C.offset,m),color:Ml(Of([],x.color,C.color,m))}}),global:w.global},S?(t[l].x2=Nr(_.x2,w.x2,m),t[l].y2=Nr(_.y2,w.y2,m)):t[l].r=Nr(_.r,w.r,m)}else if(u)Of(y,h[i],d[i],m),n||(t[l]=Ml(y));else{var b=Nr(h[i],d[i],m);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Bs?t[n]=t[n]+i:r===vo?($r(t[n],Ya),Ns(Ya,Ya,i,1),t[n]=Ml(Ya)):r===Al?Ns(t[n],t[n],i,1):r===rw&&Vg(t[n],t[n],i,1)},e}(),mI=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){ld("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,Cl(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Cl(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}(),cd=mI;function oa(){return new Date().getTime()}var yI=function(e){J(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=oa()-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&&(bh(n),!r._paused&&r.update())}bh(n)},t.prototype.start=function(){this._running||(this._time=oa(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=oa(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=oa()-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 cd(r,n.loop);return this.addAnimator(i),i},t}(Ir),_I=yI,wI=300,kf=wt.domSupported,Nf=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=ct(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),Wg={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Yg=!1;function Ah(e){var t=e.pointerType;return t==="pen"||t==="touch"}function bI(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 Bf(e){e&&(e.zrByTouch=!0)}function SI(e,t){return Ue(e.dom,new xI(e,t),!0)}function nw(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 xI=function(){function e(t,r){this.stopPropagation=Ce,this.stopImmediatePropagation=Ce,this.preventDefault=Ce,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),or={mousedown:function(e){e=Ue(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ue(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=Ue(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ue(this.dom,e);var t=e.toElement||e.relatedTarget;nw(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Yg=!0,e=Ue(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Yg||(e=Ue(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ue(this.dom,e),Bf(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),or.mousemove.call(this,e),or.mousedown.call(this,e)},touchmove:function(e){e=Ue(this.dom,e),Bf(e),this.handler.processGesture(e,"change"),or.mousemove.call(this,e)},touchend:function(e){e=Ue(this.dom,e),Bf(e),this.handler.processGesture(e,"end"),or.mouseup.call(this,e),+new Date-+this.__lastTouchMomentjg||e<-jg}var Hn=[],$i=[],zf=Qo(),Hf=Math.abs,pd=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 zn(this.rotation)||zn(this.x)||zn(this.y)||zn(this.scaleX-1)||zn(this.scaleY-1)||zn(this.skewX)||zn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&Xg(n);return}n=n||Qo(),r?this.getLocalTransform(n):Xg(n),t&&(r?pa(n,t,n):PI(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Hn);var n=Hn[0]<0?-1:1,i=Hn[1]<0?-1:1,a=((Hn[0]-n)*r+n)/Hn[0]||0,o=((Hn[1]-i)*r+i)/Hn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Qo(),dd(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&&(pa($i,t.invTransform,r),r=$i);var n=this.originX,i=this.originY;(n||i)&&(zf[4]=n,zf[5]=i,pa($i,r,zf),$i[4]-=n,$i[5]-=i,r=$i),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&&tr(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&tr(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Hf(t[0]-1)>1e-10&&Hf(t[3]-1)>1e-10?Math.sqrt(Hf(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){EI(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,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-v*p*o,r[5]=-p*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,u&&vd(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}(),Jo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function EI(e,t){for(var r=0;rd&&(d=_,pd&&(d=w,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}$n.x=Gn.x=r.x,$n.y=Un.y=r.y,Vn.x=Un.x=r.x+r.width,Vn.y=Gn.y=r.y+r.height,$n.transform(n),Un.transform(n),Vn.transform(n),Gn.transform(n),t.x=zs($n.x,Vn.x,Gn.x,Un.x),t.y=zs($n.y,Vn.y,Gn.y,Un.y);var l=Hs($n.x,Vn.x,Gn.x,Un.x),u=Hs($n.y,Vn.y,Gn.y,Un.y);t.width=l-t.x,t.height=u-t.y},e}(),Ot=RI,Kg={};function Oe(e,t){t=t||bi;var r=Kg[t];r||(r=Kg[t]=new gs(500));var n=r.get(e);return n==null&&(n=Pi.measureText(e,t).width,r.put(e,n)),n}function Zg(e,t,r,n){var i=Oe(e,t),a=md(t),o=po(0,i,r),s=na(0,a,n),l=new Ot(o,s,i,a);return l}function gd(e,t,r,n){var i=((e||"")+"").split(` `),a=i.length;if(a===1)return Zg(i[0],t,r,n);for(var o=new Ot(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function aw(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+=Rn(n[0],r.width),u+=Rn(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 $f="__zr_normal__",Vf=Jo.concat(["ignore"]),OI=Ln(Jo,function(e,t){return e[t]=!0,e},{ignore:!1}),Vi={},kI=new Ot(0,0,0,0),yd=function(){function e(t){this.id=B1(),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=kI;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Vi,n,f):aw(Vi,n,f),a.x=Vi.x,a.y=Vi.y,o=Vi.align,s=Vi.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var v=void 0,h=void 0;c==="center"?(v=f.width*.5,h=f.height*.5):(v=Rn(c[0],f.width),h=Rn(c[1],f.height)),u=!0,a.originX=-a.x+v+(i?0:f.x),a.originY=-a.y+h+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Le,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()?Eh:Ih},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&$r(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,zu(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(st(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($f,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===$f,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(It(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){ld("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,v=this._textGuide;return c&&c.useState(t,r,n,f),v&&v.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&=~Le),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 p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,v),g&&g.useStates(t,r,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Le)}},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=It(i,t),o=It(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,p){r.during(p)});for(var v=0;v0||i.force&&!o.length){var T=void 0,C=void 0,D=void 0;if(s){C={},v&&(T={});for(var w=0;w<_;w++){var m=p[w];C[m]=r[m],v?T[m]=n[m]:r[m]=n[m]}}else if(v){D={};for(var w=0;w<_;w++){var m=p[w];D[m]=Cl(r[m]),BI(r,n,m)}}var S=new cd(r,!1,!1,c?Se(d,function(A){return A.targetName===t}):null);S.targetName=t,i.scope&&(S.scope=i.scope),v&&T&&S.whenWithKeys(0,T,p),D&&S.whenWithKeys(0,D,p),S.whenWithKeys(u==null?500:u,s?C:n,p).delay(f||0),e.addAnimator(S,t),o.push(S)}}var sw=yd,lw=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=It(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=It(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.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){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 Vt(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 it(e)?UI(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function jt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),fw),e=(+e).toFixed(t),r?e:+e}function zr(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 WI(e)}function WI(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 YI(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 qI(e,t,r){if(!e[t])return 0;var n=Ln(e,function(d,p){return d+(isNaN(p)?0:p)},0);if(n===0)return 0;for(var i=Math.pow(10,r),a=ct(e,function(d){return(isNaN(d)?0:d)/n*i*100}),o=i*100,s=ct(a,function(d){return Math.floor(d)}),l=Ln(s,function(d,p){return d+p},0),u=ct(a,function(d,p){return d-s[p]});lf&&(f=u[v],c=v);++s[c],u[c]=0,++l}return s[t]/i}function XI(e,t){var r=Math.max(zr(e),zr(t)),n=e+t;return r>fw?n:jt(n,r)}function cw(e){var t=Math.PI*2;return(e%t+t)%t}function eu(e){return e>-Jg&&e=10&&t++,t}function hw(e,t){var r=_d(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 ru(e){var t=parseFloat(e);return t==e&&(t!==0||!it(e)||e.indexOf("x")<=0)?t:NaN}function ZI(e){return!isNaN(ru(e))}function vw(){return Math.round(Math.random()*9)}function dw(e,t){return t===0?e:dw(t,e%t)}function tm(e,t){return e==null?t:t==null?e:e*t/dw(e,t)}function xe(e){throw new Error(e)}function em(e,t,r){return(t-e)*r+e}var pw="series\0",QI="\0_ec_\0";function me(e){return e instanceof Array?e:e==null?[]:[e]}function Oh(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n=0||a&&It(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var bE=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],SE=es(bE),xE=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return SE(this,t,r)},e}(),kh=new gs(50);function TE(e){if(typeof e=="string"){var t=kh.get(e);return t&&t.image}else return e}function ww(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=kh.get(e),o={hostEl:r,cb:n,cbPayload:i};if(a)t=a.image,!$u(t)&&a.pending.push(o);else{var s=Pi.loadImage(e,nm,nm);s.__zrImageSrc=e,kh.put(e,s.__cachedImgObj={image:s,pending:[o]})}return t}else return e;else return t}function nm(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Oe(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 Sw(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Oe(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?ME(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Oe(e,n)}return e===""&&(e=t.placeholder),e}function ME(e,t,r,n){for(var i=0,a=0,o=e.length;ah&&u){var d=Math.floor(h/s);c=c.slice(0,d)}if(e&&a&&f!=null)for(var p=bw(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&qf(r,e.substring(s,u),t,o),qf(r,l[2],t,o,l[1]),s=Yf.lastIndex}si){S>0?(y.tokens=y.tokens.slice(0,S),g(y,w,_),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break t}var A=x.width,L=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")b.percentWidth=A,f.push(b),b.contentWidth=Oe(b.text,D);else{if(L){var O=x.backgroundColor,z=O&&O.image;z&&(z=TE(z),$u(z)&&(b.width=Math.max(b.width,z.width*P/z.height)))}var N=d&&n!=null?n-w:null;N!=null&&N0&&d+n.accumWidth>n.width&&(f=t.split(` `),u=!0),n.accumWidth=d}else{var p=xw(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}else f=t.split(` `);for(var g=0;g=33&&t<=383}var LE=Ln(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function RE(e){return EE(e)?!!LE[e]:!0}function xw(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;cr:i+f+h>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=h)):d?(a.push(l),o.push(u),l=v,u=h):(a.push(v),o.push(h));continue}f+=h,d?(l+=v,u+=h):(l&&(s+=l,l="",u=0),s+=v)}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 Nh="__zr_style_"+Math.round(Math.random()*10),gi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Vu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};gi[Nh]=!0;var am=["z","z2","invisible"],OE=["invisible"],kE=function(e){J(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($s[0]=Zf(i)*r+e,$s[1]=Kf(i)*n+t,Vs[0]=Zf(a)*r+e,Vs[1]=Kf(a)*n+t,u(s,$s,Vs),f(l,$s,Vs),i=i%Yn,i<0&&(i=i+Yn),a=a%Yn,a<0&&(a=a+Yn),i>a&&!o?a+=Yn:ii&&(Gs[0]=Zf(h)*r+e,Gs[1]=Kf(h)*n+t,u(s,Gs,s),f(l,Gs,l))}var At={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qn=[],Xn=[],gr=[],rn=[],mr=[],yr=[],Qf=Math.min,Jf=Math.max,jn=Math.cos,Kn=Math.sin,Lr=Math.abs,Bh=Math.PI,hn=Bh*2,tc=typeof Float32Array!="undefined",ja=[];function ec(e){var t=Math.round(e/Bh*1e8)/1e8;return t%2*Bh}function HE(e,t){var r=ec(e[0]);r<0&&(r+=hn);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=hn?i=r+hn:t&&r-i>=hn?i=r-hn:!t&&r>i?i=r+(hn-ec(r-i)):t&&r0&&(this._ux=Lr(n/tu/t)||0,this._uy=Lr(n/tu/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=Lr(t-this._xi),i=Lr(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(),ja[0]=i,ja[1]=a,HE(ja,o),i=ja[0],a=ja[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=jn(a)*n+t,this._yi=Kn(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)&&tc&&(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(){gr[0]=gr[1]=mr[0]=mr[1]=Number.MAX_VALUE,rn[0]=rn[1]=yr[0]=yr[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Lr(_)>i||v===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case At.C:{var w=t[v++],S=t[v++],g=t[v++],m=t[v++],b=t[v++],x=t[v++];p=tI(a,o,w,S,g,m,b,x,10),a=b,o=x;break}case At.Q:{var w=t[v++],S=t[v++],g=t[v++],m=t[v++];p=nI(a,o,w,S,g,m,10),a=g,o=m;break}case At.A:var T=t[v++],C=t[v++],D=t[v++],P=t[v++],A=t[v++],L=t[v++],O=L+A;v+=1,t[v++],d&&(s=jn(A)*D+T,l=Kn(A)*P+C),p=Jf(D,P)*Qf(hn,Math.abs(L)),a=jn(O)*D+T,o=Kn(O)*P+C;break;case At.R:{s=a=t[v++],l=o=t[v++];var z=t[v++],N=t[v++];p=z*2+N*2;break}case At.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}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,v,h=r<1,d,p,g=0,m=0,y,_=0,w,S;if(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=r*p,!y))return;t:for(var b=0;b0&&(t.lineTo(w,S),_=0),x){case At.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case At.L:{c=n[b++],v=n[b++];var C=Lr(c-u),D=Lr(v-f);if(C>i||D>a){if(h){var P=d[m++];if(g+P>y){var A=(y-g)/P;t.lineTo(u*(1-A)+c*A,f*(1-A)+v*A);break t}g+=P}t.lineTo(c,v),u=c,f=v,_=0}else{var L=C*C+D*D;L>_&&(w=c,S=v,_=L)}break}case At.C:{var O=n[b++],z=n[b++],N=n[b++],tt=n[b++],V=n[b++],K=n[b++];if(h){var P=d[m++];if(g+P>y){var A=(y-g)/P;Kl(u,O,N,V,A,qn),Kl(f,z,tt,K,A,Xn),t.bezierCurveTo(qn[1],Xn[1],qn[2],Xn[2],qn[3],Xn[3]);break t}g+=P}t.bezierCurveTo(O,z,N,tt,V,K),u=V,f=K;break}case At.Q:{var O=n[b++],z=n[b++],N=n[b++],tt=n[b++];if(h){var P=d[m++];if(g+P>y){var A=(y-g)/P;Zl(u,O,N,A,qn),Zl(f,z,tt,A,Xn),t.quadraticCurveTo(qn[1],Xn[1],qn[2],Xn[2]);break t}g+=P}t.quadraticCurveTo(O,z,N,tt),u=N,f=tt;break}case At.A:var lt=n[b++],yt=n[b++],ut=n[b++],ht=n[b++],bt=n[b++],k=n[b++],G=n[b++],$=!n[b++],Q=ut>ht?ut:ht,vt=Lr(ut-ht)>.001,ft=bt+k,X=!1;if(h){var P=d[m++];g+P>y&&(ft=bt+k*(y-g)/P,X=!0),g+=P}if(vt&&t.ellipse?t.ellipse(lt,yt,ut,ht,G,bt,ft,$):t.arc(lt,yt,Q,bt,ft,$),X)break t;T&&(s=jn(bt)*ut+lt,l=Kn(bt)*ht+yt),u=jn(ft)*ut+lt,f=Kn(ft)*ht+yt;break;case At.R:s=u=n[b],l=f=n[b+1],c=n[b++],v=n[b++];var j=n[b++],M=n[b++];if(h){var P=d[m++];if(g+P>y){var E=y-g;t.moveTo(c,v),t.lineTo(c+Qf(E,j),v),E-=j,E>0&&t.lineTo(c+j,v+Qf(E,M)),E-=M,E>0&&t.lineTo(c+Jf(j-E,0),v+M),E-=j,E>0&&t.lineTo(c,v+Jf(M-E,0));break t}g+=P}t.rect(c,v,j,M);break;case At.Z:if(h){var P=d[m++];if(g+P>y){var A=(y-g)/P;t.lineTo(u*(1-A)+s*A,f*(1-A)+l*A);break t}g+=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}(),On=$E;function Gi(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+=Ka);var v=Math.atan2(l,s);return v<0&&(v+=Ka),v>=n&&v<=i||v+Ka>=n&&v+Ka<=i}function Zn(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var nn=On.CMD,Qn=Math.PI*2,WE=1e-4;function YE(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&qE(),h=Kt(t,n,a,s,Ye[0]),v>1&&(d=Kt(t,n,a,s,Ye[1]))),v===2?gt&&s>n&&s>a||s=0&&u<=1){for(var f=0,c=le(t,n,a,u),v=0;vr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);pe[0]=-l,pe[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Qn-1e-4){n=0,i=Qn;var f=a?1:-1;return o>=pe[0]+e&&o<=pe[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Qn,i+=Qn);for(var v=0,h=0;h<2;h++){var d=pe[h];if(d+e>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Qn+p),(p>=n&&p<=i||p+Qn>=n&&p+Qn<=i)&&(p>Math.PI/2&&p1&&(r||(s+=Zn(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case nn.M:f=a[d++],c=a[d++],l=f,u=c;break;case nn.L:if(r){if(Gi(l,u,a[d],a[d+1],t,n,i))return!0}else s+=Zn(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case nn.C:if(r){if(VE(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=XE(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 nn.Q:if(r){if(GE(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=jE(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case nn.A:var m=a[d++],y=a[d++],_=a[d++],w=a[d++],S=a[d++],b=a[d++];d+=1;var x=!!(1-a[d++]);v=Math.cos(S)*_+m,h=Math.sin(S)*w+y,g?(f=v,c=h):s+=Zn(l,u,v,h,n,i);var T=(n-m)*w/_+m;if(r){if(UE(m,y,w,S,S+b,x,t,T,i))return!0}else s+=KE(m,y,w,S,S+b,x,T,i);l=Math.cos(S+b)*_+m,u=Math.sin(S+b)*w+y;break;case nn.R:f=l=a[d++],c=u=a[d++];var C=a[d++],D=a[d++];if(v=f+C,h=c+D,r){if(Gi(f,c,v,c,t,n,i)||Gi(v,c,v,h,t,n,i)||Gi(v,h,f,h,t,n,i)||Gi(f,h,f,c,t,n,i))return!0}else s+=Zn(v,c,v,h,n,i),s+=Zn(f,h,f,c,n,i);break;case nn.Z:if(r){if(Gi(l,u,f,c,t,n,i))return!0}else s+=Zn(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!YE(u,c)&&(s+=Zn(l,u,f,c,n,i)||0),s!==0}function ZE(e,t,r){return Tw(e,0,!1,t,r)}function QE(e,t,r,n){return Tw(e,t,!0,r,n)}var Cw=Pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},gi),JE={style:Pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Vu.style)},rc=Jo.concat(["invisible","culling","z","z2","zlevel","parent"]),tL=function(e){J(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?Ih:n>.2?DI:Eh}else if(r)return Eh}return Ih},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(it(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Jl(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&ra)&&(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==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return 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)),QE(s,l/u,r,n)))return!0}if(this.hasFill())return ZE(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ra,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&ra)},t.prototype.createStyle=function(r){return Fu(Cw,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),v=0;v0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Fu(eL,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=gd(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}(_s);Mw.prototype.type="tspan";var Fh=Mw,rL=Pt({x:0,y:0},gi),nL={style:Pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Vu.style)};function iL(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Aw=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Fu(rL,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=iL(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 nL},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ot(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(_s);Aw.prototype.type="image";var Ii=Aw;function aL(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 sa=Math.round;function Dw(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&&(sa(n*2)===sa(i*2)&&(e.x1=e.x2=vi(n,s,!0)),sa(a*2)===sa(o*2)&&(e.y1=e.y2=vi(a,s,!0))),e}}function Pw(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=vi(n,s,!0),e.y=vi(i,s,!0),e.width=Math.max(vi(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(vi(i+o,s,!1)-e.y,o===0?0:1)),e}}function vi(e,t,r){if(!t)return e;var n=sa(e*2);return(n+sa(t))%2===0?n/2:(n+(r?1:-1))/2}var oL=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),sL={},Iw=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new oL},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Pw(sL,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?aL(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(kt);Iw.prototype.type="rect";var ne=Iw,fm={fill:"#000"},cm=2,lL={style:Pt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Vu.style)},Ew=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=fm,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,A=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),L=o.calculatedLineHeight,O=0;O=0&&(O=b[L],O.align==="right");)this._placeToken(O,r,T,m,A,"right",_),C-=O.width,A-=O.width,L--;for(P+=(a-(P-g)-(y-A)-C)/2;D<=L;)O=b[D],this._placeToken(O,r,T,m,P+O.width/2,"center",_),P+=O.width,D++;m+=T}},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 v=!r.isLineHolder&&nc(u);v&&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 h=!!u.backgroundColor,d=r.textPadding;d&&(o=mm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(Fh),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,w=gm("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),S=pm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=cm,m.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||bi,g.opacity=Do(u.opacity,n.opacity,1),vm(g,u),S&&(g.lineWidth=Do(u.lineWidth,n.lineWidth,_),g.lineDash=Mt(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=S),w&&(g.fill=w);var x=r.contentWidth,T=r.contentHeight;p.setBoundingRect(new Ot(po(g.x,x,g.textAlign),na(g.y,T,g.textBaseline),x,T))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(ne),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=Mt(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Ii),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Mt(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(p||g).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=Do(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return hL(r)&&(n=[r.fontStyle,r.fontWeight,cL(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Tr(n)||r.textFont||r.font},t}(_s),uL={left:!0,right:1,center:1},fL={top:1,bottom:1,middle:1},hm=["fontStyle","fontWeight","fontSize","fontFamily"];function cL(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ad+"px":e+"px"}function vm(e,t){for(var r=0;r=0,a=!1;if(e instanceof kt){var o=Lw(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Ui(s)||Ui(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!Ui(u.fill)&&Ui(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=Sm(s)):!Ui(u.stroke)&&Ui(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=Sm(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f!=null?f:pL)}return n}function bL(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n!=null?n:gL)}return r}function SL(e,t,r){var n=It(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:_L(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 ic(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return wL(this,e,t,r);if(e==="blur")return SL(this,e,r);if(e==="select")return bL(this,e,r)}return r}function xL(e){e.stateProxy=ic;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=ic),r&&(r.stateProxy=ic)}function Cm(e,t){!zw(e,t)&&!e.__highByOuter&&jr(e,Rw)}function Mm(e,t){!zw(e,t)&&!e.__highByOuter&&jr(e,Ow)}function iu(e,t){e.__highByOuter|=1<<(t||0),jr(e,Rw)}function au(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&jr(e,Ow)}function TL(e){jr(e,Cd)}function Nw(e){jr(e,kw)}function Bw(e){jr(e,mL)}function Fw(e){jr(e,yL)}function zw(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Hw(e){var t=e.getModel();t.eachComponent(function(r,n){var i=xd(n);if(i.isBlured){var a=r==="series"?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n);a.group.traverse(function(o){kw(o)})}i.isBlured=!1})}function zh(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 $h(e,t,r){$w(e,!0),jr(e,xL),EL(e,t,r)}function IL(e){$w(e,!1)}function ou(e,t,r,n){n?IL(e):$h(e,t,r)}function EL(e,t,r){var n=Nt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Dm=["emphasis","blur","select"],LL={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Vh(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=ac(d),s*=ac(d));var p=(i===a?-1:1)*ac((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,m=p*-s*v/o,y=(e+r)/2+Ys(c)*g-Ws(c)*m,_=(t+n)/2+Ws(c)*g+Ys(c)*m,w=Lm([1,0],[(v-g)/o,(h-m)/s]),S=[(v-g)/o,(h-m)/s],b=[(-1*v-g)/o,(-1*h-m)/s],x=Lm(S,b);if(Wh(S,b)<=-1&&(x=Za),Wh(S,b)>=1&&(x=0),x<0){var T=Math.round(x/Za*1e6)/1e6;x=Za*2+T%2*Za}f.addData(u,y,_,o,s,w,x,c,a)}var FL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,zL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function HL(e){var t=new On;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=On.CMD,l=e.match(FL);if(!l)return t;for(var u=0;uO*O+z*z&&(T=D,C=P),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(i/S-1),y1:C*(i/S-1)}}function XL(e){var t;if(et(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 jL(e,t){var r,n=go(t.r,0),i=go(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,v=!!t.clockwise,h=Om(u-l),d=h>oc&&h%oc;if(d>ar&&(h=d),!(n>ar))e.moveTo(f,c);else if(h>oc-ar)e.moveTo(f+n*Yi(l),c+n*Jn(l)),e.arc(f,c,n,l,u,!v),i>ar&&(e.moveTo(f+i*Yi(u),c+i*Jn(u)),e.arc(f,c,i,u,l,v));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,w=void 0,S=void 0,b=void 0,x=void 0,T=void 0,C=void 0,D=void 0,P=void 0,A=void 0,L=void 0,O=void 0,z=n*Yi(l),N=n*Jn(l),tt=i*Yi(u),V=i*Jn(u),K=h>ar;if(K){var lt=t.cornerRadius;lt&&(r=XL(lt),p=r[0],g=r[1],m=r[2],y=r[3]);var yt=Om(n-i)/2;if(_=_r(yt,m),w=_r(yt,y),S=_r(yt,p),b=_r(yt,g),C=x=go(_,w),D=T=go(S,b),(x>ar||T>ar)&&(P=n*Yi(u),A=n*Jn(u),L=i*Yi(l),O=i*Jn(l),har){var vt=_r(m,C),ft=_r(y,C),X=qs(L,O,z,N,n,vt,v),j=qs(P,A,tt,V,n,ft,v);e.moveTo(f+X.cx+X.x0,c+X.cy+X.y0),C0&&e.arc(f+X.cx,c+X.cy,vt,oe(X.y0,X.x0),oe(X.y1,X.x1),!v),e.arc(f,c,n,oe(X.cy+X.y1,X.cx+X.x1),oe(j.cy+j.y1,j.cx+j.x1),!v),ft>0&&e.arc(f+j.cx,c+j.cy,ft,oe(j.y1,j.x1),oe(j.y0,j.x0),!v))}else e.moveTo(f+z,c+N),e.arc(f,c,n,l,u,!v);if(!(i>ar)||!K)e.lineTo(f+tt,c+V);else if(D>ar){var vt=_r(p,D),ft=_r(g,D),X=qs(tt,V,P,A,i,-ft,v),j=qs(z,N,L,O,i,-vt,v);e.lineTo(f+X.cx+X.x0,c+X.cy+X.y0),D0&&e.arc(f+X.cx,c+X.cy,ft,oe(X.y0,X.x0),oe(X.y1,X.x1),!v),e.arc(f,c,i,oe(X.cy+X.y1,X.cx+X.x1),oe(j.cy+j.y1,j.cx+j.x1),v),vt>0&&e.arc(f+j.cx,c+j.cy,vt,oe(j.y1,j.x1),oe(j.y0,j.x0),!v))}else e.lineTo(f+tt,c+V),e.arc(f,c,i,u,l,v)}e.closePath()}}}var KL=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}(),jw=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new KL},t.prototype.buildPath=function(r,n){jL(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(kt);jw.prototype.type="sector";var ws=jw,ZL=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Kw=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ZL},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}(kt);Kw.prototype.type="ring";var Zw=Kw;function QL(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 v=0,h=e.length;v=2){if(n){var a=QL(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;sei[1]){if(s=!1,a)return s;var f=Math.abs(ei[0]-ti[1]),c=Math.abs(ti[0]-ei[1]);Math.min(f,c)>i.len()&&(f0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,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 Dr(e,t,r,n,i,a){Pd("update",e,t,r,n,i,a)}function An(e,t,r,n,i,a){Pd("enter",e,t,r,n,i,a)}function Oo(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 Bm(e){return!e.isGroup}function A2(e){return e.shape!=null}function vb(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Bm(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return A2(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Bm(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Dr(o,l,r,Nt(o).dataIndex)}}})}function D2(e,t){return ct(e,function(r){var n=r[0];n=uu(n,t.x),n=fu(n,t.x+t.width);var i=r[1];return i=uu(i,t.y),i=fu(i,t.y+t.height),[n,i]})}function P2(e,t){var r=uu(e.x,t.x),n=fu(e.x+e.width,t.x+t.width),i=uu(e.y,t.y),a=fu(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 Ld(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),Pt(i,r),new Ii(n)):Id(e.replace("path://",""),n,r,"center")}function I2(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=sc(h,d,f,c)/v;return!(g<0||g>1)}function sc(e,t,r,n){return e*n-r*t}function E2(e){return e<=1e-6&&e>=-1e-6}function Rd(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=it(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&&I(Gt(l),function(f){Ca(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Nt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Pt({content:n,formatterParams:s},i)}}function Fm(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Od(e,t){if(e)if(et(e))for(var r=0;r=0&&s.push(l)}),s}}function q2(e,t){return Dt(Dt({},e,!0),t,!0)}var X2={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},j2={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},cu="ZH",kd="EN",rs=kd,Ll={},Nd={},yb=wt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(cu)>-1?cu:rs}():rs;function _b(e,t){e=e.toUpperCase(),Nd[e]=new ce(t),Ll[e]=t}function K2(e){if(it(e)){var t=Ll[e.toUpperCase()]||{};return e===cu||e===kd?xt(t):Dt(xt(t),xt(Ll[rs]),!1)}else return Dt(xt(e),xt(Ll[rs]),!1)}function Z2(e){return Nd[e]}function Q2(){return Nd[rs]}_b(kd,X2);_b(cu,j2);var Bd=1e3,Fd=Bd*60,ko=Fd*60,Ze=ko*24,Wm=Ze*365,mo={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}"},Ks="{yyyy}-{MM}-{dd}",Ym={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ks,hour:Ks+" "+mo.hour,minute:Ks+" "+mo.minute,second:Ks+" "+mo.second,millisecond:mo.none},fc=["year","month","day","hour","minute","second","millisecond"],wb=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ri(e,t){return e+="","0000".substr(0,t-e.length)+e}function ga(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 J2(e){return e===ga(e)}function tR(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Zu(e,t,r,n){var i=Yr(e),a=i[zd(r)](),o=i[ma(r)]()+1,s=Math.floor((o-1)/4)+1,l=i[Qu(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[ns(r)](),c=(f-1)%12+1,v=i[Ju(r)](),h=i[tf(r)](),d=i[ef(r)](),p=n instanceof ce?n:Z2(n||yb)||Q2(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),w=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,ri(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ri(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ri(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ri(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ri(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,ri(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,ri(d,3)).replace(/{S}/g,d+"")}function eR(e,t,r,n,i){var a=null;if(it(r))a=r;else if(mt(r))a=r(e.value,t,{level:e.level});else{var o=Y({},mo);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(et(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 Zu(new Date(e.value),a,i,n)}function bb(e,t){var r=Yr(e),n=r[ma(t)]()+1,i=r[Qu(t)](),a=r[ns(t)](),o=r[Ju(t)](),s=r[tf(t)](),l=r[ef(t)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&a===0,h=v&&i===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function qm(e,t,r){var n=zt(e)?Yr(e):e;switch(t=t||bb(e,r),t){case"year":return n[zd(r)]();case"half-year":return n[ma(r)]()>=6?1:0;case"quarter":return Math.floor((n[ma(r)]()+1)/4);case"month":return n[ma(r)]();case"day":return n[Qu(r)]();case"half-day":return n[ns(r)]()/24;case"hour":return n[ns(r)]();case"minute":return n[Ju(r)]();case"second":return n[tf(r)]();case"millisecond":return n[ef(r)]()}}function zd(e){return e?"getUTCFullYear":"getFullYear"}function ma(e){return e?"getUTCMonth":"getMonth"}function Qu(e){return e?"getUTCDate":"getDate"}function ns(e){return e?"getUTCHours":"getHours"}function Ju(e){return e?"getUTCMinutes":"getMinutes"}function tf(e){return e?"getUTCSeconds":"getSeconds"}function ef(e){return e?"getUTCMilliseconds":"getMilliseconds"}function rR(e){return e?"setUTCFullYear":"setFullYear"}function Sb(e){return e?"setUTCMonth":"setMonth"}function xb(e){return e?"setUTCDate":"setDate"}function Tb(e){return e?"setUTCHours":"setHours"}function Cb(e){return e?"setUTCMinutes":"setMinutes"}function Mb(e){return e?"setUTCSeconds":"setSeconds"}function Ab(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Db(e){if(!ZI(e))return it(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Pb(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 rf=F1,nR=/([&<>"'])/g,iR={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ke(e){return e==null?"":(e+"").replace(nR,function(t,r){return iR[r]})}function qh(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Tr(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?Yr(e):e;if(isNaN(+l)){if(s)return"-"}else return Zu(l,n,r)}if(t==="ordinal")return dh(e)?i(e):zt(e)&&a(e)?e+"":"-";var u=ru(e);return a(u)?Db(u):dh(e)?i(e):typeof e=="boolean"?e+"":"-"}var Xm=["a","b","c","d","e","f","g"],cc=function(e,t){return"{"+e+(t==null?"":t)+"}"};function Ib(e,t,r){et(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 Ti(e,t){return t=t||"transparent",it(e)?e:st(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function jm(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Rl=I,oR=["left","right","top","bottom","width","height"],Zs=[["width","left","right"],["height","top","bottom"]];function Hd(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),v=c&&c.getBoundingRect(),h,d;if(e==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=d+r)})}var No=Hd;Xt(Hd,"vertical");Xt(Hd,"horizontal");function Ma(e,t,r){r=rf(r||0);var n=t.width,i=t.height,a=Vt(e.left,n),o=Vt(e.top,i),s=Vt(e.right,n),l=Vt(e.bottom,i),u=Vt(e.width,n),f=Vt(e.height,i),c=r[2]+r[0],v=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-v),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-v;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-v-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new Ot(a+r[3],o+r[0],u,f);return d.margin=r,d}function is(e){var t=e.layoutMode||e.constructor.layoutMode;return st(t)?t:t?{type:t}:null}function Aa(e,t,r){var n=r&&r.ignoreSize;!et(n)&&(n=[n,n]);var i=o(Zs[0],0),a=o(Zs[1],1);u(Zs[0],e,i),u(Zs[1],e,a);function o(f,c){var v={},h=0,d={},p=0,g=2;if(Rl(f,function(_){d[_]=e[_]}),Rl(f,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&h++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!h)return d;if(h>=g)return v;for(var m=0;m=0;l--)s=Dt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ys(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}(ce);_w(Ba,ce);Hu(Ba);W2(Ba);Y2(Ba,uR);function uR(e){var t=[];return I(Ba.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=ct(t,function(r){return Cr(r).main}),e!=="dataset"&&It(t,"dataset")<=0&&t.unshift("dataset"),t}var $t=Ba,Eb="";typeof navigator!="undefined"&&(Eb=navigator.platform||"");var qi="rgba(0, 0, 0, 0.2)",fR={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:qi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:qi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:qi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:qi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:qi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:qi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Eb.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},Lb=_t(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),rr="original",Ae="arrayRows",vr="objectRows",Er="keyedColumns",Dn="typedArray",Rb="unknown",Vr="column",Fa="row",te={Must:1,Might:2,Not:3},Ob=Qt();function cR(e){Ob(e).datasetMap=_t()}function hR(e,t,r){var n={},i=$d(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=Ob(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),I(e,function(p,g){var m=st(p)?p:e[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});I(e,function(p,g){var m=p.name,y=d(p);if(f==null){var _=v.valueWayDim;h(n[m],_,y),h(o,_,y),v.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var _=v.categoryWayDim;h(n[m],_,y),h(o,_,y),v.categoryWayDim+=y}});function h(p,g,m){for(var y=0;yt)return e[n];return e[r-1]}function yR(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:mR(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 _R(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Qs,Qa,Zm,Qm="\0_ec_inner",wR=1,Bb=function(e){J(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 ce(a),this._locale=new ce(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=ey(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,ey(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"?Zm(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&&I(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=_t(),u=n&&n.replaceMergeMainTypeMap;cR(this),I(r,function(c,v){c!=null&&($t.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?xt(c):Dt(i[v],c,!0))}),u&&u.each(function(c,v){$t.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),$t.topologicalTravel(s,$t.getAllClassMainTypes(),f,this);function f(c){var v=gR(this,c,me(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=tE(h,v,d);sE(p,c,$t),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;I(p,function(w,S){var b=w.existing,x=w.newOption;if(!x)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=c==="series",C=$t.getClass(c,w.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=w.keyInfo.name,b.mergeOption(x,this),b.optionUpdated(x,!1);else{var D=Y({componentIndex:S},w.keyInfo);b=new C(x,this,this,D),Y(b,D),w.brandNew&&(b.__requireNewView=!0),b.init(x,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),m.push(b),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&Qs(this)}this._seriesIndices||Qs(this)},t.prototype.getOption=function(){var r=xt(this.option);return I(r,function(n,i){if($t.hasClass(i)){for(var a=me(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ts(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Qm],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 ER(e,t){return e.join(",")===t.join(",")}var LR=AR,ir=I,as=st,ry=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vc(e){var t=e&&e.itemStyle;if(!!t)for(var r=0,n=ry.length;r=0;p--){var g=e[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,v)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(c>=0&&m>0||c<=0&&m<0){c=XI(c,m),d=m;break}}}return n[0]=c,n[1]=d,n})})}var af=function(){function e(t){this.data=t.data||(t.sourceFormat===Er?{}:[]),this.sourceFormat=t.sourceFormat||Rb,this.seriesLayoutBy=t.seriesLayoutBy||Vr,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;np&&(p=_)}h[0]=d,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};uy=(t={},t[Ae+"_"+Vr]={pure:!0,appendData:a},t[Ae+"_"+Fa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[vr]={pure:!0,appendData:a},t[Er]={pure:!0,appendData:function(o){var s=this._data;I(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[rr]={appendData:a},t[Dn]={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&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Da(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function vy(e){var t,r;return st(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Bo(e){return new KR(e)}var KR=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 v=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h1&&n>0?s:o}};return a;function o(){return t=e?null:li?-this._resultLT:0},e}(),QR=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 Ol(t,r)},e}();function JR(e,t){var r=new QR,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Vr&&xe(o);var s=[],l={},u=e.dimensionsDefine;if(u)I(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Ca(l,m)&&xe(_),l[m]=y}});else for(var f=0;f65535?sO:lO}function Xi(){return[1/0,-1/0]}function uO(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function gy(e,t,r,n,i){var a=Kb[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=p)}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=ct(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=g)}}!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=h,u=0),h===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<=v||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],w=t[i[1]][0],S=t[i[1]][1],m=0;m=c&&y<=v||isNaN(y))&&(b>=w&&b<=S||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m=c&&y<=v||isNaN(y))&&(l[u++]=x)}else for(var m=0;mt[D][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},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,v,h=new(to(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;df&&(f=c,v=w)}P>0&&Pf-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=m),v[h++]=y}return a._count=h,a._indices=v,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 Ol(r[a],this._dimensions[a])}gc={arrayRows:t,objectRows:function(r,n,i,a){return Ol(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ol(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),fO=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(Js(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=Be(s)?Dn:rr,a=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=Mt(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=Mt(c.sourceHeader,v.sourceHeader),p=Mt(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[Xh(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Xh(_,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&&my(a)}var o,s=[],l=[];return I(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&my(c),s.push(f),l.push(u._getVersionSign())}),n?o=aO(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[VR(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 I(e.blocks,function(i){var a=tS(i);a>=t&&(t=a+ +(n&&(!a||Kh(i)&&!i.noHeader)))}),t}return 0}function vO(e,t,r,n){var i=t.noHeader,a=pO(tS(t)),o=[],s=t.blocks||[];Wr(!s||et(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ca(u,l)){var f=new ZR(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}I(s,function(d,p){var g=t.valueFormatter,m=Jb(d)(g?Y(Y({},e),{valueFormatter:g}):e,d,p>0?a.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(a.richText):Zh(o.join(""),i?r:a.html);if(i)return c;var v=qh(t.header,"ordinal",e.useUTC),h=Qb(n,e.renderMode).nameStyle;return e.renderMode==="richText"?eS(e,v,h)+a.richText+c:Zh('
'+Ke(v)+"
"+c,r)}function dO(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(w){return w=et(w)?w:[w],ct(w,function(S,b){return qh(S,et(h)?h[b]:h,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":qh(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value),p=!s||!a,g=!s&&a,m=Qb(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":eS(e,v,y))+(o?"":yO(e,d,p,g,_)):Zh((s?"":c)+(a?"":gO(v,!s,y))+(o?"":mO(d,p,g,_)),r)}}function yy(e,t,r,n,i,a){if(!!e){var o=Jb(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function pO(e){return{html:cO[e],richText:hO[e]}}function Zh(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function gO(e,t,r){var n=t?"margin-left:2px":"";return''+Ke(e)+""}function mO(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=et(e)?e:[e],''+ct(e,function(o){return Ke(o)}).join("  ")+""}function eS(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function yO(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(et(t)?t.join(" "):t,a)}function _O(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Ti(n)}function rS(e,t){var r=e.get("padding");return r!=null?r:t==="richText"?[8,10]:10}var mc=function(){function e(){this.richTextStyles={},this._nextStyleNameId=vw()}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=aR({color:r,type:t,renderMode:n,markerId:i});return it(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};et(r)?I(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function wO(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=et(s),u=_O(t,r),f,c,v,h;if(o>1||l&&!o){var d=bO(s,t,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=Da(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=wd(t),m=g&&t.name||"",y=i.getName(r),_=n?m:y;return os("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[os("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Tr(_),value:f,valueType:c})].concat(v||[])})}function bO(e,t,r,n,i){var a=t.getData(),o=Ln(e,function(c,v,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?I(n,function(c){f(Da(a,r,c),c)}):I(e,f);function f(c,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(os("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var an=Qt();function tl(e,t){return e.getName(t)||e.getId(t)}var SO="__universalTransitionEnabled",sf=function(e){J(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=Bo({count:TO,reset:CO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=an(this).sourceManager=new fO(this);a.prepareSource();var o=this.getInitialData(r,i);wy(o,this),this.dataTask.context.data=o,an(this).dataBeforeProcessed=o,_y(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=is(this),a=i?nf(r):{},o=this.subType;$t.hasClass(o)&&(o+="Series"),Dt(r,n.getTheme().get(this.subType)),Dt(r,this.getDefaultOption()),Oh(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Aa(r,a,i)},t.prototype.mergeOption=function(r,n){r=Dt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=is(this);i&&Aa(this.option,r,i);var a=an(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);wy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,an(this).dataBeforeProcessed=o,_y(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Be(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=Vd.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[tl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[SO])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"){st(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(r,n)}},t.registerClass=function(r){return $t.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}($t);Pr(sf,jR);Pr(sf,Vd);_w(sf,$t);function _y(e){var t=e.name;wd(e)||(e.name=xO(e)||t)}function xO(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return I(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function TO(e){return e.model.getRawData().count()}function CO(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),MO}function MO(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wy(e,t){I(wP(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Xt(AO,t))})}function AO(e,t){var r=Qh(e);return r&&r.setOutputEnd((t||this).count()),t}function Qh(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 Pa=sf,Xd=function(){function e(){this.group=new ye,this.uid=Ku("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.blurSeries=function(t,r){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Sd(Xd);Hu(Xd);var qr=Xd;function nS(){var e=Qt();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 iS=Qt(),DO=nS(),jd=function(){function e(){this.group=new ye,this.uid=Ku("viewChart"),this.renderTask=Bo({plan:PO,reset:IO}),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||Sy(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);!a||Sy(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){Od(this.group,t)},e.markUpdateMethod=function(t,r){iS(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function by(e,t,r){e&&Gh(e)&&(t==="emphasis"?iu:au)(e,r)}function Sy(e,t,r){var n=Si(e,t),i=t&&t.highlightKey!=null?RL(t.highlightKey):null;n!=null?I(me(n),function(a){by(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){by(a,r,i)})}Sd(jd);Hu(jd);function PO(e){return DO(e.model)}function IO(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&iS(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),EO[l]}var EO={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)}}},Gr=jd,hu="\0__throttleOriginMethod",xy="\0__throttleRate",Ty="\0__throttleType";function aS(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 v=function(){for(var h=[],d=0;d=0?c():o=setTimeout(c,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function oS(e,t,r,n){var i=e[t];if(!!i){var a=i[hu]||i,o=i[Ty],s=i[xy];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=aS(a,r,n==="debounce"),i[hu]=a,i[Ty]=n,i[xy]=r}return i}}function Jh(e,t){var r=e[t];r&&r[hu]&&(r.clear&&r.clear(),e[t]=r[hu])}var Cy=Qt(),My={itemStyle:es(mb,!0),lineStyle:es(gb,!0)},LO={lineStyle:"stroke",itemStyle:"fill"};function sS(e,t){var r=e.visualStyleMapper||My[t];return r||(console.warn("Unkown style type '"+t+"'."),My.itemStyle)}function lS(e,t){var r=e.visualDrawType||LO[t];return r||(console.warn("Unkown style type '"+t+"'."),"fill")}var RO={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=sS(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=lS(e,n),u=o[l],f=mt(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||mt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||mt(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=e.getDataParams(d),g=Y({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},eo=new ce,OO={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=sS(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){eo.option=l[n];var u=i(eo),f=o.ensureUniqueItemVisual(s,"style");Y(f,u),eo.option.decal&&(o.setItemVisual(s,"decal",eo.option.decal),eo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},kO={performRawSeries:!0,overallReset:function(e){var t=_t();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)),Cy(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Cy(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=lS(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 v=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},el=Math.PI;function NO(e,t){t=t||{},Pt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ye,n=new ne({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new he({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 ne({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 Dd({shape:{startAngle:-el/2,endAngle:-el/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:el*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:el*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 BO=function(){function e(t,r,n,i){this._stageTaskMap=_t(),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=_t();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;I(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Wr(!(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;I(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},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=_t(),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 v=c.uid,h=s.set(v,o&&o.get(v)||Bo({plan:VO,reset:GO,count:WO}));h.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Bo({reset:FO});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=_t(),u=t.seriesType,f=t.getTargetSeries,c=!0,v=!1,h="";Wr(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,I(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(v=!0,Bo({reset:zO,onDirty:$O})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}v&&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 mt(t)&&(t={overallReset:t,seriesType:YO(t)}),t.uid=Ku("stageHandler"),r&&(t.visualType=r),t},e}();function FO(e){e.overallReset(e.ecModel,e.api,e.payload)}function zO(e){return e.overallProgress&&HO}function HO(){this.agent.dirty(),this.getDownstream().dirty()}function $O(){this.agent&&this.agent.dirty()}function VO(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function GO(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=me(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ct(t,function(r,n){return uS(n)}):UO}var UO=uS(0);function uS(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.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,v,h,d){return c[h]==null||v[d||h]===c[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),tv=["symbol","symbolSize","symbolRotate","symbolOffset"],Iy=tv.concat(["symbolKeepAspect"]),KO={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;o0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:zt(e)?[e]:et(e)?e:null}function pS(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&yk(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=ct(r,function(a){return a/i}),n/=i)}return[r,n]}var _k=new On(!0);function du(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Ey(e){return typeof e=="string"&&e!=="none"}function pu(e){var t=e.fill;return t!=null&&t!=="none"}function Ly(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 Ry(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 nv(e,t,r){var n=ww(t.image,t.__image,r);if($u(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)*bP),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function wk(e,t,r,n){var i,a=du(r),o=pu(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||_k,c=t.__dirty;if(!n){var v=r.fill,h=r.stroke,d=o&&!!v.colorStops,p=a&&!!h.colorStops,g=o&&!!v.image,m=a&&!!h.image,y=void 0,_=void 0,w=void 0,S=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(y=c?rv(e,v,b):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=c?rv(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(w=c||!t.__canvasFillPattern?nv(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=w),m&&(S=c||!t.__canvasStrokePattern?nv(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?e.fillStyle=y:g&&(w?e.fillStyle=w:o=!1),p?e.strokeStyle=_:m&&(S?e.strokeStyle=S:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,C;e.setLineDash&&r.lineDash&&(i=pS(t),T=i[0],C=i[1]);var D=!0;(u||c&ra)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=C),n||(r.strokeFirst?(a&&Ry(e,r),o&&Ly(e,r)):(o&&Ly(e,r),a&&Ry(e,r))),T&&e.setLineDash([])}function bk(e,t,r){var n=t.__image=ww(r.image,t.__image,t,t.onload);if(!(!n||!$u(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,v=s-f;e.drawImage(n,u,f,c,v,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Sk(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||bi,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=pS(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(du(r)&&e.strokeText(i,r.x,r.y),pu(r)&&e.fillText(i,r.x,r.y)):(pu(r)&&e.fillText(i,r.x,r.y),du(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var Oy=["shadowBlur","shadowOffsetX","shadowOffsetY"],ky=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function gS(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Te(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?gi.opacity:o}(n||t.blend!==r.blend)&&(a||(Te(e,i),a=!0),e.globalCompositeOperation=t.blend||gi.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[se]){if(this._disposed){this.id;return}var a,o,s;if(st(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[se]=!0,!this._model||n){var l=new LR(this._api),u=this._theme,f=this._model=new Fb;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[we]={silent:a,updateParams:c},this[se]=!1,this.getZr().wakeUp();else{try{Ki(this),on.update.call(this,null,c)}catch(v){throw this[we]=null,this[se]=!1,v}this._ssr||this._zr.flush(),this[we]=null,this[se]=!1,ro.call(this,a),no.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||Ok&&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(!!wt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return I(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;I(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 I(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(Zy[i]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();I(zo,function(_,w){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(xt(r)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),v.push({dom:S,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=Pi.createCanvas(),m=Qg(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return I(v,function(_){var w=_.left-l,S=_.top-u;y+=''+_.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 ne({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),I(v,function(_){var w=new Ii({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(w)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Sc(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Sc(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Wf(i,r);return I(o,function(s,l){l.indexOf("Models")>=0&&I(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=Wf(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?QO(s,l,n):JO(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;I(jk,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&_o(s,function(d){var p=Nt(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=Y({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var v=f&&c!=null&&o.getComponent(f,c),h=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),I(Fo,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),I(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),ek(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&&mw(this.getDom(),Qd,"");var n=this,i=n._api,a=n._model;I(n._componentsViews,function(o){o.dispose(a,i)}),I(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 zo[n.id]},t.prototype.resize=function(r){if(!this[se]){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[we]&&(a==null&&(a=this[we].silent),i=!0,this[we]=null),this[se]=!0;try{i&&Ki(this),on.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[se]=!1,o}this[se]=!1,ro.call(this,a),no.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(st(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!ov[r]){var i=ov[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=Fo[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(st(n)||(n={silent:!!n}),!!gu[r.type]&&!!this._model){if(this[se]){this._pendingActions.push(r);return}var i=n.silent;Tc.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&wt.browser.weChat&&this._throttledZrFlush(),ro.call(this,i),no.call(this,i)}},t.prototype.updateLabelLayout=function(){sr.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(){Ki=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),bc(c,!0),bc(c,!1),v.plan()},bc=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_v.get("hoverLayerThreshold")&&!wt.node&&!wt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function s(c,v){if(!c.preventAutoZ){var h=c.get("z")||0,d=c.get("zlevel")||0;v.eachRendered(function(p){return l(p,h,d,-1/0),!0})}}function l(c,v,h,d){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),_=0;_0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Oo(m))return;if(m instanceof kt&&OL(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),w=m.getTextGuideLine();_&&(_.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&i(m)}})}jy=function(c){return new(function(v){J(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){iu(d,p),He(c)},h.prototype.leaveEmphasis=function(d,p){au(d,p),He(c)},h.prototype.enterBlur=function(d){TL(d),He(c)},h.prototype.leaveBlur=function(d){Nw(d),He(c)},h.prototype.enterSelect=function(d){Bw(d),He(c)},h.prototype.leaveSelect=function(d){Fw(d),He(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h}(zb))(c)},ES=function(c){function v(h,d){for(var p=0;p=0)){Qy.push(r);var a=hS.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function BS(e,t){ov[e]=t}function rN(e,t,r){var n=Rk("registerMap");n&&n(e,t,r)}var nN=iO;Li(Kd,RO);Li(lf,OO);Li(lf,kO);Li(Kd,KO);Li(lf,ZO);Li(CS,Ik);kS($b);NS(Bk,HR);BS("default",NO);za({type:mi,event:mi,update:mi},Ce);za({type:Il,event:Il,update:Il},Ce);za({type:Eo,event:Eo,update:Eo},Ce);za({type:El,event:El,update:El},Ce);za({type:Lo,event:Lo,update:Lo},Ce);OS("light",qO);OS("dark",XO);function io(e){return e==null?0:e.length||1}function Jy(e){return e}var iN=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Jy,this._newKeyGetter=i||Jy,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&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h1)for(var s=0;s30}var ao=st,sn=ct,vN=typeof Int32Array=="undefined"?Array:Int32Array,dN="e\0\0",t0=-1,pN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gN=["_approximateExtent"],e0,sl,oo,so,Ac,ll,Dc,mN=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;zS(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===rr;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),et(a)?a=a.slice():ao(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ao(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){ao(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;dL(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){I(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:sn(this.dimensions,this._getDimInfo,this),this.hostModel)),Ac(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];!mt(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(ud(arguments)))})},e.internalField=function(){e0=function(t){var r=t._invertedIndicesMap;I(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new vN(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[r]=l}}}(),e}(),GS=mN;function US(e,t){Ud(e)||(e=Wd(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=_t(),a=[],o=_N(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&VS(o),l=n===e.dimensionsDefine,u=l?$S(e):HS(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=_t(f),v=new jb(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function _N(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return I(t,function(a){var o;st(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function wN(e,t,r){var n=t.data;if(r||n.hasOwnProperty(e)){for(var i=0;n.hasOwnProperty(e+i);)i++;e+=i}return t.set(e,!0),e}var bN=function(){function e(t){this.coordSysDims=[],this.axisMap=_t(),this.categoryAxisMap=_t(),this.coordSysName=t}return e}();function SN(e){var t=e.get("coordinateSystem"),r=new bN(t),n=xN[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var xN={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",ur).models[0],a=e.getReferringComponents("yAxis",ur).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Zi(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Zi(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",ur).models[0];t.coordSysDims=["single"],r.set("single",i),Zi(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",ur).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Zi(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Zi(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();I(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Zi(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Zi(e){return e.get("type")==="category"}function TN(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;CN(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,v;if(I(a,function(y,_){it(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,p=0;I(a,function(y){y.coordDim===h&&p++});var g={name:c,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),m.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function CN(e){return!zS(e.schema)}function us(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function MN(e,t){return us(e,t)?e.getCalculationInfo("stackResultDimension"):t}function AN(e,t){var r=e.get("coordinateSystem"),n=Gd.get(r),i;return t&&t.coordSysDims&&(i=ct(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=lN(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function DN(e,t,r){var n,i;return r&&I(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 PN(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Wd(e)):(i=n.getSource(),a=i.sourceFormat===rr);var o=SN(t),s=AN(t,o),l=r.useEncodeDefaulter,u=mt(l)?l:l?Xt(hR,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=US(i,f),v=DN(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=TN(t,{schema:c,store:h}),p=new GS(c,t);p.setCalculationInfo(d);var g=v!=null&&IN(i)?function(m,y,_,w){return w===v?_:this.defaultDimValueGetter(m,y,_,w)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function IN(e){if(e.sourceFormat===rr){var t=EN(e.data||[]);return!et(ms(t))}}function EN(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}();Hu(WS);var Kr=WS,LN=0,RN=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++LN}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&ct(n,ON);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(!it(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=_t(this.categories))},e}();function ON(e){return st(e)&&e.value!=null?e.value:e+""}var sv=RN;function lv(e){return e.type==="interval"||e.type==="log"}function kN(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=hw(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=YS(o),l=i.niceTickExtent=[jt(Math.ceil(e[0]/o)*o,s),jt(Math.floor(e[1]/o)*o,s)];return NN(l,e),i}function Pc(e){var t=Math.pow(10,_d(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,jt(r*t)}function YS(e){return zr(e)+2}function r0(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function NN(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),r0(e,0,t),r0(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function uf(e,t){return e>=t[0]&&e<=t[1]}function ff(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 qS=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new sv({})),et(i)&&(i=new sv({categories:ct(i,function(a){return st(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 it(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),uf(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),ff(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}(Kr);Kr.registerClass(qS);var XS=qS,oi=jt,jS=function(e){J(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 uf(r,this._extent)},t.prototype.normalize=function(r){return ff(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=YS(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:oi(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]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function $N(e){var t=HN(e),r=[];return I(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(),v=Math.abs(c[1]-c[0]);s=u?f/v*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=Vt(n.get("barWidth"),s),p=Vt(n.get("barMaxWidth"),s),g=Vt(n.get("barMinWidth")||(WN(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:QS(a),stackId:ZS(n)})}),VN(r)}function VN(e){var t={};I(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 v=n.barMinWidth;v&&(l[u].minWidth=v);var h=n.barGap;h!=null&&(s.gap=h);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return I(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=Vt(s,o),f=Vt(n.gap,1),c=n.remainedWidth,v=n.autoWidthCount,h=(c-u)/(v+(v-1)*f);h=Math.max(h,0),I(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var w=m.width;y&&(w=Math.min(w,y)),_&&(w=Math.max(w,_)),m.width=w,c-=w+f*w,v--}else{var w=h;y&&yw&&(w=_),w!==h&&(m.width=w,c-=w+f*w,v--)}}),h=(c-u)/(v+(v-1)*f),h=Math.max(h,0);var d=0,p;I(a,function(m,y){m.width||(m.width=h),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;I(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function GN(e,t,r){if(e&&t){var n=e[QS(t)];return n!=null&&r!=null?n[ZS(r)]:n}}function UN(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function WN(e){return e.pipelineContext&&e.pipelineContext.large}var YN=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var s=ul.length,l=Math.min(YN(ul,this._approxInterval,0,s),s-1);this._interval=ul[l][1],this._minLevelUnit=ul[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return zt(r)?r:+Yr(r)},t.prototype.contain=function(r){return uf(this.parse(r),this._extent)},t.prototype.normalize=function(r){return ff(this.parse(r),this._extent)},t.prototype.scale=function(r){return cf(r,this._extent)},t.type="time",t}(bs),ul=[["second",Bd],["minute",Fd],["hour",ko],["quarter-day",ko*6],["half-day",ko*12],["day",Ze*1.2],["half-week",Ze*3.5],["week",Ze*7],["month",Ze*31],["quarter",Ze*95],["half-year",Wm/2],["year",Wm]];function qN(e,t,r,n){var i=Yr(t),a=Yr(r),o=function(d){return qm(i,d,n)===qm(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")},v=function(){return c()&&o("second")},h=function(){return v()&&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 v();case"millisecond":return h()}}function XN(e,t){return e/=Ze,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function jN(e){var t=30*Ze;return e/=t,e>6?6:e>3?3:e>2?2:1}function KN(e){return e/=ko,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function n0(e,t){return e/=t?Fd:Bd,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ZN(e){return hw(e,!0)}function QN(e,t,r){var n=new Date(e);switch(ga(t)){case"year":case"month":n[Sb(r)](0);case"day":n[xb(r)](1);case"hour":n[Tb(r)](0);case"minute":n[Cb(r)](0);case"second":n[Mb(r)](0),n[Ab(r)](0)}return n.getTime()}function JN(e,t,r,n){var i=1e4,a=wb,o=0;function s(D,P,A,L,O,z,N){for(var tt=new Date(P),V=P,K=tt[L]();V1&&z===0&&A.unshift({value:A[0].value-V})}}for(var z=0;z=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&v>_/1.5||(u.push(g),c>_||e===a[h]))break}f=[]}}}for(var w=Se(ct(u,function(D){return Se(D,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(D){return D.length>0}),S=[],b=w.length-1,h=0;h0;)a*=10;var s=[jt(nB(n[0]/a)*a),jt(rB(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Ho.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=$e(r)/$e(this.base),uf(r,this._extent)},t.prototype.normalize=function(r){return r=$e(r)/$e(this.base),ff(r,this._extent)},t.prototype.scale=function(r){return r=cf(r,this._extent),fl(this.base,r)},t.type="log",t}(Kr),tx=ep.prototype;tx.getMinorTicks=Ho.getMinorTicks;tx.getLabel=Ho.getLabel;function cl(e,t){return eB(e,zr(t))}Kr.registerClass(ep);var iB=ep,aB=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 v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[sB[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=oB[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),oB={min:"_determinedMin",max:"_determinedMax"},sB={min:"_dataMin",max:"_dataMax"};function lB(e,t,r){var n=e.rawExtentInfo;return n||(n=new aB(e,t,r),e.rawExtentInfo=n,n)}function hl(e,t){return t==null?null:ql(t)?NaN:e.parse(t)}function ex(e,t){var r=e.type,n=lB(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=zN("bar",o),l=!1;if(I(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=$N(s),f=uB(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function uB(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=GN(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;I(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;I(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,v=f/c-f;return t+=v*(l/u),e-=v*(s/u),{min:e,max:t}}function a0(e,t){var r=t,n=ex(e,r),i=n.extent,a=r.get("splitNumber");e instanceof iB&&(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 fB(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new XS({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new tB({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Kr.getClass(t)||bs)}}function cB(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Ss(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):it(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):mt(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 hB(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof XS?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Ss(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f=0||(o0.push(e),mt(e)&&(e={install:e}),e.install(gB))}var fs=Qt();function mB(e){return e.type==="category"?_B(e):bB(e)}function yB(e,t){return e.type==="category"?wB(e,t):{ticks:ct(e.scale.getTicks(),function(r){return r.value})}}function _B(e){var t=e.getLabelModel(),r=nx(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function nx(e,t){var r=ix(e,"labels"),n=np(t),i=ax(r,n);if(i)return i;var a,o;return mt(n)?a=lx(e,n):(o=n==="auto"?SB(e):n,a=sx(e,o)),ox(r,n,{labels:a,labelCategoryInterval:o})}function wB(e,t){var r=ix(e,"ticks"),n=np(t),i=ax(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),mt(n))a=lx(e,n,!0);else if(n==="auto"){var s=nx(e,e.getLabelModel());o=s.labelCategoryInterval,a=ct(s.labels,function(l){return l.tickValue})}else o=n,a=sx(e,o,!0);return ox(r,n,{ticks:a,tickCategoryInterval:o})}function bB(e){var t=e.scale.getTicks(),r=Ss(e);return{labels:ct(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function ix(e,t){return fs(e)[t]||(fs(e)[t]=[])}function ax(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)),v=0,h=0;l<=a[1];l+=s){var d=0,p=0,g=gd(r({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),h=Math.max(h,p,7)}var m=v/f,y=h/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),w=fs(e.model),S=e.getExtent(),b=w.lastAutoInterval,x=w.lastTickCount;return b!=null&&x!=null&&Math.abs(b-_)<=1&&Math.abs(x-o)<=1&&b>_&&w.axisExtent0===S[0]&&w.axisExtent1===S[1]?_=b:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=S[0],w.axisExtent1=S[1]),_}function TB(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 sx(e,t,r){var n=Ss(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=rx(e),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);h&&d-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function lx(e,t,r){var n=e.scale,i=Ss(e),a=[];return I(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 s0=[0,1],CB=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 YI(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(),l0(n,i.count())),Rh(t,s0,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),l0(n,i.count()));var a=Rh(t,n,s0,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=yB(this,r),i=n.ticks,a=ct(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return MB(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=ct(n,function(a){return ct(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return mB(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 xB(this)},e}();function l0(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function MB(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[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;I(t,function(h){h.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];v(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(h,d){return h=jt(h),d=jt(d),c?h>d:h0){t=t/180*Math.PI,mn.fromArray(e[0]),Ut.fromArray(e[1]),re.fromArray(e[2]),pt.sub(yn,mn,Ut),pt.sub(Sr,re,Ut);var r=yn.len(),n=Sr.len();if(!(r<.001||n<.001)){yn.scale(1/r),Sr.scale(1/n);var i=yn.dot(Sr),a=Math.cos(t);if(a1&&pt.copy(ge,re),ge.toArray(e[1])}}}}function PB(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,mn.fromArray(e[0]),Ut.fromArray(e[1]),re.fromArray(e[2]),pt.sub(yn,Ut,mn),pt.sub(Sr,re,Ut);var n=yn.len(),i=Sr.len();if(!(n<.001||i<.001)){yn.scale(1/n),Sr.scale(1/i);var a=yn.dot(t),o=Math.cos(r);if(a=l)pt.copy(ge,re);else{ge.scaleAndAdd(Sr,s/Math.tan(Math.PI/2-f));var c=re.x!==Ut.x?(ge.x-Ut.x)/(re.x-Ut.x):(ge.y-Ut.y)/(re.y-Ut.y);if(isNaN(c))return;c<0?pt.copy(ge,Ut):c>1&&pt.copy(ge,re)}ge.toArray(e[1])}}}}function u0(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function IB(e,t){var r=t.smooth,n=t.points;if(!!n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=mh(n[0],n[1]),a=mh(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Cf([],n[1],n[0],o/i),l=Cf([],n[1],n[2],o/a),u=Cf([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&S(-f/o,0,o);var p=e[0],g=e[o-1],m,y;_(),m<0&&b(-m,.8),y<0&&b(y,.8),_(),w(m,y,1),w(y,m,-1),_(),m<0&&x(-m),y<0&&x(y);function _(){m=p.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function w(T,C,D){if(T<0){var P=Math.min(C,-T);if(P>0){S(P*D,0,o);var A=P+T;A<0&&b(-A*D,1)}else b(-T*D,1)}}function S(T,C,D){T!==0&&(u=!0);for(var P=C;P0)for(var A=0;A0;A--){var N=D[A-1]*z;S(-N,A,o)}}}function x(T){var C=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),P=0;P0?S(D,0,P+1):S(-D,o-P-1,o),T-=D,T<=0)return}return u}function kB(e,t,r,n){return OB(e,"y","height",t,r,n)}function NB(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new Ot(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;in[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}(AB),jB=XB;function cv(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],v={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,d=u==="x"?[c[2]-h,c[3]+h]:[c[0]-h,c[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[v[l]]:c[0],u==="x"?d[v[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Zo(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 v0(e){return e.get("coordinateSystem")==="cartesian2d"}function d0(e){var t={xAxisModel:null,yAxisModel:null};return I(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,ur).models[0];t[n]=a}),t}var Ic=Math.log;function KB(e,t,r){var n=bs.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=ex(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(e.type==="log"){var v=Ic(e.base);u=[Ic(u[0])/v,Ic(u[1])/v]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(e);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var d=n.getInterval.call(e),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Pc(d),p=u[1]-d*o;else{var m=e.getTicks().length-1;m>o&&(d=Pc(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=jt(g-y),p<0&&u[0]>=0?(p=0,g=jt(y)):g>0&&u[1]<=0&&(g=0,p=-jt(y))}var _=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+d*_,g+d*w),n.setInterval.call(e,d),(_||w)&&n.setNiceExtent.call(e,p+d,g-d)}var ZB=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fv,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 v=+l[c],h=o[v],d=h.model,p=h.scale;lv(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(a0(p,d),lv(p)&&(s=h))}f.length&&(s||(s=f.pop(),a0(s.scale,s.model)),I(f,function(g){KB(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};I(n.x,function(o){p0(n,"y",o,a)}),I(n.y,function(o){p0(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=Ma(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(I(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=hB(u);if(f){var c=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),I(this._coordsList,function(u){u.calcAffineTransform()});function l(){I(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(c[v],c[1-v]),QB(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]}st(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):eu(i-_n)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<_n?a=n>0?"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}(),m0={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];o&&(tr(s,s,o),tr(l,l,o));var u=Y({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new xi({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",r.add(f);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);it(c)&&(c=[c,c]),(it(v)||zt(v))&&(v=[v,v]);var h=dS(t.get(["axisLine","symbolOffset"])||0,v),d=v[0],p=v[1];I([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,m){if(c[m]!=="none"&&c[m]!=null){var y=Ia(c[m],-d/2,-p/2,d,p,u.stroke,!0),_=g.r+g.offset;y.attr({rotation:g.rotate,x:s[0]+_*Math.cos(e.rotation),y:s[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),r.add(y)}})}}},axisTickLabel:function(e,t,r,n){var i=rF(r,n,t,e),a=iF(r,n,t,e);if(eF(t,a,i),nF(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=RB(ct(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));NB(o)}},axisName:function(e,t,r,n){var i=Zo(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,_0(a)?e.labelOffset+o*l:0],v,h=t.get("nameRotate");h!=null&&(h=h*_n/180);var d;_0(a)?v=yi.innerTextLayout(e.rotation,h!=null?h:e.rotation,o):(v=tF(e.rotation,a,h||0,u),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Zo(e.nameTruncateMaxWidth,g.maxWidth,d),_=new he({x:c[0],y:c[1],rotation:v.rotation,silent:yi.isLabelSilent(t),style:kn(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Rd({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var w=yi.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Nt(_).eventData=w}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function tF(e,t,r,n){var i=cw(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return eu(i-_n/2)?(o=l?"bottom":"top",a="center"):eu(i-_n*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<_n*1.5&&i>_n/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function eF(e,t,r){if(!rx(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],v=r[r.length-2];n===!1?(Ve(a),Ve(u)):y0(a,o)&&(n?(Ve(o),Ve(f)):(Ve(a),Ve(u))),i===!1?(Ve(s),Ve(c)):y0(l,s)&&(i?(Ve(l),Ve(v)):(Ve(s),Ve(c)))}}function Ve(e){e&&(e.ignore=!0)}function y0(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=hd([]);return vd(i,i,-e.rotation),r.applyTransform(pa([],i,e.getLocalTransform())),n.applyTransform(pa([],i,t.getLocalTransform())),r.intersect(n)}}function _0(e){return e==="middle"||e==="center"}function cx(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function fF(e){var t=ap(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=hv(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]),os)return!0;if(o){var l=ap(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=ci(t).pointerEl=new L2[a.type](S0(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=ci(t).labelEl=new he(S0(r.label));t.add(a),T0(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=ci(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=ci(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),T0(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=Ld(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){V1(u.event)},onmousedown:Rc(this._onHandleDragMove,this,0,0),drift:Rc(this._onHandleDragMove,this),ondragend:Rc(this._onHandleDragEnd,this)}),n.add(i)),C0(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");et(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,oS(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){x0(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Oc(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(Oc(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Oc(i)),ci(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),Jh(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 x0(e,t,r,n){gx(ci(r).lastProp,n)||(ci(r).lastProp=n,t?Dr(r,n,e):(r.stopAnimation(),r.attr(n)))}function gx(e,t){if(st(e)&&st(t)){var r=!0;return I(t,function(n,i){r=r&&gx(e[i],n)}),!!r}else return e===t}function T0(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Oc(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function C0(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)})}var SF=bF;function xF(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 TF(e,t,r,n,i){var a=r.get("value"),o=mx(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=rf(s.get("padding")||0),u=s.getFont(),f=gd(o,u),c=i.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),CF(c,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:kn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function CF(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 mx(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:[]};I(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),it(o)?a=o.replace("{value}",a):mt(o)&&(a=o(s))}return a}function yx(e,t,r){var n=Qo();return vd(n,n,r.rotation),Lh(n,n,r.position),Ed([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function MF(e,t,r,n,i,a){var o=hx.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),TF(t,n,i,a,{position:yx(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function AF(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function DF(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){J(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=M0(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=xF(a),h=IF[u](s,c,f);h.style=v,r.graphicKey=h.type,r.pointer=h}var d=cv(l.model,i);MF(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=cv(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=yx(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=M0(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 v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(SF);function M0(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var IF={line:function(e,t,r){var n=AF([t,r[0]],[t,r[1]],A0(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:DF([t-n/2,r[0]],[n,i],A0(e))}}};function A0(e){return e.dim==="x"?0:1}var EF=PF,LF=function(e){J(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,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}($t),RF=LF,Hr=Qt(),OF=I;function _x(e,t,r){if(!wt.node){var n=t.getZr();Hr(n).records||(Hr(n).records={}),kF(n,t);var i=Hr(n).records[e]||(Hr(n).records[e]={});i.handler=r}}function kF(e,t){if(Hr(e).initialized)return;Hr(e).initialized=!0,r("click",Xt(D0,"click")),r("mousemove",Xt(D0,"mousemove")),r("globalout",BF);function r(n,i){e.on(n,function(a){var o=FF(t);OF(Hr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),NF(o.pendings,t)})}}function NF(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 D0(e,t,r,n){t.handler(e,r,n)}function FF(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 dv(e,t){if(!wt.node){var r=t.getZr(),n=(Hr(r).records||{})[e];n&&(Hr(r).records[e]=null)}}var zF=function(e){J(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";_x("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){dv("axisPointer",n)},t.prototype.dispose=function(r,n){dv("axisPointer",n)},t.type="axisPointer",t}(qr),HF=zF;function bx(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Si(a,e);if(o==null||o<0||et(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,v=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(v),p=[];p[h]=a.get(d,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(ct(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var P0=Qt();function $F(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Ft(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Nl(i)&&(i=bx({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Nl(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Nl(i),v={},h={},d={list:[],map:{}},p={showPointer:Xt(GF,h),showTooltip:Xt(UF,d)};I(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);I(s.coordSysAxesInfo[y],function(w,S){var b=w.axis,x=XF(u,w);if(!c&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&I0(w,T,p,!1,v)}})});var g={};return I(f,function(m,y){var _=m.linkGroup;_&&!h[y]&&I(_.axesInfo,function(w,S){var b=h[S];if(w!==m&&b){var x=b.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,E0(w),E0(m)))),g[m.key]=x}})}),I(g,function(m,y){I0(f[y],m,p,!0,v)}),WF(h,f,v),YF(d,i,e,o),qF(f,o,r),v}}function I0(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=VF(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 VF(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return I(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,e,r);v=h.dataIndices,c=h.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(!(c==null||!isFinite(c))){var d=e-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,i=c,a.length=0),I(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function GF(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function UF(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=cs(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 WF(e,t,r){var n=r.axesInfo=[];I(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 YF(e,t,r,n){if(Nl(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 qF(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=P0(n)[i]||{},o=P0(n)[i]={};I(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&I(c.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;o[h]=v})});var s=[],l=[];I(a,function(u,f){!o[f]&&l.push(u)}),I(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 XF(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 E0(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 Nl(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Sx(e){vx.registerAxisPointerClass("CartesianAxisPointer",EF),e.registerComponentModel(RF),e.registerComponentView(HF),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!et(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=aF(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$F)}function oH(e){Ci(wF),Ci(Sx)}function jF(e,t){var r=rf(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new ne({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){J(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}($t),ZF=KF;function xx(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Tx(e){if(!!wt.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,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function i5(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+=wt.transformSupported?","+op+n:",left"+n+",top"+n),t5+":"+i}function L0(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!wt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=wt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+op+":"+o+";":[["top",0],["left",0],[Cx,o]]}function a5(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),I(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function o5(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=rS(e,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),t&&i&&n.push(i5(i,r)),a&&n.push("background-color:"+a),I(["width","color","radius"],function(h){var d="border-"+h,p=Pb(d),g=e.get(p);g!=null&&n.push(d+":"+g+(h==="color"?"":"px"))}),n.push(a5(f)),c!=null&&n.push("padding:"+rf(c).join("px ")+"px"),n.join(";")+";"}function R0(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&LP(e,o,document.body,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 s5=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,wt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;R0(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Ue(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=JF(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),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=e5+o5(t,!this._firstShow,this._longHide)+L0(a[0],a[1],!0)+("border-color:"+Ti(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(it(a)&&n.get("trigger")==="item"&&!xx(n)&&(s=n5(n,i,a)),it(t))o.innerHTML=t+s;else if(t){o.innerHTML="",et(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;if(this._lastX!=null&&this._lastY!=null&&r.get("triggerOn")!=="none"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(r,n,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||wt.node||!i.getDom())){var o=N0(a,i);this._ticket="";var s=a.dataByCoordSys,l=g5(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=c5;f.x=a.x,f.y=a.y,f.update(),Nt(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=bx(a,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,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._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(N0(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=lo([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){this._lastDataByCoordSys=null;var s,l;_o(i,function(u){if(Nt(u).dataIndex!=null)return s=u,!0;if(Nt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Ft(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=lo([n.tooltipOption],a),l=this._renderMode,u=[],f=os("section",{blocks:[],noHeader:!0}),c=[],v=new mc;I(r,function(y){I(y.dataByAxis,function(_){var w=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!w||S==null)){var b=mx(S,w.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=os("section",{header:b,noHeader:!Tr(b),sortBlocks:!0,blocks:[]});f.blocks.push(x),I(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,P=C.getDataParams(D);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=rp(w.axis,{value:S}),P.axisValueLabel=b,P.marker=v.makeTooltipMarker("item",Ti(P.color),l);var A=vy(C.formatTooltip(D,!0,null)),L=A.frag;if(L){var O=lo([C],a).get("valueFormatter");x.blocks.push(O?Y({valueFormatter:O},L):L)}A.text&&c.push(A.text),u.push(P)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=yy(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` `:"
",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Nt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,p=lo([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new mc;m.marker=y.makeTooltipMarker("item",Ti(m.color),h);var _=vy(u.formatTooltip(f,!1,c)),w=p.get("order"),S=p.get("valueFormatter"),b=_.frag,x=b?yy(S?Y({valueFormatter:S},b):b,y,h,w,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,T,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=Nt(n),o=a.tooltipConfig,s=o.option||{};if(it(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,v=lo(u,this._tooltipModel,c?{position:c}:null),h=v.get("content"),d=Math.random()+"",p=new mc;this._showOrMove(v,function(){var g=xt(v.get("formatterParams")||{});this._showTooltipContent(v,h,g,d,r.offsetX,r.offsetY,r.position,n,p)}),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 v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=d.color;if(v)if(it(v)){var g=r.ecModel.get("useUTC"),m=et(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=v,y&&(h=Zu(m.axisValue,h,g)),h=Ib(h,i,!0)}else if(mt(v)){var _=Ft(function(w,S){w===this._ticket&&(c.setContent(S,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=v(i,a,_)}else h=v;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||et(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!et(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(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),mt(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),et(n))i=Vt(n[0],u),a=Vt(n[1],f);else if(st(n)){var p=n;p.width=c[0],p.height=c[1];var g=Ma(p,{width:u,height:f});i=g.x,a=g.y,v=null,h=null}else if(it(n)&&l){var m=p5(n,d,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=v5(i,a,o,u,f,v?null:20,h?null:20);i=m[0],a=m[1]}if(v&&(i-=B0(v)?c[0]/2:v==="right"?c[0]:0),h&&(a-=B0(h)?c[1]/2:h==="bottom"?c[1]:0),xx(r)){var m=d5(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&&I(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&I(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&I(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&I(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],w=a[y];_&&w&&w.data!==_.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){wt.node||!n.getDom()||(Jh(this,"_updatePosition"),this._tooltipContent.dispose(),dv("itemTooltip",n))},t.type="tooltip",t}(qr);function lo(e,t,r){var n=t.ecModel,i;r?(i=new ce(r,n,n),i=new ce(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof ce&&(o=o.get("tooltip",!0)),it(o)&&(o={formatter:o}),o&&(i=new ce(o,i,n)))}return i}function N0(e,t){return e.dispatchAction||Ft(t.dispatchAction,t)}function v5(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 d5(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 p5(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 B0(e){return e==="center"||e==="middle"}function g5(e,t,r){var n=bd(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ys(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=Nt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var m5=h5;function sH(e){Ci(Sx),e.registerComponentModel(ZF),e.registerComponentView(m5),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ce),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ce)}var y5=function(e){J(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}($t),_5=function(e){J(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 he({style:kn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new he({style:kn(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){jm(d,"_"+r.get("target"))}),p&&h.on("click",function(){jm(p,"_"+r.get("subtarget"))}),Nt(f).eventData=Nt(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ma(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+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var w={align:l,verticalAlign:u};f.setStyle(w),h.setStyle(w),m=a.getBoundingRect();var S=_.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var x=new ne({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(qr);function lH(e){e.registerComponentModel(y5),e.registerComponentView(_5)}function Ax(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Da(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 b5=function(e){J(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=Ia(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=S5,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(){iu(this.childAt(0))},t.prototype.downplay=function(){au(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){var n=this.childAt(0);n.draggable=r,n.cursor=r?"move":n.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 v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(h):Dr(v,h,s,n),ub(v)}if(this._updateCommon(r,n,l,i,a),u){var v=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,An(v,h,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,v,h,d,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,v=a.focus,h=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=ju(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var S=dS(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var b=r.getItemVisual(n,"style"),x=b.fill;if(s instanceof Ii){var T=s.style;s.useStyle(Y({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(Y({},b)):s.useStyle(b),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var P=o&&o.useNameLabel;Xu(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:A,inheritColor:x,defaultOpacity:b.opacity});function A(z){return P?r.getName(z):Ax(r,z)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");if(L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f,g){var O=Math.max(1.1,3/this._sizeY);L.scaleX=this._sizeX*O,L.scaleY=this._sizeY*O}this.setSymbolScale(1),ou(this,v,h,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Nt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&lu(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();lu(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return dk(r.getItemVisual(n,"symbolSize"))},t}(ye);function S5(e,t){this.parent.drift(e,t)}var sp=b5;function kc(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 F0(e){return e!=null&&!st(e)&&(e={isIgnore:e}),e||{}}function z0(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:ju(t),cursorStyle:t.get("cursor")}}var x5=function(){function e(t){this.group=new ye,this._SymbolCtor=t||sp}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=F0(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=z0(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var v=f(c);if(kc(t,v,c,r)){var h=new o(t,c,l,u);h.setPosition(v),t.setItemGraphicEl(c,h),n.add(h)}}).update(function(c,v){var h=a.getItemGraphicEl(v),d=f(c);if(!kc(t,d,c,r)){n.remove(h);return}var p=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(t,c,l,u),h.setPosition(d);else{h.updateData(t,c,l,u);var m={x:d[0],y:d[1]};s?h.attr(m):Dr(h,m,i)}n.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var v=a.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},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=z0(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=F0(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a=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}($t),pv=A5,Qi=Xt,gv=I,vl=ye,D5=function(e){J(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 vl),this.group.add(this._selectorGroup=new vl),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()},v=r.get("padding"),h=Ma(f,c,v),d=this.layoutInner(r,o,h,a,l,u),p=Ma(Pt({width:d.width,height:d.height},f),c,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jF(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=_t(),c=n.get("selectedMode"),v=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&v.push(h.id)}),gv(n.getData(),function(h,d){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new vl;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),S=y.getVisual("style"),b=this._createItem(m,p,d,h,n,r,_,S,w,c);b.on("click",Qi(H0,p,null,a,v)).on("mouseover",Qi(mv,m.name,null,a,v)).on("mouseout",Qi(yv,m.name,null,a,v)),f.set(p,!0)}else i.eachRawSeries(function(x){if(!f.get(p)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(p))return;var C=T.indexOfName(p),D=T.getItemVisual(C,"style"),P=T.getItemVisual(C,"legendIcon"),A=$r(D.fill);A&&A[3]===0&&(A[3]=.2,D=Y(Y({},D),{fill:zu(A,"rgba")}));var L=this._createItem(x,p,d,h,n,r,{},D,P,c);L.on("click",Qi(H0,null,p,a,v)).on("mouseover",Qi(mv,null,p,a,v)).on("mouseout",Qi(yv,null,p,a,v)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();gv(r,function(u){var f=u.type,c=new he({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Xu(c,{normal:v,emphasis:h},{defaultText:u.title}),$h(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c){var v=r.visualDrawType,h=o.get("itemWidth"),d=o.get("itemHeight"),p=o.isSelected(n),g=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),y=a.get("icon");f=y||f||"roundRect";var _=P5(f,a,l,u,v,p),w=new vl,S=a.getModel("textStyle");if(mt(r.getLegendIcon)&&(!y||y==="inherit"))w.add(r.getLegendIcon({itemWidth:h,itemHeight:d,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));else{var b=y==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;w.add(I5({itemWidth:h,itemHeight:d,icon:f,iconRotate:b,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}var x=s==="left"?h+5:-5,T=s,C=o.get("formatter"),D=n;it(C)&&C?D=C.replace("{name}",n!=null?n:""):mt(C)&&(D=C(n));var P=a.get("inactiveColor");w.add(new he({style:kn(S,{text:D,x,y:d/2,fill:p?S.getTextColor():P,align:T,verticalAlign:"middle"})}));var A=new ne({shape:w.getBoundingRect(),invisible:!0}),L=a.getModel("tooltip");return L.get("show")&&Rd({el:A,componentModel:o,itemName:n,itemTooltipOption:L.option}),w.add(A),w.eachChild(function(O){O.silent=!0}),A.silent=!c,this.getContentGroup().add(w),$h(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();No(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){No("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[m]/2-v[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[m]=Math.max(f[m],v[m]),_[y]=Math.min(0,v[y]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(qr);function P5(e,t,r,n,i,a){function o(d,p){d.lineWidth==="auto"&&(d.lineWidth=p.lineWidth>0?2:0),gv(d,function(g,m){d[m]==="inherit"&&(d[m]=p[m])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=e.lastIndexOf("empty",0)===0?"fill":"stroke";l.decal=n.decal,l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:r).opacity),o(l,n);var f=t.getModel("lineStyle"),c=f.getLineStyle();if(o(c,r),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),h=l[u];l.lineWidth=v==="auto"?n.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),c.stroke=f.get("inactiveColor"),c.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:c}}function I5(e){var t=e.icon||"roundRect",r=Ia(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 H0(e,t,r,n){yv(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e!=null?e:t}),mv(e,t,r,n)}function Dx(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=Mt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var w=r.get("pageButtonPosition",!0);w==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),v.setPosition(y);var S={x:0,y:0};if(S[o]=p?i[o]:h[o],S[s]=Math.max(h[s],d[s]),S[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],p){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=S[s],c.setClipPath(new ne({shape:b})),c.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Dr(f,{x:x.contentPosition[0],y:x.contentPosition[1]},p?r:null),this._updatePageInfoView(r,x),S},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;I(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"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",it(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=Nc[o],l=Bc[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=w(c);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=v;++g)_=w(f[g]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=w(f[g]),(!_||!S(y,_.s))&&m.i=x&&b.s<=x+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!=null?n:a},t.type="legend.scroll",t}(Px),N5=k5;function B5(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 F5(e){Ci(Ix),e.registerComponentModel(O5),e.registerComponentView(N5),B5(e)}function uH(e){Ci(Ix),Ci(F5)}var z5=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return PN(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new ye,i=Ia("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Ia(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Pa),H5=z5;function Ex(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=$5(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=ct(e.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return us(t,c[0])&&(v=!0,c[0]=h),us(t,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function $5(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Lx(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 V5(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 G5(e,t,r,n,i,a,o,s){for(var l=V5(e,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=Ex(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=i||p<0)break;if(_i(m,y)){if(l){p+=a;continue}break}if(p===r)e[a>0?"moveTo":"lineTo"](m,y),c=m,v=y;else{var _=m-u,w=y-f;if(_*_+w*w<.5){p+=a;continue}if(o>0){for(var S=p+a,b=t[S*2],x=t[S*2+1];b===m&&x===y&&g=n||_i(b,x))h=m,d=y;else{D=b-u,P=x-f;var O=m-u,z=b-m,N=y-f,tt=x-y,V=void 0,K=void 0;if(s==="x"){V=Math.abs(O),K=Math.abs(z);var lt=D>0?1:-1;h=m-lt*V*o,d=y,A=m+lt*K*o,L=y}else if(s==="y"){V=Math.abs(N),K=Math.abs(tt);var yt=P>0?1:-1;h=m,d=y-yt*V*o,A=m,L=y+yt*K*o}else V=Math.sqrt(O*O+N*N),K=Math.sqrt(z*z+tt*tt),C=K/(K+V),h=m-D*o*(1-C),d=y-P*o*(1-C),A=m+D*o*C,L=y+P*o*C,A=ln(A,un(b,m)),L=ln(L,un(x,y)),A=un(A,ln(b,m)),L=un(L,ln(x,y)),D=A-m,P=L-y,h=m-D*V/K,d=y-P*V/K,h=ln(h,un(u,m)),d=ln(d,un(f,y)),h=un(h,ln(u,m)),d=un(d,ln(f,y)),D=m-h,P=y-d,A=m+D*K/V,L=y+P*K/V}e.bezierCurveTo(c,v,h,d,m,y),c=A,v=L}else e.lineTo(m,y)}u=m,f=y,p+=a}return g}var Rx=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),U5=function(e){J(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 Rx},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&_i(i[o*2-2],i[o*2-1]);o--);for(;a=0){var w=u?(d-l)*_+l:(h-s)*_+s;return u?[r,w]:[w,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],p=a[c++],g=a[c++],m=a[c++],y=a[c++];var S=u?jl(s,h,p,m,r,f):jl(l,d,g,y,r,f);if(S>0)for(var b=0;b=0){var w=u?Kt(l,d,g,y,x):Kt(s,h,p,m,x);return u?[r,w]:[w,r]}}s=m,l=y;break}}},t}(kt),W5=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Rx),Y5=function(e){J(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 W5},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&&_i(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 Z5(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=ct(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=K5(u,i==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,m=g-p;if(m<.001)return"transparent";I(v,function(_){_.offset=(_.coord-p)/m}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var y=new sb(0,0,0,0,v,!0);return y[i]=p,y[i+"2"]=g,y}}}function Q5(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(!!a&&!(i&&J5(a,t))){var o=t.mapDimension(a.dim),s={};return I(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function J5(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 tz(e,t){return isNaN(e)||isNaN(t)}function ez(e){for(var t=e.length/2;t>0&&tz(e[t*2-2],e[t*2-1]);t--);return t-1}function q0(e,t){return[e[t*2],e[t*2+1]]}function rz(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 Ox(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var lt=p.getState("emphasis").style;lt.lineWidth=+p.style.lineWidth+1}Nt(p).seriesIndex=r.seriesIndex,ou(p,tt,V,K);var yt=Y0(r.get("smooth")),ut=r.get("smoothMonotone");if(p.setShape({smooth:yt,smoothMonotone:ut,connectNulls:T}),g){var ht=l.getCalculationInfo("stackedOnSeries"),bt=0;g.useStyle(Pt(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ht&&(bt=Y0(ht.get("smooth"))),g.setShape({smooth:yt,stackedOnSmooth:bt,smoothMonotone:ut,connectNulls:T}),Vh(g,r,"areaStyle"),Nt(g).seriesIndex=r.seriesIndex,ou(g,tt,V,K)}var k=function(G){a._changePolyState(G)};l.eachItemGraphicEl(function(G){G&&(G.onHoverStateChange=k)}),this._polyline.onHoverStateChange=k,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=P,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){Nt(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=Si(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 v=r.get("zlevel"),h=r.get("z");u=new sp(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Gr.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Si(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 Gr.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Tm(this._polyline,r),n&&Tm(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new U5({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 Y5({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");mt(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=mt(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var w=i,S=n.pointToCoord(g);a?(m=w.startAngle,y=w.endAngle,_=-S[1]/180*Math.PI):(m=w.r0,y=w.r,_=S[0])}else{var b=i;a?(m=b.x,y=b.x+b.width,_=h.x):(m=b.y+b.height,y=b.y,_=h.y)}var x=y===m?0:(_-m)/(y-m);l&&(x=1-x);var T=mt(c)?c(d):f*x+v,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Ox(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 he({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=ez(l);f>=0&&(Xu(s,ju(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?w5(o,h):Ax(o,c)},enableTextSetter:!0},nz(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"),v=i.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,w=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?p:0)*(y?-1:1),b=(m?0:-p)*(y?-1:1),x=m?"x":"y",T=rz(c,w,x),C=T.range,D=C[1]-C[0],P=void 0;if(D>=1){if(D>1&&!h){var A=q0(c,C[0]);u.attr({x:A[0]+S,y:A[1]+b}),o&&(P=v.getRawValue(C[0]))}else{var A=f.getPointOn(w,x);A&&u.attr({x:A[0]+S,y:A[1]+b});var L=v.getRawValue(C[0]),O=v.getRawValue(C[1]);o&&(P=hE(i,d,L,O,T.t))}a.lastFrameIndex=C[0]}else{var z=r===1||a.lastFrameIndex>0?C[0]:0,A=q0(c,z);o&&(P=v.getRawValue(z)),u.attr({x:A[0]+S,y:A[1]+b})}o&&pb(u).setLabelText(P)}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=G5(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(h=fn(v.current,i,o,l),d=fn(v.stackedOnCurrent,i,o,l),p=fn(v.next,i,o,l),g=fn(v.stackedOnNext,i,o,l)),W0(h,p)>3e3||f&&W0(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var m={shape:{points:p}};v.current!==h&&(m.shape.__points=v.next),u.stopAnimation(),Dr(u,m,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Dr(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,w=0;w<_.length;w++){var S=_[w].cmd;if(S==="="){var b=r.getItemGraphicEl(_[w].idx1);b&&y.push({el:b,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;Tt&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var d=void 0;it(a)?d=sz[a]:mt(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,d,lz))}}}}}function fH(e){e.registerChartView(az),e.registerSeriesModel(H5),e.registerLayout(oz("line",!0)),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,uz("line"))}var dl=Math.PI*2,X0=Math.PI/180;function kx(e,t){return Ma(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Nx(e,t){var r=kx(e,t),n=e.get("center"),i=e.get("radius");et(i)||(i=[0,i]),et(n)||(n=[n,n]);var a=Vt(r.width,t.getWidth()),o=Vt(r.height,t.getHeight()),s=Math.min(a,o),l=Vt(n[0],a)+r.x,u=Vt(n[1],o)+r.y,f=Vt(i[0],s/2),c=Vt(i[1],s/2);return{cx:l,cy:u,r0:f,r:c}}function fz(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=kx(n,r),s=Nx(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,v=-n.get("startAngle")*X0,h=n.get("minAngle")*X0,d=0;i.each(a,function(D){!isNaN(D)&&d++});var p=i.getSum(a),g=Math.PI/(p||d)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),w=i.getDataExtent(a);w[0]=0;var S=dl,b=0,x=v,T=m?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(D,P){var A;if(isNaN(D)){i.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:c,r:y?NaN:f});return}y!=="area"?A=p===0&&_?g:D*g:A=dl/d,Ar?m:g,S=Math.abs(_.label.y-r);if(S>=w.maxY){var b=_.label.x-t-_.len2*i,x=n+_.len,T=Math.abs(b)e.unconstrainedWidth?null:h:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function zc(e){return e.position==="center"}function dz(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*hz,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var x in b.states)if(b.states[x].ignore===!1)return!0;return!1}t.each(function(b){var x=t.getItemGraphicEl(b),T=x.shape,C=x.getTextContent(),D=x.getTextGuideLine(),P=t.getItemModel(b),A=P.getModel("label"),L=A.get("position")||P.get(["emphasis","label","position"]),O=A.get("distanceToLabelLine"),z=A.get("alignTo"),N=Vt(A.get("edgeDistance"),u),tt=A.get("bleedMargin"),V=P.getModel("labelLine"),K=V.get("length");K=Vt(K,u);var lt=V.get("length2");if(lt=Vt(lt,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":ut>0?"left":"right"}var R=Math.PI,B=0,F=A.get("rotate");if(zt(F))B=F*(R/180);else if(L==="center")B=0;else if(F==="radial"||F===!0){var q=ut<0?-yt+R:-yt;B=q}else if(F==="tangential"&&L!=="outside"&&L!=="outer"){var Z=Math.atan2(ut,ht);Z<0&&(Z=R*2+Z);var U=ht>0;U&&(Z=R+Z),B=Z-R}if(a=!!B,C.x=bt,C.y=k,C.rotation=B,C.setStyle({verticalAlign:"middle"}),Q){C.setStyle({align:$});var nt=C.states.select;nt&&(nt.x+=C.x,nt.y+=C.y)}else{var W=C.getBoundingRect().clone();W.applyTransform(C.getComputedTransform());var H=(C.style.margin||0)+2.1;W.y-=H/2,W.height+=H,r.push({label:C,labelLine:D,position:L,len:K,len2:lt,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new pt(ut,ht),linePoints:G,textAlign:$,labelDistance:O,labelAlignTo:z,edgeDistance:N,bleedMargin:tt,rect:W,unconstrainedWidth:W.width,labelStyleWidth:C.style.width})}x.setTextConfig({inside:Q})}}),!a&&e.get("avoidLabelOverlap")&&vz(r,n,i,l,u,v,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=a.r0}},t.type="pie",t}(Gr),mz=gz;function yz(e,t,r){t=et(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=US(n,t).dimensions,a=new GS(i,e);return a.initData(n,r),a}var _z=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),wz=_z,bz=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new wz(Ft(this.getData,this),Ft(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return yz(this,{coordDimensions:["value"],encodeDefaulter:Xt(vR,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=[];return n.each(n.mapDimension("value"),function(o){a.push(o)}),i.percent=qI(a,r,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},t.prototype._defaultLabelLine=function(r){Oh(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Pa),Sz=bz;function xz(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(zt(o)&&!isNaN(o)&&o<0)})}}}function cH(e){e.registerChartView(mz),e.registerSeriesModel(Sz),tk("pie",e.registerAction),e.registerLayout(Xt(fz,"pie")),e.registerProcessor(cz("pie")),e.registerProcessor(xz("pie"))}function K0(e,t,r){var n=Pi.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var Tz=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||tu,typeof r=="string"?o=K0(r,n,i):st(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(H1(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=K0("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Ot(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new Ot(0,0,0,0);_.copy(y),o.push(_)}else{for(var w=!1,S=1/0,b=0,x=0;x=s)}}for(var c=this.__startIndex;c15)break}}O.prevElClipPaths&&m.restore()};if(y)if(y.length===0)T=g.__endIndex;else for(var D=h.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=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?gl:0),this._needsManuallyCompositing),f.__builtin__||ld("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&Le&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,v){!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,I(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Dt(n[t],r,!0):n[t]=r;for(var i=0;i=0;)g++;if(d.substr(0,2)==="::"&&g--,d.substr(-2,2)==="::"&&g--,g>p)return null;for(w=p-g,_=":";w--;)_+="0:";return d=d.replace("::",_),d[0]===":"&&(d=d.slice(1)),d[d.length-1]===":"&&(d=d.slice(0,-1)),p=function(){const S=d.split(":"),b=[];for(let x=0;x0;){if(_=g-m,_<0&&(_=0),d[y]>>_!==p[y]>>_)return!1;m-=g,y+=1}return!0}function c(d){if(a.test(d))return parseInt(d,16);if(d[0]==="0"&&!isNaN(parseInt(d[1],10))){if(i.test(d))return parseInt(d,8);throw new Error(`ipaddr: cannot parse ${d} as octal`)}return parseInt(d,10)}function v(d,p){for(;d.length=0;y-=1)if(_=this.octets[y],_ in m){if(w=m[_],g&&w!==0)return null;w!==8&&(g=!0),p+=w}else return null;return 32-p},d.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){return this.octets.slice(0)},d.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},d.prototype.toNormalizedString=function(){return this.toString()},d.prototype.toString=function(){return this.octets.join(".")},d}(),h.IPv4.broadcastAddressFromCIDR=function(d){try{const p=this.parseCIDR(d),g=p[0].toByteArray(),m=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[];let _=0;for(;_<4;)y.push(parseInt(g[_],10)|parseInt(m[_],10)^255),_++;return new this(y)}catch(p){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(d){return this.parser(d)!==null},h.IPv4.isValid=function(d){try{return new this(this.parser(d)),!0}catch(p){return!1}},h.IPv4.isValidFourPartDecimal=function(d){return!!(h.IPv4.isValid(d)&&d.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(d){let p,g,m,y,_;try{for(p=this.parseCIDR(d),m=p[0].toByteArray(),_=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[],g=0;g<4;)y.push(parseInt(m[g],10)&parseInt(_[g],10)),g++;return new this(y)}catch(w){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(d){const p=this.parser(d);if(p===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(p)},h.IPv4.parseCIDR=function(d){let p;if(p=d.match(/^(.+)\/(\d+)$/)){const g=parseInt(p[2]);if(g>=0&&g<=32){const m=[this.parse(p[1]),g];return Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(d){let p,g,m;if(p=d.match(n.fourOctet))return function(){const y=p.slice(1,6),_=[];for(let w=0;w4294967295||m<0)throw new Error("ipaddr: address outside defined range");return function(){const y=[];let _;for(_=0;_<=24;_+=8)y.push(m>>_&255);return y}().reverse()}else return(p=d.match(n.twoOctet))?function(){const y=p.slice(1,4),_=[];if(m=c(y[1]),m>16777215||m<0)throw new Error("ipaddr: address outside defined range");return _.push(c(y[0])),_.push(m>>16&255),_.push(m>>8&255),_.push(m&255),_}():(p=d.match(n.threeOctet))?function(){const y=p.slice(1,5),_=[];if(m=c(y[2]),m>65535||m<0)throw new Error("ipaddr: address outside defined range");return _.push(c(y[0])),_.push(c(y[1])),_.push(m>>8&255),_.push(m&255),_}():null},h.IPv4.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>32)throw new Error("ipaddr: invalid IPv4 prefix length");const p=[0,0,0,0];let g=0;const m=Math.floor(d/8);for(;g=0;w-=1)if(y=this.parts[w],y in m){if(_=m[y],g&&_!==0)return null;_!==16&&(g=!0),p+=_}else return null;return 128-p},d.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){let p;const g=[],m=this.parts;for(let y=0;y>8),g.push(p&255);return g},d.prototype.toFixedLengthString=function(){const p=function(){const m=[];for(let y=0;y>8,g&255,m>>8,m&255])},d.prototype.toNormalizedString=function(){const p=function(){const m=[];for(let y=0;yy&&(m=_.index,y=_[0].length);return y<0?g:`${g.substring(0,m)}::${g.substring(m+y)}`},d.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},d}(),h.IPv6.broadcastAddressFromCIDR=function(d){try{const p=this.parseCIDR(d),g=p[0].toByteArray(),m=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[];let _=0;for(;_<16;)y.push(parseInt(g[_],10)|parseInt(m[_],10)^255),_++;return new this(y)}catch(p){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${p})`)}},h.IPv6.isIPv6=function(d){return this.parser(d)!==null},h.IPv6.isValid=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{const p=this.parser(d);return new this(p.parts,p.zoneId),!0}catch(p){return!1}},h.IPv6.networkAddressFromCIDR=function(d){let p,g,m,y,_;try{for(p=this.parseCIDR(d),m=p[0].toByteArray(),_=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[],g=0;g<16;)y.push(parseInt(m[g],10)&parseInt(_[g],10)),g++;return new this(y)}catch(w){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${w})`)}},h.IPv6.parse=function(d){const p=this.parser(d);if(p.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(p.parts,p.zoneId)},h.IPv6.parseCIDR=function(d){let p,g,m;if((g=d.match(/^(.+)\/(\d+)$/))&&(p=parseInt(g[2]),p>=0&&p<=128))return m=[this.parse(g[1]),p],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(d){let p,g,m,y,_,w;if(m=d.match(l.deprecatedTransitional))return this.parser(`::ffff:${m[1]}`);if(l.native.test(d))return u(d,8);if((m=d.match(l.transitional))&&(w=m[6]||"",p=u(m[1].slice(0,-1)+w,6),p.parts)){for(_=[parseInt(m[2]),parseInt(m[3]),parseInt(m[4]),parseInt(m[5])],g=0;g<_.length;g++)if(y=_[g],!(0<=y&&y<=255))return null;return p.parts.push(_[0]<<8|_[1]),p.parts.push(_[2]<<8|_[3]),{parts:p.parts,zoneId:p.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>128)throw new Error("ipaddr: invalid IPv6 prefix length");const p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let g=0;const m=Math.floor(d/8);for(;g