function bh(t,e){const r=Object.create(null),n=t.split(",");for(let i=0;i!!r[i.toLowerCase()]:i=>!!r[i]}const rb="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",nb=bh(rb);function Om(t){return!!t||t===""}function xh(t){if(ot(t)){const e={};for(let r=0;r{if(r){const n=r.split(ab);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ch(t){let e="";if(qt(t))e=t;else if(ot(t))for(let r=0;roi(r,e))}const KB=t=>qt(t)?t:t==null?"":ot(t)||Wt(t)&&(t.toString===Bm||!ht(t.toString))?JSON.stringify(t,km,2):String(t),km=(t,e)=>e&&e.__v_isRef?km(t,e.value):Xi(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:fa(e)?{[`Set(${e.size})`]:[...e.values()]}:Wt(e)&&!ot(e)&&!Nm(e)?String(e):e,Rt={},Yi=[],rr=()=>{},lb=()=>!1,ub=/^on[^a-z]/,$l=t=>ub.test(t),Mh=t=>t.startsWith("onUpdate:"),Jt=Object.assign,Dh=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},fb=Object.prototype.hasOwnProperty,bt=(t,e)=>fb.call(t,e),ot=Array.isArray,Xi=t=>Gl(t)==="[object Map]",fa=t=>Gl(t)==="[object Set]",ud=t=>t instanceof Date,ht=t=>typeof t=="function",qt=t=>typeof t=="string",Ah=t=>typeof t=="symbol",Wt=t=>t!==null&&typeof t=="object",Ph=t=>Wt(t)&&ht(t.then)&&ht(t.catch),Bm=Object.prototype.toString,Gl=t=>Bm.call(t),cb=t=>Gl(t).slice(8,-1),Nm=t=>Gl(t)==="[object Object]",Ih=t=>qt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Us=bh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wl=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},hb=/-(\w)/g,gr=Wl(t=>t.replace(hb,(e,r)=>r?r.toUpperCase():"")),vb=/\B([A-Z])/g,ca=Wl(t=>t.replace(vb,"-$1").toLowerCase()),Ul=Wl(t=>t.charAt(0).toUpperCase()+t.slice(1)),Mu=Wl(t=>t?`on${Ul(t)}`:""),So=(t,e)=>!Object.is(t,e),Ys=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},ta=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let fd;const db=()=>fd||(fd=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let xr;class Fm{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&xr&&(this.parent=xr,this.index=(xr.scopes||(xr.scopes=[])).push(this)-1)}run(e){if(this.active)try{return xr=this,e()}finally{xr=this.parent}}on(){xr=this}off(){xr=this.parent}stop(e){if(this.active){let r,n;for(r=0,n=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},Hm=t=>(t.w&yn)>0,Vm=t=>(t.n&yn)>0,gb=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.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)),e){case"add":ot(t)?Ih(r)&&s.push(o.get("length")):(s.push(o.get(ei)),Xi(t)&&s.push(o.get(Qf)));break;case"delete":ot(t)||(s.push(o.get(ei)),Xi(t)&&s.push(o.get(Qf)));break;case"set":Xi(t)&&s.push(o.get(ei));break}if(s.length===1)s[0]&&Jf(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);Jf(Eh(l))}}function Jf(t,e){for(const r of ot(t)?t:[...t])(r!==hr||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const mb=bh("__proto__,__v_isRef,__isVue"),Wm=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(Ah)),_b=Rh(),wb=Rh(!1,!0),Sb=Rh(!0),hd=bb();function bb(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=xt(this);for(let a=0,o=this.length;a{t[e]=function(...r){ha();const n=xt(this)[e].apply(this,r);return va(),n}}),t}function Rh(t=!1,e=!1){return function(n,i,a){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&a===(t?e?Fb:Km:e?qm:Xm).get(n))return n;const o=ot(n);if(!t&&o&&bt(hd,i))return Reflect.get(hd,i,a);const s=Reflect.get(n,i,a);return(Ah(i)?Wm.has(i):mb(i))||(t||Ae(n,"get",i),e)?s:Gt(s)?!o||!Ih(i)?s.value:s:Wt(s)?t?Zm(s):da(s):s}}const xb=Um(),Cb=Um(!0);function Um(t=!1){return function(r,n,i,a){let o=r[n];if(bo(o)&&Gt(o)&&!Gt(i))return!1;if(!t&&!bo(i)&&(jm(i)||(i=xt(i),o=xt(o)),!ot(r)&&Gt(o)&&!Gt(i)))return o.value=i,!0;const s=ot(r)&&Ih(n)?Number(n)t,Yl=t=>Reflect.getPrototypeOf(t);function rs(t,e,r=!1,n=!1){t=t.__v_raw;const i=xt(t),a=xt(e);e!==a&&!r&&Ae(i,"get",e),!r&&Ae(i,"get",a);const{has:o}=Yl(i),s=n?Oh:r?Nh:xo;if(o.call(i,e))return s(t.get(e));if(o.call(i,a))return s(t.get(a));t!==i&&t.get(e)}function ns(t,e=!1){const r=this.__v_raw,n=xt(r),i=xt(t);return t!==i&&!e&&Ae(n,"has",t),!e&&Ae(n,"has",i),t===i?r.has(t):r.has(t)||r.has(i)}function is(t,e=!1){return t=t.__v_raw,!e&&Ae(xt(t),"iterate",ei),Reflect.get(t,"size",t)}function vd(t){t=xt(t);const e=xt(this);return Yl(e).has.call(e,t)||(e.add(t),Rr(e,"add",t,t)),this}function dd(t,e){e=xt(e);const r=xt(this),{has:n,get:i}=Yl(r);let a=n.call(r,t);a||(t=xt(t),a=n.call(r,t));const o=i.call(r,t);return r.set(t,e),a?So(e,o)&&Rr(r,"set",t,e):Rr(r,"add",t,e),this}function pd(t){const e=xt(this),{has:r,get:n}=Yl(e);let i=r.call(e,t);i||(t=xt(t),i=r.call(e,t)),n&&n.call(e,t);const a=e.delete(t);return i&&Rr(e,"delete",t,void 0),a}function gd(){const t=xt(this),e=t.size!==0,r=t.clear();return e&&Rr(t,"clear",void 0,void 0),r}function as(t,e){return function(n,i){const a=this,o=a.__v_raw,s=xt(o),l=e?Oh:t?Nh:xo;return!t&&Ae(s,"iterate",ei),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function os(t,e,r){return function(...n){const i=this.__v_raw,a=xt(i),o=Xi(a),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=i[t](...n),f=r?Oh:e?Nh:xo;return!e&&Ae(a,"iterate",l?Qf:ei),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function Vr(t){return function(...e){return t==="delete"?!1:this}}function Ib(){const t={get(a){return rs(this,a)},get size(){return is(this)},has:ns,add:vd,set:dd,delete:pd,clear:gd,forEach:as(!1,!1)},e={get(a){return rs(this,a,!1,!0)},get size(){return is(this)},has:ns,add:vd,set:dd,delete:pd,clear:gd,forEach:as(!1,!0)},r={get(a){return rs(this,a,!0)},get size(){return is(this,!0)},has(a){return ns.call(this,a,!0)},add:Vr("add"),set:Vr("set"),delete:Vr("delete"),clear:Vr("clear"),forEach:as(!0,!1)},n={get(a){return rs(this,a,!0,!0)},get size(){return is(this,!0)},has(a){return ns.call(this,a,!0)},add:Vr("add"),set:Vr("set"),delete:Vr("delete"),clear:Vr("clear"),forEach:as(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{t[a]=os(a,!1,!1),r[a]=os(a,!0,!1),e[a]=os(a,!1,!0),n[a]=os(a,!0,!0)}),[t,r,e,n]}const[Eb,Lb,Rb,Ob]=Ib();function kh(t,e){const r=e?t?Ob:Rb:t?Lb:Eb;return(n,i,a)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(bt(r,i)&&i in n?r:n,i,a)}const kb={get:kh(!1,!1)},Bb={get:kh(!1,!0)},Nb={get:kh(!0,!1)},Xm=new WeakMap,qm=new WeakMap,Km=new WeakMap,Fb=new WeakMap;function zb(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hb(t){return t.__v_skip||!Object.isExtensible(t)?0:zb(cb(t))}function da(t){return bo(t)?t:Bh(t,!1,Ym,kb,Xm)}function Vb(t){return Bh(t,!1,Pb,Bb,qm)}function Zm(t){return Bh(t,!0,Ab,Nb,Km)}function Bh(t,e,r,n,i){if(!Wt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=i.get(t);if(a)return a;const o=Hb(t);if(o===0)return t;const s=new Proxy(t,o===2?n:r);return i.set(t,s),s}function un(t){return bo(t)?un(t.__v_raw):!!(t&&t.__v_isReactive)}function bo(t){return!!(t&&t.__v_isReadonly)}function jm(t){return!!(t&&t.__v_isShallow)}function Qm(t){return un(t)||bo(t)}function xt(t){const e=t&&t.__v_raw;return e?xt(e):t}function ea(t){return cl(t,"__v_skip",!0),t}const xo=t=>Wt(t)?da(t):t,Nh=t=>Wt(t)?Zm(t):t;function Jm(t){ln&&hr&&(t=xt(t),Gm(t.dep||(t.dep=Eh())))}function t0(t,e){t=xt(t),t.dep&&Jf(t.dep)}function Gt(t){return!!(t&&t.__v_isRef===!0)}function Fh(t){return e0(t,!1)}function $b(t){return e0(t,!0)}function e0(t,e){return Gt(t)?t:new Gb(t,e)}class Gb{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:xt(e),this._value=r?e:xo(e)}get value(){return Jm(this),this._value}set value(e){e=this.__v_isShallow?e:xt(e),So(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:xo(e),t0(this))}}function to(t){return Gt(t)?t.value:t}const Wb={get:(t,e,r)=>to(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return Gt(i)&&!Gt(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function r0(t){return un(t)?t:new Proxy(t,Wb)}function Ub(t){const e=ot(t)?new Array(t.length):{};for(const r in t)e[r]=Xb(t,r);return e}class Yb{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Xb(t,e,r){const n=t[e];return Gt(n)?n:new Yb(t,e,r)}class qb{constructor(e,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Lh(e,()=>{this._dirty||(this._dirty=!0,t0(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=xt(this);return Jm(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Kb(t,e,r=!1){let n,i;const a=ht(t);return a?(n=t,i=rr):(n=t.get,i=t.set),new qb(n,i,a||!i,r)}Promise.resolve();function fn(t,e,r,n){let i;try{i=n?t(...n):t()}catch(a){Xo(a,e,r)}return i}function Ue(t,e,r,n){if(ht(t)){const a=fn(t,e,r,n);return a&&Ph(a)&&a.catch(o=>{Xo(o,e,r)}),a}const i=[];for(let a=0;a>>1;Co(Ce[n])Mr&&Ce.splice(e,1)}function o0(t,e,r,n){ot(t)?r.push(...t):(!e||!e.includes(t,t.allowRecurse?n+1:n))&&r.push(t),a0()}function Jb(t){o0(t,Ya,eo,Bi)}function s0(t){o0(t,tn,ro,Ni)}function Vh(t,e=null){if(eo.length){for(ec=e,Ya=[...new Set(eo)],eo.length=0,Bi=0;BiCo(r)-Co(n)),Ni=0;Nit.id==null?1/0:t.id;function u0(t){tc=!1,hl=!0,Vh(t),Ce.sort((r,n)=>Co(r)-Co(n));const e=rr;try{for(Mr=0;Mrv.trim()):c&&(i=r.map(ta))}let s,l=n[s=Mu(e)]||n[s=Mu(gr(e))];!l&&a&&(l=n[s=Mu(ca(e))]),l&&Ue(l,t,6,i);const u=n[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Ue(u,t,6,i)}}function f0(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const a=t.emits;let o={},s=!1;if(!ht(t)){const l=u=>{const f=f0(u,e,!0);f&&(s=!0,Jt(o,f))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!s?(n.set(t,null),null):(ot(a)?a.forEach(l=>o[l]=null):Jt(o,a),n.set(t,o),o)}function $h(t,e){return!t||!$l(e)?!1:(e=e.slice(2).replace(/Once$/,""),bt(t,e[0].toLowerCase()+e.slice(1))||bt(t,ca(e))||bt(t,e))}let Me=null,Xl=null;function vl(t){const e=Me;return Me=t,Xl=t&&t.type.__scopeId||null,e}function ZB(t){Xl=t}function jB(){Xl=null}function ex(t,e=Me,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&Ad(-1);const a=vl(e),o=t(...i);return vl(a),n._d&&Ad(1),o};return n._n=!0,n._c=!0,n._d=!0,n}function Du(t){const{type:e,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,data:h,setupState:v,ctx:d,inheritAttrs:y}=t;let g,p;const m=vl(t);try{if(r.shapeFlag&4){const w=i||n;g=Je(f.call(w,w,c,a,v,h,d)),p=l}else{const w=e;g=Je(w.length>1?w(a,{attrs:l,slots:s,emit:u}):w(a,null)),p=e.props?l:nx(l)}}catch(w){io.length=0,Xo(w,t,1),g=ie(Pe)}let _=g;if(p&&y!==!1){const w=Object.keys(p),{shapeFlag:b}=_;w.length&&b&7&&(o&&w.some(Mh)&&(p=ix(p,o)),_=ra(_,p))}return r.dirs&&(_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,vl(m),g}function rx(t){let e;for(let r=0;r{let e;for(const r in t)(r==="class"||r==="style"||$l(r))&&((e||(e={}))[r]=t[r]);return e},ix=(t,e)=>{const r={};for(const n in t)(!Mh(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function ax(t,e,r){const{props:n,children:i,component:a}=t,{props:o,children:s,patchFlag:l}=e,u=a.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?yd(n,o,u):!!o;if(l&8){const f=e.dynamicProps;for(let c=0;ct.__isSuspense,sx={name:"Suspense",__isSuspense:!0,process(t,e,r,n,i,a,o,s,l,u){t==null?lx(e,r,n,i,a,o,s,l,u):ux(t,e,r,n,i,o,s,l,u)},hydrate:fx,create:Wh,normalize:cx},QB=sx;function To(t,e){const r=t.props&&t.props[e];ht(r)&&r()}function lx(t,e,r,n,i,a,o,s,l){const{p:u,o:{createElement:f}}=l,c=f("div"),h=t.suspense=Wh(t,i,n,e,c,r,a,o,s,l);u(null,h.pendingBranch=t.ssContent,c,null,n,h,a,o),h.deps>0?(To(t,"onPending"),To(t,"onFallback"),u(null,t.ssFallback,e,r,n,null,a,o),qi(h,t.ssFallback)):h.resolve()}function ux(t,e,r,n,i,a,o,s,{p:l,um:u,o:{createElement:f}}){const c=e.suspense=t.suspense;c.vnode=e,e.el=t.el;const h=e.ssContent,v=e.ssFallback,{activeBranch:d,pendingBranch:y,isInFallback:g,isHydrating:p}=c;if(y)c.pendingBranch=h,fr(h,y)?(l(y,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():g&&(l(d,v,r,n,i,null,a,o,s),qi(c,v))):(c.pendingId++,p?(c.isHydrating=!1,c.activeBranch=y):u(y,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=f("div"),g?(l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(l(d,v,r,n,i,null,a,o,s),qi(c,v))):d&&fr(h,d)?(l(d,h,r,n,i,c,a,o,s),c.resolve(!0)):(l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(d&&fr(h,d))l(d,h,r,n,i,c,a,o,s),qi(c,h);else if(To(e,"onPending"),c.pendingBranch=h,c.pendingId++,l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:m,pendingId:_}=c;m>0?setTimeout(()=>{c.pendingId===_&&c.fallback(v)},m):m===0&&c.fallback(v)}}function Wh(t,e,r,n,i,a,o,s,l,u,f=!1){const{p:c,m:h,um:v,n:d,o:{parentNode:y,remove:g}}=u,p=ta(t.props&&t.props.timeout),m={vnode:t,parent:e,parentComponent:r,isSVG:o,container:n,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof p=="number"?p:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(_=!1){const{vnode:w,activeBranch:b,pendingBranch:S,pendingId:x,effects:T,parentComponent:M,container:D}=m;if(m.isHydrating)m.isHydrating=!1;else if(!_){const L=b&&S.transition&&S.transition.mode==="out-in";L&&(b.transition.afterLeave=()=>{x===m.pendingId&&h(S,D,O,0)});let{anchor:O}=m;b&&(O=d(b),v(b,M,m,!0)),L||h(S,D,O,0)}qi(m,S),m.pendingBranch=null,m.isInFallback=!1;let I=m.parent,A=!1;for(;I;){if(I.pendingBranch){I.effects.push(...T),A=!0;break}I=I.parent}A||s0(T),m.effects=[],To(w,"onResolve")},fallback(_){if(!m.pendingBranch)return;const{vnode:w,activeBranch:b,parentComponent:S,container:x,isSVG:T}=m;To(w,"onFallback");const M=d(b),D=()=>{!m.isInFallback||(c(null,_,x,M,S,null,T,s,l),qi(m,_))},I=_.transition&&_.transition.mode==="out-in";I&&(b.transition.afterLeave=D),m.isInFallback=!0,v(b,S,null,!0),I||D()},move(_,w,b){m.activeBranch&&h(m.activeBranch,_,w,b),m.container=_},next(){return m.activeBranch&&d(m.activeBranch)},registerDep(_,w){const b=!!m.pendingBranch;b&&m.deps++;const S=_.vnode.el;_.asyncDep.catch(x=>{Xo(x,_,0)}).then(x=>{if(_.isUnmounted||m.isUnmounted||m.pendingId!==_.suspenseId)return;_.asyncResolved=!0;const{vnode:T}=_;fc(_,x,!1),S&&(T.el=S);const M=!S&&_.subTree.el;w(_,T,y(S||_.subTree.el),S?null:d(_.subTree),m,o,l),M&&g(M),Gh(_,T.el),b&&--m.deps===0&&m.resolve()})},unmount(_,w){m.isUnmounted=!0,m.activeBranch&&v(m.activeBranch,r,_,w),m.pendingBranch&&v(m.pendingBranch,r,_,w)}};return m}function fx(t,e,r,n,i,a,o,s,l){const u=e.suspense=Wh(e,n,r,t.parentNode,document.createElement("div"),null,i,a,o,s,!0),f=l(t,u.pendingBranch=e.ssContent,r,u,a,o);return u.deps===0&&u.resolve(),f}function cx(t){const{shapeFlag:e,children:r}=t,n=e&32;t.ssContent=md(n?r.default:r),t.ssFallback=n?md(r.fallback):ie(Pe)}function md(t){let e;if(ht(t)){const r=Mo&&t._c;r&&(t._d=!1,Kh()),t=t(),r&&(t._d=!0,e=cn,E0())}return ot(t)&&(t=rx(t)),t=Je(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function hx(t,e){e&&e.pendingBranch?ot(t)?e.effects.push(...t):e.effects.push(t):s0(t)}function qi(t,e){t.activeBranch=e;const{vnode:r,parentComponent:n}=t,i=r.el=e.el;n&&n.subTree===r&&(n.vnode.el=i,Gh(n,i))}function Xs(t,e){if(Zt){let r=Zt.provides;const n=Zt.parent&&Zt.parent.provides;n===r&&(r=Zt.provides=Object.create(n)),r[t]=e}}function Ir(t,e,r=!1){const n=Zt||Me;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&t in i)return i[t];if(arguments.length>1)return r&&ht(e)?e.call(n.proxy):e}}const _d={};function no(t,e,r){return c0(t,e,r)}function c0(t,e,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=Rt){const s=Zt;let l,u=!1,f=!1;if(Gt(t)?(l=()=>t.value,u=jm(t)):un(t)?(l=()=>t,n=!0):ot(t)?(f=!0,u=t.some(un),l=()=>t.map(p=>{if(Gt(p))return p.value;if(un(p))return Qn(p);if(ht(p))return fn(p,s,2)})):ht(t)?e?l=()=>fn(t,s,2):l=()=>{if(!(s&&s.isUnmounted))return c&&c(),Ue(t,s,3,[h])}:l=rr,e&&n){const p=l;l=()=>Qn(p())}let c,h=p=>{c=g.onStop=()=>{fn(p,s,4)}};if(Ao)return h=rr,e?r&&Ue(e,s,3,[l(),f?[]:void 0,h]):l(),rr;let v=f?[]:_d;const d=()=>{if(!!g.active)if(e){const p=g.run();(n||u||(f?p.some((m,_)=>So(m,v[_])):So(p,v)))&&(c&&c(),Ue(e,s,3,[p,v===_d?void 0:v,h]),v=p)}else g.run()};d.allowRecurse=!!e;let y;i==="sync"?y=d:i==="post"?y=()=>pe(d,s&&s.suspense):y=()=>{!s||s.isMounted?Jb(d):d()};const g=new Lh(l,y);return e?r?d():v=g.run():i==="post"?pe(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&Dh(s.scope.effects,g)}}function vx(t,e,r){const n=this.proxy,i=qt(t)?t.includes(".")?h0(n,t):()=>n[t]:t.bind(n,n);let a;ht(e)?a=e:(a=e.handler,r=e);const o=Zt;mn(this);const s=c0(i,a.bind(n),r);return o?mn(o):hn(),s}function h0(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i{Qn(r,e)});else if(Nm(t))for(const r in t)Qn(t[r],e);return t}function dx(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return m0(()=>{t.isMounted=!0}),_0(()=>{t.isUnmounting=!0}),t}const Ee=[Function,Array],px={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ee,onEnter:Ee,onAfterEnter:Ee,onEnterCancelled:Ee,onBeforeLeave:Ee,onLeave:Ee,onAfterLeave:Ee,onLeaveCancelled:Ee,onBeforeAppear:Ee,onAppear:Ee,onAfterAppear:Ee,onAppearCancelled:Ee},setup(t,{slots:e}){const r=jl(),n=dx();let i;return()=>{const a=e.default&&p0(e.default(),!0);if(!a||!a.length)return;const o=xt(t),{mode:s}=o,l=a[0];if(n.isLeaving)return Au(l);const u=wd(l);if(!u)return Au(l);const f=rc(u,o,n,r);nc(u,f);const c=r.subTree,h=c&&wd(c);let v=!1;const{getTransitionKey:d}=u.type;if(d){const y=d();i===void 0?i=y:y!==i&&(i=y,v=!0)}if(h&&h.type!==Pe&&(!fr(u,h)||v)){const y=rc(h,o,n,r);if(nc(h,y),s==="out-in")return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,r.update()},Au(l);s==="in-out"&&u.type!==Pe&&(y.delayLeave=(g,p,m)=>{const _=d0(n,h);_[String(h.key)]=h,g._leaveCb=()=>{p(),g._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=m})}return l}}},v0=px;function d0(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function rc(t,e,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:h,onAfterLeave:v,onLeaveCancelled:d,onBeforeAppear:y,onAppear:g,onAfterAppear:p,onAppearCancelled:m}=e,_=String(t.key),w=d0(r,t),b=(x,T)=>{x&&Ue(x,n,9,T)},S={mode:a,persisted:o,beforeEnter(x){let T=s;if(!r.isMounted)if(i)T=y||s;else return;x._leaveCb&&x._leaveCb(!0);const M=w[_];M&&fr(t,M)&&M.el._leaveCb&&M.el._leaveCb(),b(T,[x])},enter(x){let T=l,M=u,D=f;if(!r.isMounted)if(i)T=g||l,M=p||u,D=m||f;else return;let I=!1;const A=x._enterCb=L=>{I||(I=!0,L?b(D,[x]):b(M,[x]),S.delayedLeave&&S.delayedLeave(),x._enterCb=void 0)};T?(T(x,A),T.length<=1&&A()):A()},leave(x,T){const M=String(t.key);if(x._enterCb&&x._enterCb(!0),r.isUnmounting)return T();b(c,[x]);let D=!1;const I=x._leaveCb=A=>{D||(D=!0,T(),A?b(d,[x]):b(v,[x]),x._leaveCb=void 0,w[M]===t&&delete w[M])};w[M]=t,h?(h(x,I),h.length<=1&&I()):I()},clone(x){return rc(x,e,r,n)}};return S}function Au(t){if(ql(t))return t=ra(t),t.children=null,t}function wd(t){return ql(t)?t.children?t.children[0]:void 0:t}function nc(t,e){t.shapeFlag&6&&t.component?nc(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function p0(t,e=!1){let r=[],n=0;for(let i=0;i1)for(let i=0;i!!t.type.__asyncLoader,ql=t=>t.type.__isKeepAlive;function gx(t,e){y0(t,"a",e)}function yx(t,e){y0(t,"da",e)}function y0(t,e,r=Zt){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Kl(e,n,r),r){let i=r.parent;for(;i&&i.parent;)ql(i.parent.vnode)&&mx(n,e,r,i),i=i.parent}}function mx(t,e,r,n){const i=Kl(e,t,n,!0);Uh(()=>{Dh(n[e],i)},r)}function Kl(t,e,r=Zt,n=!1){if(r){const i=r[t]||(r[t]=[]),a=e.__weh||(e.__weh=(...o)=>{if(r.isUnmounted)return;ha(),mn(r);const s=Ue(e,r,t,o);return hn(),va(),s});return n?i.unshift(a):i.push(a),a}}const Nr=t=>(e,r=Zt)=>(!Ao||t==="sp")&&Kl(t,e,r),_x=Nr("bm"),m0=Nr("m"),Sx=Nr("bu"),bx=Nr("u"),_0=Nr("bum"),Uh=Nr("um"),xx=Nr("sp"),Cx=Nr("rtg"),Tx=Nr("rtc");function Mx(t,e=Zt){Kl("ec",t,e)}let ac=!0;function Dx(t){const e=S0(t),r=t.proxy,n=t.ctx;ac=!1,e.beforeCreate&&Sd(e.beforeCreate,t,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:d,activated:y,deactivated:g,beforeDestroy:p,beforeUnmount:m,destroyed:_,unmounted:w,render:b,renderTracked:S,renderTriggered:x,errorCaptured:T,serverPrefetch:M,expose:D,inheritAttrs:I,components:A,directives:L,filters:O}=e;if(u&&Ax(u,n,null,t.appContext.config.unwrapInjectedRef),o)for(const Q in o){const G=o[Q];ht(G)&&(n[Q]=G.bind(r))}if(i){const Q=i.call(r,r);Wt(Q)&&(t.data=da(Q))}if(ac=!0,a)for(const Q in a){const G=a[Q],Z=ht(G)?G.bind(r,r):ht(G.get)?G.get.bind(r,r):rr,lt=!ht(G)&&ht(G.set)?G.set.bind(r):rr,_t=tr({get:Z,set:lt});Object.defineProperty(n,Q,{enumerable:!0,configurable:!0,get:()=>_t.value,set:yt=>_t.value=yt})}if(s)for(const Q in s)w0(s[Q],n,r,Q);if(l){const Q=ht(l)?l.call(r):l;Reflect.ownKeys(Q).forEach(G=>{Xs(G,Q[G])})}f&&Sd(f,t,"c");function B(Q,G){ot(G)?G.forEach(Z=>Q(Z.bind(r))):G&&Q(G.bind(r))}if(B(_x,c),B(m0,h),B(Sx,v),B(bx,d),B(gx,y),B(yx,g),B(Mx,T),B(Tx,S),B(Cx,x),B(_0,m),B(Uh,w),B(xx,M),ot(D))if(D.length){const Q=t.exposed||(t.exposed={});D.forEach(G=>{Object.defineProperty(Q,G,{get:()=>r[G],set:Z=>r[G]=Z})})}else t.exposed||(t.exposed={});b&&t.render===rr&&(t.render=b),I!=null&&(t.inheritAttrs=I),A&&(t.components=A),L&&(t.directives=L)}function Ax(t,e,r=rr,n=!1){ot(t)&&(t=oc(t));for(const i in t){const a=t[i];let o;Wt(a)?"default"in a?o=Ir(a.from||i,a.default,!0):o=Ir(a.from||i):o=Ir(a),Gt(o)&&n?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[i]=o}}function Sd(t,e,r){Ue(ot(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function w0(t,e,r,n){const i=n.includes(".")?h0(r,n):()=>r[n];if(qt(t)){const a=e[t];ht(a)&&no(i,a)}else if(ht(t))no(i,t.bind(r));else if(Wt(t))if(ot(t))t.forEach(a=>w0(a,e,r,n));else{const a=ht(t.handler)?t.handler.bind(r):e[t.handler];ht(a)&&no(i,a,t)}}function S0(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=t.appContext,s=a.get(e);let l;return s?l=s:!i.length&&!r&&!n?l=e:(l={},i.length&&i.forEach(u=>dl(l,u,o,!0)),dl(l,e,o)),a.set(e,l),l}function dl(t,e,r,n=!1){const{mixins:i,extends:a}=e;a&&dl(t,a,r,!0),i&&i.forEach(o=>dl(t,o,r,!0));for(const o in e)if(!(n&&o==="expose")){const s=Px[o]||r&&r[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const Px={data:bd,props:qn,emits:qn,methods:qn,computed:qn,beforeCreate:oe,created:oe,beforeMount:oe,mounted:oe,beforeUpdate:oe,updated:oe,beforeDestroy:oe,beforeUnmount:oe,destroyed:oe,unmounted:oe,activated:oe,deactivated:oe,errorCaptured:oe,serverPrefetch:oe,components:qn,directives:qn,watch:Ex,provide:bd,inject:Ix};function bd(t,e){return e?t?function(){return Jt(ht(t)?t.call(this,this):t,ht(e)?e.call(this,this):e)}:e:t}function Ix(t,e){return qn(oc(t),oc(e))}function oc(t){if(ot(t)){const e={};for(let r=0;r0)&&!(o&16)){if(o&8){const f=t.vnode.dynamicProps;for(let c=0;c{l=!0;const[h,v]=x0(c,e,!0);Jt(o,h),v&&s.push(...v)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!a&&!l)return n.set(t,Yi),Yi;if(ot(a))for(let f=0;f-1,v[1]=y<0||d-1||bt(v,"default"))&&s.push(c)}}}const u=[o,s];return n.set(t,u),u}function xd(t){return t[0]!=="$"}function Cd(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:t===null?"null":""}function Td(t,e){return Cd(t)===Cd(e)}function Md(t,e){return ot(e)?e.findIndex(r=>Td(r,t)):ht(e)&&Td(e,t)?0:-1}const C0=t=>t[0]==="_"||t==="$stable",Yh=t=>ot(t)?t.map(Je):[Je(t)],Ox=(t,e,r)=>{const n=ex((...i)=>Yh(e(...i)),r);return n._c=!1,n},T0=(t,e,r)=>{const n=t._ctx;for(const i in t){if(C0(i))continue;const a=t[i];if(ht(a))e[i]=Ox(i,a,n);else if(a!=null){const o=Yh(a);e[i]=()=>o}}},M0=(t,e)=>{const r=Yh(e);t.slots.default=()=>r},kx=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=xt(e),cl(e,"_",r)):T0(e,t.slots={})}else t.slots={},e&&M0(t,e);cl(t.slots,Zl,1)},Bx=(t,e,r)=>{const{vnode:n,slots:i}=t;let a=!0,o=Rt;if(n.shapeFlag&32){const s=e._;s?r&&s===1?a=!1:(Jt(i,e),!r&&s===1&&delete i._):(a=!e.$stable,T0(e,i)),o=e}else e&&(M0(t,e),o={default:1});if(a)for(const s in i)!C0(s)&&!(s in o)&&delete i[s]};function JB(t,e){const r=Me;if(r===null)return t;const n=r.proxy,i=t.dirs||(t.dirs=[]);for(let a=0;alc(h,e&&(ot(e)?e[v]:e),r,n,i));return}if(ic(n)&&!i)return;const a=n.shapeFlag&4?jh(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=t,u=e&&e.r,f=s.refs===Rt?s.refs={}:s.refs,c=s.setupState;if(u!=null&&u!==l&&(qt(u)?(f[u]=null,bt(c,u)&&(c[u]=null)):Gt(u)&&(u.value=null)),ht(l))fn(l,s,12,[o,f]);else{const h=qt(l),v=Gt(l);if(h||v){const d=()=>{if(t.f){const y=h?f[l]:l.value;i?ot(y)&&Dh(y,a):ot(y)?y.includes(a)||y.push(a):h?f[l]=[a]:(l.value=[a],t.k&&(f[t.k]=l.value))}else h?(f[l]=o,bt(c,l)&&(c[l]=o)):Gt(l)&&(l.value=o,t.k&&(f[t.k]=o))};o?(d.id=-1,pe(d,r)):d()}}}const pe=hx;function zx(t){return Hx(t)}function Hx(t,e){const r=db();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=rr,cloneNode:d,insertStaticContent:y}=t,g=(C,E,R,N=null,F=null,U=null,j=!1,$=null,X=!!E.dynamicChildren)=>{if(C===E)return;C&&!fr(C,E)&&(N=tt(C),pt(C,F,U,!0),C=null),E.patchFlag===-2&&(X=!1,E.dynamicChildren=null);const{type:z,ref:it,shapeFlag:rt}=E;switch(z){case qh:p(C,E,R,N);break;case Pe:m(C,E,R,N);break;case qs:C==null&&_(E,R,N,j);break;case ze:L(C,E,R,N,F,U,j,$,X);break;default:rt&1?S(C,E,R,N,F,U,j,$,X):rt&6?O(C,E,R,N,F,U,j,$,X):(rt&64||rt&128)&&z.process(C,E,R,N,F,U,j,$,X,ut)}it!=null&&F&&lc(it,C&&C.ref,U,E||C,!E)},p=(C,E,R,N)=>{if(C==null)n(E.el=s(E.children),R,N);else{const F=E.el=C.el;E.children!==C.children&&u(F,E.children)}},m=(C,E,R,N)=>{C==null?n(E.el=l(E.children||""),R,N):E.el=C.el},_=(C,E,R,N)=>{[C.el,C.anchor]=y(C.children,E,R,N,C.el,C.anchor)},w=({el:C,anchor:E},R,N)=>{let F;for(;C&&C!==E;)F=h(C),n(C,R,N),C=F;n(E,R,N)},b=({el:C,anchor:E})=>{let R;for(;C&&C!==E;)R=h(C),i(C),C=R;i(E)},S=(C,E,R,N,F,U,j,$,X)=>{j=j||E.type==="svg",C==null?x(E,R,N,F,U,j,$,X):D(C,E,F,U,j,$,X)},x=(C,E,R,N,F,U,j,$)=>{let X,z;const{type:it,props:rt,shapeFlag:at,transition:ft,patchFlag:wt,dirs:Ft}=C;if(C.el&&d!==void 0&&wt===-1)X=C.el=d(C.el);else{if(X=C.el=o(C.type,U,rt&&rt.is,rt),at&8?f(X,C.children):at&16&&M(C.children,X,null,N,F,U&&it!=="foreignObject",j,$),Ft&&bn(C,null,N,"created"),rt){for(const Nt in rt)Nt!=="value"&&!Us(Nt)&&a(X,Nt,null,rt[Nt],U,C.children,N,F,V);"value"in rt&&a(X,"value",null,rt.value),(z=rt.onVnodeBeforeMount)&&ar(z,N,C)}T(X,C,C.scopeId,j,N)}Ft&&bn(C,null,N,"beforeMount");const It=(!F||F&&!F.pendingBranch)&&ft&&!ft.persisted;It&&ft.beforeEnter(X),n(X,E,R),((z=rt&&rt.onVnodeMounted)||It||Ft)&&pe(()=>{z&&ar(z,N,C),It&&ft.enter(X),Ft&&bn(C,null,N,"mounted")},F)},T=(C,E,R,N,F)=>{if(R&&v(C,R),N)for(let U=0;U{for(let z=X;z{const $=E.el=C.el;let{patchFlag:X,dynamicChildren:z,dirs:it}=E;X|=C.patchFlag&16;const rt=C.props||Rt,at=E.props||Rt;let ft;R&&xn(R,!1),(ft=at.onVnodeBeforeUpdate)&&ar(ft,R,E,C),it&&bn(E,C,R,"beforeUpdate"),R&&xn(R,!0);const wt=F&&E.type!=="foreignObject";if(z?I(C.dynamicChildren,z,$,R,N,wt,U):j||Z(C,E,$,null,R,N,wt,U,!1),X>0){if(X&16)A($,E,rt,at,R,N,F);else if(X&2&&rt.class!==at.class&&a($,"class",null,at.class,F),X&4&&a($,"style",rt.style,at.style,F),X&8){const Ft=E.dynamicProps;for(let It=0;It{ft&&ar(ft,R,E,C),it&&bn(E,C,R,"updated")},N)},I=(C,E,R,N,F,U,j)=>{for(let $=0;${if(R!==N){for(const $ in N){if(Us($))continue;const X=N[$],z=R[$];X!==z&&$!=="value"&&a(C,$,z,X,j,E.children,F,U,V)}if(R!==Rt)for(const $ in R)!Us($)&&!($ in N)&&a(C,$,R[$],null,j,E.children,F,U,V);"value"in N&&a(C,"value",R.value,N.value)}},L=(C,E,R,N,F,U,j,$,X)=>{const z=E.el=C?C.el:s(""),it=E.anchor=C?C.anchor:s("");let{patchFlag:rt,dynamicChildren:at,slotScopeIds:ft}=E;ft&&($=$?$.concat(ft):ft),C==null?(n(z,R,N),n(it,R,N),M(E.children,R,it,F,U,j,$,X)):rt>0&&rt&64&&at&&C.dynamicChildren?(I(C.dynamicChildren,at,R,F,U,j,$),(E.key!=null||F&&E===F.subTree)&&A0(C,E,!0)):Z(C,E,R,it,F,U,j,$,X)},O=(C,E,R,N,F,U,j,$,X)=>{E.slotScopeIds=$,C==null?E.shapeFlag&512?F.ctx.activate(E,R,N,j,X):H(E,R,N,F,U,j,X):B(C,E,X)},H=(C,E,R,N,F,U,j)=>{const $=C.component=Zx(C,N,F);if(ql(C)&&($.ctx.renderer=ut),jx($),$.asyncDep){if(F&&F.registerDep($,Q),!C.el){const X=$.subTree=ie(Pe);m(null,X,E,R)}return}Q($,C,E,R,F,U,j)},B=(C,E,R)=>{const N=E.component=C.component;if(ax(C,E,R))if(N.asyncDep&&!N.asyncResolved){G(N,E,R);return}else N.next=E,Qb(N.update),N.update();else E.component=C.component,E.el=C.el,N.vnode=E},Q=(C,E,R,N,F,U,j)=>{const $=()=>{if(C.isMounted){let{next:it,bu:rt,u:at,parent:ft,vnode:wt}=C,Ft=it,It;xn(C,!1),it?(it.el=wt.el,G(C,it,j)):it=wt,rt&&Ys(rt),(It=it.props&&it.props.onVnodeBeforeUpdate)&&ar(It,ft,it,wt),xn(C,!0);const Nt=Du(C),qe=C.subTree;C.subTree=Nt,g(qe,Nt,c(qe.el),tt(qe),C,F,U),it.el=Nt.el,Ft===null&&Gh(C,Nt.el),at&&pe(at,F),(It=it.props&&it.props.onVnodeUpdated)&&pe(()=>ar(It,ft,it,wt),F)}else{let it;const{el:rt,props:at}=E,{bm:ft,m:wt,parent:Ft}=C,It=ic(E);if(xn(C,!1),ft&&Ys(ft),!It&&(it=at&&at.onVnodeBeforeMount)&&ar(it,Ft,E),xn(C,!0),rt&&K){const Nt=()=>{C.subTree=Du(C),K(rt,C.subTree,C,F,null)};It?E.type.__asyncLoader().then(()=>!C.isUnmounted&&Nt()):Nt()}else{const Nt=C.subTree=Du(C);g(null,Nt,R,N,C,F,U),E.el=Nt.el}if(wt&&pe(wt,F),!It&&(it=at&&at.onVnodeMounted)){const Nt=E;pe(()=>ar(it,Ft,Nt),F)}E.shapeFlag&256&&C.a&&pe(C.a,F),C.isMounted=!0,E=R=N=null}},X=C.effect=new Lh($,()=>i0(C.update),C.scope),z=C.update=X.run.bind(X);z.id=C.uid,xn(C,!0),z()},G=(C,E,R)=>{E.component=C;const N=C.vnode.props;C.vnode=E,C.next=null,Rx(C,E.props,N,R),Bx(C,E.children,R),ha(),Vh(void 0,C.update),va()},Z=(C,E,R,N,F,U,j,$,X=!1)=>{const z=C&&C.children,it=C?C.shapeFlag:0,rt=E.children,{patchFlag:at,shapeFlag:ft}=E;if(at>0){if(at&128){_t(z,rt,R,N,F,U,j,$,X);return}else if(at&256){lt(z,rt,R,N,F,U,j,$,X);return}}ft&8?(it&16&&V(z,F,U),rt!==z&&f(R,rt)):it&16?ft&16?_t(z,rt,R,N,F,U,j,$,X):V(z,F,U,!0):(it&8&&f(R,""),ft&16&&M(rt,R,N,F,U,j,$,X))},lt=(C,E,R,N,F,U,j,$,X)=>{C=C||Yi,E=E||Yi;const z=C.length,it=E.length,rt=Math.min(z,it);let at;for(at=0;atit?V(C,F,U,!0,!1,rt):M(E,R,N,F,U,j,$,X,rt)},_t=(C,E,R,N,F,U,j,$,X)=>{let z=0;const it=E.length;let rt=C.length-1,at=it-1;for(;z<=rt&&z<=at;){const ft=C[z],wt=E[z]=X?nn(E[z]):Je(E[z]);if(fr(ft,wt))g(ft,wt,R,null,F,U,j,$,X);else break;z++}for(;z<=rt&&z<=at;){const ft=C[rt],wt=E[at]=X?nn(E[at]):Je(E[at]);if(fr(ft,wt))g(ft,wt,R,null,F,U,j,$,X);else break;rt--,at--}if(z>rt){if(z<=at){const ft=at+1,wt=ftat)for(;z<=rt;)pt(C[z],F,U,!0),z++;else{const ft=z,wt=z,Ft=new Map;for(z=wt;z<=at;z++){const be=E[z]=X?nn(E[z]):Je(E[z]);be.key!=null&&Ft.set(be.key,z)}let It,Nt=0;const qe=at-wt+1;let mi=!1,od=0;const Sa=new Array(qe);for(z=0;z=qe){pt(be,F,U,!0);continue}let ir;if(be.key!=null)ir=Ft.get(be.key);else for(It=wt;It<=at;It++)if(Sa[It-wt]===0&&fr(be,E[It])){ir=It;break}ir===void 0?pt(be,F,U,!0):(Sa[ir-wt]=z+1,ir>=od?od=ir:mi=!0,g(be,E[ir],R,null,F,U,j,$,X),Nt++)}const sd=mi?Vx(Sa):Yi;for(It=sd.length-1,z=qe-1;z>=0;z--){const be=wt+z,ir=E[be],ld=be+1{const{el:U,type:j,transition:$,children:X,shapeFlag:z}=C;if(z&6){yt(C.component.subTree,E,R,N);return}if(z&128){C.suspense.move(E,R,N);return}if(z&64){j.move(C,E,R,ut);return}if(j===ze){n(U,E,R);for(let rt=0;rt$.enter(U),F);else{const{leave:rt,delayLeave:at,afterLeave:ft}=$,wt=()=>n(U,E,R),Ft=()=>{rt(U,()=>{wt(),ft&&ft()})};at?at(U,wt,Ft):Ft()}else n(U,E,R)},pt=(C,E,R,N=!1,F=!1)=>{const{type:U,props:j,ref:$,children:X,dynamicChildren:z,shapeFlag:it,patchFlag:rt,dirs:at}=C;if($!=null&&lc($,null,R,C,!0),it&256){E.ctx.deactivate(C);return}const ft=it&1&&at,wt=!ic(C);let Ft;if(wt&&(Ft=j&&j.onVnodeBeforeUnmount)&&ar(Ft,E,C),it&6)W(C.component,R,N);else{if(it&128){C.suspense.unmount(R,N);return}ft&&bn(C,null,E,"beforeUnmount"),it&64?C.type.remove(C,E,R,F,ut,N):z&&(U!==ze||rt>0&&rt&64)?V(z,E,R,!1,!0):(U===ze&&rt&384||!F&&it&16)&&V(X,E,R),N&&At(C)}(wt&&(Ft=j&&j.onVnodeUnmounted)||ft)&&pe(()=>{Ft&&ar(Ft,E,C),ft&&bn(C,null,E,"unmounted")},R)},At=C=>{const{type:E,el:R,anchor:N,transition:F}=C;if(E===ze){k(R,N);return}if(E===qs){b(C);return}const U=()=>{i(R),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(C.shapeFlag&1&&F&&!F.persisted){const{leave:j,delayLeave:$}=F,X=()=>j(R,U);$?$(C.el,U,X):X()}else U()},k=(C,E)=>{let R;for(;C!==E;)R=h(C),i(C),C=R;i(E)},W=(C,E,R)=>{const{bum:N,scope:F,update:U,subTree:j,um:$}=C;N&&Ys(N),F.stop(),U&&(U.active=!1,pt(j,C,E,R)),$&&pe($,E),pe(()=>{C.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},V=(C,E,R,N=!1,F=!1,U=0)=>{for(let j=U;jC.shapeFlag&6?tt(C.component.subTree):C.shapeFlag&128?C.suspense.next():h(C.anchor||C.el),vt=(C,E,R)=>{C==null?E._vnode&&pt(E._vnode,null,null,!0):g(E._vnode||null,C,E,null,null,null,R),l0(),E._vnode=C},ut={p:g,um:pt,m:yt,r:At,mt:H,mc:M,pc:Z,pbc:I,n:tt,o:t};let Y,K;return e&&([Y,K]=e(ut)),{render:vt,hydrate:Y,createApp:Fx(vt,Y)}}function xn({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function A0(t,e,r=!1){const n=t.children,i=e.children;if(ot(n)&&ot(i))for(let a=0;a>1,t[r[s]]0&&(e[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=e[o];return r}const $x=t=>t.__isTeleport,Xh="components";function tN(t,e){return I0(Xh,t,!0,e)||t}const P0=Symbol();function eN(t){return qt(t)?I0(Xh,t,!1)||t:t||P0}function I0(t,e,r=!0,n=!1){const i=Me||Zt;if(i){const a=i.type;if(t===Xh){const s=eC(a);if(s&&(s===e||s===gr(e)||s===Ul(gr(e))))return a}const o=Dd(i[t]||a[t],e)||Dd(i.appContext[t],e);return!o&&n?a:o}}function Dd(t,e){return t&&(t[e]||t[gr(e)]||t[Ul(gr(e))])}const ze=Symbol(void 0),qh=Symbol(void 0),Pe=Symbol(void 0),qs=Symbol(void 0),io=[];let cn=null;function Kh(t=!1){io.push(cn=t?null:[])}function E0(){io.pop(),cn=io[io.length-1]||null}let Mo=1;function Ad(t){Mo+=t}function L0(t){return t.dynamicChildren=Mo>0?cn||Yi:null,E0(),Mo>0&&cn&&cn.push(t),t}function rN(t,e,r,n,i,a){return L0(k0(t,e,r,n,i,a,!0))}function R0(t,e,r,n,i){return L0(ie(t,e,r,n,i,!0))}function Do(t){return t?t.__v_isVNode===!0:!1}function fr(t,e){return t.type===e.type&&t.key===e.key}const Zl="__vInternal",O0=({key:t})=>t!=null?t:null,Ks=({ref:t,ref_key:e,ref_for:r})=>t!=null?qt(t)||Gt(t)||ht(t)?{i:Me,r:t,k:e,f:!!r}:t:null;function k0(t,e=null,r=null,n=0,i=null,a=t===ze?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&O0(e),ref:e&&Ks(e),scopeId:Xl,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?(Zh(l,r),a&128&&t.normalize(l)):r&&(l.shapeFlag|=qt(r)?8:16),Mo>0&&!o&&cn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&cn.push(l),l}const ie=Gx;function Gx(t,e=null,r=null,n=0,i=null,a=!1){if((!t||t===P0)&&(t=Pe),Do(t)){const s=ra(t,e,!0);return r&&Zh(s,r),s}if(rC(t)&&(t=t.__vccOpts),e){e=Wx(e);let{class:s,style:l}=e;s&&!qt(s)&&(e.class=Ch(s)),Wt(l)&&(Qm(l)&&!ot(l)&&(l=Jt({},l)),e.style=xh(l))}const o=qt(t)?1:ox(t)?128:$x(t)?64:Wt(t)?4:ht(t)?2:0;return k0(t,e,r,n,i,o,a,!0)}function Wx(t){return t?Qm(t)||Zl in t?Jt({},t):t:null}function ra(t,e,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=t,s=e?Yx(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&O0(s),ref:e&&e.ref?r&&i?ot(i)?i.concat(Ks(e)):[i,Ks(e)]:Ks(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ze?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ra(t.ssContent),ssFallback:t.ssFallback&&ra(t.ssFallback),el:t.el,anchor:t.anchor}}function Ux(t=" ",e=0){return ie(qh,null,t,e)}function nN(t,e){const r=ie(qs,null,t);return r.staticCount=e,r}function iN(t="",e=!1){return e?(Kh(),R0(Pe,null,t)):ie(Pe,null,t)}function Je(t){return t==null||typeof t=="boolean"?ie(Pe):ot(t)?ie(ze,null,t.slice()):typeof t=="object"?nn(t):ie(qh,null,String(t))}function nn(t){return t.el===null||t.memo?t:ra(t)}function Zh(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(ot(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),Zh(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!(Zl in e)?e._ctx=Me:i===3&&Me&&(Me.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ht(e)?(e={default:e,_ctx:Me},r=32):(e=String(e),n&64?(r=16,e=[Ux(e)]):r=8);t.children=e,t.shapeFlag|=r}function Yx(...t){const e={};for(let r=0;re(o,s,void 0,a&&a[s]));else{const o=Object.keys(t);i=new Array(o.length);for(let s=0,l=o.length;sDo(e)?!(e.type===Pe||e.type===ze&&!B0(e.children)):!0)?t:null}const uc=t=>t?N0(t)?jh(t)||t.proxy:uc(t.parent):null,pl=Jt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>uc(t.parent),$root:t=>uc(t.root),$emit:t=>t.emit,$options:t=>S0(t),$forceUpdate:t=>()=>i0(t.update),$nextTick:t=>Hh.bind(t.proxy),$watch:t=>vx.bind(t)}),Xx={get({_:t},e){const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=t;let u;if(e[0]!=="$"){const v=o[e];if(v!==void 0)switch(v){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return a[e]}else{if(n!==Rt&&bt(n,e))return o[e]=1,n[e];if(i!==Rt&&bt(i,e))return o[e]=2,i[e];if((u=t.propsOptions[0])&&bt(u,e))return o[e]=3,a[e];if(r!==Rt&&bt(r,e))return o[e]=4,r[e];ac&&(o[e]=0)}}const f=pl[e];let c,h;if(f)return e==="$attrs"&&Ae(t,"get",e),f(t);if((c=s.__cssModules)&&(c=c[e]))return c;if(r!==Rt&&bt(r,e))return o[e]=4,r[e];if(h=l.config.globalProperties,bt(h,e))return h[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:a}=t;return i!==Rt&&bt(i,e)?(i[e]=r,!0):n!==Rt&&bt(n,e)?(n[e]=r,!0):bt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||t!==Rt&&bt(t,o)||e!==Rt&&bt(e,o)||(s=a[0])&&bt(s,o)||bt(n,o)||bt(pl,o)||bt(i.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?this.set(t,e,r.get(),null):r.value!=null&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}},qx=D0();let Kx=0;function Zx(t,e,r){const n=t.type,i=(e?e.appContext:t.appContext)||qx,a={uid:Kx++,vnode:t,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Fm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:x0(n,i),emitsOptions:f0(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=e?e.root:a,a.emit=tx.bind(null,a),t.ce&&t.ce(a),a}let Zt=null;const jl=()=>Zt||Me,mn=t=>{Zt=t,t.scope.on()},hn=()=>{Zt&&Zt.scope.off(),Zt=null};function N0(t){return t.vnode.shapeFlag&4}let Ao=!1;function jx(t,e=!1){Ao=e;const{props:r,children:n}=t.vnode,i=N0(t);Lx(t,r,i,e),kx(t,n);const a=i?Qx(t,e):void 0;return Ao=!1,a}function Qx(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=ea(new Proxy(t.ctx,Xx));const{setup:n}=r;if(n){const i=t.setupContext=n.length>1?tC(t):null;mn(t),ha();const a=fn(n,t,0,[t.props,i]);if(va(),hn(),Ph(a)){if(a.then(hn,hn),e)return a.then(o=>{fc(t,o,e)}).catch(o=>{Xo(o,t,0)});t.asyncDep=a}else fc(t,a,e)}else F0(t,e)}function fc(t,e,r){ht(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Wt(e)&&(t.setupState=r0(e)),F0(t,r)}let Pd;function F0(t,e,r){const n=t.type;if(!t.render){if(!e&&Pd&&!n.render){const i=n.template;if(i){const{isCustomElement:a,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Jt(Jt({isCustomElement:a,delimiters:s},o),l);n.render=Pd(i,u)}}t.render=n.render||rr}mn(t),ha(),Dx(t),va(),hn()}function Jx(t){return new Proxy(t.attrs,{get(e,r){return Ae(t,"get","$attrs"),e[r]}})}function tC(t){const e=n=>{t.exposed=n||{}};let r;return{get attrs(){return r||(r=Jx(t))},slots:t.slots,emit:t.emit,expose:e}}function jh(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(r0(ea(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in pl)return pl[r](t)}}))}function eC(t){return ht(t)&&t.displayName||t.name}function rC(t){return ht(t)&&"__vccOpts"in t}const tr=(t,e)=>Kb(t,e,Ao);function sN(t){const e=jl();let r=t();return hn(),Ph(r)&&(r=r.catch(n=>{throw mn(e),n})),[r,()=>mn(e)]}function Qh(t,e,r){const n=arguments.length;return n===2?Wt(e)&&!ot(e)?Do(e)?ie(t,null,[e]):ie(t,e):ie(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Do(r)&&(r=[r]),ie(t,e,r))}const nC="3.2.31",iC="http://www.w3.org/2000/svg",Zn=typeof document!="undefined"?document:null,Id=Zn&&Zn.createElement("template"),aC={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e?Zn.createElementNS(iC,t):Zn.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>Zn.createTextNode(t),createComment:t=>Zn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Zn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,r,n,i,a){const o=r?r.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{Id.innerHTML=n?`${t}`:t;const s=Id.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function oC(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function sC(t,e,r){const n=t.style,i=qt(r);if(r&&!i){for(const a in r)cc(n,a,r[a]);if(e&&!qt(e))for(const a in e)r[a]==null&&cc(n,a,"")}else{const a=n.display;i?e!==r&&(n.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(n.display=a)}}const Ed=/\s*!important$/;function cc(t,e,r){if(ot(r))r.forEach(n=>cc(t,e,n));else if(e.startsWith("--"))t.setProperty(e,r);else{const n=lC(t,e);Ed.test(r)?t.setProperty(ca(n),r.replace(Ed,""),"important"):t[n]=r}}const Ld=["Webkit","Moz","ms"],Pu={};function lC(t,e){const r=Pu[e];if(r)return r;let n=gr(e);if(n!=="filter"&&n in t)return Pu[e]=n;n=Ul(n);for(let i=0;idocument.createEvent("Event").timeStamp&&(gl=()=>performance.now());const t=navigator.userAgent.match(/firefox\/(\d+)/i);z0=!!(t&&Number(t[1])<=53)}let hc=0;const cC=Promise.resolve(),hC=()=>{hc=0},vC=()=>hc||(cC.then(hC),hc=gl());function Dr(t,e,r,n){t.addEventListener(e,r,n)}function dC(t,e,r,n){t.removeEventListener(e,r,n)}function pC(t,e,r,n,i=null){const a=t._vei||(t._vei={}),o=a[e];if(n&&o)o.value=n;else{const[s,l]=gC(e);if(n){const u=a[e]=yC(n,i);Dr(t,s,u,l)}else o&&(dC(t,s,o,l),a[e]=void 0)}}const Od=/(?:Once|Passive|Capture)$/;function gC(t){let e;if(Od.test(t)){e={};let r;for(;r=t.match(Od);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[ca(t.slice(2)),e]}function yC(t,e){const r=n=>{const i=n.timeStamp||gl();(z0||i>=r.attached-1)&&Ue(mC(n,r.value),e,5,[n])};return r.value=t,r.attached=vC(),r}function mC(t,e){if(ot(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const kd=/^on[a-z]/,_C=(t,e,r,n,i=!1,a,o,s,l)=>{e==="class"?oC(t,n,i):e==="style"?sC(t,r,n):$l(e)?Mh(e)||pC(t,e,r,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):wC(t,e,n,i))?fC(t,e,n,a,o,s,l):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),uC(t,e,n,i))};function wC(t,e,r,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&kd.test(e)&&ht(r)):e==="spellcheck"||e==="draggable"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||kd.test(e)&&qt(r)?!1:e in t}const $r="transition",ba="animation",H0=(t,{slots:e})=>Qh(v0,SC(t),e);H0.displayName="Transition";const V0={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};H0.props=Jt({},v0.props,V0);const Cn=(t,e=[])=>{ot(t)?t.forEach(r=>r(...e)):t&&t(...e)},Bd=t=>t?ot(t)?t.some(e=>e.length>1):t.length>1:!1;function SC(t){const e={};for(const A in t)A in V0||(e[A]=t[A]);if(t.css===!1)return e;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:v=`${r}-leave-to`}=t,d=bC(i),y=d&&d[0],g=d&&d[1],{onBeforeEnter:p,onEnter:m,onEnterCancelled:_,onLeave:w,onLeaveCancelled:b,onBeforeAppear:S=p,onAppear:x=m,onAppearCancelled:T=_}=e,M=(A,L,O)=>{_i(A,L?f:s),_i(A,L?u:o),O&&O()},D=(A,L)=>{_i(A,v),_i(A,h),L&&L()},I=A=>(L,O)=>{const H=A?x:m,B=()=>M(L,A,O);Cn(H,[L,B]),Nd(()=>{_i(L,A?l:a),Gr(L,A?f:s),Bd(H)||Fd(L,n,y,B)})};return Jt(e,{onBeforeEnter(A){Cn(p,[A]),Gr(A,a),Gr(A,o)},onBeforeAppear(A){Cn(S,[A]),Gr(A,l),Gr(A,u)},onEnter:I(!1),onAppear:I(!0),onLeave(A,L){const O=()=>D(A,L);Gr(A,c),TC(),Gr(A,h),Nd(()=>{_i(A,c),Gr(A,v),Bd(w)||Fd(A,n,g,O)}),Cn(w,[A,O])},onEnterCancelled(A){M(A,!1),Cn(_,[A])},onAppearCancelled(A){M(A,!0),Cn(T,[A])},onLeaveCancelled(A){D(A),Cn(b,[A])}})}function bC(t){if(t==null)return null;if(Wt(t))return[Iu(t.enter),Iu(t.leave)];{const e=Iu(t);return[e,e]}}function Iu(t){return ta(t)}function Gr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(e)}function _i(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function Nd(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let xC=0;function Fd(t,e,r,n){const i=t._endId=++xC,a=()=>{i===t._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=CC(t,e);if(!o)return n();const u=o+"end";let f=0;const c=()=>{t.removeEventListener(u,h),a()},h=v=>{v.target===t&&++f>=l&&c()};setTimeout(()=>{f(r[d]||"").split(", "),i=n($r+"Delay"),a=n($r+"Duration"),o=zd(i,a),s=n(ba+"Delay"),l=n(ba+"Duration"),u=zd(s,l);let f=null,c=0,h=0;e===$r?o>0&&(f=$r,c=o,h=a.length):e===ba?u>0&&(f=ba,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?$r:ba:null,h=f?f===$r?a.length:l.length:0);const v=f===$r&&/\b(transform|all)(,|$)/.test(r[$r+"Property"]);return{type:f,timeout:c,propCount:h,hasTransform:v}}function zd(t,e){for(;t.lengthHd(r)+Hd(t[n])))}function Hd(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function TC(){return document.body.offsetHeight}const _n=t=>{const e=t.props["onUpdate:modelValue"];return ot(e)?r=>Ys(e,r):e};function MC(t){t.target.composing=!0}function Vd(t){const e=t.target;e.composing&&(e.composing=!1,DC(e,"input"))}function DC(t,e){const r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}const lN={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t._assign=_n(i);const a=n||i.props&&i.props.type==="number";Dr(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;r?s=s.trim():a&&(s=ta(s)),t._assign(s)}),r&&Dr(t,"change",()=>{t.value=t.value.trim()}),e||(Dr(t,"compositionstart",MC),Dr(t,"compositionend",Vd),Dr(t,"change",Vd))},mounted(t,{value:e}){t.value=e==null?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:i}},a){if(t._assign=_n(a),t.composing||document.activeElement===t&&(r||n&&t.value.trim()===e||(i||t.type==="number")&&ta(t.value)===e))return;const o=e==null?"":e;t.value!==o&&(t.value=o)}},uN={deep:!0,created(t,e,r){t._assign=_n(r),Dr(t,"change",()=>{const n=t._modelValue,i=na(t),a=t.checked,o=t._assign;if(ot(n)){const s=Th(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(fa(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o($0(t,a))})},mounted:$d,beforeUpdate(t,e,r){t._assign=_n(r),$d(t,e,r)}};function $d(t,{value:e,oldValue:r},n){t._modelValue=e,ot(e)?t.checked=Th(e,n.props.value)>-1:fa(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=oi(e,$0(t,!0)))}const fN={created(t,{value:e},r){t.checked=oi(e,r.props.value),t._assign=_n(r),Dr(t,"change",()=>{t._assign(na(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t._assign=_n(n),e!==r&&(t.checked=oi(e,n.props.value))}},cN={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=fa(e);Dr(t,"change",()=>{const a=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>r?ta(na(o)):na(o));t._assign(t.multiple?i?new Set(a):a:a[0])}),t._assign=_n(n)},mounted(t,{value:e}){Gd(t,e)},beforeUpdate(t,e,r){t._assign=_n(r)},updated(t,{value:e}){Gd(t,e)}};function Gd(t,e){const r=t.multiple;if(!(r&&!ot(e)&&!fa(e))){for(let n=0,i=t.options.length;n-1:a.selected=e.has(o);else if(oi(na(a),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function na(t){return"_value"in t?t._value:t.value}function $0(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const AC=["ctrl","shift","alt","meta"],PC={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>AC.some(r=>t[`${r}Key`]&&!e.includes(r))},hN=(t,e)=>(r,...n)=>{for(let i=0;i{xa(t,!1)}):xa(t,e))},beforeUnmount(t,{value:e}){xa(t,e)}};function xa(t,e){t.style.display=e?t._vod:"none"}const IC=Jt({patchProp:_C},aC);let Wd;function G0(){return Wd||(Wd=zx(IC))}const dN=(...t)=>{G0().render(...t)},pN=(...t)=>{const e=G0().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=EC(n);if(!i)return;const a=e._component;!ht(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},e};function EC(t){return qt(t)?document.querySelector(t):t}var LC=!1;/*! * pinia v2.0.12 * (c) 2022 Eduardo San Martin Morote * @license MIT */let W0;const Ql=t=>W0=t,U0=Symbol();function vc(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ao;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ao||(ao={}));function gN(){const t=zm(!0),e=t.run(()=>Fh({}));let r=[],n=[];const i=ea({install(a){Ql(i),i._a=a,a.provide(U0,i),a.config.globalProperties.$pinia=i,n.forEach(o=>r.push(o)),n=[]},use(a){return!this._a&&!LC?n.push(a):r.push(a),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return i}const Y0=()=>{};function Ud(t,e,r,n=Y0){t.push(e);const i=()=>{const a=t.indexOf(e);a>-1&&(t.splice(a,1),n())};return!r&&jl()&&Uh(i),i}function wi(t,...e){t.slice().forEach(r=>{r(...e)})}function dc(t,e){for(const r in e){const n=e[r],i=t[r];vc(i)&&vc(n)&&!Gt(n)&&!un(n)?t[r]=dc(i,n):t[r]=n}return t}const RC=Symbol();function OC(t){return!vc(t)||!t.hasOwnProperty(RC)}const{assign:Cr}=Object;function kC(t){return!!(Gt(t)&&t.effect)}function BC(t,e,r,n){const{state:i,actions:a,getters:o}=e,s=r.state.value[t];let l;function u(){s||(r.state.value[t]=i?i():{});const f=Ub(r.state.value[t]);return Cr(f,a,Object.keys(o||{}).reduce((c,h)=>(c[h]=ea(tr(()=>{Ql(r);const v=r._s.get(t);return o[h].call(v,v)})),c),{}))}return l=X0(t,u,e,r),l.$reset=function(){const c=i?i():{};this.$patch(h=>{Cr(h,c)})},l}function X0(t,e,r={},n,i){let a;const o=r.state,s=Cr({actions:{}},r),l={deep:!0};let u,f,c=ea([]),h=ea([]),v;const d=n.state.value[t];!o&&!d&&(n.state.value[t]={}),Fh({});function y(S){let x;u=f=!1,typeof S=="function"?(S(n.state.value[t]),x={type:ao.patchFunction,storeId:t,events:v}):(dc(n.state.value[t],S),x={type:ao.patchObject,payload:S,storeId:t,events:v}),Hh().then(()=>{u=!0}),f=!0,wi(c,x,n.state.value[t])}const g=Y0;function p(){a.stop(),c=[],h=[],n._s.delete(t)}function m(S,x){return function(){Ql(n);const T=Array.from(arguments),M=[],D=[];function I(O){M.push(O)}function A(O){D.push(O)}wi(h,{args:T,name:S,store:w,after:I,onError:A});let L;try{L=x.apply(this&&this.$id===t?this:w,T)}catch(O){throw wi(D,O),O}return L instanceof Promise?L.then(O=>(wi(M,O),O)).catch(O=>(wi(D,O),Promise.reject(O))):(wi(M,L),L)}}const _={_p:n,$id:t,$onAction:Ud.bind(null,h),$patch:y,$reset:g,$subscribe(S,x={}){const T=Ud(c,S,x.detached,()=>M()),M=a.run(()=>no(()=>n.state.value[t],D=>{(x.flush==="sync"?f:u)&&S({storeId:t,type:ao.direct,events:v},D)},Cr({},l,x)));return T},$dispose:p},w=da(Cr({},_));n._s.set(t,w);const b=n._e.run(()=>(a=zm(),a.run(()=>e())));for(const S in b){const x=b[S];if(Gt(x)&&!kC(x)||un(x))o||(d&&OC(x)&&(Gt(x)?x.value=d[S]:dc(x,d[S])),n.state.value[t][S]=x);else if(typeof x=="function"){const T=m(S,x);b[S]=T,s.actions[S]=x}}return Cr(w,b),Cr(xt(w),b),Object.defineProperty(w,"$state",{get:()=>n.state.value[t],set:S=>{y(x=>{Cr(x,S)})}}),n._p.forEach(S=>{Cr(w,a.run(()=>S({store:w,app:n._a,pinia:n,options:s})))}),d&&o&&r.hydrate&&r.hydrate(w.$state,d),u=!0,f=!0,w}function yN(t,e,r){let n,i;const a=typeof e=="function";typeof t=="string"?(n=t,i=a?r:e):(i=t,n=t.id);function o(s,l){const u=jl();return s=s||u&&Ir(U0),s&&Ql(s),s=W0,s._s.has(n)||(a?X0(n,e,i,s):BC(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 q0=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",pa=t=>q0?Symbol(t):"_vr_"+t,NC=pa("rvlm"),Yd=pa("rvd"),Jh=pa("r"),K0=pa("rl"),pc=pa("rvl"),Fi=typeof window!="undefined";function FC(t){return t.__esModule||q0&&t[Symbol.toStringTag]==="Module"}const Et=Object.assign;function Eu(t,e){const r={};for(const n in e){const i=e[n];r[n]=Array.isArray(i)?i.map(t):t(i)}return r}const oo=()=>{},zC=/\/$/,HC=t=>t.replace(zC,"");function Lu(t,e,r="/"){let n,i={},a="",o="";const s=e.indexOf("?"),l=e.indexOf("#",s>-1?s:0);return s>-1&&(n=e.slice(0,s),a=e.slice(s+1,l>-1?l:e.length),i=t(a)),l>-1&&(n=n||e.slice(0,l),o=e.slice(l,e.length)),n=WC(n!=null?n:e,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function VC(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function Xd(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function $C(t,e,r){const n=e.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&ia(e.matched[n],r.matched[i])&&Z0(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function ia(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Z0(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!GC(t[r],e[r]))return!1;return!0}function GC(t,e){return Array.isArray(t)?qd(t,e):Array.isArray(e)?qd(e,t):t===e}function qd(t,e){return Array.isArray(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function WC(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/");let i=r.length-1,a,o;for(a=0;a({left:window.pageXOffset,top:window.pageYOffset});function KC(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;e=qC(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Kd(t,e){return(history.state?history.state.position-e:-1)+t}const gc=new Map;function ZC(t,e){gc.set(t,e)}function jC(t){const e=gc.get(t);return gc.delete(t),e}let QC=()=>location.protocol+"//"+location.host;function j0(t,e){const{pathname:r,search:n,hash:i}=e,a=t.indexOf("#");if(a>-1){let s=i.includes(t.slice(a))?t.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),Xd(l,"")}return Xd(r,t)+n+i}function JC(t,e,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=j0(t,location),d=r.value,y=e.value;let g=0;if(h){if(r.value=v,e.value=h,o&&o===d){o=null;return}g=y?h.position-y.position:0}else n(v);i.forEach(p=>{p(r.value,d,{delta:g,type:Po.pop,direction:g?g>0?so.forward:so.back:so.unknown})})};function l(){o=r.value}function u(h){i.push(h);const v=()=>{const d=i.indexOf(h);d>-1&&i.splice(d,1)};return a.push(v),v}function f(){const{history:h}=window;!h.state||h.replaceState(Et({},h.state,{scroll:Jl()}),"")}function c(){for(const h of a)h();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 Zd(t,e,r,n=!1,i=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:i?Jl():null}}function tT(t){const{history:e,location:r}=window,n={value:j0(t,r)},i={value:e.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=t.indexOf("#"),h=c>-1?(r.host&&document.querySelector("base")?t:t.slice(c))+l:QC()+t+l;try{e[f?"replaceState":"pushState"](u,"",h),i.value=u}catch(v){console.error(v),r[f?"replace":"assign"](h)}}function o(l,u){const f=Et({},e.state,Zd(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=Et({},i.value,e.state,{forward:l,scroll:Jl()});a(f.current,f,!0);const c=Et({},Zd(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 mN(t){t=UC(t);const e=tT(t),r=JC(t,e.state,e.location,e.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=Et({location:"",base:t,go:n,createHref:XC.bind(null,t)},e,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function eT(t){return typeof t=="string"||t&&typeof t=="object"}function Q0(t){return typeof t=="string"||typeof t=="symbol"}const Wr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},J0=pa("nf");var jd;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(jd||(jd={}));function aa(t,e){return Et(new Error,{type:t,[J0]:!0},e)}function Ur(t,e){return t instanceof Error&&J0 in t&&(e==null||!!(t.type&e))}const Qd="[^/]+?",rT={sensitive:!1,strict:!1,start:!0,end:!0},nT=/[.+*?^${}()[\]/\\]/g;function iT(t,e){const r=Et({},rT,e),n=[];let i=r.start?"^":"";const a=[];for(const u of t){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let c=0;ce.length?e.length===1&&e[0]===40+40?1:-1:0}function oT(t,e){let r=0;const n=t.score,i=e.score;for(;r1&&(l==="*"||l==="+")&&e(`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==="?"})):e("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s{o(m)}:oo}function o(f){if(Q0(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||!t_(f,r[c]));)c++;r.splice(c,0,f),f.record.name&&!Jd(f)&&n.set(f.record.name,f)}function u(f,c){let h,v={},d,y;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw aa(1,{location:f});y=h.record.name,v=Et(hT(c.params,h.keys.filter(m=>!m.optional).map(m=>m.name)),f.params),d=h.stringify(v)}else if("path"in f)d=f.path,h=r.find(m=>m.re.test(d)),h&&(v=h.parse(d),y=h.record.name);else{if(h=c.name?n.get(c.name):r.find(m=>m.re.test(c.path)),!h)throw aa(1,{location:f,currentLocation:c});y=h.record.name,v=Et({},c.params,f.params),d=h.stringify(v)}const g=[];let p=h;for(;p;)g.unshift(p.record),p=p.parent;return{name:y,path:d,params:v,matched:g,meta:pT(g)}}return t.forEach(f=>a(f)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function hT(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function vT(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:dT(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function dT(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="boolean"?r:r[n];return e}function Jd(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function pT(t){return t.reduce((e,r)=>Et(e,r.meta),{})}function tp(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function t_(t,e){return e.children.some(r=>r===t||t_(t,r))}const e_=/#/g,gT=/&/g,yT=/\//g,mT=/=/g,_T=/\?/g,r_=/\+/g,wT=/%5B/g,ST=/%5D/g,n_=/%5E/g,bT=/%60/g,i_=/%7B/g,xT=/%7C/g,a_=/%7D/g,CT=/%20/g;function tv(t){return encodeURI(""+t).replace(xT,"|").replace(wT,"[").replace(ST,"]")}function TT(t){return tv(t).replace(i_,"{").replace(a_,"}").replace(n_,"^")}function yc(t){return tv(t).replace(r_,"%2B").replace(CT,"+").replace(e_,"%23").replace(gT,"%26").replace(bT,"`").replace(i_,"{").replace(a_,"}").replace(n_,"^")}function MT(t){return yc(t).replace(mT,"%3D")}function DT(t){return tv(t).replace(e_,"%23").replace(_T,"%3F")}function AT(t){return t==null?"":DT(t).replace(yT,"%2F")}function yl(t){try{return decodeURIComponent(""+t)}catch(e){}return""+t}function PT(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;ia&&yc(a)):[n&&yc(n)]).forEach(a=>{a!==void 0&&(e+=(e.length?"&":"")+r,a!=null&&(e+="="+a))})}return e}function IT(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=Array.isArray(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}function Ca(){let t=[];function e(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function r(){t=[]}return{add:e,list:()=>t,reset:r}}function an(t,e,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(aa(4,{from:r,to:e})):c instanceof Error?s(c):eT(c)?s(aa(2,{from:e,to:c})):(a&&n.enterCallbacks[i]===a&&typeof c=="function"&&a.push(c),o())},u=t.call(n&&n.instances[i],e,r,l);let f=Promise.resolve(u);t.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function Ru(t,e,r,n){const i=[];for(const a of t)for(const o in a.components){let s=a.components[o];if(!(e!=="beforeRouteEnter"&&!a.instances[o]))if(ET(s)){const u=(s.__vccOpts||s)[e];u&&i.push(an(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=FC(u)?u.default:u;a.components[o]=f;const h=(f.__vccOpts||f)[e];return h&&an(h,r,n,a,o)()}))}}return i}function ET(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function rp(t){const e=Ir(Jh),r=Ir(K0),n=tr(()=>e.resolve(to(t.to))),i=tr(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const h=c.findIndex(ia.bind(null,f));if(h>-1)return h;const v=np(l[u-2]);return u>1&&np(f)===v&&c[c.length-1].path!==v?c.findIndex(ia.bind(null,l[u-2])):h}),a=tr(()=>i.value>-1&&kT(r.params,n.value.params)),o=tr(()=>i.value>-1&&i.value===r.matched.length-1&&Z0(r.params,n.value.params));function s(l={}){return OT(l)?e[to(t.replace)?"replace":"push"](to(t.to)).catch(oo):Promise.resolve()}return{route:n,href:tr(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const LT=g0({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:rp,setup(t,{slots:e}){const r=da(rp(t)),{options:n}=Ir(Jh),i=tr(()=>({[ip(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[ip(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=e.default&&e.default(r);return t.custom?a:Qh("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),RT=LT;function OT(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function kT(t,e){for(const r in e){const n=e[r],i=t[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 np(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const ip=(t,e,r)=>t!=null?t:e!=null?e:r,BT=g0({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(t,{attrs:e,slots:r}){const n=Ir(pc),i=tr(()=>t.route||n.value),a=Ir(Yd,0),o=tr(()=>i.value.matched[a]);Xs(Yd,a+1),Xs(NC,o),Xs(pc,i);const s=Fh();return no(()=>[s.value,o.value,t.name],([l,u,f],[c,h,v])=>{u&&(u.instances[f]=l,h&&h!==u&&l&&l===c&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),l&&u&&(!h||!ia(u,h)||!c)&&(u.enterCallbacks[f]||[]).forEach(d=>d(l))},{flush:"post"}),()=>{const l=i.value,u=o.value,f=u&&u.components[t.name],c=t.name;if(!f)return ap(r.default,{Component:f,route:l});const h=u.props[t.name],v=h?h===!0?l.params:typeof h=="function"?h(l):h:null,y=Qh(f,Et({},v,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return ap(r.default,{Component:y,route:l})||y}}});function ap(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const NT=BT;function _N(t){const e=cT(t.routes,t),r=t.parseQuery||PT,n=t.stringifyQuery||ep,i=t.history,a=Ca(),o=Ca(),s=Ca(),l=$b(Wr);let u=Wr;Fi&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Eu.bind(null,k=>""+k),c=Eu.bind(null,AT),h=Eu.bind(null,yl);function v(k,W){let V,tt;return Q0(k)?(V=e.getRecordMatcher(k),tt=W):tt=k,e.addRoute(tt,V)}function d(k){const W=e.getRecordMatcher(k);W&&e.removeRoute(W)}function y(){return e.getRoutes().map(k=>k.record)}function g(k){return!!e.getRecordMatcher(k)}function p(k,W){if(W=Et({},W||l.value),typeof k=="string"){const K=Lu(r,k,W.path),C=e.resolve({path:K.path},W),E=i.createHref(K.fullPath);return Et(K,C,{params:h(C.params),hash:yl(K.hash),redirectedFrom:void 0,href:E})}let V;if("path"in k)V=Et({},k,{path:Lu(r,k.path,W.path).path});else{const K=Et({},k.params);for(const C in K)K[C]==null&&delete K[C];V=Et({},k,{params:c(k.params)}),W.params=c(W.params)}const tt=e.resolve(V,W),vt=k.hash||"";tt.params=f(h(tt.params));const ut=VC(n,Et({},k,{hash:TT(vt),path:tt.path})),Y=i.createHref(ut);return Et({fullPath:ut,hash:vt,query:n===ep?IT(k.query):k.query||{}},tt,{redirectedFrom:void 0,href:Y})}function m(k){return typeof k=="string"?Lu(r,k,l.value.path):Et({},k)}function _(k,W){if(u!==k)return aa(8,{from:W,to:k})}function w(k){return x(k)}function b(k){return w(Et(m(k),{replace:!0}))}function S(k){const W=k.matched[k.matched.length-1];if(W&&W.redirect){const{redirect:V}=W;let tt=typeof V=="function"?V(k):V;return typeof tt=="string"&&(tt=tt.includes("?")||tt.includes("#")?tt=m(tt):{path:tt},tt.params={}),Et({query:k.query,hash:k.hash,params:k.params},tt)}}function x(k,W){const V=u=p(k),tt=l.value,vt=k.state,ut=k.force,Y=k.replace===!0,K=S(V);if(K)return x(Et(m(K),{state:vt,force:ut,replace:Y}),W||V);const C=V;C.redirectedFrom=W;let E;return!ut&&$C(n,tt,V)&&(E=aa(16,{to:C,from:tt}),lt(tt,tt,!0,!1)),(E?Promise.resolve(E):M(C,tt)).catch(R=>Ur(R)?Ur(R,2)?R:Z(R):Q(R,C,tt)).then(R=>{if(R){if(Ur(R,2))return x(Et(m(R.to),{state:vt,force:ut,replace:Y}),W||C)}else R=I(C,tt,!0,Y,vt);return D(C,tt,R),R})}function T(k,W){const V=_(k,W);return V?Promise.reject(V):Promise.resolve()}function M(k,W){let V;const[tt,vt,ut]=FT(k,W);V=Ru(tt.reverse(),"beforeRouteLeave",k,W);for(const K of tt)K.leaveGuards.forEach(C=>{V.push(an(C,k,W))});const Y=T.bind(null,k,W);return V.push(Y),Si(V).then(()=>{V=[];for(const K of a.list())V.push(an(K,k,W));return V.push(Y),Si(V)}).then(()=>{V=Ru(vt,"beforeRouteUpdate",k,W);for(const K of vt)K.updateGuards.forEach(C=>{V.push(an(C,k,W))});return V.push(Y),Si(V)}).then(()=>{V=[];for(const K of k.matched)if(K.beforeEnter&&!W.matched.includes(K))if(Array.isArray(K.beforeEnter))for(const C of K.beforeEnter)V.push(an(C,k,W));else V.push(an(K.beforeEnter,k,W));return V.push(Y),Si(V)}).then(()=>(k.matched.forEach(K=>K.enterCallbacks={}),V=Ru(ut,"beforeRouteEnter",k,W),V.push(Y),Si(V))).then(()=>{V=[];for(const K of o.list())V.push(an(K,k,W));return V.push(Y),Si(V)}).catch(K=>Ur(K,8)?K:Promise.reject(K))}function D(k,W,V){for(const tt of s.list())tt(k,W,V)}function I(k,W,V,tt,vt){const ut=_(k,W);if(ut)return ut;const Y=W===Wr,K=Fi?history.state:{};V&&(tt||Y?i.replace(k.fullPath,Et({scroll:Y&&K&&K.scroll},vt)):i.push(k.fullPath,vt)),l.value=k,lt(k,W,V,Y),Z()}let A;function L(){A=i.listen((k,W,V)=>{const tt=p(k),vt=S(tt);if(vt){x(Et(vt,{replace:!0}),tt).catch(oo);return}u=tt;const ut=l.value;Fi&&ZC(Kd(ut.fullPath,V.delta),Jl()),M(tt,ut).catch(Y=>Ur(Y,12)?Y:Ur(Y,2)?(x(Y.to,tt).then(K=>{Ur(K,20)&&!V.delta&&V.type===Po.pop&&i.go(-1,!1)}).catch(oo),Promise.reject()):(V.delta&&i.go(-V.delta,!1),Q(Y,tt,ut))).then(Y=>{Y=Y||I(tt,ut,!1),Y&&(V.delta?i.go(-V.delta,!1):V.type===Po.pop&&Ur(Y,20)&&i.go(-1,!1)),D(tt,ut,Y)}).catch(oo)})}let O=Ca(),H=Ca(),B;function Q(k,W,V){Z(k);const tt=H.list();return tt.length?tt.forEach(vt=>vt(k,W,V)):console.error(k),Promise.reject(k)}function G(){return B&&l.value!==Wr?Promise.resolve():new Promise((k,W)=>{O.add([k,W])})}function Z(k){return B||(B=!k,L(),O.list().forEach(([W,V])=>k?V(k):W()),O.reset()),k}function lt(k,W,V,tt){const{scrollBehavior:vt}=t;if(!Fi||!vt)return Promise.resolve();const ut=!V&&jC(Kd(k.fullPath,0))||(tt||!V)&&history.state&&history.state.scroll||null;return Hh().then(()=>vt(k,W,ut)).then(Y=>Y&&KC(Y)).catch(Y=>Q(Y,k,W))}const _t=k=>i.go(k);let yt;const pt=new Set;return{currentRoute:l,addRoute:v,removeRoute:d,hasRoute:g,getRoutes:y,resolve:p,options:t,push:w,replace:b,go:_t,back:()=>_t(-1),forward:()=>_t(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:H.add,isReady:G,install(k){const W=this;k.component("RouterLink",RT),k.component("RouterView",NT),k.config.globalProperties.$router=W,Object.defineProperty(k.config.globalProperties,"$route",{enumerable:!0,get:()=>to(l)}),Fi&&!yt&&l.value===Wr&&(yt=!0,w(i.location).catch(vt=>{}));const V={};for(const vt in Wr)V[vt]=tr(()=>l.value[vt]);k.provide(Jh,W),k.provide(K0,da(V)),k.provide(pc,l);const tt=k.unmount;pt.add(k),k.unmount=function(){pt.delete(k),pt.size<1&&(u=Wr,A&&A(),l.value=Wr,yt=!1,B=!1),tt()}}}}function Si(t){return t.reduce((e,r)=>e.then(()=>r()),Promise.resolve())}function FT(t,e){const r=[],n=[],i=[],a=Math.max(e.matched.length,t.matched.length);for(let o=0;oia(u,s))?n.push(s):r.push(s));const l=t.matched[o];l&&(e.matched.find(u=>ia(u,l))||i.push(l))}return[r,n,i]}/*! ***************************************************************************** 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 mc=function(t,e){return mc=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])},mc(t,e)};function J(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");mc(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var zT=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),HT=function(){function t(){this.browser=new zT,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 t}(),Kn=new HT;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Kn.wxa=!0,Kn.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Kn.worker=!0:typeof navigator=="undefined"?(Kn.node=!0,Kn.svgSupported=!0):VT(navigator.userAgent,Kn);function VT(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);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),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var mt=Kn,ev=12,$T="sans-serif",si=ev+"px "+$T,GT=20,WT=100,UT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function YT(t){var e={};if(typeof JSON=="undefined")return e;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;"),t.appendChild(o),r.push(o)}return r}function yM(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?up(s,o):up(o,s))}function h_(t){return t.nodeName.toUpperCase()==="CANVAS"}var mM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Bu=[],_M=mt.browser.firefox&&+mt.browser.version.split(".")[0]<39;function Cc(t,e,r,n){return r=r||{},n?cp(t,e,r):_M&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):cp(t,e,r),r}function cp(t,e,r){if(mt.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(h_(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(xc(Bu,t,n,i)){r.zrX=Bu[0],r.zrY=Bu[1];return}}r.zrX=r.zrY=0}function ov(t){return t||window.event}function Be(t,e,r){if(e=ov(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Cc(t,o,e,r)}else{Cc(t,e,e,r);var a=wM(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&mM.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function wM(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function SM(t,e,r,n){t.addEventListener(e,r,n)}function bM(t,e,r,n){t.removeEventListener(e,r,n)}var v_=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},xM=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(!!i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o1&&n&&n.length>1){var a=hp(n)/hp(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=CM(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},d_="silent";function TM(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.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:MM}}function MM(){v_(this.event)}var DM=function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(_r),Ta=function(){function t(e,r){this.x=e,this.y=r}return t}(),AM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p_=function(t){J(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o._hovered=new Ta(0,0),o.storage=r,o.painter=n,o.painterRoot=a,i=i||new DM,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new hM(o),o}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(P(AM,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=g_(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 Ta(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)},e.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})},e.prototype.resize=function(){this._hovered=new Ta(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=TM(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)}))}},e.prototype.findHover=function(r,n,i){for(var a=this.storage.getDisplayList(),o=new Ta(r,n),s=a.length-1;s>=0;s--){var l=void 0;if(a[s]!==i&&!a[s].ignore&&(l=PM(a[s],r,n))&&(!o.topTarget&&(o.topTarget=a[s]),l!==d_)){o.target=a[s];break}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new xM);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 Ta;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(_r);P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){p_.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=g_(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||uM(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function PM(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?d_:!0}return!1}function g_(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var IM=p_,y_=32,Ma=7;function EM(t){for(var e=0;t>=y_;)e|=t&1,t>>=1;return t+e}function vp(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i=0;)i++;return i-e}function LM(t,e,r){for(r--;e>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Fu(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[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(t,e[r+f])>0?o=f+1:l=f}return l}function zu(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[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(t,e[r+f])<0?l=f:o=f+1}return l}function RM(t,e){var r=Ma,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=Ma||x>=Ma);if(T)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(p=0;p=0;p--)t[S+p]=t[b+p];t[w]=o[_];return}for(var x=r;;){var T=0,M=0,D=!1;do if(e(o[_],t[m])<0){if(t[w--]=t[m--],T++,M=0,--d===0){D=!0;break}}else if(t[w--]=o[_--],M++,T=0,--g===1){D=!0;break}while((T|M)=0;p--)t[S+p]=t[b+p];if(d===0){D=!0;break}}if(t[w--]=o[_--],--g===1){D=!0;break}if(M=g-Fu(t[m],o,0,g,g-1,e),M!==0){for(w-=M,_-=M,g-=M,S=w+1,b=_+1,p=0;p=Ma||M>=Ma);if(D)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),g===1){for(w-=d,m-=d,S=w+1,b=m+1,p=d-1;p>=0;p--)t[S+p]=t[b+p];t[w]=o[_]}else{if(g===0)throw new Error;for(b=w-(g-1),p=0;ps&&(l=s),dp(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Te=1,Xa=2,zi=4,pp=!1;function Hu(){pp||(pp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gp(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var OM=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gp}return t.prototype.traverse=function(e,r){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(Hu(),f.z=0),isNaN(f.z2)&&(Hu(),f.z2=0),isNaN(f.zlevel)&&(Hu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),kM=OM,m_;m_=mt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Tc=m_,Qs={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Qs.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Qs.bounceIn(t*2)*.5:Qs.bounceOut(t*2-1)*.5+.5}},__=Qs,ls=Math.pow,vn=Math.sqrt,wl=1e-8,w_=1e-4,yp=vn(3),us=1/3,cr=ya(),He=ya(),Zi=ya();function on(t){return t>-wl&&twl||t<-wl}function Xt(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function mp(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function Sl(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(on(f)&&on(c))if(on(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=c*c-4*f*h;if(on(y)){var g=c/f,d=-s/o+g,p=-g/2;d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p)}else if(y>0){var m=vn(y),_=f*s+1.5*o*(-c+m),w=f*s+1.5*o*(-c-m);_<0?_=-ls(-_,us):_=ls(_,us),w<0?w=-ls(-w,us):w=ls(w,us);var d=(-s-(_+w))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*c)/(2*vn(f*f*f)),S=Math.acos(b)/3,x=vn(f),T=Math.cos(S),d=(-s-2*x*T)/(3*o),p=(-s+x*(T+yp*Math.sin(S)))/(3*o),M=(-s+x*(T-yp*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p),M>=0&&M<=1&&(a[v++]=M)}}return v}function b_(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(on(o)){if(S_(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(on(f))i[0]=-a/(2*o);else if(f>0){var c=vn(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function bl(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function BM(t,e,r,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,y,g,p;cr[0]=l,cr[1]=u;for(var m=0;m<1;m+=.05)He[0]=Xt(t,r,i,o,m),He[1]=Xt(e,n,a,s,m),g=Ki(cr,He),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(on(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=vn(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function x_(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function xl(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function zM(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;cr[0]=o,cr[1]=s;for(var h=0;h<1;h+=.05){He[0]=re(t,r,i,h),He[1]=re(e,n,a,h);var v=Ki(cr,He);v=0&&v=1?1:Sl(0,n,a,1,l,s)&&Xt(0,i,o,1,s[0])}}}var $M=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||_e,this.ondestroy=e.ondestroy||_e,this.onrestart=e.onrestart||_e,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-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=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=dt(e)?e:__[e]||C_(e)},t}(),GM=$M,T_=function(){function t(e){this.value=e}return t}(),WM=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new T_(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),UM=function(){function t(e){this._list=new WM,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==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 T_(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Ko=UM,wp={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 dn(t){return t=Math.round(t),t<0?0:t>255?255:t}function Mc(t){return t<0?0:t>1?1:t}function Vu(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?dn(parseFloat(e)/100*255):dn(parseInt(e,10))}function Cl(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Mc(parseFloat(e)/100):Mc(parseFloat(e))}function $u(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function fs(t,e,r){return t+(e-t)*r}function ke(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Dc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var M_=new Ko(20),cs=null;function xi(t,e){cs&&Dc(cs,e),cs=M_.put(t,cs||e.slice())}function Er(t,e){if(!!t){e=e||[];var r=M_.get(t);if(r)return Dc(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in wp)return Dc(e,wp[n]),xi(t,e),e;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)){ke(e,0,0,0,1);return}return ke(e,(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),xi(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ke(e,0,0,0,1);return}return ke(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),xi(t,e),e}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?ke(e,+u[0],+u[1],+u[2],1):ke(e,0,0,0,1);f=Cl(u.pop());case"rgb":if(u.length!==3){ke(e,0,0,0,1);return}return ke(e,Vu(u[0]),Vu(u[1]),Vu(u[2]),f),xi(t,e),e;case"hsla":if(u.length!==4){ke(e,0,0,0,1);return}return u[3]=Cl(u[3]),Sp(u,e),xi(t,e),e;case"hsl":if(u.length!==3){ke(e,0,0,0,1);return}return Sp(u,e),xi(t,e),e;default:return}}ke(e,0,0,0,1)}}function Sp(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Cl(t[1]),i=Cl(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],ke(e,dn($u(o,a,r+1/3)*255),dn($u(o,a,r)*255),dn($u(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function bp(t,e){var r=Er(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return nu(r,r.length===4?"rgba":"rgb")}}function YM(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Er(e[i]),s=Er(e[a]),l=n-i,u=nu([dn(fs(o[0],s[0],l)),dn(fs(o[1],s[1],l)),dn(fs(o[2],s[2],l)),Mc(fs(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function nu(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Tl(t,e){var r=Er(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function XM(t){return t.type==="linear"}function qM(t){return t.type==="radial"}(function(){return mt.hasGlobalWindow&&dt(window.btoa)?function(t){return window.btoa(unescape(t))}:typeof Buffer!="undefined"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var Ac=Array.prototype.slice;function Tr(t,e,r){return(e-t)*r+t}function Gu(t,e,r,n){for(var i=e.length,a=0;an?e:t,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},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Cp,l=r;if(we(r)){var u=QM(r);s=u,(u===1&&!$t(r[0])||u===2&&!$t(r[0][0]))&&(o=!0)}else if($t(r)&&!_l(r))s=vs;else if(nt(r))if(!isNaN(+r))s=vs;else{var f=Er(r);f&&(l=f,s=qa)}else if(eu(r)){var c=q({},l);c.colorStops=ct(r.colorStops,function(v){return{offset:v.offset,color:Er(v.color)}}),XM(r)?s=Pc:qM(r)&&(s=Ic),l=c}a===0?this.valType=s:(s!==this.valType||s===Cp)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=dt(n)?n:__[n]||C_(n)),i.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(y,g){return y.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=ds(i),u=Tp(i),f=0;f=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;fr);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=r;var g=d.percent-v.percent,p=g===0?1:h((r-v.percent)/g,1);d.easingFunc&&(p=d.easingFunc(p));var m=n?this._additiveValue:u?Da:e[l];if((ds(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=p<1?v.rawValue:d.rawValue;else if(ds(a))a===el?Gu(m,v[i],d[i],p):KM(m,v[i],d[i],p);else if(Tp(a)){var _=v[i],w=d[i],b=a===Pc;e[l]={type:b?"linear":"radial",x:Tr(_.x,w.x,p),y:Tr(_.y,w.y,p),colorStops:ct(_.colorStops,function(x,T){var M=w.colorStops[T];return{offset:Tr(x.offset,M.offset,p),color:tl(Gu([],x.color,M.color,p))}}),global:w.global},b?(e[l].x2=Tr(_.x2,w.x2,p),e[l].y2=Tr(_.y2,w.y2,p)):e[l].r=Tr(_.r,w.r,p)}else if(u)Gu(m,v[i],d[i],p),n||(e[l]=tl(m));else{var S=Tr(v[i],d[i],p);n?this._additiveValue=S:e[l]=S}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===vs?e[n]=e[n]+i:r===qa?(Er(e[n],Da),hs(Da,Da,i,1),e[n]=tl(Da)):r===el?hs(e[n],e[n],i,1):r===D_&&xp(e[n],e[n],i,1)},t}(),tD=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){iv("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Vt(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Js(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Js(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.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,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}(),sv=tD;function Gi(){return new Date().getTime()}var eD=function(t){J(e,t);function e(r){var n=t.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 e.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},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.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}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Gi()-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())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Tc(n),!r._paused&&r.update())}Tc(n)},e.prototype.start=function(){this._running||(this._time=Gi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Gi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Gi()-this._pauseStart,this._paused=!1)},e.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},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new sv(r,n.loop);return this.addAnimator(i),i},e}(_r),rD=eD,nD=300,Wu=mt.domSupported,Uu=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ct(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),Mp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Dp=!1;function Ec(t){var e=t.pointerType;return e==="pen"||e==="touch"}function iD(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Yu(t){t&&(t.zrByTouch=!0)}function aD(t,e){return Be(t.dom,new oD(t,e),!0)}function A_(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var oD=function(){function t(e,r){this.stopPropagation=_e,this.stopImmediatePropagation=_e,this.preventDefault=_e,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),je={mousedown:function(t){t=Be(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Be(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Be(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Be(this.dom,t);var e=t.toElement||t.relatedTarget;A_(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Dp=!0,t=Be(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Dp||(t=Be(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Be(this.dom,t),Yu(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),je.mousemove.call(this,t),je.mousedown.call(this,t)},touchmove:function(t){t=Be(this.dom,t),Yu(t),this.handler.processGesture(t,"change"),je.mousemove.call(this,t)},touchend:function(t){t=Be(this.dom,t),Yu(t),this.handler.processGesture(t,"end"),je.mouseup.call(this,t),+new Date-+this.__lastTouchMomentIp||t<-Ip}var Mn=[],Ci=[],qu=Eo(),Ku=Math.abs,cv=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Tn(this.rotation)||Tn(this.x)||Tn(this.y)||Tn(this.scaleX-1)||Tn(this.scaleY-1)||Tn(this.skewX)||Tn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&Pp(n);return}n=n||Eo(),r?this.getLocalTransform(n):Pp(n),e&&(r?ji(n,e,n):hD(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Mn);var n=Mn[0]<0?-1:1,i=Mn[1]<0?-1:1,a=((Mn[0]-n)*r+n)/Mn[0]||0,o=((Mn[1]-i)*r+i)/Mn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Eo(),fv(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(!!e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(!!this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(ji(Ci,e.invTransform,r),r=Ci);var n=this.originX,i=this.originY;(n||i)&&(qu[4]=n,qu[5]=i,ji(Ci,r,qu),Ci[4]-=n,Ci[5]-=i,r=Ci),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&Ye(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&Ye(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Ku(e[0]-1)>1e-10&&Ku(e[3]-1)>1e-10?Math.sqrt(Ku(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){dD(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,y=i+l;r[4]=-d*a-h*y*o,r[5]=-y*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,u&&uv(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Lo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dD(t,e){for(var r=0;rd&&(d=_,yd&&(d=w,p=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,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];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Dn.x=Pn.x=r.x,Dn.y=In.y=r.y,An.x=In.x=r.x+r.width,An.y=Pn.y=r.y+r.height,Dn.transform(n),In.transform(n),An.transform(n),Pn.transform(n),e.x=ps(Dn.x,An.x,Pn.x,In.x),e.y=ps(Dn.y,An.y,Pn.y,In.y);var l=gs(Dn.x,An.x,Pn.x,In.x),u=gs(Dn.y,An.y,Pn.y,In.y);e.width=l-e.x,e.height=u-e.y},t}(),Ot=gD,Ep={};function De(t,e){e=e||si;var r=Ep[e];r||(r=Ep[e]=new Ko(500));var n=r.get(t);return n==null&&(n=di.measureText(t,e).width,r.put(t,n)),n}function Lp(t,e,r,n){var i=De(t,e),a=vv(e),o=Ka(0,i,r),s=Hi(0,a,n),l=new Ot(o,s,i,a);return l}function hv(t,e,r,n){var i=((t||"")+"").split(` `),a=i.length;if(a===1)return Lp(i[0],e,r,n);for(var o=new Ot(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function I_(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.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+=li(n[0],r.width),u+=li(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 t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Zu="__zr_normal__",ju=Lo.concat(["ignore"]),yD=ga(Lo,function(t,e){return t[e]=!0,t},{ignore:!1}),Ti={},mD=new Ot(0,0,0,0),dv=function(){function t(e){this.id=l_(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){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=mD;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ti,n,f):I_(Ti,n,f),a.x=Ti.x,a.y=Ti.y,o=Ti.align,s=Ti.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=li(c[0],f.width),v=li(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var y=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,m=void 0,_=void 0;y&&this.canBeInsideText()?(p=n.insideFill,m=n.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(p),_=!0)):(p=n.outsideFill,m=n.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(p),_=!0)),p=p||"#000",(p!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=p,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Te,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?kc:Oc},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Er(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,nu(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},q(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(st(e))for(var n=e,i=Vt(n),a=0;a0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Zu,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Zu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Pt(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){iv("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(e,r,n,f),h&&h.useState(e,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Te),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l0,d);var y=this._textContent,g=this._textGuide;y&&y.useStates(e,r,h),g&&g.useStates(e,r,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Te)}},t.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=Pt(i,e),o=Pt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(d,y){r.during(y)});for(var h=0;h0||i.force&&!o.length){var T=void 0,M=void 0,D=void 0;if(s){M={},h&&(T={});for(var w=0;w<_;w++){var p=y[w];M[p]=r[p],h?T[p]=n[p]:r[p]=n[p]}}else if(h){D={};for(var w=0;w<_;w++){var p=y[w];D[p]=Js(r[p]),wD(r,n,p)}}var b=new sv(r,!1,!1,c?ge(d,function(A){return A.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),h&&T&&b.whenWithKeys(0,T,y),D&&b.whenWithKeys(0,D,y),b.whenWithKeys(u==null?500:u,s?M:n,y).delay(f||0),t.addAnimator(b,e),o.push(b)}}var L_=dv,R_=function(t){J(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=Pt(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.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},e.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()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Pt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this.handler.off(e,r)},t.prototype.trigger=function(e,r){this.handler.trigger(e,r)},t.prototype.clear=function(){for(var e=this.storage.getRoots(),r=0;r0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}function ue(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return nt(t)?DD(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Yt(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),k_),t=(+t).toFixed(e),r?t:+t}function Ar(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return AD(t)}function AD(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function PD(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function ID(t,e){var r=Math.max(Ar(t),Ar(e)),n=t+e;return r>k_?n:Yt(n,r)}function B_(t){var e=Math.PI*2;return(t%e+e)%e}function Dl(t){return t>-Op&&t=10&&e++,e}function N_(t,e){var r=pv(t),n=Math.pow(10,r),i=t/n,a;return e?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,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Al(t){var e=parseFloat(t);return e==t&&(e!==0||!nt(t)||t.indexOf("x")<=0)?e:NaN}function RD(t){return!isNaN(Al(t))}function F_(){return Math.round(Math.random()*9)}function z_(t,e){return e===0?t:z_(e,t%e)}function Bp(t,e){return t==null?e:e==null?t:t*e/z_(t,e)}function ye(t){throw new Error(t)}function Np(t,e,r){return(e-t)*r+t}var H_="series\0",OD="\0_ec_\0";function fe(t){return t instanceof Array?t:t==null?[]:[t]}function Fp(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n=0||a&&Pt(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var nA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],iA=Oo(nA),aA=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return iA(this,e,r)},t}(),Nc=new Ko(50);function oA(t){if(typeof t=="string"){var e=Nc.get(t);return e&&e.image}else return t}function U_(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Nc.get(t),o={hostEl:r,cb:n,cbPayload:i};if(a)e=a.image,!au(e)&&a.pending.push(o);else{var s=di.loadImage(t,Hp,Hp);s.__zrImageSrc=t,Nc.put(t,s.__cachedImgObj={image:s,pending:[o]})}return e}else return t;else return e}function Hp(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=De(r,e);return u>s&&(r="",u=0),s=t-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function X_(t,e){var r=e.containerWidth,n=e.font,i=e.contentWidth;if(!r)return"";var a=De(t,n);if(a<=r)return t;for(var o=0;;o++){if(a<=i||o>=e.maxIterations){t+=e.ellipsis;break}var s=o===0?lA(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,s),a=De(t,n)}return t===""&&(t=e.placeholder),t}function lA(t,e,r,n){for(var i=0,a=0,o=t.length;av&&u){var d=Math.floor(v/s);c=c.slice(0,d)}if(t&&a&&f!=null)for(var y=Y_(f,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&rf(r,t.substring(s,u),e,o),rf(r,l[2],e,o,l[1]),s=ef.lastIndex}si){b>0?(m.tokens=m.tokens.slice(0,b),g(m,w,_),r.lines=r.lines.slice(0,p+1)):r.lines=r.lines.slice(0,p);break t}var A=x.width,L=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")S.percentWidth=A,f.push(S),S.contentWidth=De(S.text,D);else{if(L){var O=x.backgroundColor,H=O&&O.image;H&&(H=oA(H),au(H)&&(S.width=Math.max(S.width,H.width*I/H.height)))}var B=d&&n!=null?n-w:null;B!=null&&B0&&d+n.accumWidth>n.width&&(f=e.split(` `),u=!0),n.accumWidth=d}else{var y=q_(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+v,c=y.linesWidths,f=y.lines}}else f=e.split(` `);for(var g=0;g=33&&e<=383}var dA=ga(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function pA(t){return vA(t)?!!dA[t]:!0}function q_(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;cr:i+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=t,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 Fc="__zr_style_"+Math.round(Math.random()*10),ri={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ou={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ri[Fc]=!0;var $p=["z","z2","invisible"],gA=["invisible"],yA=function(t){J(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Vt(r),i=0;i1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(ys[0]=sf(i)*r+t,ys[1]=of(i)*n+e,ms[0]=sf(a)*r+t,ms[1]=of(a)*n+e,u(s,ys,ms),f(l,ys,ms),i=i%Ln,i<0&&(i=i+Ln),a=a%Ln,a<0&&(a=a+Ln),i>a&&!o?a+=Ln:ii&&(_s[0]=sf(v)*r+t,_s[1]=of(v)*n+e,u(s,_s,s),f(l,_s,l))}var Ct={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Rn=[],On=[],or=[],Yr=[],sr=[],lr=[],lf=Math.min,uf=Math.max,kn=Math.cos,Bn=Math.sin,Sr=Math.abs,zc=Math.PI,en=zc*2,ff=typeof Float32Array!="undefined",Ia=[];function cf(t){var e=Math.round(t/zc*1e8)/1e8;return e%2*zc}function bA(t,e){var r=cf(t[0]);r<0&&(r+=en);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=en?i=r+en:e&&r-i>=en?i=r-en:!e&&r>i?i=r+(en-cf(r-i)):e&&r0&&(this._ux=Sr(n/Ml/e)||0,this._uy=Sr(n/Ml/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ct.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Sr(e-this._xi),i=Sr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Ct.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Ct.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Ct.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Ia[0]=i,Ia[1]=a,bA(Ia,o),i=Ia[0],a=Ia[1];var s=a-i;return this.addData(Ct.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=kn(a)*n+e,this._yi=Bn(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Ct.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ct.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&ff&&(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)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){or[0]=or[1]=sr[0]=sr[1]=Number.MAX_VALUE,Yr[0]=Yr[1]=lr[0]=lr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Sr(_)>i||h===r-1)&&(y=Math.sqrt(m*m+_*_),a=g,o=p);break}case Ct.C:{var w=e[h++],b=e[h++],g=e[h++],p=e[h++],S=e[h++],x=e[h++];y=NM(a,o,w,b,g,p,S,x,10),a=S,o=x;break}case Ct.Q:{var w=e[h++],b=e[h++],g=e[h++],p=e[h++];y=HM(a,o,w,b,g,p,10),a=g,o=p;break}case Ct.A:var T=e[h++],M=e[h++],D=e[h++],I=e[h++],A=e[h++],L=e[h++],O=L+A;h+=1,e[h++],d&&(s=kn(A)*D+T,l=Bn(A)*I+M),y=uf(D,I)*lf(en,Math.abs(L)),a=kn(O)*D+T,o=Bn(O)*I+M;break;case Ct.R:{s=a=e[h++],l=o=e[h++];var H=e[h++],B=e[h++];y=H*2+B*2;break}case Ct.Z:{var m=s-a,_=l-o;y=Math.sqrt(m*m+_*_),a=s,o=l;break}}y>=0&&(u[c++]=y,f+=y)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,v=r<1,d,y,g=0,p=0,m,_=0,w,b;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,m=r*y,!m))return;t:for(var S=0;S0&&(e.lineTo(w,b),_=0),x){case Ct.M:s=u=n[S++],l=f=n[S++],e.moveTo(u,f);break;case Ct.L:{c=n[S++],h=n[S++];var M=Sr(c-u),D=Sr(h-f);if(M>i||D>a){if(v){var I=d[p++];if(g+I>m){var A=(m-g)/I;e.lineTo(u*(1-A)+c*A,f*(1-A)+h*A);break t}g+=I}e.lineTo(c,h),u=c,f=h,_=0}else{var L=M*M+D*D;L>_&&(w=c,b=h,_=L)}break}case Ct.C:{var O=n[S++],H=n[S++],B=n[S++],Q=n[S++],G=n[S++],Z=n[S++];if(v){var I=d[p++];if(g+I>m){var A=(m-g)/I;bl(u,O,B,G,A,Rn),bl(f,H,Q,Z,A,On),e.bezierCurveTo(Rn[1],On[1],Rn[2],On[2],Rn[3],On[3]);break t}g+=I}e.bezierCurveTo(O,H,B,Q,G,Z),u=G,f=Z;break}case Ct.Q:{var O=n[S++],H=n[S++],B=n[S++],Q=n[S++];if(v){var I=d[p++];if(g+I>m){var A=(m-g)/I;xl(u,O,B,A,Rn),xl(f,H,Q,A,On),e.quadraticCurveTo(Rn[1],On[1],Rn[2],On[2]);break t}g+=I}e.quadraticCurveTo(O,H,B,Q),u=B,f=Q;break}case Ct.A:var lt=n[S++],_t=n[S++],yt=n[S++],pt=n[S++],At=n[S++],k=n[S++],W=n[S++],V=!n[S++],tt=yt>pt?yt:pt,vt=Sr(yt-pt)>.001,ut=At+k,Y=!1;if(v){var I=d[p++];g+I>m&&(ut=At+k*(m-g)/I,Y=!0),g+=I}if(vt&&e.ellipse?e.ellipse(lt,_t,yt,pt,W,At,ut,V):e.arc(lt,_t,tt,At,ut,V),Y)break t;T&&(s=kn(At)*yt+lt,l=Bn(At)*pt+_t),u=kn(ut)*yt+lt,f=Bn(ut)*pt+_t;break;case Ct.R:s=u=n[S],l=f=n[S+1],c=n[S++],h=n[S++];var K=n[S++],C=n[S++];if(v){var I=d[p++];if(g+I>m){var E=m-g;e.moveTo(c,h),e.lineTo(c+lf(E,K),h),E-=K,E>0&&e.lineTo(c+K,h+lf(E,C)),E-=C,E>0&&e.lineTo(c+uf(K-E,0),h+C),E-=K,E>0&&e.lineTo(c,h+uf(C-E,0));break t}g+=I}e.rect(c,h,K,C);break;case Ct.Z:if(v){var I=d[p++];if(g+I>m){var A=(m-g)/I;e.lineTo(u*(1-A)+s*A,f*(1-A)+l*A);break t}g+=I}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=Ct,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),fi=xA;function Mi(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||ot+s&&a>r+s||ae+c&&f>n+c&&f>a+c&&f>s+c||ft+c&&u>r+c&&u>i+c&&u>o+c||ue+u&&l>n+u&&l>a+u||lt+u&&s>r+u&&s>i+u||sr||f+ui&&(i+=Ea);var h=Math.atan2(l,s);return h<0&&(h+=Ea),h>=n&&h<=i||h+Ea>=n&&h+Ea<=i}function Nn(t,e,r,n,i,a){if(a>e&&a>n||ai?s:0}var Xr=fi.CMD,Fn=Math.PI*2,DA=1e-4;function AA(t,e){return Math.abs(t-e)e&&u>n&&u>a&&u>s||u1&&PA(),v=Xt(e,n,a,s,Fe[0]),h>1&&(d=Xt(e,n,a,s,Fe[1]))),h===2?ge&&s>n&&s>a||s=0&&u<=1){for(var f=0,c=re(e,n,a,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);le[0]=-l,le[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Fn-1e-4){n=0,i=Fn;var f=a?1:-1;return o>=le[0]+t&&o<=le[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Fn,i+=Fn);for(var h=0,v=0;v<2;v++){var d=le[v];if(d+t>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=Fn+y),(y>=n&&y<=i||y+Fn>=n&&y+Fn<=i)&&(y>Math.PI/2&&y1&&(r||(s+=Nn(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),y){case Xr.M:f=a[d++],c=a[d++],l=f,u=c;break;case Xr.L:if(r){if(Mi(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Nn(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Xr.C:if(r){if(CA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=IA(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 Xr.Q:if(r){if(TA(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=EA(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Xr.A:var p=a[d++],m=a[d++],_=a[d++],w=a[d++],b=a[d++],S=a[d++];d+=1;var x=!!(1-a[d++]);h=Math.cos(b)*_+p,v=Math.sin(b)*w+m,g?(f=h,c=v):s+=Nn(l,u,h,v,n,i);var T=(n-p)*w/_+p;if(r){if(MA(p,m,w,b,b+S,x,e,T,i))return!0}else s+=LA(p,m,w,b,b+S,x,T,i);l=Math.cos(b+S)*_+p,u=Math.sin(b+S)*w+m;break;case Xr.R:f=l=a[d++],c=u=a[d++];var M=a[d++],D=a[d++];if(h=f+M,v=c+D,r){if(Mi(f,c,h,c,e,n,i)||Mi(h,c,h,v,e,n,i)||Mi(h,v,f,v,e,n,i)||Mi(f,v,f,c,e,n,i))return!0}else s+=Nn(h,c,h,v,n,i),s+=Nn(f,v,f,c,n,i);break;case Xr.Z:if(r){if(Mi(l,u,f,c,e,n,i))return!0}else s+=Nn(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!AA(u,c)&&(s+=Nn(l,u,f,c,n,i)||0),s!==0}function RA(t,e,r){return K_(t,0,!1,e,r)}function OA(t,e,r,n){return K_(t,e,!0,r,n)}var Z_=Dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ri),kA={style:Dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ou.style)},hf=Lo.concat(["invisible","culling","z","z2","zlevel","parent"]),BA=function(t){J(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.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?Oc:n>.2?cD:kc}else if(r)return kc}return Oc},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(nt(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Tl(r,0)0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.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&zi)&&(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},e.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)),OA(s,l/u,r,n)))return!0}if(this.hasFill())return RA(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=zi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:q(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&zi)},e.prototype.createStyle=function(r){return ru(Z_,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=q({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.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=q({},i.shape),q(u,n.shape)):(u=q({},a?this.shape:i.shape),q(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=q({},this.shape);for(var f={},c=Vt(u),h=0;h0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return ru(NA,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=hv(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},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(Qo);j_.prototype.type="tspan";var Hc=j_,FA=Dt({x:0,y:0},ri),zA={style:Dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ou.style)};function HA(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Q_=function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return ru(FA,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=HA(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},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return zA},e.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},e}(Qo);Q_.prototype.type="image";var pi=Q_;function VA(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.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),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Wi=Math.round;function J_(t,e,r){if(!!e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Wi(n*2)===Wi(i*2)&&(t.x1=t.x2=Jn(n,s,!0)),Wi(a*2)===Wi(o*2)&&(t.y1=t.y2=Jn(a,s,!0))),t}}function t1(t,e,r){if(!!e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Jn(n,s,!0),t.y=Jn(i,s,!0),t.width=Math.max(Jn(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Jn(i+o,s,!1)-t.y,o===0?0:1)),t}}function Jn(t,e,r){if(!e)return t;var n=Wi(t*2);return(n+Wi(e))%2===0?n/2:(n+(r?1:-1))/2}var $A=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),GA={},e1=function(t){J(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new $A},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=t1(GA,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?VA(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(kt);e1.prototype.type="rect";var Qt=e1,Xp={fill:"#000"},qp=2,WA={style:Dt({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},ou.style)},r1=function(t){J(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Xp,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.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=S[L],O.align==="right");)this._placeToken(O,r,T,p,A,"right",_),M-=O.width,A-=O.width,L--;for(I+=(a-(I-g)-(m-A)-M)/2;D<=L;)O=S[D],this._placeToken(O,r,T,p,I+O.width/2,"center",_),I+=O.width,D++;p+=T}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&vf(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=tg(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(Hc),g=y.createStyle();y.useStyle(g);var p=this._defaultStyle,m=!1,_=0,w=Jp("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,p.fill)),b=Qp("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!p.autoStroke||m)?(_=qp,p.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,S&&(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||si,g.opacity=Zs(u.opacity,n.opacity,1),Zp(g,u),b&&(g.lineWidth=Zs(u.lineWidth,n.lineWidth,_),g.lineDash=Mt(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=b),w&&(g.fill=w);var x=r.contentWidth,T=r.contentHeight;y.setBoundingRect(new Ot(Ka(g.x,x,g.textAlign),Hi(g.y,T,g.textBaseline),x,T))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,v=r.borderRadius,d=this,y,g;if(h||r.lineHeight||u&&f){y=this._getOrCreateChild(Qt),y.useStyle(y.createStyle()),y.style.fill=null;var p=y.shape;p.x=i,p.y=a,p.width=o,p.height=s,p.r=v,y.dirtyShape()}if(h){var m=y.style;m.fill=l||null,m.fillOpacity=Mt(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(pi),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=y.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=Mt(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var w=(y||g).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=Zs(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return qA(r)&&(n=[r.fontStyle,r.fontWeight,XA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&vr(n)||r.textFont||r.font},e}(Qo),UA={left:!0,right:1,center:1},YA={top:1,bottom:1,middle:1},Kp=["fontStyle","fontWeight","fontSize","fontFamily"];function XA(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?ev+"px":t+"px"}function Zp(t,e){for(var r=0;r=0,a=!1;if(t instanceof kt){var o=n1(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Di(s)||Di(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=q({},n),u=q({},u),u.fill=s):!Di(u.fill)&&Di(s)?(a=!0,n=q({},n),u=q({},u),u.fill=og(s)):!Di(u.stroke)&&Di(l)&&(a||(n=q({},n),u=q({},u)),u.stroke=og(l)),n.style=u}}if(n&&n.z2==null){a||(n=q({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f!=null?f:jA)}return n}function nP(t,e,r){if(r&&r.z2==null){r=q({},r);var n=t.z2SelectLift;r.z2=t.z2+(n!=null?n:QA)}return r}function iP(t,e,r){var n=Pt(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:eP(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=q({},r),o=q({opacity:n?i:a.opacity*.1},o),r.style=o),r}function df(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return rP(this,t,e,r);if(t==="blur")return iP(this,t,r);if(t==="select")return nP(this,t,r)}return r}function aP(t){t.stateProxy=df;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=df),r&&(r.stateProxy=df)}function ug(t,e){!f1(t,e)&&!t.__highByOuter&&Fr(t,i1)}function fg(t,e){!f1(t,e)&&!t.__highByOuter&&Fr(t,a1)}function Pl(t,e){t.__highByOuter|=1<<(e||0),Fr(t,i1)}function Il(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Fr(t,a1)}function oP(t){Fr(t,Sv)}function s1(t){Fr(t,o1)}function l1(t){Fr(t,JA)}function u1(t){Fr(t,tP)}function f1(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function c1(t){var e=t.getModel();e.eachComponent(function(r,n){var i=_v(n);if(i.isBlured){var a=r==="series"?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n);a.group.traverse(function(o){o1(o)})}i.isBlured=!1})}function Vc(t,e,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),e.push(s)}})}),e}function Gc(t,e,r){h1(t,!0),Fr(t,aP),vP(t,e,r)}function hP(t){h1(t,!1)}function Wc(t,e,r,n){n?hP(t):Gc(t,e,r)}function vP(t,e,r){var n=Bt(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var hg=["emphasis","blur","select"],dP={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vg(t,e,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=pf(d),s*=pf(d));var y=(i===a?-1:1)*pf((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=y*o*v/s,p=y*-s*h/o,m=(t+r)/2+bs(c)*g-Ss(c)*p,_=(e+n)/2+Ss(c)*g+bs(c)*p,w=yg([1,0],[(h-g)/o,(v-p)/s]),b=[(h-g)/o,(v-p)/s],S=[(-1*h-g)/o,(-1*v-p)/s],x=yg(b,S);if(Xc(b,S)<=-1&&(x=La),Xc(b,S)>=1&&(x=0),x<0){var T=Math.round(x/La*1e6)/1e6;x=La*2+T%2*La}f.addData(u,m,_,o,s,w,x,c,a)}var wP=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,SP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bP(t){var e=new fi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=fi.CMD,l=t.match(wP);if(!l)return e;for(var u=0;uO*O+H*H&&(T=D,M=I),{cx:T,cy:M,x0:-f,y0:-c,x1:T*(i/b-1),y1:M*(i/b-1)}}function IP(t){var e;if(et(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function EP(t,e){var r,n=Za(e.r,0),i=Za(e.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=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,h=!!e.clockwise,v=_g(u-l),d=v>gf&&v%gf;if(d>Ze&&(v=d),!(n>Ze))t.moveTo(f,c);else if(v>gf-Ze)t.moveTo(f+n*Pi(l),c+n*zn(l)),t.arc(f,c,n,l,u,!h),i>Ze&&(t.moveTo(f+i*Pi(u),c+i*zn(u)),t.arc(f,c,i,u,l,h));else{var y=void 0,g=void 0,p=void 0,m=void 0,_=void 0,w=void 0,b=void 0,S=void 0,x=void 0,T=void 0,M=void 0,D=void 0,I=void 0,A=void 0,L=void 0,O=void 0,H=n*Pi(l),B=n*zn(l),Q=i*Pi(u),G=i*zn(u),Z=v>Ze;if(Z){var lt=e.cornerRadius;lt&&(r=IP(lt),y=r[0],g=r[1],p=r[2],m=r[3]);var _t=_g(n-i)/2;if(_=ur(_t,p),w=ur(_t,m),b=ur(_t,y),S=ur(_t,g),M=x=Za(_,w),D=T=Za(b,S),(x>Ze||T>Ze)&&(I=n*Pi(u),A=n*zn(u),L=i*Pi(l),O=i*zn(l),v<_1)){var yt=PP(H,B,L,O,I,A,Q,G);if(yt){var pt=H-yt[0],At=B-yt[1],k=I-yt[0],W=A-yt[1],V=1/zn(AP((pt*k+At*W)/(ho(pt*pt+At*At)*ho(k*k+W*W)))/2),tt=ho(yt[0]*yt[0]+yt[1]*yt[1]);M=ur(x,(n-tt)/(V+1)),D=ur(T,(i-tt)/(V-1))}}}if(!Z)t.moveTo(f+H,c+B);else if(M>Ze){var vt=ur(p,M),ut=ur(m,M),Y=xs(L,O,H,B,n,vt,h),K=xs(I,A,Q,G,n,ut,h);t.moveTo(f+Y.cx+Y.x0,c+Y.cy+Y.y0),M0&&t.arc(f+Y.cx,c+Y.cy,vt,te(Y.y0,Y.x0),te(Y.y1,Y.x1),!h),t.arc(f,c,n,te(Y.cy+Y.y1,Y.cx+Y.x1),te(K.cy+K.y1,K.cx+K.x1),!h),ut>0&&t.arc(f+K.cx,c+K.cy,ut,te(K.y1,K.x1),te(K.y0,K.x0),!h))}else t.moveTo(f+H,c+B),t.arc(f,c,n,l,u,!h);if(!(i>Ze)||!Z)t.lineTo(f+Q,c+G);else if(D>Ze){var vt=ur(y,D),ut=ur(g,D),Y=xs(Q,G,I,A,i,-ut,h),K=xs(H,B,L,O,i,-vt,h);t.lineTo(f+Y.cx+Y.x0,c+Y.cy+Y.y0),D0&&t.arc(f+Y.cx,c+Y.cy,ut,te(Y.y0,Y.x0),te(Y.y1,Y.x1),!h),t.arc(f,c,i,te(Y.cy+Y.y1,Y.cx+Y.x1),te(K.cy+K.y1,K.cx+K.x1),h),vt>0&&t.arc(f+K.cx,c+K.cy,vt,te(K.y1,K.x1),te(K.y0,K.x0),!h))}else t.lineTo(f+Q,c+G),t.arc(f,c,i,u,l,h)}t.closePath()}}}var LP=function(){function t(){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 t}(),w1=function(t){J(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new LP},e.prototype.buildPath=function(r,n){EP(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(kt);w1.prototype.type="sector";var Cv=w1,RP=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),S1=function(t){J(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new RP},e.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)},e}(kt);S1.prototype.type="ring";var b1=S1;function OP(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=t.length;h=2){if(n){var a=OP(i,n,r,e.smoothConstraint);t.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];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;sVn[1]){if(s=!1,a)return s;var f=Math.abs(Vn[0]-Hn[1]),c=Math.abs(Hn[0]-Vn[1]);Math.min(f,c)>i.len()&&(f0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function wn(t,e,r,n,i,a){Mv("update",t,e,r,n,i,a)}function Jo(t,e,r,n,i,a){Mv("enter",t,e,r,n,i,a)}function vo(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function bg(t){return!t.isGroup}function cI(t){return t.shape!=null}function N1(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){bg(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return cI(o)&&(s.shape=q({},o.shape)),s}var a=n(t);e.traverse(function(o){if(bg(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),wn(o,l,r,Bt(o).dataIndex)}}})}function hI(t,e){return ct(t,function(r){var n=r[0];n=Rl(n,e.x),n=Ol(n,e.x+e.width);var i=r[1];return i=Rl(i,e.y),i=Ol(i,e.y+e.height),[n,i]})}function vI(t,e){var r=Rl(t.x,e.x),n=Ol(t.x+t.width,e.x+e.width),i=Rl(t.y,e.y),a=Ol(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Pv(t,e,r){var n=q({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Dt(i,r),new pi(n)):Dv(t.replace("path://",""),n,r,"center")}function dI(t,e,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=yf(v,d,f,c)/h;return!(g<0||g>1)}function yf(t,e,r,n){return t*n-r*e}function pI(t){return t<=1e-6&&t>=-1e-6}function Iv(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=nt(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&P(Vt(l),function(f){oa(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Bt(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Dt({content:n,formatterParams:s},i)}}function xg(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ev(t,e){if(t)if(et(t))for(var r=0;r=0&&s.push(l)}),s}}function EI(t,e){return Tt(Tt({},t,!0),e,!0)}var LI={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:". "}}}},RI={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:""}}}},kl="ZH",Ov="EN",ko=Ov,ol={},kv={},$1=mt.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(kl)>-1?kl:ko}():ko;function G1(t,e){t=t.toUpperCase(),kv[t]=new ae(e),ol[t]=e}function OI(t){if(nt(t)){var e=ol[t.toUpperCase()]||{};return t===kl||t===Ov?St(e):Tt(St(e),St(ol[ko]),!1)}else return Tt(St(t),St(ol[ko]),!1)}function kI(t){return kv[t]}function BI(){return kv[ko]}G1(Ov,LI);G1(kl,RI);var Bv=1e3,Nv=Bv*60,po=Nv*60,We=po*24,Ig=We*365,ja={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}"},Ms="{yyyy}-{MM}-{dd}",Eg={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ms,hour:Ms+" "+ja.hour,minute:Ms+" "+ja.minute,second:Ms+" "+ja.second,millisecond:ja.none},wf=["year","month","day","hour","minute","second","millisecond"],W1=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $n(t,e){return t+="","0000".substr(0,e-t.length)+t}function Qi(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function NI(t){return t===Qi(t)}function FI(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function hu(t,e,r,n){var i=kr(t),a=i[Fv(r)](),o=i[Ji(r)]()+1,s=Math.floor((o-1)/4)+1,l=i[vu(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[Bo(r)](),c=(f-1)%12+1,h=i[du(r)](),v=i[pu(r)](),d=i[gu(r)](),y=n instanceof ae?n:kI(n||$1)||BI(),g=y.getModel("time"),p=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),w=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,p[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,$n(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,$n(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$n(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,$n(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,$n(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,$n(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,$n(d,3)).replace(/{S}/g,d+"")}function zI(t,e,r,n,i){var a=null;if(nt(r))a=r;else if(dt(r))a=r(t.value,e,{level:t.level});else{var o=q({},ja);if(t.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=t.level==null?0:t.level>=0?t.level:a.length+t.level;c=Math.min(c,a.length-1),a=a[c]}}return hu(new Date(t.value),a,i,n)}function U1(t,e){var r=kr(t),n=r[Ji(e)]()+1,i=r[vu(e)](),a=r[Bo(e)](),o=r[du(e)](),s=r[pu(e)](),l=r[gu(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Lg(t,e,r){var n=$t(t)?kr(t):t;switch(e=e||U1(t,r),e){case"year":return n[Fv(r)]();case"half-year":return n[Ji(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ji(r)]()+1)/4);case"month":return n[Ji(r)]();case"day":return n[vu(r)]();case"half-day":return n[Bo(r)]()/24;case"hour":return n[Bo(r)]();case"minute":return n[du(r)]();case"second":return n[pu(r)]();case"millisecond":return n[gu(r)]()}}function Fv(t){return t?"getUTCFullYear":"getFullYear"}function Ji(t){return t?"getUTCMonth":"getMonth"}function vu(t){return t?"getUTCDate":"getDate"}function Bo(t){return t?"getUTCHours":"getHours"}function du(t){return t?"getUTCMinutes":"getMinutes"}function pu(t){return t?"getUTCSeconds":"getSeconds"}function gu(t){return t?"getUTCMilliseconds":"getMilliseconds"}function HI(t){return t?"setUTCFullYear":"setFullYear"}function Y1(t){return t?"setUTCMonth":"setMonth"}function X1(t){return t?"setUTCDate":"setDate"}function q1(t){return t?"setUTCHours":"setHours"}function K1(t){return t?"setUTCMinutes":"setMinutes"}function Z1(t){return t?"setUTCSeconds":"setSeconds"}function j1(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Q1(t){if(!RD(t))return nt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function J1(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var yu=u_,VI=/([&<>"'])/g,$I={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ge(t){return t==null?"":(t+"").replace(VI,function(e,r){return $I[r]})}function Kc(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&vr(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?kr(t):t;if(isNaN(+l)){if(s)return"-"}else return hu(l,n,r)}if(e==="ordinal")return _c(t)?i(t):$t(t)&&a(t)?t+"":"-";var u=Al(t);return a(u)?Q1(u):_c(t)?i(t):typeof t=="boolean"?t+"":"-"}var Rg=["a","b","c","d","e","f","g"],Sf=function(t,e){return"{"+t+(e==null?"":e)+"}"};function tw(t,e,r){et(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[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 hi(t,e){return e=e||"transparent",nt(t)?t:st(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Og(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var sl=P,WI=["left","right","top","bottom","width","height"],Ds=[["width","left","right"],["height","top","bottom"]];function zv(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(t==="horizontal"){var y=f.width+(h?-h.x+f.x:0);v=a+y,v>n||l.newline?(a=0,v=y,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=v+r:o=d+r)})}var go=zv;jt(zv,"vertical");jt(zv,"horizontal");function No(t,e,r){r=yu(r||0);var n=e.width,i=e.height,a=ue(t.left,n),o=ue(t.top,i),s=ue(t.right,n),l=ue(t.bottom,i),u=ue(t.width,n),f=ue(t.height,i),c=r[2]+r[0],h=r[1]+r[3],v=t.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new Ot(a+r[3],o+r[0],u,f);return d.margin=r,d}function Fo(t){var e=t.layoutMode||t.constructor.layoutMode;return st(e)?e:e?{type:e}:null}function sa(t,e,r){var n=r&&r.ignoreSize;!et(n)&&(n=[n,n]);var i=o(Ds[0],0),a=o(Ds[1],1);u(Ds[0],t,i),u(Ds[1],t,a);function o(f,c){var h={},v=0,d={},y=0,g=2;if(sl(f,function(_){d[_]=t[_]}),sl(f,function(_){s(e,_)&&(h[_]=d[_]=e[_]),l(h,_)&&v++,l(d,_)&&y++}),n[c])return l(e,f[1])?d[f[2]]=null:l(e,f[2])&&(d[f[1]]=null),d;if(y===g||!v)return d;if(v>=g)return h;for(var p=0;p=0;l--)s=Tt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return jo(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.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")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(ae);W_(ma,ae);iu(ma);PI(ma);II(ma,XI);function XI(t){var e=[];return P(ma.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=ct(e,function(r){return dr(r).main}),t!=="dataset"&&Pt(e,"dataset")<=0&&e.unshift("dataset"),e}var zt=ma,ew="";typeof navigator!="undefined"&&(ew=navigator.platform||"");var Ii="rgba(0, 0, 0, 0.2)",qI={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ii,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ii,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ii,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ii,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ii,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ii,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ew.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},rw=gt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Xe="original",Se="arrayRows",wr="objectRows",zr="keyedColumns",pn="typedArray",nw="unknown",Lr="column",_a="row",xe={Must:1,Might:2,Not:3},iw=Kt();function KI(t){iw(t).datasetMap=gt()}function ZI(t,e,r){var n={},i=aw(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=iw(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),P(t,function(y,g){var p=st(y)?y:t[g]={name:y};p.type==="ordinal"&&f==null&&(f=g,c=d(p)),n[p.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});P(t,function(y,g){var p=y.name,m=d(y);if(f==null){var _=h.valueWayDim;v(n[p],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===g)v(n[p],0,m),v(a,0,m);else{var _=h.categoryWayDim;v(n[p],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(y,g,p){for(var m=0;me)return t[n];return t[r-1]}function rE(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:eE(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 nE(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var As,Ra,Bg,Ng="\0_ec_inner",iE=1,sw=function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new ae(a),this._locale=new ae(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=Hg(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Hg(n))},e.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"?Bg(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&&P(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=gt(),u=n&&n.replaceMergeMainTypeMap;KI(this),P(r,function(c,h){c!=null&&(zt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?St(c):Tt(i[h],c,!0))}),u&&u.each(function(c,h){zt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),zt.topologicalTravel(s,zt.getAllClassMainTypes(),f,this);function f(c){var h=tE(this,c,fe(r[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",y=BD(v,h,d);GD(y,c,zt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],p=[],m=0,_;P(y,function(w,b){var S=w.existing,x=w.newOption;if(!x)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=c==="series",M=zt.getClass(c,w.keyInfo.subType,!T);if(!M)return;if(c==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===M)S.name=w.keyInfo.name,S.mergeOption(x,this),S.optionUpdated(x,!1);else{var D=q({componentIndex:b},w.keyInfo);S=new M(x,this,this,D),q(S,D),w.brandNew&&(S.__requireNewView=!0),S.init(x,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),p.push(S),m++):(g.push(void 0),p.push(void 0))},this),i[c]=g,a.set(c,p),o.set(c,m),c==="series"&&As(this)}this._seriesIndices||As(this)},e.prototype.getOption=function(){var r=St(this.option);return P(r,function(n,i){if(zt.hasClass(i)){for(var a=fe(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ro(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Ng],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.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=e:r==="max"?t<=e:t===e}function pE(t,e){return t.join(",")===e.join(",")}var gE=cE,Ke=P,zo=st,Vg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function xf(t){var e=t&&t.itemStyle;if(!!e)for(var r=0,n=Vg.length;r=0;y--){var g=t[y];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var p=g.data.getByRawIndex(g.stackResultDimension,v);if(c>=0&&p>0||c<=0&&p<0){c=ID(c,p),d=p;break}}}return n[0]=c,n[1]=d,n})})}var _u=function(){function t(e){this.data=e.data||(e.sourceFormat===zr?{}:[]),this.sourceFormat=e.sourceFormat||nw,this.seriesLayoutBy=e.seriesLayoutBy||Lr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;ny&&(y=_)}v[0]=d,v[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};qg=(e={},e[Se+"_"+Lr]={pure:!0,appendData:a},e[Se+"_"+_a]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[wr]={pure:!0,appendData:a},e[zr]={pure:!0,appendData:function(o){var s=this._data;P(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Xe]={appendData:a},e[pn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s=0&&(y=o.interpolatedValue[g])}return y!=null?y+"":""})}},t.prototype.getRawValue=function(e,r){return la(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function Qg(t){var e,r;return st(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function yo(t){return new OE(t)}var OE=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.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(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return a;function o(){return e=t?null:li?-this._resultLT:0},t}(),BE=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return ll(e,r)},t}();function NE(t,e){var r=new BE,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Lr&&ye(o);var s=[],l={},u=t.dimensionsDefine;if(u)P(u,function(y,g){var p=y.name,m={index:g,name:p,displayName:y.displayName};if(s.push(m),p!=null){var _="";oa(l,p)&&ye(_),l[p]=m}});else for(var f=0;f65535?UE:YE}function Ei(){return[1/0,-1/0]}function XE(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function ey(t,e,r,n,i){var a=ww[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ct(o,function(m){return m.property}),f=0;fp[1]&&(p[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r=0&&r=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&ne)a=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a=c&&m<=h||isNaN(m))&&(l[u++]=y),y++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],w=e[i[1]][0],b=e[i[1]][1],p=0;p=c&&m<=h||isNaN(m))&&(S>=w&&S<=b||isNaN(S))&&(l[u++]=y),y++}d=!0}}if(!d)if(a===1)for(var p=0;p=c&&m<=h||isNaN(m))&&(l[u++]=x)}else for(var p=0;pe[D][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(p))}return up[1]&&(p[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,v=new(ka(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=c,h=w)}I>0&&If-d&&(l=f-d,s.length=l);for(var y=0;yc[1]&&(c[1]=p),h[v++]=m}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(!!this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();al&&(l=c)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return ll(r[a],this._dimensions[a])}Mf={arrayRows:e,objectRows:function(r,n,i,a){return ll(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return ll(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),qE=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Ps(e)){var o=e,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=Ie(s)?pn:Xe,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=Mt(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=Mt(c.sourceHeader,h.sourceHeader),y=Mt(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||y;i=g?[Zc(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},l)]:[]}else{var p=e;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=p.get("source",!0);i=[Zc(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&ry(a)}var o,s=[],l=[];return P(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&ry(c),s.push(f),l.push(u._getVersionSign())}),n?o=GE(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[ME(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!t.noHeader;return P(t.blocks,function(i){var a=Cw(i);a>=e&&(e=a+ +(n&&(!a||Qc(i)&&!i.noHeader)))}),e}return 0}function jE(t,e,r,n){var i=e.noHeader,a=JE(Cw(e)),o=[],s=e.blocks||[];Or(!s||et(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(oa(u,l)){var f=new kE(u[l],null);s.sort(function(d,y){return f.evaluate(d.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}P(s,function(d,y){var g=e.valueFormatter,p=xw(d)(g?q(q({},t),{valueFormatter:g}):t,d,y>0?a.html:0,n);p!=null&&o.push(p)});var c=t.renderMode==="richText"?o.join(a.richText):Jc(o.join(""),i?r:a.html);if(i)return c;var h=Kc(e.header,"ordinal",t.useUTC),v=bw(n,t.renderMode).nameStyle;return t.renderMode==="richText"?Tw(t,h,v)+a.richText+c:Jc('
'+Ge(h)+"
"+c,r)}function QE(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(w){return w=et(w)?w:[w],ct(w,function(b,S){return Kc(b,et(v)?v[S]:v,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),h=a?"":Kc(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value),y=!s||!a,g=!s&&a,p=bw(n,i),m=p.nameStyle,_=p.valueStyle;return i==="richText"?(s?"":c)+(a?"":Tw(t,h,m))+(o?"":rL(t,d,y,g,_)):Jc((s?"":c)+(a?"":tL(h,!s,m))+(o?"":eL(d,y,g,_)),r)}}function ny(t,e,r,n,i,a){if(!!t){var o=xw(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function JE(t){return{html:KE[t],richText:ZE[t]}}function Jc(t,e){var r='
',n="margin: "+e+"px 0 0";return'
'+t+r+"
"}function tL(t,e,r){var n=e?"margin-left:2px":"";return''+Ge(t)+""}function eL(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=et(t)?t:[t],''+ct(t,function(o){return Ge(o)}).join("  ")+""}function Tw(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function rL(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(et(e)?e.join(" "):e,a)}function nL(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return hi(n)}function Mw(t,e){var r=t.get("padding");return r!=null?r:e==="richText"?[8,10]:10}var Df=function(){function t(){this.richTextStyles={},this._nextStyleNameId=F_()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=GI({color:r,type:e,renderMode:n,markerId:i});return nt(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};et(r)?P(r,function(a){return q(n,a)}):q(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t}();function iL(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=et(s),u=nL(e,r),f,c,h,v;if(o>1||l&&!o){var d=aL(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var y=i.getDimensionInfo(a[0]);v=f=la(i,r,a[0]),c=y.type}else v=f=l?s[0]:s;var g=gv(e),p=g&&e.name||"",m=i.getName(r),_=n?p:m;return Ho("section",{header:p,noHeader:n||!g,sortParam:v,blocks:[Ho("nameValue",{markerType:"item",markerColor:u,name:_,noName:!vr(_),value:f,valueType:c})].concat(h||[])})}function aL(t,e,r,n,i){var a=e.getData(),o=ga(t,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?P(n,function(c){f(la(a,r,c),c)}):P(t,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Ho("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var qr=Kt();function Is(t,e){return t.getName(e)||t.getId(e)}var oL="__universalTransitionEnabled",Su=function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=yo({count:lL,reset:uL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=qr(this).sourceManager=new qE(this);a.prepareSource();var o=this.getInitialData(r,i);ay(o,this),this.dataTask.context.data=o,qr(this).dataBeforeProcessed=o,iy(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Fo(this),a=i?mu(r):{},o=this.subType;zt.hasClass(o)&&(o+="Series"),Tt(r,n.getTheme().get(this.subType)),Tt(r,this.getDefaultOption()),Fp(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&sa(r,a,i)},e.prototype.mergeOption=function(r,n){r=Tt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Fo(this);i&&sa(this.option,r,i);var a=qr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);ay(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,qr(this).dataBeforeProcessed=o,iy(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Ie(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Hv.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.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},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Is(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[oL])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.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)}},e.registerClass=function(r){return zt.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(zt);mr(Su,RE);mr(Su,Hv);W_(Su,zt);function iy(t){var e=t.name;gv(t)||(t.name=sL(t)||e)}function sL(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return P(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function lL(t){return t.model.getRawData().count()}function uL(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),fL}function fL(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ay(t,e){P(rM(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,jt(cL,e))})}function cL(t,e){var r=th(t);return r&&r.setOutputEnd((e||this).count()),e}function th(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var Vo=Su,Yv=function(){function t(){this.group=new ce,this.uid=cu("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.blurSeries=function(e,r){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();mv(Yv);iu(Yv);var Br=Yv;function Dw(){var t=Kt();return function(e){var r=t(e),n=e.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 Aw=Kt(),hL=Dw(),Xv=function(){function t(){this.group=new ce,this.uid=cu("viewChart"),this.renderTask=yo({plan:vL,reset:dL}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);!a||sy(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);!a||sy(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Ev(this.group,e)},t.markUpdateMethod=function(e,r){Aw(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function oy(t,e,r){t&&Uc(t)&&(e==="emphasis"?Pl:Il)(t,r)}function sy(t,e,r){var n=ui(t,e),i=e&&e.highlightKey!=null?pP(e.highlightKey):null;n!=null?P(fe(n),function(a){oy(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){oy(a,r,i)})}mv(Xv);iu(Xv);function vL(t){return hL(t.model)}function dL(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&Aw(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),pL[l]}var pL={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},gn=Xv,Bl="\0__throttleOriginMethod",ly="\0__throttleRate",uy="\0__throttleType";function Pw(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function Iw(t,e,r,n){var i=t[e];if(!!i){var a=i[Bl]||i,o=i[uy],s=i[ly];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Pw(a,r,n==="debounce"),i[Bl]=a,i[uy]=n,i[ly]=r}return i}}function eh(t,e){var r=t[e];r&&r[Bl]&&(r.clear&&r.clear(),t[e]=r[Bl])}var fy=Kt(),cy={itemStyle:Oo(V1,!0),lineStyle:Oo(H1,!0)},gL={lineStyle:"stroke",itemStyle:"fill"};function Ew(t,e){var r=t.visualStyleMapper||cy[e];return r||(console.warn("Unkown style type '"+e+"'."),cy.itemStyle)}function Lw(t,e){var r=t.visualDrawType||gL[e];return r||(console.warn("Unkown style type '"+e+"'."),"fill")}var yL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=Ew(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Lw(t,n),u=o[l],f=dt(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||dt(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||dt(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=t.getDataParams(d),g=q({},o);g[l]=f(y),v.setItemVisual(d,"style",g)}}}},Ba=new ae,mL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=Ew(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ba.option=l[n];var u=i(Ba),f=o.ensureUniqueItemVisual(s,"style");q(f,u),Ba.option.decal&&(o.setItemVisual(s,"decal",Ba.option.decal),Ba.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},_L={performRawSeries:!0,overallReset:function(t){var e=gt();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),fy(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=fy(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Lw(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},Es=Math.PI;function wL(t,e){e=e||{},Dt(e,{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 ce,n=new Qt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new he({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Qt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Tv({shape:{startAngle:-Es/2,endAngle:-Es/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Es*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Es*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.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:t.getWidth(),height:t.getHeight()})},r.resize(),r}var SL=function(){function t(e,r,n,i){this._stageTaskMap=gt(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(!!e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__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}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=gt();e.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)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;P(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Or(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;P(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var y=o.getPerformArgs(h,i.block);d.each(function(g){g.perform(y)}),h.perform(y)&&(a=!0)}else c&&c.each(function(g,p){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=gt(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||yo({plan:ML,reset:DL,count:PL}));v.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,v)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||yo({reset:bL});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=gt(),u=e.seriesType,f=e.getTargetSeries,c=!0,h=!1,v="";Or(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,P(n.getSeries(),d));function d(y){var g=y.uid,p=l.set(g,s&&s.get(g)||(h=!0,yo({reset:xL,onDirty:TL})));p.context={model:y,overallProgress:c},p.agent=o,p.__block=c,a._pipe(y,p)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.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},t.wrapStageHandler=function(e,r){return dt(e)&&(e={overallReset:e,seriesType:IL(e)}),e.uid=cu("stageHandler"),r&&(e.visualType=r),e},t}();function bL(t){t.overallReset(t.ecModel,t.api,t.payload)}function xL(t){return t.overallProgress&&CL}function CL(){this.agent.dirty(),this.getDownstream().dirty()}function TL(){this.agent&&this.agent.dirty()}function ML(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function DL(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=fe(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ct(e,function(r,n){return Rw(n)}):AL}var AL=Rw(0);function Rw(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,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(e,r.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),rh=["symbol","symbolSize","symbolRotate","symbolOffset"],py=rh.concat(["symbolKeepAspect"]),OL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:$t(t)?[t]:et(t)?t:null}function zw(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&eR(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=ct(r,function(a){return a/i}),n/=i)}return[r,n]}var rR=new fi(!0);function Fl(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function gy(t){return typeof t=="string"&&t!=="none"}function zl(t){var e=t.fill;return e!=null&&e!=="none"}function yy(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function my(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function ah(t,e,r){var n=U_(e.image,e.__image,r);if(au(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*nM),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function nR(t,e,r,n){var i,a=Fl(r),o=zl(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||rR,c=e.__dirty;if(!n){var h=r.fill,v=r.stroke,d=o&&!!h.colorStops,y=a&&!!v.colorStops,g=o&&!!h.image,p=a&&!!v.image,m=void 0,_=void 0,w=void 0,b=void 0,S=void 0;(d||y)&&(S=e.getBoundingRect()),d&&(m=c?ih(t,h,S):e.__canvasFillGradient,e.__canvasFillGradient=m),y&&(_=c?ih(t,v,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(w=c||!e.__canvasFillPattern?ah(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=w),p&&(b=c||!e.__canvasStrokePattern?ah(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),d?t.fillStyle=m:g&&(w?t.fillStyle=w:o=!1),y?t.strokeStyle=_:p&&(b?t.strokeStyle=b:a=!1)}var x=e.getGlobalScale();f.setScale(x[0],x[1],e.segmentIgnoreThreshold);var T,M;t.setLineDash&&r.lineDash&&(i=zw(e),T=i[0],M=i[1]);var D=!0;(u||c&zi)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),D=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=M),n||(r.strokeFirst?(a&&my(t,r),o&&yy(t,r)):(o&&yy(t,r),a&&my(t,r))),T&&t.setLineDash([])}function iR(t,e,r){var n=e.__image=U_(r.image,e.__image,e,e.onload);if(!(!n||!au(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.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;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;t.drawImage(n,u,f,c,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function aR(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||si,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=zw(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Fl(r)&&t.strokeText(i,r.x,r.y),zl(r)&&t.fillText(i,r.x,r.y)):(zl(r)&&t.fillText(i,r.x,r.y),Fl(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var _y=["shadowBlur","shadowOffsetX","shadowOffsetY"],wy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Hw(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){me(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?ri.opacity:o}(n||e.blend!==r.blend)&&(a||(me(t,i),a=!0),t.globalCompositeOperation=e.blend||ri.blend);for(var s=0;s<_y.length;s++){var l=_y[s];(n||e[l]!==r[l])&&(a||(me(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(me(t,i),a=!0),t.shadowColor=e.shadowColor||ri.shadowColor),a}function Sy(t,e,r,n,i){var a=Go(e,i.inHover),o=n?null:r&&Go(r,i.inHover)||{};if(a===o)return!1;var s=Hw(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(me(t,i),s=!0),gy(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(me(t,i),s=!0),gy(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(me(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(me(t,i),s=!0),t.lineWidth=u)}for(var f=0;f0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[ee]){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[ee]=!0,!this._model||n){var l=new gE(this._api),u=this._theme,f=this._model=new lw;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},sh);var c={seriesTransition:s,optionChanged:!0};if(i)this[de]={silent:a,updateParams:c},this[ee]=!1,this.getZr().wakeUp();else{try{Ri(this),Kr.update.call(this,null,c)}catch(h){throw this[de]=null,this[ee]=!1,h}this._ssr||this._zr.flush(),this[de]=null,this[ee]=!1,Na.call(this,a),Fa.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||yR&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.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()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!mt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return P(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;P(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 P(a,function(l){l.group.ignore=!1}),s},e.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(By[i]){var l=s,u=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();P(_o,function(_,w){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(St(r)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),c=o(S.bottom,c),h.push({dom:b,left:S.left,top:S.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,y=c-u,g=di.createCanvas(),p=Rp(g,{renderer:n?"svg":"canvas"});if(p.resize({width:d,height:y}),n){var m="";return P(h,function(_){var w=_.left-l,b=_.top-u;m+=''+_.dom+""}),p.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&p.painter.setBackgroundColor(r.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}else return r.connectedBackgroundColor&&p.add(new Qt({shape:{x:0,y:0,width:d,height:y},style:{fill:r.connectedBackgroundColor}})),P(h,function(_){var w=new pi({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});p.add(w)}),p.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return Lf(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return Lf(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=tf(i,r);return P(o,function(s,l){l.indexOf("Models")>=0&&P(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},e.prototype.getVisual=function(r,n){var i=this._model,a=tf(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?BL(s,l,n):NL(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;P(LR,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ja(s,function(d){var y=Bt(d);if(y&&y.dataIndex!=null){var g=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return l=g&&g.getDataParams(y.dataIndex,y.dataType)||{},!0}else if(y.eventData)return l=q({},y.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),P(mo,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),P(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),FL(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&$_(this.getDom(),Zv,"");var n=this,i=n._api,a=n._model;P(n._componentsViews,function(o){o.dispose(a,i)}),P(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 _o[n.id]},e.prototype.resize=function(r){if(!this[ee]){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[de]&&(a==null&&(a=this[de].silent),i=!0,this[de]=null),this[ee]=!0;try{i&&Ri(this),Kr.update.call(this,{type:"resize",animation:q({duration:0},r&&r.animation)})}catch(o){throw this[ee]=!1,o}this[ee]=!1,Na.call(this,a),Fa.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(st(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!lh[r]){var i=lh[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=q({},r);return n.type=mo[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(st(n)||(n={silent:!!n}),!!Hl[r.type]&&!!this._model){if(this[ee]){this._pendingActions.push(r);return}var i=n.silent;Of.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&mt.browser.weChat&&this._throttledZrFlush(),Na.call(this,i),Fa.call(this,i)}},e.prototype.updateLabelLayout=function(){Qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.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()},e.internalField=function(){Ri=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Ef(c,!0),Ef(c,!1),h.plan()},Ef=function(c,h){for(var v=c._model,d=c._scheduler,y=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,p=c._zr,m=c._api,_=0;_h.get("hoverLayerThreshold")&&!mt.node&&!mt.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var p=c._chartsMap[g.__viewId];p.__alive&&p.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(y){return l(y,v,d,-1/0),!0})}}function l(c,h,v,d){var y=c.getTextContent(),g=c.getTextGuideLine(),p=c.isGroup;if(p)for(var m=c.childrenRef(),_=0;_0?{duration:y,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(p){if(p.states&&p.states.emphasis){if(vo(p))return;if(p instanceof kt&&gP(p),p.__dirty){var m=p.prevStates;m&&p.useStates(m)}if(d){p.stateTransition=g;var _=p.getTextContent(),w=p.getTextGuideLine();_&&(_.stateTransition=g),w&&(w.stateTransition=g)}p.__dirty&&i(p)}})}Oy=function(c){return new(function(h){J(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return c._model.getComponent(y.mainType,y.index);d=d.parent}},v.prototype.enterEmphasis=function(d,y){Pl(d,y),Le(c)},v.prototype.leaveEmphasis=function(d,y){Il(d,y),Le(c)},v.prototype.enterBlur=function(d){oP(d),Le(c)},v.prototype.leaveBlur=function(d){s1(d),Le(c)},v.prototype.enterSelect=function(d){l1(d),Le(c)},v.prototype.leaveSelect=function(d){u1(d),Le(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(uw))(c)},eS=function(c){function h(v,d){for(var y=0;y=0)){Ny.push(r);var a=Bw.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function sS(t,e){lh[t]=e}function zR(t,e,r){var n=gR("registerMap");n&&n(t,e,r)}var HR=$E;yi(qv,yL);yi(bu,mL);yi(bu,_L);yi(qv,OL);yi(bu,kL);yi(Kw,vR);aS(cw);oS(wR,CE);sS("default",wL);wa({type:ni,event:ni,update:ni},_e);wa({type:il,event:il,update:il},_e);wa({type:fo,event:fo,update:fo},_e);wa({type:al,event:al,update:al},_e);wa({type:co,event:co,update:co},_e);iS("light",EL);iS("dark",LL);function za(t){return t==null?0:t.length||1}function Fy(t){return t}var VR=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||Fy,this._newKeyGetter=i||Fy,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,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)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var Ha=st,Zr=ct,ZR=typeof Int32Array=="undefined"?Array:Int32Array,jR="e\0\0",zy=-1,QR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],JR=["_approximateExtent"],Hy,Ns,Va,$a,Nf,Fs,Ff,t2=function(){function t(e,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;uS(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),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===Xe;if(l&&!i.pure)for(var u=[],f=e;f0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),et(a)?a=a.slice():Ha(a)&&(a=q({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Ha(r)?q(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Ha(e)?q(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?q(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;ZA(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){P(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Zr(this.dimensions,this._getDimInfo,this),this.hostModel)),Nf(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];!dt(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(av(arguments)))})},t.internalField=function(){Hy=function(e){var r=e._invertedIndicesMap;P(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new ZR(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[r]=l}}}(),t}(),e2=t2;function r2(t,e){$v(t)||(t=Gv(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=gt(),a=[],o=i2(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&hS(o),l=n===t.dimensionsDefine,u=l?cS(t):fS(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=gt(f),h=new _w(o),v=0;v0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function i2(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return P(e,function(a){var o;st(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function a2(t,e,r){var n=e.data;if(r||n.hasOwnProperty(t)){for(var i=0;n.hasOwnProperty(t+i);)i++;t+=i}return e.set(t,!0),t}var o2=function(){function t(e){this.coordSysDims=[],this.axisMap=gt(),this.categoryAxisMap=gt(),this.coordSysName=e}return t}();function s2(t){var e=t.get("coordinateSystem"),r=new o2(e),n=l2[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var l2={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",er).models[0],a=t.getReferringComponents("yAxis",er).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Oi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Oi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",er).models[0];e.coordSysDims=["single"],r.set("single",i),Oi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",er).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Oi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Oi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();P(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Oi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Oi(t){return t.get("type")==="category"}function u2(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;f2(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,h;if(P(a,function(m,_){nt(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;P(a,function(m){m.coordDim===v&&y++});var g={name:c,coordDim:v,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},p={name:h,coordDim:h,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),p.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(p)):(a.push(g),a.push(p))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function f2(t){return!uS(t.schema)}function Wo(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function c2(t,e){return Wo(t,e)?t.getCalculationInfo("stackResultDimension"):e}function h2(t,e){var r=t.get("coordinateSystem"),n=Vv.get(r),i;return e&&e.coordSysDims&&(i=ct(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=UR(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function v2(t,e,r){var n,i;return r&&P(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function d2(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;t?(a=!0,i=Gv(t)):(i=n.getSource(),a=i.sourceFormat===Xe);var o=s2(e),s=h2(e,o),l=r.useEncodeDefaulter,u=dt(l)?l:l?jt(ZI,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=r2(i,f),h=v2(c.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=u2(e,{schema:c,store:v}),y=new e2(c,e);y.setCalculationInfo(d);var g=h!=null&&p2(i)?function(p,m,_,w){return w===h?_:this.defaultDimValueGetter(p,m,_,w)}:null;return y.hasItemOption=!1,y.initData(a?i:v,null,g),y}function p2(t){if(t.sourceFormat===Xe){var e=g2(t.data||[]);return!et(Zo(e))}}function g2(t){for(var e=0;er[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();iu(vS);var Hr=vS,y2=0,m2=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++y2}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&ct(n,_2);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!nt(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=gt(this.categories))},t}();function _2(t){return st(t)&&t.value!=null?t.value:t+""}var uh=m2;function fh(t){return t.type==="interval"||t.type==="log"}function w2(t,e,r,n){var i={},a=t[1]-t[0],o=i.interval=N_(a/e,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=dS(o),l=i.niceTickExtent=[Yt(Math.ceil(t[0]/o)*o,s),Yt(Math.floor(t[1]/o)*o,s)];return S2(l,t),i}function zf(t){var e=Math.pow(10,pv(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Yt(r*e)}function dS(t){return Ar(t)+2}function Vy(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function S2(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Vy(t,0,e),Vy(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function xu(t,e){return t>=e[0]&&t<=e[1]}function Cu(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Tu(t,e){return t*(e[1]-e[0])+e[0]}var pS=function(t){J(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new uh({})),et(i)&&(i=new uh({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 e.prototype.parse=function(r){return nt(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),xu(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Cu(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(Tu(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.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},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Hr);Hr.registerClass(pS);var gS=pS,Yn=Yt,yS=function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return xu(r,this._extent)},e.prototype.normalize=function(r){return Cu(r,this._extent)},e.prototype.scale=function(r){return Tu(r,this._extent)},e.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=dS(r)},e.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:Yn(f+n,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function M2(t){var e=T2(t),r=[];return P(t,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=e[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=ue(n.get("barWidth"),s),y=ue(n.get("barMaxWidth"),s),g=ue(n.get("barMinWidth")||(I2(n)?.5:1),s),p=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:g,barGap:p,barCategoryGap:m,axisKey:wS(a),stackId:_S(n)})}),D2(r)}function D2(t){var e={};P(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return P(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Vt(a).length;s=Math.max(35-l*4,15)+"%"}var u=ue(s,o),f=ue(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),P(a,function(p){var m=p.maxWidth,_=p.minWidth;if(p.width){var w=p.width;m&&(w=Math.min(w,m)),_&&(w=Math.max(w,_)),p.width=w,c-=w+f*w,h--}else{var w=v;m&&mw&&(w=_),w!==v&&(p.width=w,c-=w+f*w,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,y;P(a,function(p,m){p.width||(p.width=v),y=p,d+=p.width*(1+f)}),y&&(d-=y.width*f);var g=-d/2;P(a,function(p,m){r[i][m]=r[i][m]||{bandWidth:o,offset:g,width:p.width},g+=p.width*(1+f)})}),r}function A2(t,e,r){if(t&&e){var n=t[wS(e)];return n!=null&&r!=null?n[_S(r)]:n}}function P2(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function I2(t){return t.pipelineContext&&t.pipelineContext.large}var E2=function(t,e,r,n){for(;r>>1;t[i][1]i&&(this._approxInterval=i);var s=zs.length,l=Math.min(E2(zs,this._approxInterval,0,s),s-1);this._interval=zs[l][1],this._minLevelUnit=zs[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return $t(r)?r:+kr(r)},e.prototype.contain=function(r){return xu(this.parse(r),this._extent)},e.prototype.normalize=function(r){return Cu(this.parse(r),this._extent)},e.prototype.scale=function(r){return Tu(r,this._extent)},e.type="time",e}(ts),zs=[["second",Bv],["minute",Nv],["hour",po],["quarter-day",po*6],["half-day",po*12],["day",We*1.2],["half-week",We*3.5],["week",We*7],["month",We*31],["quarter",We*95],["half-year",Ig/2],["year",Ig]];function L2(t,e,r,n){var i=kr(e),a=kr(r),o=function(d){return Lg(i,d,n)===Lg(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function R2(t,e){return t/=We,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function O2(t){var e=30*We;return t/=e,t>6?6:t>3?3:t>2?2:1}function k2(t){return t/=po,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function $y(t,e){return t/=e?Nv:Bv,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function B2(t){return N_(t,!0)}function N2(t,e,r){var n=new Date(t);switch(Qi(e)){case"year":case"month":n[Y1(r)](0);case"day":n[X1(r)](1);case"hour":n[q1(r)](0);case"minute":n[K1(r)](0);case"second":n[Z1(r)](0),n[j1(r)](0)}return n.getTime()}function F2(t,e,r,n){var i=1e4,a=W1,o=0;function s(D,I,A,L,O,H,B){for(var Q=new Date(I),G=I,Z=Q[L]();G1&&H===0&&A.unshift({value:A[0].value-G})}}for(var H=0;H=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/e;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||t===a[v]))break}f=[]}}}for(var w=ge(ct(u,function(D){return ge(D,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(D){return D.length>0}),b=[],S=w.length-1,v=0;v0;)a*=10;var s=[Yt($2(n[0]/a)*a),Yt(V2(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){wo.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=Re(r)/Re(this.base),xu(r,this._extent)},e.prototype.normalize=function(r){return r=Re(r)/Re(this.base),Cu(r,this._extent)},e.prototype.scale=function(r){return r=Tu(r,this._extent),Hs(this.base,r)},e.type="log",e}(Hr),bS=Jv.prototype;bS.getMinorTicks=wo.getMinorTicks;bS.getLabel=wo.getLabel;function Vs(t,e){return H2(t,Ar(e))}Hr.registerClass(Jv);var G2=Jv,W2=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},t.prototype.modifyDataMinMax=function(e,r){this[Y2[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=U2[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),U2={min:"_determinedMin",max:"_determinedMax"},Y2={min:"_dataMin",max:"_dataMax"};function X2(t,e,r){var n=t.rawExtentInfo;return n||(n=new W2(t,e,r),t.rawExtentInfo=n,n)}function $s(t,e){return e==null?null:_l(e)?NaN:t.parse(e)}function xS(t,e){var r=t.type,n=X2(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=C2("bar",o),l=!1;if(P(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=M2(s),f=q2(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function q2(t,e,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=A2(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;P(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;P(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,c=1-(s+l)/a,h=f/c-f;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}function Wy(t,e){var r=e,n=xS(t,r),i=n.extent,a=r.get("splitNumber");t instanceof G2&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function K2(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new gS({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new z2({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Hr.getClass(e)||ts)}}function Z2(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function es(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(i,a){return t.scale.getFormattedLabel(i,a,n)}}(e):nt(e)?function(n){return function(i){var a=t.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(e):dt(e)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(td(t,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function td(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function j2(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof gS?i=r.count():(n=r.getTicks(),i=n.length);var o=t.getLabelModel(),s=es(t),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f=0||(Uy.push(t),dt(t)&&(t={install:t}),t.install(eO))}var Uo=Kt();function rO(t){return t.type==="category"?iO(t):oO(t)}function nO(t,e){return t.type==="category"?aO(t,e):{ticks:ct(t.scale.getTicks(),function(r){return r.value})}}function iO(t){var e=t.getLabelModel(),r=TS(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function TS(t,e){var r=MS(t,"labels"),n=ed(e),i=DS(r,n);if(i)return i;var a,o;return dt(n)?a=IS(t,n):(o=n==="auto"?sO(t):n,a=PS(t,o)),AS(r,n,{labels:a,labelCategoryInterval:o})}function aO(t,e){var r=MS(t,"ticks"),n=ed(e),i=DS(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),dt(n))a=IS(t,n,!0);else if(n==="auto"){var s=TS(t,t.getLabelModel());o=s.labelCategoryInterval,a=ct(s.labels,function(l){return l.tickValue})}else o=n,a=PS(t,o,!0);return AS(r,n,{ticks:a,tickCategoryInterval:o})}function oO(t){var e=t.scale.getTicks(),r=es(t);return{labels:ct(e,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function MS(t,e){return Uo(t)[e]||(Uo(t)[e]=[])}function DS(t,e){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,y=0,g=hv(r({value:l}),e.font,"center","top");d=g.width*1.3,y=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,y,7)}var p=h/f,m=v/c;isNaN(p)&&(p=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(p,m))),w=Uo(t.model),b=t.getExtent(),S=w.lastAutoInterval,x=w.lastTickCount;return S!=null&&x!=null&&Math.abs(S-_)<=1&&Math.abs(x-o)<=1&&S>_&&w.axisExtent0===b[0]&&w.axisExtent1===b[1]?_=S:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=b[0],w.axisExtent1=b[1]),_}function uO(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function PS(t,e,r){var n=es(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||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=CS(t),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==a[0]&&y(a[0]);for(var d=u;d<=a[1];d+=l)y(d);v&&d-l!==a[1]&&y(a[1]);function y(g){var p={value:g};s.push(r?g:{formattedLabel:n(p),rawLabel:i.getLabel(p),tickValue:g})}return s}function IS(t,e,r){var n=t.scale,i=es(t),a=[];return P(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Yy=[0,1],fO=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return PD(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Xy(n,i.count())),kp(e,Yy,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Xy(n,i.count()));var a=kp(e,n,Yy,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=nO(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 cO(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.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},t.prototype.getViewLabels=function(){return rO(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return lO(this)},t}();function Xy(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function cO(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;P(e,function(v){v.coord-=u/2});var f=t.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var c=a[0]>a[1];h(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&h(a[0],e[0].coord)&&e.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&h(o.coord,a[1])&&e.push({coord:a[1]});function h(v,d){return v=Yt(v),d=Yt(d),c?v>d:vn[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(hO),DO=MO;function vh(t,e,r){r=r||{};var n=t.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(y,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Io(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-p:p,a.z2=1,a}function jy(t){return t.get("coordinateSystem")==="cartesian2d"}function Qy(t){var e={xAxisModel:null,yAxisModel:null};return P(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,er).models[0];e[n]=a}),e}var Hf=Math.log;function AO(t,e,r){var n=ts.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=xS(t,e),u=l.extent,f=l.fixMin,c=l.fixMax;if(t.type==="log"){var h=Hf(t.base);u=[Hf(u[0])/h,Hf(u[1])/h]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(t);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(t),y=u[0],g=u[1];if(f&&c)d=(g-y)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(y)&&isFinite(u[0]);)d=zf(d),y=u[1]-d*o;else{var p=t.getTicks().length-1;p>o&&(d=zf(d));var m=d*o;g=Math.ceil(u[1]/d)*d,y=Yt(g-m),y<0&&u[0]>=0?(y=0,g=Yt(m)):g>0&&u[1]<=0&&(g=0,y=-Yt(m))}var _=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(t,y+d*_,g+d*w),n.setInterval.call(t,d),(_||w)&&n.setNiceExtent.call(t,y+d,g-d)}var PO=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=hh,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Vt(o),u=l.length;if(!!u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,y=v.scale;fh(y)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Wy(y,d),fh(y)&&(s=v))}f.length&&(s||(s=f.pop(),Wy(s.scale,s.model)),P(f,function(g){AO(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};P(n.x,function(o){Jy(n,"y",o,a)}),P(n.y,function(o){Jy(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),o=No(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(P(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=j2(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),P(this._coordsList,function(u){u.calcAffineTransform()});function l(){P(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),IO(u,f?o.x:o.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}st(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Dl(i-sn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),em={axisLine:function(t,e,r,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0];o&&(Ye(s,s,o),Ye(l,l,o));var u=q({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new ci({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",r.add(f);var c=e.get(["axisLine","symbol"]);if(c!=null){var h=e.get(["axisLine","symbolSize"]);nt(c)&&(c=[c,c]),(nt(h)||$t(h))&&(h=[h,h]);var v=Fw(e.get(["axisLine","symbolOffset"])||0,h),d=h[0],y=h[1];P([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,p){if(c[p]!=="none"&&c[p]!=null){var m=ua(c[p],-d/2,-y/2,d,y,u.stroke,!0),_=g.r+g.offset;m.attr({rotation:g.rotate,x:s[0]+_*Math.cos(t.rotation),y:s[1]-_*Math.sin(t.rotation),silent:!0,z2:11}),r.add(m)}})}}},axisTickLabel:function(t,e,r,n){var i=OO(r,n,e,t),a=BO(r,n,e,t);if(RO(e,a,i),kO(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=vO(ct(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));dO(o)}},axisName:function(t,e,r,n){var i=Io(t.axisName,e.get("name"));if(!!i){var a=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.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,nm(a)?t.labelOffset+o*l:0],h,v=e.get("nameRotate");v!=null&&(v=v*sn/180);var d;nm(a)?h=ii.innerTextLayout(t.rotation,v!=null?v:t.rotation,o):(h=LO(t.rotation,a,v||0,u),d=t.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var y=s.getFont(),g=e.get("nameTruncate",!0)||{},p=g.ellipsis,m=Io(t.nameTruncateMaxWidth,g.maxWidth,d),_=new he({x:c[0],y:c[1],rotation:h.rotation,silent:ii.isLabelSilent(e),style:Sn(s,{text:i,font:y,overflow:"truncate",width:m,ellipsis:p,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Iv({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var w=ii.makeAxisEventDataBase(e);w.targetType="axisName",w.name=i,Bt(_).eventData=w}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function LO(t,e,r,n){var i=B_(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Dl(i-sn/2)?(o=l?"bottom":"top",a="center"):Dl(i-sn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",isn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function RO(t,e,r){if(!CS(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(Oe(a),Oe(u)):rm(a,o)&&(n?(Oe(o),Oe(f)):(Oe(a),Oe(u))),i===!1?(Oe(s),Oe(c)):rm(l,s)&&(i?(Oe(l),Oe(h)):(Oe(s),Oe(c)))}}function Oe(t){t&&(t.ignore=!0)}function rm(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=lv([]);return uv(i,i,-t.rotation),r.applyTransform(ji([],i,t.getLocalTransform())),n.applyTransform(ji([],i,e.getLocalTransform())),r.intersect(n)}}function nm(t){return t==="middle"||t==="center"}function LS(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||t===e}function $O(t){var e=nd(t);if(!!e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=dh(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=nd(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=jn(e).pointerEl=new gI[a.type](om(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=jn(e).labelEl=new he(om(r.label));e.add(a),lm(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=jn(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=jn(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),lm(a,i))},t.prototype._renderHandle=function(e){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=Pv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){v_(u.event)},onmousedown:Gf(this._onHandleDragMove,this,0,0),drift:Gf(this._onHandleDragMove,this),ondragend:Gf(this._onHandleDragEnd,this)}),n.add(i)),um(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,Iw(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){sm(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Wf(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(Wf(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Wf(i)),jn(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){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}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.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),eh(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function sm(t,e,r,n){NS(jn(r).lastProp,n)||(jn(r).lastProp=n,e?wn(r,n,t):(r.stopAnimation(),r.attr(n)))}function NS(t,e){if(st(t)&&st(e)){var r=!0;return P(e,function(n,i){r=r&&NS(t[i],n)}),!!r}else return t===e}function lm(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Wf(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function um(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}var tk=JO;function ek(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function rk(t,e,r,n,i){var a=r.get("value"),o=FS(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=yu(s.get("padding")||0),u=s.getFont(),f=hv(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var y=i.verticalAlign;y==="bottom"&&(c[1]-=v),y==="middle"&&(c[1]-=v/2),nk(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Sn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function nk(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function FS(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:td(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};P(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),nt(o)?a=o.replace("{value}",a):dt(o)&&(a=o(s))}return a}function zS(t,e,r){var n=Eo();return uv(n,n,r.rotation),Bc(n,n,r.position),Av([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function ik(t,e,r,n,i,a){var o=RS.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),rk(e,n,i,a,{position:zS(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ak(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function ok(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var sk=function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=fm(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=ek(a),v=lk[u](s,c,f);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=vh(l.model,i);ik(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=vh(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=zS(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=fm(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},e}(tk);function fm(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var lk={line:function(t,e,r){var n=ak([e,r[0]],[e,r[1]],cm(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:ok([e-n/2,r[0]],[n,i],cm(t))}}};function cm(t){return t.dim==="x"?0:1}var uk=sk,fk=function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.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}},e}(zt),ck=fk,Pr=Kt(),hk=P;function HS(t,e,r){if(!mt.node){var n=e.getZr();Pr(n).records||(Pr(n).records={}),vk(n,e);var i=Pr(n).records[t]||(Pr(n).records[t]={});i.handler=r}}function vk(t,e){if(Pr(t).initialized)return;Pr(t).initialized=!0,r("click",jt(hm,"click")),r("mousemove",jt(hm,"mousemove")),r("globalout",pk);function r(n,i){t.on(n,function(a){var o=gk(e);hk(Pr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),dk(o.pendings,e)})}}function dk(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function pk(t,e,r){t.handler("leave",null,r)}function hm(t,e,r,n){e.handler(t,r,n)}function gk(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function gh(t,e){if(!mt.node){var r=e.getZr(),n=(Pr(r).records||{})[t];n&&(Pr(r).records[t]=null)}}var yk=function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";HS("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})})},e.prototype.remove=function(r,n){gh("axisPointer",n)},e.prototype.dispose=function(r,n){gh("axisPointer",n)},e.type="axisPointer",e}(Br),mk=yk;function VS(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=ui(a,t);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(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),y=[];y[v]=a.get(d,o),y[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(y)||[]}else r=l.dataToPoint(a.getValues(ct(l.dimensions,function(p){return a.mapDimension(p)}),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 vm=Kt();function _k(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Ht(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){fl(i)&&(i=VS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=fl(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||fl(i),h={},v={},d={list:[],map:{}},y={showPointer:jt(Sk,v),showTooltip:jt(bk,d)};P(s.coordSysMap,function(p,m){var _=l||p.containPoint(i);P(s.coordSysAxesInfo[m],function(w,b){var S=w.axis,x=Mk(u,w);if(!c&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=S.pointToData(i)),T!=null&&dm(w,T,y,!1,h)}})});var g={};return P(f,function(p,m){var _=p.linkGroup;_&&!v[m]&&P(_.axesInfo,function(w,b){var S=v[b];if(w!==p&&S){var x=S.value;_.mapper&&(x=p.axis.scale.parse(_.mapper(x,pm(w),pm(p)))),g[p.key]=x}})}),P(g,function(p,m){dm(f[m],p,y,!0,h)}),xk(v,f,h),Ck(d,i,t,o),Tk(f,o,r),h}}function dm(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=wk(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&q(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function wk(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return P(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,t,r);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],t,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=t-c,y=Math.abs(d);y<=o&&((y=0&&s<0)&&(o=y,s=d,i=c,a.length=0),P(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function Sk(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function bk(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Yo(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.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 xk(t,e,r){var n=r.axesInfo=[];P(e,function(i,a){var o=i.axisPointerModel.option,s=t[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 Ck(t,e,r,n){if(fl(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function Tk(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=vm(n)[i]||{},o=vm(n)[i]={};P(t,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&P(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];P(a,function(u,f){!o[f]&&l.push(u)}),P(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 Mk(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function pm(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function fl(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function $S(t){OS.registerAxisPointerClass("CartesianAxisPointer",uk),t.registerComponentModel(ck),t.registerComponentView(mk),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!et(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=NO(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},_k)}function SN(t){vi(QO),vi($S)}function Dk(t,e){var r=yu(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Qt({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var Ak=function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(zt),Pk=Ak;function GS(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function WS(t){if(!!mt.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" solid "+i+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function Bk(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,i="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,i+=mt.transformSupported?","+id+n:",left"+n+",top"+n),Lk+":"+i}function gm(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!mt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=mt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+id+":"+o+";":[["top",0],["left",0],[US,o]]}function Nk(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),r&&e.push("line-height:"+Math.round(r*3/2)+"px");var i=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),P(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Fk(t,e,r){var n=[],i=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),f=t.getModel("textStyle"),c=Mw(t,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&i&&n.push(Bk(i,r)),a&&n.push("background-color:"+a),P(["width","color","radius"],function(v){var d="border-"+v,y=J1(d),g=t.get(y);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Nk(f)),c!=null&&n.push("padding:"+yu(c).join("px ")+"px"),n.join(";")+";"}function ym(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&pM(t,o,document.body,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var zk=function(){function t(e,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,mt.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;ym(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;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();Be(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){var r=this._container,n=Ek(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=Rk+Fk(e,!this._firstShow,this._longHide)+gm(a[0],a[1],!0)+("border-color:"+hi(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(nt(a)&&n.get("trigger")==="item"&&!GS(n)&&(s=kk(n,i,a)),nt(e))o.innerHTML=e+s;else if(e){o.innerHTML="",et(e)||(e=[e]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.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})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||mt.node||!i.getDom())){var o=wm(a,i);this._ticket="";var s=a.dataByCoordSys,l=qk(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=Gk;f.x=a.x,f.y=a.y,f.update(),Bt(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=VS(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.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(wm(a,i))},e.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=Ga([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}}},e.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;Ja(i,function(u){if(Bt(u).dataIndex!=null)return s=u,!0;if(Bt(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)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Ht(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ga([n.tooltipOption],a),l=this._renderMode,u=[],f=Ho("section",{blocks:[],noHeader:!0}),c=[],h=new Df;P(r,function(m){P(m.dataByAxis,function(_){var w=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!w||b==null)){var S=FS(b,w.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Ho("section",{header:S,noHeader:!vr(S),sortBlocks:!0,blocks:[]});f.blocks.push(x),P(_.seriesDataIndices,function(T){var M=i.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,I=M.getDataParams(D);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=td(w.axis,{value:b}),I.axisValueLabel=S,I.marker=h.makeTooltipMarker("item",hi(I.color),l);var A=Qg(M.formatTooltip(D,!0,null)),L=A.frag;if(L){var O=Ga([M],a).get("valueFormatter");x.blocks.push(O?q({valueFormatter:O},L):L)}A.text&&c.push(A.text),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),y=ny(f,h,l,d,i.get("useUTC"),s.get("textStyle"));y&&c.unshift(y);var g=l==="richText"?` `:"
",p=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,p,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Bt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=r.positionDefault,y=Ga([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=y.get("trigger");if(!(g!=null&&g!=="item")){var p=u.getDataParams(f,c),m=new Df;p.marker=m.makeTooltipMarker("item",hi(p.color),v);var _=Qg(u.formatTooltip(f,!1,c)),w=y.get("order"),b=y.get("valueFormatter"),S=_.frag,x=S?ny(b?q({valueFormatter:b},S):S,m,v,w,a.get("useUTC"),y.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,x,p,T,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=Bt(n),o=a.tooltipConfig,s=o.option||{};if(nt(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,h=Ga(u,this._tooltipModel,c?{position:c}:null),v=h.get("content"),d=Math.random()+"",y=new Df;this._showOrMove(h,function(){var g=St(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,d,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),y=d.color;if(h)if(nt(h)){var g=r.ecModel.get("useUTC"),p=et(i)?i[0]:i,m=p&&p.axisType&&p.axisType.indexOf("time")>=0;v=h,m&&(v=hu(p.axisValue,v,g)),v=tw(v,i,!0)}else if(dt(h)){var _=Ht(function(w,b){w===this._ticket&&(c.setContent(b,f,r,y,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,r,y,l),c.show(r,y),this._updatePosition(r,l,o,s,c,i,u)}},e.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}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),dt(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),et(n))i=ue(n[0],u),a=ue(n[1],f);else if(st(n)){var y=n;y.width=c[0],y.height=c[1];var g=No(y,{width:u,height:f});i=g.x,a=g.y,h=null,v=null}else if(nt(n)&&l){var p=Xk(n,d,c,r.get("borderWidth"));i=p[0],a=p[1]}else{var p=Uk(i,a,o,u,f,h?null:20,v?null:20);i=p[0],a=p[1]}if(h&&(i-=Sm(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=Sm(v)?c[1]/2:v==="bottom"?c[1]:0),GS(r)){var p=Yk(i,a,o,u,f);i=p[0],a=p[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&P(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&P(u,function(h,v){var d=c[v]||{},y=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&y.length===g.length,o&&P(y,function(p,m){var _=g[m];o=o&&p.seriesIndex===_.seriesIndex&&p.dataIndex===_.dataIndex}),a&&P(h.seriesDataIndices,function(p){var m=p.seriesIndex,_=n[m],w=a[m];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){mt.node||!n.getDom()||(eh(this,"_updatePosition"),this._tooltipContent.dispose(),gh("itemTooltip",n))},e.type="tooltip",e}(Br);function Ga(t,e,r){var n=e.ecModel,i;r?(i=new ae(r,n,n),i=new ae(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof ae&&(o=o.get("tooltip",!0)),nt(o)&&(o={formatter:o}),o&&(i=new ae(o,i,n)))}return i}function wm(t,e){return t.dispatchAction||Ht(e.dispatchAction,e)}function Uk(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function Yk(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Xk(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function Sm(t){return t==="center"||t==="middle"}function qk(t,e,r){var n=yv(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=jo(e,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=Bt(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var Kk=Wk;function bN(t){vi($S),t.registerComponentModel(Pk),t.registerComponentView(Kk),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_e),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_e)}var Zk=function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.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"}},e}(zt),jk=function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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:Sn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),v=new he({style:Sn(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),y=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!y&&!g,d&&f.on("click",function(){Og(d,"_"+r.get("target"))}),y&&v.on("click",function(){Og(y,"_"+r.get("subtarget"))}),Bt(f).eventData=Bt(v).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(v);var p=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=p.width,m.height=p.height;var _=No(m,{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),v.setStyle(w),p=a.getBoundingRect();var b=_.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var x=new Qt({shape:{x:p.x-b[3],y:p.y-b[0],width:p.width+b[1]+b[3],height:p.height+b[0]+b[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(x)}},e.type="title",e}(Br);function xN(t){t.registerComponentModel(Zk),t.registerComponentView(jk)}function XS(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=la(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(e[a])}return n.join(" ")}var Jk=function(t){J(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=ua(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=tB,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Pl(this.childAt(0))},e.prototype.downplay=function(){Il(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r){var n=this.childAt(0);n.draggable=r,n.cursor=r?"move":n.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):wn(h,v,s,n),tI(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Jo(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,v,d,y,g,p;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,y=a.labelStatesModels,g=a.hoverScale,p=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var m=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),y=Rv(m),g=_.getShallow("scale"),p=m.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var b=Fw(r.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),p&&s.attr("cursor",p);var S=r.getItemVisual(n,"style"),x=S.fill;if(s instanceof pi){var T=s.style;s.useStyle(q({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(q({},S)):s.useStyle(S),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=r.getItemVisual(n,"liftZ"),D=this._z2;M!=null?D==null&&(this._z2=s.z2,s.z2+=M):D!=null&&(s.z2=D,this._z2=null);var I=o&&o.useNameLabel;Lv(s,y,{labelFetcher:l,labelDataIndex:n,defaultText:A,inheritColor:x,defaultOpacity:S.opacity});function A(H){return I?r.getName(H):XS(r,H)}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),Wc(this,h,v,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Bt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ll(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ll(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return jL(r.getItemVisual(n,"symbolSize"))},e}(ce);function tB(t,e){this.parent.drift(t,e)}var ad=Jk;function Uf(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function bm(t){return t!=null&&!st(t)&&(t={isIgnore:t}),t||{}}function xm(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Rv(e),cursorStyle:e.get("cursor")}}var eB=function(){function t(e){this.group=new ce,this._SymbolCtor=e||ad}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=bm(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=xm(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var h=f(c);if(Uf(e,h,c,r)){var v=new o(e,c,l,u);v.setPosition(h),e.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!Uf(e,d,c,r)){n.remove(v);return}var y=e.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==y)n.remove(v),v=new o(e,c,l,u),v.setPosition(d);else{v.updateData(e,c,l,u);var p={x:d[0],y:d[1]};s?v.attr(p):wn(v,p,i)}n.add(v),e.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xm(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=bm(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(zt),yh=aB,ki=jt,mh=P,Gs=ce,oB=function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Gs),this.group.add(this._selectorGroup=new Gs),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),v=No(f,c,h),d=this.layoutInner(r,o,v,a,l,u),y=No(Dt({width:d.width,height:d.height},f),c,h);this.group.x=y.x-d.x,this.group.y=y.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Dk(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=gt(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),mh(n.getData(),function(v,d){var y=v.get("name");if(!this.newlineDisabled&&(y===""||y===` `)){var g=new Gs;g.newline=!0,u.add(g);return}var p=i.getSeriesByName(y)[0];if(!f.get(y))if(p){var m=p.getData(),_=m.getVisual("legendLineStyle")||{},w=m.getVisual("legendIcon"),b=m.getVisual("style"),S=this._createItem(p,y,d,v,n,r,_,b,w,c);S.on("click",ki(Cm,y,null,a,h)).on("mouseover",ki(_h,p.name,null,a,h)).on("mouseout",ki(wh,p.name,null,a,h)),f.set(y,!0)}else i.eachRawSeries(function(x){if(!f.get(y)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(y))return;var M=T.indexOfName(y),D=T.getItemVisual(M,"style"),I=T.getItemVisual(M,"legendIcon"),A=Er(D.fill);A&&A[3]===0&&(A[3]=.2,D=q(q({},D),{fill:nu(A,"rgba")}));var L=this._createItem(x,y,d,v,n,r,{},D,I,c);L.on("click",ki(Cm,null,y,a,h)).on("mouseover",ki(_h,null,y,a,h)).on("mouseout",ki(wh,null,y,a,h)),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();mh(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 h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Lv(c,{normal:h,emphasis:v},{defaultText:u.title}),Gc(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c){var h=r.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),y=o.isSelected(n),g=a.get("symbolRotate"),p=a.get("symbolKeepAspect"),m=a.get("icon");f=m||f||"roundRect";var _=sB(f,a,l,u,h,y),w=new Gs,b=a.getModel("textStyle");if(dt(r.getLegendIcon)&&(!m||m==="inherit"))w.add(r.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:p}));else{var S=m==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;w.add(lB({itemWidth:v,itemHeight:d,icon:f,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:p}))}var x=s==="left"?v+5:-5,T=s,M=o.get("formatter"),D=n;nt(M)&&M?D=M.replace("{name}",n!=null?n:""):dt(M)&&(D=M(n));var I=a.get("inactiveColor");w.add(new he({style:Sn(b,{text:D,x,y:d/2,fill:y?b.getTextColor():I,align:T,verticalAlign:"middle"})}));var A=new Qt({shape:w.getBoundingRect(),invisible:!0}),L=a.getModel("tooltip");return L.get("show")&&Iv({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),Gc(w),w.__legendDataIndex=i,w},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();go(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){go("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),y=r.getOrient().index,g=y===0?"width":"height",p=y===0?"height":"width",m=y===0?"y":"x";s==="end"?v[y]+=f[g]+d:c[y]+=h[g]+d,v[1-y]+=f[p]/2-h[p]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[p]=Math.max(f[p],h[p]),_[m]=Math.min(0,h[m]+v[1-y]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Br);function sB(t,e,r,n,i,a){function o(d,y){d.lineWidth==="auto"&&(d.lineWidth=y.lineWidth>0?2:0),mh(d,function(g,p){d[p]==="inherit"&&(d[p]=y[p])})}var s=e.getModel("itemStyle"),l=s.getItemStyle(),u=t.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=e.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 h=e.get("inactiveBorderWidth"),v=l[u];l.lineWidth=h==="auto"?n.lineWidth>0&&v?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),c.stroke=f.get("inactiveColor"),c.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:c}}function lB(t){var e=t.icon||"roundRect",r=ua(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function Cm(t,e,r,n){wh(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t!=null?t:e}),_h(t,e,r,n)}function qS(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;ni[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var p=[0,0],m=[-d.x,-d.y],_=Mt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(y){var w=r.get("pageButtonPosition",!0);w==="end"?m[a]+=i[o]-d[o]:p[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(p),h.setPosition(m);var b={x:0,y:0};if(b[o]=y?i[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-a]),c.__rectSize=i[o],y){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-_,0),S[s]=b[s],c.setClipPath(new Qt({shape:S})),c.__rectSize=S[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&wn(f,{x:x.contentPosition[0],y:x.contentPosition[1]},y?r:null),this._updatePageInfoView(r,x),b},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;P(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",nt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Yf[o],l=Xf[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var y=w(c);d.contentPosition[o]=-y.s;for(var g=u+1,p=y,m=y,_=null;g<=h;++g)_=w(f[g]),(!_&&m.e>p.s+a||_&&!b(_,p.s))&&(m.i>p.i?p=m:p=_,p&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=p.i),++d.pageCount)),m=_;for(var g=u-1,p=y,m=y,_=null;g>=-1;--g)_=w(f[g]),(!_||!b(m,_.s))&&p.i=x&&S.s<=x+a}},e.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},e.type="legend.scroll",e}(KS),dB=vB;function pB(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function gB(t){vi(ZS),t.registerComponentModel(hB),t.registerComponentView(dB),pB(t)}function CN(t){vi(ZS),vi(gB)}var yB=function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return d2(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new ce,i=ua("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=ua(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},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Vo),mB=yB;function jS(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=_B(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=ct(t.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return Wo(e,c[0])&&(h=!0,c[0]=v),Wo(e,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function _B(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function QS(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function wB(t,e){var r=[];return e.diff(t).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 SB(t,e,r,n,i,a,o,s){for(var l=wB(t,e),u=[],f=[],c=[],h=[],v=[],d=[],y=[],g=jS(i,e,o),p=t.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=i||y<0)break;if(ai(p,m)){if(l){y+=a;continue}break}if(y===r)t[a>0?"moveTo":"lineTo"](p,m),c=p,h=m;else{var _=p-u,w=m-f;if(_*_+w*w<.5){y+=a;continue}if(o>0){for(var b=y+a,S=e[b*2],x=e[b*2+1];S===p&&x===m&&g=n||ai(S,x))v=p,d=m;else{D=S-u,I=x-f;var O=p-u,H=S-p,B=m-f,Q=x-m,G=void 0,Z=void 0;if(s==="x"){G=Math.abs(O),Z=Math.abs(H);var lt=D>0?1:-1;v=p-lt*G*o,d=m,A=p+lt*Z*o,L=m}else if(s==="y"){G=Math.abs(B),Z=Math.abs(Q);var _t=I>0?1:-1;v=p,d=m-_t*G*o,A=p,L=m+_t*Z*o}else G=Math.sqrt(O*O+B*B),Z=Math.sqrt(H*H+Q*Q),M=Z/(Z+G),v=p-D*o*(1-M),d=m-I*o*(1-M),A=p+D*o*M,L=m+I*o*M,A=jr(A,Qr(S,p)),L=jr(L,Qr(x,m)),A=Qr(A,jr(S,p)),L=Qr(L,jr(x,m)),D=A-p,I=L-m,v=p-D*G/Z,d=m-I*G/Z,v=jr(v,Qr(u,p)),d=jr(d,Qr(f,m)),v=Qr(v,jr(u,p)),d=Qr(d,jr(f,m)),D=p-v,I=m-d,A=p+D*Z/G,L=m+I*Z/G}t.bezierCurveTo(c,h,v,d,p,m),c=A,h=L}else t.lineTo(p,m)}u=p,f=m,y+=a}return g}var JS=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),bB=function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JS},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&ai(i[o*2-2],i[o*2-1]);o--);for(;a=0){var w=u?(d-l)*_+l:(v-s)*_+s;return u?[r,w]:[w,r]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],y=a[c++],g=a[c++],p=a[c++],m=a[c++];var b=u?Sl(s,v,y,p,r,f):Sl(l,d,g,m,r,f);if(b>0)for(var S=0;S=0){var w=u?Xt(l,d,g,m,x):Xt(s,v,y,p,x);return u?[r,w]:[w,r]}}s=p,l=m;break}}},e}(kt),xB=function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(JS),CB=function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new xB},e.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&&ai(i[s*2-2],i[s*2-1]);s--);for(;oe){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function PB(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!!a){var l=e.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 h=AB(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,y=h[0].coord-d,g=h[v-1].coord+d,p=g-y;if(p<.001)return"transparent";P(h,function(_){_.offset=(_.coord-y)/p}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new R1(0,0,0,0,h,!0);return m[i]=y,m[i+"2"]=g,m}}}function IB(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(!!a&&!(i&&EB(a,e))){var o=e.mapDimension(a.dim),s={};return P(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function EB(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function LB(t,e){return isNaN(t)||isNaN(e)}function RB(t){for(var e=t.length/2;e>0&&LB(t[e*2-2],t[e*2-1]);e--);return e-1}function Em(t,e){return[t[e*2],t[e*2+1]]}function OB(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function tb(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var lt=y.getState("emphasis").style;lt.lineWidth=+y.style.lineWidth+1}Bt(y).seriesIndex=r.seriesIndex,Wc(y,Q,G,Z);var _t=Im(r.get("smooth")),yt=r.get("smoothMonotone");if(y.setShape({smooth:_t,smoothMonotone:yt,connectNulls:T}),g){var pt=l.getCalculationInfo("stackedOnSeries"),At=0;g.useStyle(Dt(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),pt&&(At=Im(pt.get("smooth"))),g.setShape({smooth:_t,stackedOnSmooth:At,smoothMonotone:yt,connectNulls:T}),vg(g,r,"areaStyle"),Bt(g).seriesIndex=r.seriesIndex,Wc(g,Q,G,Z)}var k=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=k)}),this._polyline.onHoverStateChange=k,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=c,this._step=I,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,y),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){Bt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=ui(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=r.get("zlevel"),v=r.get("z");u=new ad(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else gn.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=ui(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 gn.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;lg(this._polyline,r),n&&lg(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new bB({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new CB({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.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");dt(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=dt(c)?c(null):c;r.eachItemGraphicEl(function(v,d){var y=v;if(y){var g=[v.x,v.y],p=void 0,m=void 0,_=void 0;if(i)if(o){var w=i,b=n.pointToCoord(g);a?(p=w.startAngle,m=w.endAngle,_=-b[1]/180*Math.PI):(p=w.r0,m=w.r,_=b[0])}else{var S=i;a?(p=S.x,m=S.x+S.width,_=v.x):(p=S.y+S.height,m=S.y,_=v.y)}var x=m===p?0:(_-p)/(m-p);l&&(x=1-x);var T=dt(c)?c(d):f*x+h,M=y.getSymbolPath(),D=M.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(tb(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=RB(l);f>=0&&(Lv(s,Rv(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?Qk(o,v):XS(o,c)},enableTextSetter:!0},kB(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),y=s.get("distance")||0,g=l.getBaseAxis(),p=g.isHorizontal(),m=g.inverse,_=n.shape,w=m?p?_.x:_.y+_.height:p?_.x+_.width:_.y,b=(p?y:0)*(m?-1:1),S=(p?0:-y)*(m?-1:1),x=p?"x":"y",T=OB(c,w,x),M=T.range,D=M[1]-M[0],I=void 0;if(D>=1){if(D>1&&!v){var A=Em(c,M[0]);u.attr({x:A[0]+b,y:A[1]+S}),o&&(I=h.getRawValue(M[0]))}else{var A=f.getPointOn(w,x);A&&u.attr({x:A[0]+b,y:A[1]+S});var L=h.getRawValue(M[0]),O=h.getRawValue(M[1]);o&&(I=qD(i,d,L,O,T.t))}a.lastFrameIndex=M[0]}else{var H=r===1||a.lastFrameIndex>0?M[0]:0,A=Em(c,H);o&&(I=h.getRawValue(H)),u.attr({x:A[0]+b,y:A[1]+S})}o&&z1(u).setLabelText(I)}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,h=SB(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,y=h.next,g=h.stackedOnNext;if(o&&(v=Jr(h.current,i,o,l),d=Jr(h.stackedOnCurrent,i,o,l),y=Jr(h.next,i,o,l),g=Jr(h.stackedOnNext,i,o,l)),Pm(v,y)>3e3||f&&Pm(d,g)>3e3){u.stopAnimation(),u.setShape({points:y}),f&&(f.stopAnimation(),f.setShape({points:y,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var p={shape:{points:y}};h.current!==v&&(p.shape.__points=h.next),u.stopAnimation(),wn(u,p,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),wn(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,w=0;w<_.length;w++){var b=_[w].cmd;if(b==="="){var S=r.getItemGraphicEl(_[w].idx1);S&&m.push({el:S,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;Te&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;nt(a)?d=zB[a]:dt(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,HB))}}}}}function TN(t){t.registerChartView(NB),t.registerSeriesModel(mB),t.registerLayout(FB("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,VB("line"))}function Lm(t,e,r){var n=di.createCanvas(),i=e.getWidth(),a=e.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",t)),n.width=i*r,n.height=a*r,n}var $B=function(t){J(e,t);function e(r,n,i){var a=t.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||Ml,typeof r=="string"?o=Lm(r,n,i):st(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(c_(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Lm("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.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(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new Ot(0,0,0,0);_.copy(m),o.push(_)}else{for(var w=!1,b=1/0,S=0,x=0;x=s)}}for(var c=this.__startIndex;c15)break}}O.prevElClipPaths&&p.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var D=v.dpr,I=0;I0&&e>i[0]){for(l=0;le);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=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}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i0?Ws:0),this._needsManuallyCompositing),f.__builtin__||iv("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&Te&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,P(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Tt(n[e],r,!0):n[e]=r;for(var i=0;i=0;)g++;if(d.substr(0,2)==="::"&&g--,d.substr(-2,2)==="::"&&g--,g>y)return null;for(w=y-g,_=":";w--;)_+="0:";return d=d.replace("::",_),d[0]===":"&&(d=d.slice(1)),d[d.length-1]===":"&&(d=d.slice(0,-1)),y=function(){const b=d.split(":"),S=[];for(let x=0;x0;){if(_=g-p,_<0&&(_=0),d[m]>>_!==y[m]>>_)return!1;p-=g,m+=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 h(d,y){for(;d.length=0;m-=1)if(_=this.octets[m],_ in p){if(w=p[_],g&&w!==0)return null;w!==8&&(g=!0),y+=w}else return null;return 32-y},d.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){return this.octets.slice(0)},d.prototype.toIPv4MappedAddress=function(){return v.IPv6.parse(`::ffff:${this.toString()}`)},d.prototype.toNormalizedString=function(){return this.toString()},d.prototype.toString=function(){return this.octets.join(".")},d}(),v.IPv4.broadcastAddressFromCIDR=function(d){try{const y=this.parseCIDR(d),g=y[0].toByteArray(),p=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),m=[];let _=0;for(;_<4;)m.push(parseInt(g[_],10)|parseInt(p[_],10)^255),_++;return new this(m)}catch(y){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.isIPv4=function(d){return this.parser(d)!==null},v.IPv4.isValid=function(d){try{return new this(this.parser(d)),!0}catch(y){return!1}},v.IPv4.isValidFourPartDecimal=function(d){return!!(v.IPv4.isValid(d)&&d.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},v.IPv4.networkAddressFromCIDR=function(d){let y,g,p,m,_;try{for(y=this.parseCIDR(d),p=y[0].toByteArray(),_=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),m=[],g=0;g<4;)m.push(parseInt(p[g],10)&parseInt(_[g],10)),g++;return new this(m)}catch(w){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.parse=function(d){const y=this.parser(d);if(y===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(y)},v.IPv4.parseCIDR=function(d){let y;if(y=d.match(/^(.+)\/(\d+)$/)){const g=parseInt(y[2]);if(g>=0&&g<=32){const p=[this.parse(y[1]),g];return Object.defineProperty(p,"toString",{value:function(){return this.join("/")}}),p}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},v.IPv4.parser=function(d){let y,g,p;if(y=d.match(n.fourOctet))return function(){const m=y.slice(1,6),_=[];for(let w=0;w4294967295||p<0)throw new Error("ipaddr: address outside defined range");return function(){const m=[];let _;for(_=0;_<=24;_+=8)m.push(p>>_&255);return m}().reverse()}else return(y=d.match(n.twoOctet))?function(){const m=y.slice(1,4),_=[];if(p=c(m[1]),p>16777215||p<0)throw new Error("ipaddr: address outside defined range");return _.push(c(m[0])),_.push(p>>16&255),_.push(p>>8&255),_.push(p&255),_}():(y=d.match(n.threeOctet))?function(){const m=y.slice(1,5),_=[];if(p=c(m[2]),p>65535||p<0)throw new Error("ipaddr: address outside defined range");return _.push(c(m[0])),_.push(c(m[1])),_.push(p>>8&255),_.push(p&255),_}():null},v.IPv4.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>32)throw new Error("ipaddr: invalid IPv4 prefix length");const y=[0,0,0,0];let g=0;const p=Math.floor(d/8);for(;g=0;w-=1)if(m=this.parts[w],m in p){if(_=p[m],g&&_!==0)return null;_!==16&&(g=!0),y+=_}else return null;return 128-y},d.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){let y;const g=[],p=this.parts;for(let m=0;m>8),g.push(y&255);return g},d.prototype.toFixedLengthString=function(){const y=function(){const p=[];for(let m=0;m>8,g&255,p>>8,p&255])},d.prototype.toNormalizedString=function(){const y=function(){const p=[];for(let m=0;mm&&(p=_.index,m=_[0].length);return m<0?g:`${g.substring(0,p)}::${g.substring(p+m)}`},d.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},d}(),v.IPv6.broadcastAddressFromCIDR=function(d){try{const y=this.parseCIDR(d),g=y[0].toByteArray(),p=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),m=[];let _=0;for(;_<16;)m.push(parseInt(g[_],10)|parseInt(p[_],10)^255),_++;return new this(m)}catch(y){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${y})`)}},v.IPv6.isIPv6=function(d){return this.parser(d)!==null},v.IPv6.isValid=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{const y=this.parser(d);return new this(y.parts,y.zoneId),!0}catch(y){return!1}},v.IPv6.networkAddressFromCIDR=function(d){let y,g,p,m,_;try{for(y=this.parseCIDR(d),p=y[0].toByteArray(),_=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),m=[],g=0;g<16;)m.push(parseInt(p[g],10)&parseInt(_[g],10)),g++;return new this(m)}catch(w){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${w})`)}},v.IPv6.parse=function(d){const y=this.parser(d);if(y.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(y.parts,y.zoneId)},v.IPv6.parseCIDR=function(d){let y,g,p;if((g=d.match(/^(.+)\/(\d+)$/))&&(y=parseInt(g[2]),y>=0&&y<=128))return p=[this.parse(g[1]),y],Object.defineProperty(p,"toString",{value:function(){return this.join("/")}}),p;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},v.IPv6.parser=function(d){let y,g,p,m,_,w;if(p=d.match(l.deprecatedTransitional))return this.parser(`::ffff:${p[1]}`);if(l.native.test(d))return u(d,8);if((p=d.match(l.transitional))&&(w=p[6]||"",y=u(p[1].slice(0,-1)+w,6),y.parts)){for(_=[parseInt(p[2]),parseInt(p[3]),parseInt(p[4]),parseInt(p[5])],g=0;g<_.length;g++)if(m=_[g],!(0<=m&&m<=255))return null;return y.parts.push(_[0]<<8|_[1]),y.parts.push(_[2]<<8|_[3]),{parts:y.parts,zoneId:y.zoneId}}return null},v.IPv6.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>128)throw new Error("ipaddr: invalid IPv6 prefix length");const y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let g=0;const p=Math.floor(d/8);for(;g